summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-04-30 21:51:15 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-04-30 21:51:15 +0000
commitcae4ac63eaecb06a44d6512dc83ed7a8158b606a (patch)
treeb4ee6c4b662d244a5a7bd4d2d892e681290d50bf /tests
parent092d52862339c48d024cec4b5f4296ecd118d4fe (diff)
parentbe1d76775b438a5316611a77dbf0989e73037cf9 (diff)
Merge "ClientModeImpl: Only randomize MAC address at start if feature enabled" into rvc-dev am: be1d76775b
Change-Id: I68f1868e76a5373439e0149a0021170cbe1633e7
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java b/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java
index 8f36770e6..3e904af02 100644
--- a/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java
@@ -3853,6 +3853,16 @@ public class ClientModeImplTest extends WifiBaseTest {
}
/**
+ * Verify the MAC address is being randomized at start to prevent leaking the factory MAC.
+ */
+ @Test
+ public void testNoRandomizeMacAddressOnStartIfMacRandomizationNotEnabled() throws Exception {
+ mResources.setBoolean(R.bool.config_wifi_connected_mac_randomization_supported, false);
+ loadComponentsInStaMode();
+ verify(mWifiNative, never()).setMacAddress(anyString(), any());
+ }
+
+ /**
* Verify bugreport will be taken when get IP_REACHABILITY_LOST
*/
@Test