summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRandy Pan <zpan@google.com>2016-05-02 16:31:07 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-05-02 16:31:08 +0000
commit12cf770141cd8223809fbb69223dafb631ca4352 (patch)
treebd822c43675415fe15a4cfb8c440555809407b54 /tests
parent91a8893f047b8a193e4516ab772b6f43882777f5 (diff)
parent50abba06efa7834b5309df561375e4a2e2df630d (diff)
Merge "Fix check on current connected/connecting network" into nyc-dev
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java b/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
index a8784a45c..89321e409 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
@@ -25,6 +25,7 @@ import android.content.Context;
import android.content.res.Resources;
import android.net.wifi.ScanResult;
import android.net.wifi.ScanResult.InformationElement;
+import android.net.wifi.SupplicantState;
import android.net.wifi.WifiConfiguration;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiScanner;
@@ -208,6 +209,7 @@ public class WifiConnectivityManagerTest {
when(wifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID);
when(wifiInfo.getBSSID()).thenReturn(null);
+ when(wifiInfo.getSupplicantState()).thenReturn(SupplicantState.DISCONNECTED);
return wifiInfo;
}