/packages/services/Iwlan/test/com/google/android/iwlan/epdg/ |
D | EpdgSelectorTest.java | 77 @Mock private Network mMockNetwork; field in EpdgSelectorTest 128 when(mMockNetwork.getAllByName(eq(testStaticAddress))) in testStaticMethodPass() 161 when(mMockNetwork.getAllByName(eq(expectedFqdn1))) in testPlmnResolutionMethodWithNoPlmnInCarrierConfig() 192 when(mMockNetwork.getAllByName(eq(expectedFqdn1))) in testPlmnResolutionMethod() 194 when(mMockNetwork.getAllByName(eq(expectedFqdn2))) in testPlmnResolutionMethod() 196 when(mMockNetwork.getAllByName(eq(expectedFqdn3))) in testPlmnResolutionMethod() 202 verify(mMockNetwork).getAllByName(expectedFqdn1); in testPlmnResolutionMethod() 203 verify(mMockNetwork).getAllByName(expectedFqdn2); in testPlmnResolutionMethod() 204 verify(mMockNetwork).getAllByName(expectedFqdn3); in testPlmnResolutionMethod() 219 when(mMockNetwork.getAllByName(eq(addr1))) in testCarrierConfigStaticAddressList() [all …]
|
D | EpdgTunnelManagerTest.java | 99 @Mock private Network mMockNetwork; field in EpdgTunnelManagerTest 122 eq(mMockNetwork), in setUp() 238 eq(mMockNetwork), in testBringUPTunnelSuccess() 303 eq(mMockNetwork), in testRekeyAndNattTimerFromCarrierConfig() 369 eq(mMockNetwork), in testSetRetransmissionTimeoutsFromCarrierConfig() 426 eq(mMockNetwork), in testSetDpdDelayFromCarrierConfig() 484 eq(mMockNetwork), in testGetValidEpdgAddress_DiffAddr() 537 eq(mMockNetwork), in testGetValidEpdgAddress_NextAddr() 657 eq(mMockNetwork), in verifyBackOffTimer() 724 .setNetwork(mMockNetwork) in getBasicTunnelSetupRequest() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/ |
D | IkeDefaultNetworkCallbackTest.java | 47 private Network mMockNetwork; field in IkeDefaultNetworkCallbackTest 55 mMockNetwork = mock(Network.class); in setUp() 60 new IkeDefaultNetworkCallback(mMockIkeNetworkUpdater, mMockNetwork, mCurrAddress); in setUp() 74 mNetworkCallback.onAvailable(mMockNetwork); in testOnAvailableCurrentNetwork() 81 mNetworkCallback.onLost(mMockNetwork); in testOnLost() 96 mMockNetwork, getLinkPropertiesWithAddresses(UPDATED_ADDRESS)); in testOnLinkPropertiesChanged() 98 verify(mMockIkeNetworkUpdater).onUnderlyingNetworkUpdated(eq(mMockNetwork)); in testOnLinkPropertiesChanged() 112 mMockNetwork, getLinkPropertiesWithAddresses(CURR_ADDRESS)); in testOnLinkPropertiesChangedNoAddressChange() 121 new IkeDefaultNetworkCallback(mMockIkeNetworkUpdater, mMockNetwork, mCurrAddress); in testOnLinkPropertiesChangedNoAddressChangeIpv6() 124 mMockNetwork, getLinkPropertiesWithAddresses(CURR_ADDRESS_V6)); in testOnLinkPropertiesChangedNoAddressChangeIpv6()
|
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/ |
D | IkeSessionConnectionInfoTest.java | 36 private final Network mMockNetwork; field in IkeSessionConnectionInfoTest 39 mMockNetwork = mock(Network.class); in IkeSessionConnectionInfoTest() 45 new IkeSessionConnectionInfo(LOCAL_IPV4_ADDRESS, REMOTE_IPV4_ADDRESS, mMockNetwork); in testBuild() 49 assertEquals(mMockNetwork, ikeConnInfo.getNetwork()); in testBuild() 55 new IkeSessionConnectionInfo(null /*localAddress*/, REMOTE_IPV4_ADDRESS, mMockNetwork); in testBuildWithNullValue()
|
/packages/services/Iwlan/test/com/google/android/iwlan/ |
D | IwlanDataServiceTest.java | 98 @Mock private Network mMockNetwork; field in IwlanDataServiceTest 178 when(mMockConnectivityManager.getNetworkCapabilities(eq(mMockNetwork))) in setUp() 235 mNetworkMonitorCallback.onAvailable(mMockNetwork); in testWifiOnAvailable() 247 mNetworkMonitorCallback.onLost(mMockNetwork); in testWifiOnLost() 351 false, mMockNetwork, IwlanDataService.Transport.UNSPECIFIED_NETWORK); in testIwlanSetupDataCallWithIllegalState() 387 mIwlanDataService.setNetworkConnected(true, mMockNetwork, IwlanDataService.Transport.WIFI); in testIwlanSetupDataCallWithBringUpTunnel() 422 mIwlanDataService.setNetworkConnected(true, mMockNetwork, IwlanDataService.Transport.WIFI); in testSliceInfoInclusionInDataCallResponse() 566 mIwlanDataService.setNetworkConnected(true, mMockNetwork, IwlanDataService.Transport.WIFI); in testDnsPrefetching() 572 mNetworkMonitorCallback.onLinkPropertiesChanged(mMockNetwork, mMockLinkProperties); in testDnsPrefetching() 589 mNetworkMonitorCallback.onLinkPropertiesChanged(mMockNetwork, mMockLinkProperties); in testDnsPrefetching() [all …]
|
D | IwlanBroadcastReceiverTest.java | 63 @Mock private Network mMockNetwork; field in IwlanBroadcastReceiverTest
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSocketConfigTest.java | 33 private Network mMockNetwork; field in IkeSocketConfigTest 37 mMockNetwork = mock(Network.class); in setup() 41 return new IkeSocketConfig(mMockNetwork, DUMMY_DSCP); in buildTestConfig() 48 assertEquals(mMockNetwork, config.getNetwork()); in testBuild() 69 assertNotEquals(buildTestConfig(), new IkeSocketConfig(mMockNetwork, dscp)); in testNotEqualsIfDscpIsDifferent()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/details/ |
D | WifiInfoProviderTest.java | 74 private Network mMockNetwork; field in WifiInfoProviderTest 121 when(mMockWifiManager.getCurrentNetwork()).thenReturn(mMockNetwork); in setUp() 148 assertThat(mWifiInfoProvider.getNetwork()).isEqualTo(mMockNetwork); in onStart_getsNetwork() 181 mCallbackCaptor.getValue().onLost(mMockNetwork); in onLost_listenerCallback() 191 mMockNetwork, mMockChangedLinkProperties); in onLinkPropertiesChanged_listenerCallback() 202 mMockNetwork, mMockChangedNetworkCapabilities); in onCapabilitiesChanged_listenerCallback()
|
D | WifiDetailsActionButtonsPreferenceControllerTest.java | 66 private Network mMockNetwork; field in WifiDetailsActionButtonsPreferenceControllerTest 88 when(mMockWifiInfoProvider.getNetwork()).thenReturn(mMockNetwork); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/ |
D | WifiDetailPreferenceController2Test.java | 140 private Network mMockNetwork; field in WifiDetailPreferenceController2Test 293 when(mMockWifiManager.getCurrentNetwork()).thenReturn(mMockNetwork); in setUp() 295 when(mMockConnectivityManager.getLinkProperties(mMockNetwork)).thenReturn(mLinkProperties); in setUp() 997 when(mMockConnectivityManager.getLinkProperties(mMockNetwork)).thenReturn(null); in noLinkProperties_allIpDetailsHidden() 1043 mCallbackCaptor.getValue().onLinkPropertiesChanged(mMockNetwork, new LinkProperties(lp)); in updateLinkProperties() 1047 mCallbackCaptor.getValue().onCapabilitiesChanged(mMockNetwork, new NetworkCapabilities(nc)); in updateNetworkCapabilities() 1127 when(mMockConnectivityManager.getNetworkCapabilities(mMockNetwork)) in onCapabilitiesChanged_callsRefreshIfNecessary() 1168 mCallbackCaptor.getValue().onCapabilitiesChanged(mMockNetwork, mockNc); in onCapabilitiesChanged_callsRefreshIfNecessary() 1360 mCallbackCaptor.getValue().onLost(mMockNetwork); in networkOnLost_shouldNotFinishActivityForConnectedNetwork() 1473 when(mMockConnectivityManager.getNetworkCapabilities(mMockNetwork)) in testSignInButton_shouldHideSignInButtonForDisconnectedNetwork()
|