diff options
author | Mitchell Wills <mwills@google.com> | 2016-04-09 11:21:38 -0700 |
---|---|---|
committer | Mitchell Wills <mwills@google.com> | 2016-04-09 11:23:38 -0700 |
commit | e78a18cf874b4d9bb5db2ef7804b8ac576e56489 (patch) | |
tree | 6658e73f65c71db48dcb03c56dfd8702b59c4f4c | |
parent | 207985b8f6d960784948aa7dcc1af754ea57b449 (diff) |
Fix unit tests after rebase of scan worksource CL
Fixes: 28096237
Change-Id: I1f9d9284f3b2a09892d2d1d1ff4a3faccb54d616
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java b/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java index 3db9cad11..307614f4a 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java @@ -29,6 +29,7 @@ import android.net.wifi.WifiInfo; import android.net.wifi.WifiScanner; import android.net.wifi.WifiScanner.ScanListener; import android.net.wifi.WifiScanner.ScanSettings; +import android.os.WorkSource; import android.test.suitebuilder.annotation.SmallTest; import com.android.internal.R; @@ -122,14 +123,16 @@ public class WifiConnectivityManagerTest { // do a synchronous answer for the ScanListener callbacks doAnswer(new AnswerWithArguments() { - public void answer(ScanSettings settings, ScanListener listener) throws Exception { - listener.onResults(results); - }}).when(scanner).startBackgroundScan(anyObject(), anyObject()); + public void answer(ScanSettings settings, ScanListener listener, + WorkSource workSource) throws Exception { + listener.onResults(results); + }}).when(scanner).startBackgroundScan(anyObject(), anyObject(), anyObject()); doAnswer(new AnswerWithArguments() { - public void answer(ScanSettings settings, ScanListener listener) throws Exception { - listener.onResults(results); - }}).when(scanner).startScan(anyObject(), anyObject()); + public void answer(ScanSettings settings, ScanListener listener, + WorkSource workSource) throws Exception { + listener.onResults(results); + }}).when(scanner).startScan(anyObject(), anyObject(), anyObject()); return scanner; } |