Merge "WifiManagerTest: |disableOthers| flag change" am: aaaca1cfc8 am: 76b4b52522 am: d434b47f1e
am: 9574de7d88
Change-Id: I2071a0e4939c39b2f2defa4cdd8452d9cc2c87c7
This commit is contained in:
@@ -218,16 +218,6 @@ public class WifiManagerTest extends AndroidTestCase {
|
||||
return -1;
|
||||
}
|
||||
|
||||
private void assertDisableOthers(WifiConfiguration wifiConfiguration, boolean disableOthers) {
|
||||
for (WifiConfiguration w : mWifiManager.getConfiguredNetworks()) {
|
||||
if ((!w.SSID.equals(wifiConfiguration.SSID)) && w.status != Status.CURRENT) {
|
||||
if (disableOthers) {
|
||||
assertEquals(Status.DISABLED, w.status);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* test point of wifiManager actions:
|
||||
* 1.reconnect
|
||||
@@ -383,7 +373,6 @@ public class WifiManagerTest extends AndroidTestCase {
|
||||
boolean disableOthers = true;
|
||||
assertTrue(mWifiManager.enableNetwork(netId, disableOthers));
|
||||
wifiConfiguration = mWifiManager.getConfiguredNetworks().get(pos);
|
||||
assertDisableOthers(wifiConfiguration, disableOthers);
|
||||
assertEquals(Status.ENABLED, wifiConfiguration.status);
|
||||
|
||||
assertTrue(mWifiManager.disableNetwork(netId));
|
||||
|
||||
Reference in New Issue
Block a user