summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiConfigStoreLegacyTest.java4
-rw-r--r--tests/wifitests/src/com/android/server/wifi/scanner/SupplicantPnoScannerTest.java1
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiConfigStoreLegacyTest.java b/tests/wifitests/src/com/android/server/wifi/WifiConfigStoreLegacyTest.java
index 271cc1878..386a86d1b 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiConfigStoreLegacyTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiConfigStoreLegacyTest.java
@@ -96,13 +96,13 @@ public class WifiConfigStoreLegacyTest {
// Return the config data with passwords masked from wpa_supplicant control interface.
doAnswer(new AnswerWithArguments() {
- public int answer(Map<String, WifiConfiguration> configs,
+ public boolean answer(Map<String, WifiConfiguration> configs,
SparseArray<Map<String, String>> networkExtras) {
for (Map.Entry<String, WifiConfiguration> entry:
createWpaSupplicantLoadData(networks).entrySet()) {
configs.put(entry.getKey(), entry.getValue());
}
- return 0;
+ return true;
}
}).when(mWifiNative).migrateNetworksFromSupplicant(any(Map.class), any(SparseArray.class));
diff --git a/tests/wifitests/src/com/android/server/wifi/scanner/SupplicantPnoScannerTest.java b/tests/wifitests/src/com/android/server/wifi/scanner/SupplicantPnoScannerTest.java
index 34b0b102c..6ff602850 100644
--- a/tests/wifitests/src/com/android/server/wifi/scanner/SupplicantPnoScannerTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/scanner/SupplicantPnoScannerTest.java
@@ -388,7 +388,6 @@ public class SupplicantPnoScannerTest {
WifiNative.PnoEventHandler pnoEventHandler) {
reset(mWifiNative);
when(mWifiNative.setNetworkVariable(anyInt(), anyString(), anyString())).thenReturn(true);
- when(mWifiNative.enableNetworkWithoutConnect(anyInt())).thenReturn(true);
// Scans succeed
when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true);
when(mWifiNative.setPnoScan(anyBoolean())).thenReturn(true);