Searched refs:mockConnectivityManager (Results 1 – 2 of 2) sorted by relevance
101 @Mock private ConnectivityManager mockConnectivityManager; field in WifiDetailPreferenceControllerTest199 .thenReturn(mockConnectivityManager); in setUp()200 when(mockConnectivityManager.getNetworkInfo(any(Network.class))) in setUp()213 when(mockConnectivityManager.getLinkProperties(mockNetwork)).thenReturn(mLinkProperties); in setUp()298 verify(mockConnectivityManager, times(1)).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldBeFetchedInDisplayPreference()314 verify(mockConnectivityManager, times(1)).unregisterNetworkCallback( in networkCallback_shouldBeUnregisteredOnPause()424 when(mockConnectivityManager.getLinkProperties(mockNetwork)).thenReturn(null); in noLinkProperties_allIpDetailsHidden()528 when(mockConnectivityManager.getNetworkCapabilities(mockNetwork)) in onCapabilitiesChanged_callsRefreshIfNecessary()620 verify(mockConnectivityManager, times(1)).getNetworkInfo(any(Network.class)); in networkStateChangedIntent_shouldRefetchInfo()625 verify(mockConnectivityManager, times(2)).getNetworkInfo(any(Network.class)); in networkStateChangedIntent_shouldRefetchInfo()[all …]
77 @Mock private ConnectivityManager mockConnectivityManager; field in UtilsTest91 .thenReturn(mockConnectivityManager); in setUp()196 when(mockConnectivityManager.getActiveNetworkInfo()).thenReturn(networkInfo); in testGetActiveNetworkInfo()415 when(mockConnectivityManager.getActiveNetworkInfo()).thenReturn(networkInfo); in setCurrentNetworkMock()