summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-05-07 21:24:04 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-05-07 21:24:04 +0000
commitedc6d783e824e1cf1c25d89a9e4b4389511a2977 (patch)
treeaf2f561cd4cb16ecc8343b4245f16f1090f859d4 /tests
parent431a8ab0ac838e332d43d4264b58d97cae3b7732 (diff)
parentfe4393ac00378cf1dea5dbc6d5eeda685006ba0b (diff)
Merge "WifiNative: Trigger disconnect on setMacAddress" into rvc-dev
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiNativeTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiNativeTest.java b/tests/wifitests/src/com/android/server/wifi/WifiNativeTest.java
index 850db0be6..ea4ebe5d0 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiNativeTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiNativeTest.java
@@ -861,6 +861,7 @@ public class WifiNativeTest extends WifiBaseTest {
@Test
public void testSetMacAddress() throws Exception {
mWifiNative.setMacAddress(WIFI_IFACE_NAME, TEST_MAC_ADDRESS);
+ verify(mStaIfaceHal).disconnect(WIFI_IFACE_NAME);
verify(mWifiVendorHal).setMacAddress(WIFI_IFACE_NAME, TEST_MAC_ADDRESS);
}