diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java b/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java index 95a1e84e0..a1b1a298c 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiConfigManagerTest.java @@ -296,6 +296,16 @@ public class WifiConfigManagerTest { } /** + * Verifies that the Mac randomization secret hashfunction is obtained after |loadFromStore|. + */ + @Test + public void testMacHashIsObtainedAfterLoadFromStore() { + verify(mMacAddressUtil, never()).obtainMacRandHashFunction(anyInt()); + assertTrue(mWifiConfigManager.loadFromStore()); + verify(mMacAddressUtil).obtainMacRandHashFunction(anyInt()); + } + + /** * Verifies the addition of a single network using * {@link WifiConfigManager#addOrUpdateNetwork(WifiConfiguration, int)} */ |