diff options
author | Quang Luong <qal@google.com> | 2020-09-15 19:04:38 -0700 |
---|---|---|
committer | Quang Luong <qal@google.com> | 2020-09-15 19:24:35 -0700 |
commit | 0e4add66aa1470c396efc245856dce96523eac54 (patch) | |
tree | ddd9b5f5c6f9a251f5883252eebf21c1178168c4 /libs | |
parent | 4c453481a3dba24fa65bcaf96e8cbe64f46b4c2f (diff) |
[WifiTrackerLib] Remove unit test for new edit dialog behavior
Removing unit test for showing edit dialog for never-connected secured
networks, since this behavior does not happen anymore.
Bug: 160727383
Test: atest WifiTrackerLibTests
Change-Id: I7d13141ad4ef8ebe9166cf26d00fb22e74d1af32
Diffstat (limited to 'libs')
-rw-r--r-- | libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/StandardWifiEntryTest.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/StandardWifiEntryTest.java b/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/StandardWifiEntryTest.java index 24449fb3a..e9194f315 100644 --- a/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/StandardWifiEntryTest.java +++ b/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/StandardWifiEntryTest.java @@ -804,27 +804,6 @@ public class StandardWifiEntryTest { } @Test - public void testShouldEditBeforeConnect_securedNetwork_returnTrueIfNeverConnected() { - // Test never connected. - WifiConfiguration wifiConfig = spy(new WifiConfiguration()); - wifiConfig.SSID = "\"ssid\""; - wifiConfig.setSecurityParams(WifiConfiguration.SECURITY_TYPE_PSK); - StandardWifiEntry entry = new StandardWifiEntry(mMockContext, mTestHandler, - ssidAndSecurityToStandardWifiEntryKey("ssid", SECURITY_PSK), - wifiConfig, mMockWifiManager, mMockScoreCache, false /* forSavedNetworksPage */); - NetworkSelectionStatus networkSelectionStatus = - spy(new NetworkSelectionStatus.Builder().build()); - doReturn(networkSelectionStatus).when(wifiConfig).getNetworkSelectionStatus(); - - assertThat(entry.shouldEditBeforeConnect()).isTrue(); - - // Test ever connected. - doReturn(true).when(networkSelectionStatus).hasEverConnected(); - - assertThat(entry.shouldEditBeforeConnect()).isFalse(); - } - - @Test public void testShouldEditBeforeConnect_authenticationFailure_returnTrue() { // Test DISABLED_AUTHENTICATION_FAILURE. WifiConfiguration wifiConfig = spy(new WifiConfiguration()); |