summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNingyuan Wang <nywang@google.com>2017-03-23 23:35:00 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-03-23 23:35:01 +0000
commit7a9dd7b65b6cba77613b87e778e9805a49fdbb36 (patch)
treeb1ab73c7551e31654f4d224b683ef44e10aa4f62
parente7efc1b20e644ff622b8f9f042afa34b2a4452ad (diff)
parent8573681ccff85c0cfb79691edf815f26103f729f (diff)
Merge "Fix WificondControlTest"
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WificondControlTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WificondControlTest.java b/tests/wifitests/src/com/android/server/wifi/WificondControlTest.java
index 8f2994141..d7c628e01 100644
--- a/tests/wifitests/src/com/android/server/wifi/WificondControlTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WificondControlTest.java
@@ -61,6 +61,7 @@ public class WificondControlTest {
private WifiInjector mWifiInjector;
private WifiMonitor mWifiMonitor;
private WificondControl mWificondControl;
+ private static final String TEST_INTERFACE_NAME = "test_wlan_if";
private static final byte[] TEST_SSID =
new byte[] {'G', 'o', 'o', 'g', 'l', 'e', 'G', 'u', 'e', 's', 't'};
private static final byte[] TEST_BSSID =
@@ -620,6 +621,7 @@ public class WificondControlTest {
when(mWifiInjector.makeWificond()).thenReturn(wificond);
when(wificond.createClientInterface()).thenReturn(clientInterface);
when(clientInterface.getWifiScannerImpl()).thenReturn(scanner);
+ when(clientInterface.getInterfaceName()).thenReturn(TEST_INTERFACE_NAME);
assertEquals(clientInterface, mWificondControl.setupDriverForClientMode());