From 3697d5ed11fea02e6369336d54e19145ba76425f Mon Sep 17 00:00:00 2001 From: Randy Pan Date: Thu, 23 Mar 2017 17:15:59 -0700 Subject: Fix WifiConnectivityManagerTest Bug: 36407367 Test: runtests.sh against WifiConnectivityManagerTest Change-Id: I3eb5342b55fc5dfc40f4a6a45a249d956f802e1f --- .../src/com/android/server/wifi/WifiConnectivityManagerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java b/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java index 04af78dc5..1c2c495b0 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java @@ -854,8 +854,8 @@ public class WifiConnectivityManagerTest { when(mWifiStateMachine.getCurrentWifiConfiguration()) .thenReturn(new WifiConfiguration()); - when(mWifiConfigManager.fetchChannelSetForNetworkForPartialScan(anyInt(), anyInt(), - anyInt())).thenReturn(channelList); + when(mWifiConfigManager.fetchChannelSetForNetworkForPartialScan(anyInt(), anyLong(), + anyInt())).thenReturn(channelList); doAnswer(new AnswerWithArguments() { public void answer(ScanSettings settings, ScanListener listener, @@ -893,7 +893,7 @@ public class WifiConnectivityManagerTest { when(mWifiStateMachine.getCurrentWifiConfiguration()) .thenReturn(new WifiConfiguration()); - when(mWifiConfigManager.fetchChannelSetForNetworkForPartialScan(anyInt(), anyInt(), + when(mWifiConfigManager.fetchChannelSetForNetworkForPartialScan(anyInt(), anyLong(), anyInt())).thenReturn(channelList); doAnswer(new AnswerWithArguments() { @@ -932,7 +932,7 @@ public class WifiConnectivityManagerTest { when(mWifiStateMachine.getCurrentWifiConfiguration()) .thenReturn(new WifiConfiguration()); - when(mWifiConfigManager.fetchChannelSetForNetworkForPartialScan(anyInt(), anyInt(), + when(mWifiConfigManager.fetchChannelSetForNetworkForPartialScan(anyInt(), anyLong(), anyInt())).thenReturn(channelList); doAnswer(new AnswerWithArguments() { -- cgit v1.2.3