Address nit from aosp/1301317
Test: atest ConnectivityServiceTest#testVpnSetUnderlyingNetworks Bug: 150570873 Original-Change: https://android-review.googlesource.com/1307374 Merged-In: If5e5439b22f05e08a293fd83da4d54f6a4363ca5 Change-Id: If5e5439b22f05e08a293fd83da4d54f6a4363ca5
This commit is contained in:
committed by
Chalard Jean
parent
8ed33c51f1
commit
4a7eb2a5d2
@@ -5447,6 +5447,8 @@ public class ConnectivityServiceTest {
|
|||||||
assertFalse(nc.hasTransport(TRANSPORT_WIFI));
|
assertFalse(nc.hasTransport(TRANSPORT_WIFI));
|
||||||
// For safety reasons a VPN without underlying networks is considered metered.
|
// For safety reasons a VPN without underlying networks is considered metered.
|
||||||
assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_METERED));
|
assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_METERED));
|
||||||
|
// A VPN without underlying networks is not suspended.
|
||||||
|
assertTrue(nc.hasCapability(NET_CAPABILITY_NOT_SUSPENDED));
|
||||||
|
|
||||||
// Connect cell and use it as an underlying network.
|
// Connect cell and use it as an underlying network.
|
||||||
mCellNetworkAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR);
|
mCellNetworkAgent = new TestNetworkAgentWrapper(TRANSPORT_CELLULAR);
|
||||||
|
|||||||
Reference in New Issue
Block a user