summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2017-03-25 01:32:49 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-25 01:32:49 +0000
commitdd89c797c7e6d09decc1d493f79f70605df5e099 (patch)
treed27a13c6b09dbf7815c618c6a7d80b66cdd2d019 /tests
parent8e553c9bd76a950247ad7d209827644237d2fcb6 (diff)
parent052c06786c04dcf0e49a01de83408d2a3e4d4360 (diff)
Unit test fixes for WifiConfigManager/WifiVendorHal am: 28102ffacd am: 8127b1ea3c
am: 052c06786c Change-Id: I3778b70263fa8d88b3ddb9b9e9bc943ff30cafcd
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java2
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiVendorHalTest.java4
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java b/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
index 20b89dfc3..6b5c79a17 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java
@@ -166,7 +166,7 @@ public class WifiConfigManagerTest {
}).when(mPackageManager).getPackageUidAsUser(anyString(), anyInt(), anyInt());
when(mWifiKeyStore
- .updateNetworkKeys(any(WifiConfiguration.class), any(WifiConfiguration.class)))
+ .updateNetworkKeys(any(WifiConfiguration.class), any()))
.thenReturn(true);
when(mWifiConfigStore.areStoresPresent()).thenReturn(true);
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiVendorHalTest.java b/tests/wifitests/src/com/android/server/wifi/WifiVendorHalTest.java
index 6f1d69c69..36fe7d2df 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiVendorHalTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiVendorHalTest.java
@@ -56,7 +56,6 @@ import android.net.wifi.WifiScanner;
import android.net.wifi.WifiSsid;
import android.net.wifi.WifiWakeReasonAndCounts;
import android.os.HandlerThread;
-import android.os.Looper;
import android.os.RemoteException;
import android.util.Pair;
@@ -176,8 +175,7 @@ public class WifiVendorHalTest {
mWifiVendorHal.initialize();
ArgumentCaptor<WifiVendorHal.HalDeviceManagerStatusListener> hdmCallbackCaptor =
ArgumentCaptor.forClass(WifiVendorHal.HalDeviceManagerStatusListener.class);
- verify(mHalDeviceManager).registerStatusListener(
- hdmCallbackCaptor.capture(), any(Looper.class));
+ verify(mHalDeviceManager).registerStatusListener(hdmCallbackCaptor.capture(), any());
mHalDeviceManagerStatusCallbacks = hdmCallbackCaptor.getValue();
}