diff options
author | Roshan Pius <rpius@google.com> | 2019-03-22 22:33:31 +0000 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2019-03-22 22:33:31 +0000 |
commit | f94353bbd50b7afdcdc01bf88f532acb117db21a (patch) | |
tree | 604173a5d6f825a68d7513a83c7cb3f24197608f /tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java | |
parent | 0cd22728c628e51e8f259f8404a97dec49804424 (diff) | |
download | android_frameworks_opt_net_wifi-f94353bbd50b7afdcdc01bf88f532acb117db21a.tar.gz android_frameworks_opt_net_wifi-f94353bbd50b7afdcdc01bf88f532acb117db21a.tar.bz2 android_frameworks_opt_net_wifi-f94353bbd50b7afdcdc01bf88f532acb117db21a.zip |
Revert "WifiConfigManager: Temporarily blacklist on disconnect"
This reverts commit 0cd22728c628e51e8f259f8404a97dec49804424.
Bug: 126503889
Reason for revert: UI changes was punted to R. No rationale in making this API changing behavior now.
Change-Id: Ie8cd931980d2eb0c7bf660cb0fa646848d315a71
Diffstat (limited to 'tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java b/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java index 4e7bec64d..22e8c2c1f 100644 --- a/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java +++ b/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java @@ -3304,40 +3304,4 @@ public class ClientModeImplTest { assertEquals(OP_PACKAGE_NAME, mCmi.getWifiInfo().getNetworkSuggestionOrSpecifierPackageName()); } - - /** - * Verifies the handling of disconnect initiated from API surface when connected to a network. - */ - @Test - public void testExternalDisconnectWhenConnected() throws Exception { - connect(); - - mCmi.disconnectCommandExternal(); // Simulate settings invoking this. - mLooper.dispatchAll(); - - verify(mWifiNative).disconnect(WIFI_IFACE_NAME); - verify(mWifiMetrics).logStaEvent(StaEvent.TYPE_FRAMEWORK_DISCONNECT, - StaEvent.DISCONNECT_API); - // verify that we temp blacklist the network. - verify(mWifiConfigManager).updateNetworkSelectionStatus(0, - WifiConfiguration.NetworkSelectionStatus.DISABLED_BY_WIFI_MANAGER_DISCONNECT); - } - - /** - * Verifies the handling of disconnect initiated internally when connected to a network. - */ - @Test - public void testInternalDisconnectWhenConnected() throws Exception { - connect(); - - mCmi.disconnectCommandInternal(); // Internal stack initiated disconnect. - mLooper.dispatchAll(); - - verify(mWifiNative).disconnect(WIFI_IFACE_NAME); - verify(mWifiMetrics).logStaEvent(StaEvent.TYPE_FRAMEWORK_DISCONNECT, - StaEvent.DISCONNECT_GENERIC); - // verify that we don't temp blacklist the network. - verify(mWifiConfigManager, never()).updateNetworkSelectionStatus(0, - WifiConfiguration.NetworkSelectionStatus.DISABLED_BY_WIFI_MANAGER_DISCONNECT); - } } |