Home
last modified time | relevance | path

Searched refs:mockConnectivityManager (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiDetailPreferenceControllerTest.java101 @Mock private ConnectivityManager mockConnectivityManager; field in WifiDetailPreferenceControllerTest
199 .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 …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java77 @Mock private ConnectivityManager mockConnectivityManager; field in UtilsTest
91 .thenReturn(mockConnectivityManager); in setUp()
196 when(mockConnectivityManager.getActiveNetworkInfo()).thenReturn(networkInfo); in testGetActiveNetworkInfo()
415 when(mockConnectivityManager.getActiveNetworkInfo()).thenReturn(networkInfo); in setCurrentNetworkMock()