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

Commit 12d6eb28 authored by lucaslin's avatar lucaslin
Browse files

Add test for [set|is]BypassableVpn

Bug: 182963397
Test: 1. atest CtsNetTestCases:NetworkAgentConfigTest
      2. atest CtsNetTestCasesLatestSdk:NetworkAgentConfigTest
Change-Id: I0250a0313d3a7561ab8efa851fbc06f5bce11185
parent 6339fba8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -44,6 +44,9 @@ class NetworkAgentConfigTest {
            setSubscriberId("MySubId")
            setPartialConnectivityAcceptable(false)
            setUnvalidatedConnectivityAcceptable(true)
            if (isAtLeastS()) {
                setBypassableVpn(true)
            }
        }.build()
        if (isAtLeastS()) {
            // From S, the config will have 12 items
@@ -66,6 +69,7 @@ class NetworkAgentConfigTest {
            if (isAtLeastS()) {
                setNat64DetectionEnabled(false)
                setProvisioningNotificationEnabled(false)
                setBypassableVpn(true)
            }
        }.build()

@@ -78,6 +82,7 @@ class NetworkAgentConfigTest {
        if (isAtLeastS()) {
            assertFalse(config.isNat64DetectionEnabled())
            assertFalse(config.isProvisioningNotificationEnabled())
            assertTrue(config.isBypassableVpn())
        } else {
            assertTrue(config.isNat64DetectionEnabled())
            assertTrue(config.isProvisioningNotificationEnabled())