Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Snippets Groups Projects
Commit 2d4f82f0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add test for [set|is]BypassableVpn" am: 3fbec7cf

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1676426

Change-Id: Ia433edec97f3a02c95dcf89f9f8ae80244063a89
parents 80b01a7f 3fbec7cf
Branches
No related tags found
No related merge requests found
...@@ -44,6 +44,9 @@ class NetworkAgentConfigTest { ...@@ -44,6 +44,9 @@ class NetworkAgentConfigTest {
setSubscriberId("MySubId") setSubscriberId("MySubId")
setPartialConnectivityAcceptable(false) setPartialConnectivityAcceptable(false)
setUnvalidatedConnectivityAcceptable(true) setUnvalidatedConnectivityAcceptable(true)
if (isAtLeastS()) {
setBypassableVpn(true)
}
}.build() }.build()
if (isAtLeastS()) { if (isAtLeastS()) {
// From S, the config will have 12 items // From S, the config will have 12 items
...@@ -66,6 +69,7 @@ class NetworkAgentConfigTest { ...@@ -66,6 +69,7 @@ class NetworkAgentConfigTest {
if (isAtLeastS()) { if (isAtLeastS()) {
setNat64DetectionEnabled(false) setNat64DetectionEnabled(false)
setProvisioningNotificationEnabled(false) setProvisioningNotificationEnabled(false)
setBypassableVpn(true)
} }
}.build() }.build()
...@@ -78,6 +82,7 @@ class NetworkAgentConfigTest { ...@@ -78,6 +82,7 @@ class NetworkAgentConfigTest {
if (isAtLeastS()) { if (isAtLeastS()) {
assertFalse(config.isNat64DetectionEnabled()) assertFalse(config.isNat64DetectionEnabled())
assertFalse(config.isProvisioningNotificationEnabled()) assertFalse(config.isProvisioningNotificationEnabled())
assertTrue(config.isBypassableVpn())
} else { } else {
assertTrue(config.isNat64DetectionEnabled()) assertTrue(config.isNat64DetectionEnabled())
assertTrue(config.isProvisioningNotificationEnabled()) assertTrue(config.isProvisioningNotificationEnabled())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment