diff options
author | Ningyuan Wang <nywang@google.com> | 2017-03-23 23:35:20 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-03-23 23:35:20 +0000 |
commit | a5ad2d6d804032502d88bcfadbf7c9411c6f949a (patch) | |
tree | cf3b5f13e5fa418d4ea9662c6a493ea17498247d /tests | |
parent | 7a9dd7b65b6cba77613b87e778e9805a49fdbb36 (diff) | |
parent | fee1cae825bad9459edcefb67fa600874d875816 (diff) |
Merge "Fix WifiScanningServiceTest"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/scanner/WifiScanningServiceTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/scanner/WifiScanningServiceTest.java b/tests/wifitests/src/com/android/server/wifi/scanner/WifiScanningServiceTest.java index 02cb633d0..e38a3897a 100644 --- a/tests/wifitests/src/com/android/server/wifi/scanner/WifiScanningServiceTest.java +++ b/tests/wifitests/src/com/android/server/wifi/scanner/WifiScanningServiceTest.java @@ -33,7 +33,6 @@ import android.net.wifi.WifiScanner; import android.os.Binder; import android.os.Bundle; import android.os.Handler; -import android.os.Looper; import android.os.Message; import android.os.RemoteException; import android.os.UserHandle; @@ -115,7 +114,7 @@ public class WifiScanningServiceTest { mLooper = new TestLooper(); when(mWifiScannerImplFactory - .create(any(Context.class), any(Looper.class), any(Clock.class))) + .create(any(), any(), any())) .thenReturn(mWifiScannerImpl); when(mWifiScannerImpl.getChannelHelper()).thenReturn(channelHelper); when(mWifiInjector.getWifiMetrics()).thenReturn(mWifiMetrics); @@ -436,7 +435,7 @@ public class WifiScanningServiceTest { startServiceAndLoadDriver(); mWifiScanningServiceImpl.setWifiHandlerLogForTest(mLog); verify(mWifiScannerImplFactory, times(1)) - .create(any(Context.class), any(Looper.class), any(Clock.class)); + .create(any(), any(), any()); Handler handler = mock(Handler.class); BidirectionalAsyncChannel controlChannel = connectChannel(handler); |