Searched refs:mockConnectivityManager (Results 1 – 3 of 3) sorted by relevance
163 ConnectivityManager mockConnectivityManager = mock(ConnectivityManager.class); in testGetSummary_connectedWifiNetwork_showsConnected() local165 .thenReturn(mockConnectivityManager); in testGetSummary_connectedWifiNetwork_showsConnected()203 ConnectivityManager mockConnectivityManager = mock(ConnectivityManager.class); in testGetSummary_providerModelConnectedButNotDefault_doesNotShowConnected() local205 .thenReturn(mockConnectivityManager); in testGetSummary_providerModelConnectedButNotDefault_doesNotShowConnected()270 ConnectivityManager mockConnectivityManager = mock(ConnectivityManager.class); in testShouldShowXLevelIcon_unvalidatedOrNotDefault_returnsTrue() local272 .thenReturn(mockConnectivityManager); in testShouldShowXLevelIcon_unvalidatedOrNotDefault_returnsTrue()455 ConnectivityManager mockConnectivityManager = mock(ConnectivityManager.class); in testDisconnect_noScansOrWifiConfig_disconnectIsSuccessful() local457 .thenReturn(mockConnectivityManager); in testDisconnect_noScansOrWifiConfig_disconnectIsSuccessful()
660 final ConnectivityManager mockConnectivityManager = mock(ConnectivityManager.class); in testGetSummary_connectedWifiNetwork_showsConnected() local664 .thenReturn(mockConnectivityManager); in testGetSummary_connectedWifiNetwork_showsConnected()705 final ConnectivityManager mockConnectivityManager = mock(ConnectivityManager.class); in testGetSummary_providerModelConnectedButNotDefault_doesNotShowConnected() local709 .thenReturn(mockConnectivityManager); in testGetSummary_providerModelConnectedButNotDefault_doesNotShowConnected()
148 @Mock private ConnectivityManager mockConnectivityManager; field in WifiTrackerTest362 mockConnectivityManager, in createMockedWifiTracker()774 when(mockConnectivityManager.getNetworkInfo(any(Network.class))).thenReturn(networkInfo); in onStartShouldSynchronouslyFetchLatestInformation()781 verify(mockConnectivityManager).getNetworkInfo(any(Network.class)); in onStartShouldSynchronouslyFetchLatestInformation()800 when(mockConnectivityManager.getNetworkInfo(any(Network.class))).thenReturn(networkInfo); in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults()810 verify(mockConnectivityManager).getNetworkInfo(any(Network.class)); in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults()