diff options
| author | Chiachang Wang <chiachangwang@google.com> | 2022-02-08 15:45:11 +0800 |
|---|---|---|
| committer | Chiachang Wang <chiachangwang@google.com> | 2022-02-09 15:50:06 +0800 |
| commit | f890874970f25f80db510cb563a9211f84c5ad05 (patch) | |
| tree | 58ae763b3ff28e778a6c689a456a5a1d914a0dba /tests/common/java/android/net/NetworkAgentConfigTest.kt | |
| parent | 4b66d4e2441628b5f403e1a5a46358e2048fd9b3 (diff) | |
Change naming of excludeLocalRoutes
Address API review feedback to change naming of
setExcludedLocalRoutesVpn and getter.
Bug: 217742354
Test: atest FrameworksNetTests
Change-Id: I57bbf55c7aba1c86ec8687d2431a50b37e63c6d0
Diffstat (limited to 'tests/common/java/android/net/NetworkAgentConfigTest.kt')
| -rw-r--r-- | tests/common/java/android/net/NetworkAgentConfigTest.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/common/java/android/net/NetworkAgentConfigTest.kt b/tests/common/java/android/net/NetworkAgentConfigTest.kt index 11d3ba02d0..e5db09fc4b 100644 --- a/tests/common/java/android/net/NetworkAgentConfigTest.kt +++ b/tests/common/java/android/net/NetworkAgentConfigTest.kt @@ -51,7 +51,7 @@ class NetworkAgentConfigTest { setBypassableVpn(true) } if (isAtLeastT()) { - setExcludeLocalRoutesVpn(true) + setLocalRoutesExcludedForVpn(true) setVpnRequiresValidation(true) } }.build() @@ -75,7 +75,7 @@ class NetworkAgentConfigTest { setBypassableVpn(true) } if (isAtLeastT()) { - setExcludeLocalRoutesVpn(true) + setLocalRoutesExcludedForVpn(true) setVpnRequiresValidation(true) } }.build() @@ -87,7 +87,7 @@ class NetworkAgentConfigTest { assertTrue(config.isUnvalidatedConnectivityAcceptable()) assertEquals("TEST_NETWORK", config.getLegacyTypeName()) if (isAtLeastT()) { - assertTrue(config.getExcludeLocalRouteVpn()) + assertTrue(config.areLocalRoutesExcludedForVpn()) assertTrue(config.getVpnRequiresValidation()) } if (isAtLeastS()) { |
