Fixing comments in Network Capabilities
Clean up after aosp/606338 Test: m -j (only comments has been changed) Change-Id: I2627654450244024c2be92f9067534dfc2a80891
This commit is contained in:
@@ -291,7 +291,7 @@ public class NetworkCapabilitiesTest {
|
||||
assertTrue("Request: " + request + ", Network:" + network,
|
||||
request.satisfiedByNetworkCapabilities(network));
|
||||
|
||||
// Adding capabilities that doesn't exist in the network anyway
|
||||
// Requesting absence of capabilities that network doesn't have. Request should satisfy.
|
||||
request.addUnwantedCapability(NET_CAPABILITY_WIFI_P2P);
|
||||
request.addUnwantedCapability(NET_CAPABILITY_NOT_METERED);
|
||||
assertTrue(request.satisfiedByNetworkCapabilities(network));
|
||||
@@ -306,7 +306,6 @@ public class NetworkCapabilitiesTest {
|
||||
assertTrue(request.hasUnwantedCapability(NET_CAPABILITY_NOT_RESTRICTED));
|
||||
assertFalse(request.hasCapability(NET_CAPABILITY_NOT_RESTRICTED));
|
||||
|
||||
|
||||
// Now this request won't be satisfied because network contains NOT_RESTRICTED.
|
||||
assertFalse(request.satisfiedByNetworkCapabilities(network));
|
||||
network.removeCapability(NET_CAPABILITY_NOT_RESTRICTED);
|
||||
|
||||
Reference in New Issue
Block a user