summaryrefslogtreecommitdiffstats
path: root/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java
diff options
context:
space:
mode:
authorRandy Pan <zpan@google.com>2016-10-03 13:41:25 -0700
committerRandy Pan <zpan@google.com>2016-10-04 17:51:00 +0000
commit6c90568a19e32a1825e06a608e59d3f36daff9ca (patch)
tree45d5ddb127f5db8d0705c513aff52012e5556acd /tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java
parentf5d99b0d7990488da938ea69be821c48f4bfa9b7 (diff)
downloadandroid_frameworks_opt_net_wifi-6c90568a19e32a1825e06a608e59d3f36daff9ca.tar.gz
android_frameworks_opt_net_wifi-6c90568a19e32a1825e06a608e59d3f36daff9ca.tar.bz2
android_frameworks_opt_net_wifi-6c90568a19e32a1825e06a608e59d3f36daff9ca.zip
Move WifiNetworkSelector to WifiInjector
While there, move WifiInfo to be an input parameter of WifiNetworkSelector#selectNetwork and make WifiInfo the sole source for obtaining information of the currently connected network. Bug: 31383992 Test: Wifi framework unit tests Change-Id: I107ba600165b008079cebf230865f8b2082740a8
Diffstat (limited to 'tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java b/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java
index 24f383a1d..9de360812 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java
@@ -340,6 +340,7 @@ public class WifiStateMachineTest {
when(mWifiInjector.getWifiConfigManager()).thenReturn(mWifiConfigManager);
when(mWifiInjector.getWifiSupplicantControl()).thenReturn(mWifiSupplicantControl);
when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner);
+ when(mWifiInjector.getWifiNetworkSelector()).thenReturn(mock(WifiNetworkSelector.class));
when(mWifiNative.getInterfaceName()).thenReturn("mockWlan");
when(mWifiSupplicantControl.getFrameworkNetworkId(anyInt())).thenReturn(0);