diff options
author | David Su <dysu@google.com> | 2019-11-18 21:03:40 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-11-18 21:03:40 +0000 |
commit | 7d7cef004ff998ec0012be266876b7361b609f22 (patch) | |
tree | 482cea4624cbd4b08133e66c3b4681f360d1fb75 /tests | |
parent | 8632ce63c665ab3537133631bdd169a5b2cb16a8 (diff) | |
parent | 2b87aae063e78d05c56809280820096a6a83e697 (diff) |
Merge "WifiManager/Scanner API cleanup: Wifi service fixes"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java b/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java index 2f5415ab9..782a8db57 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java @@ -38,6 +38,7 @@ import static com.android.server.wifi.LocalOnlyHotspotRequestInfo.HOTSPOT_NO_ERR import static com.google.common.truth.Truth.assertThat; +import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; @@ -3981,7 +3982,7 @@ public class WifiServiceImplTest extends WifiBaseTest { when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); mLooper.startAutoDispatch(); - assertNull(mWifiServiceImpl.getFactoryMacAddresses()); + assertArrayEquals(new String[0], mWifiServiceImpl.getFactoryMacAddresses()); mLooper.stopAutoDispatchAndIgnoreExceptions(); verify(mClientModeImpl, never()).getFactoryMacAddress(); } @@ -3994,7 +3995,7 @@ public class WifiServiceImplTest extends WifiBaseTest { when(mClientModeImpl.getFactoryMacAddress()).thenReturn(null); when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); mLooper.startAutoDispatch(); - assertNull(mWifiServiceImpl.getFactoryMacAddresses()); + assertArrayEquals(new String[0], mWifiServiceImpl.getFactoryMacAddresses()); mLooper.stopAutoDispatchAndIgnoreExceptions(); verify(mClientModeImpl).getFactoryMacAddress(); } |