Searched refs:mMockDnsResolver (Results 1 – 6 of 6) sorted by relevance
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/ |
D | SrvDnsResolverTest.java | 103 @Mock private DnsResolver mMockDnsResolver; field in SrvDnsResolverTest 136 lenient().when(DnsResolver.getInstance()).thenReturn(mMockDnsResolver); in setUp() 159 .when(mMockDnsResolver) in testQueryGivesSrvAndIpAddressResponse() 204 .when(mMockDnsResolver) in testQueryGivesSrvResponseFollowUpQueriesGiveIpAddress() 224 .when(mMockDnsResolver) in testQueryGivesSrvResponseFollowUpQueriesGiveIpAddress() 267 .when(mMockDnsResolver) in testInvalidResponseThrowsParseException()
|
D | EpdgSelectorTest.java | 133 @Mock private DnsResolver mMockDnsResolver; field in EpdgSelectorTest 198 when(DnsResolver.getInstance()).thenReturn(mMockDnsResolver); in testStaticMethodPass() 240 when(DnsResolver.getInstance()).thenReturn(mMockDnsResolver); in testRoamStaticMethodPass() 277 when(DnsResolver.getInstance()).thenReturn(mMockDnsResolver); in testPlmnResolutionMethodWithNoPlmnInCarrierConfig() 297 when(DnsResolver.getInstance()).thenReturn(mMockDnsResolver); in testPlmnResolutionMethod() 348 when(DnsResolver.getInstance()).thenReturn(mMockDnsResolver); in testPlmnResolutionMethodWithDuplicatedImsiAndEhplmn() 387 when(DnsResolver.getInstance()).thenReturn(mMockDnsResolver); in testPlmnResolutionMethodWithInvalidLengthPlmns() 416 when(DnsResolver.getInstance()).thenReturn(mMockDnsResolver); in testPlmnResolutionMethodWithInvalidCharacterPlmns() 446 when(DnsResolver.getInstance()).thenReturn(mMockDnsResolver); in testPlmnResolutionMethodWithEmptyPlmns() 474 when(DnsResolver.getInstance()).thenReturn(mMockDnsResolver); in testPlmnResolutionMethodWithFirstEhplmn() [all …]
|
D | NaptrDnsResolverTest.java | 78 @Mock private DnsResolver mMockDnsResolver; field in NaptrDnsResolverTest 110 lenient().when(DnsResolver.getInstance()).thenReturn(mMockDnsResolver); in setUp() 130 .when(mMockDnsResolver) in testValidHostNameGivesNaptrResponse() 171 .when(mMockDnsResolver) in testValidHostNameGivesParsingErrorForUnexpectedResponse()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | DnsManagerTest.java | 105 @Mock IDnsResolver mMockDnsResolver; field in DnsManagerTest 129 mDnsManager = new DnsManager(mCtx, mMockDnsResolver); in setUp() 329 reset(mMockDnsResolver); in testSendDnsConfiguration() 357 verify(mMockDnsResolver, times(1)).setResolverConfiguration(eq(expectedParams)); in testSendDnsConfiguration()
|
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/ |
D | NsdPublisherTest.java | 72 @Mock private DnsResolver mMockDnsResolver; field in NsdPublisherTest 636 verify(mMockDnsResolver, times(1)) in resolveHost_hostResolved() 666 verify(mMockDnsResolver, times(1)) in resolveHost_errorReported() 690 verify(mMockDnsResolver, times(1)) in stopHostResolution() 808 mNsdPublisher = new NsdPublisher(mMockNsdManager, mMockDnsResolver, handler); in prepareTest()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | ConnectivityServiceTest.java | 625 @Mock IDnsResolver mMockDnsResolver; field in ConnectivityServiceTest 1932 mMockDnsResolver, in setUp() 1954 verify(mMockDnsResolver).registerUnsolicitedEventListener(any()); in setUp() 8229 verify(mMockDnsResolver, times(1)).createNetworkCache(netId); 8231 verify(mMockDnsResolver, never()).setResolverConfiguration(any()); 8250 verify(mMockDnsResolver, times(1)).createNetworkCache(netId); 8252 verify(mMockDnsResolver, atLeastOnce()).setResolverConfiguration(any()); 8254 verifyNoMoreInteractions(mMockDnsResolver); 8255 reset(mMockDnsResolver); 8260 verify(mMockDnsResolver, atLeastOnce()).setResolverConfiguration( [all …]
|