Searched refs:mMockNetd (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tests/net/java/com/android/server/ |
D | IpSecServiceParameterizedTest.java | 138 INetd mMockNetd; field in IpSecServiceParameterizedTest 164 mMockNetd = mock(INetd.class); in setUp() 171 when(mMockIpSecSrvConfig.getNetdInstance()).thenReturn(mMockNetd); in setUp() 192 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testIpSecServiceReserveSpi() 204 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testReleaseSecurityParameterIndex() 213 verify(mMockNetd) in testReleaseSecurityParameterIndex() 236 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testSecurityParameterIndexBinderDeath() 249 verify(mMockNetd) in testSecurityParameterIndexBinderDeath() 270 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), anyString(), anyInt())) in getNewSpiResourceId() 309 verify(mMockNetd, times(1)) in verifyTransformNetdCalledForCreatingSA() [all …]
|
D | IpSecServiceTest.java | 120 INetd mMockNetd; field in IpSecServiceTest 128 mMockNetd = mock(INetd.class); in setUp() 133 when(mMockIpSecSrvConfig.getNetdInstance()).thenReturn(mMockNetd); in setUp() 440 verify(mMockNetd).ipSecRemoveTransportModeTransform(pfd); in testRemoveTransportModeTransform() 521 when(mMockNetd.ipSecAllocateSpi( in testSpiResourceTrackerLimitation() 647 verify(mMockNetd).ipSecSetEncapSocketOwner(argThat(fdMatcher), eq(Os.getuid())); in testOpenUdpEncapsulationSocketCallsSetEncapSocketOwner()
|
D | ConnectivityServiceTest.java | 348 @Mock INetd mMockNetd; field in ConnectivityServiceTest 1237 mMockNetd, in setUp() 6106 reset(mMockNetd); in testStackedLinkProperties() 6114 verify(mMockNetd, times(1)).networkCreatePhysical(eq(cellNetId), anyInt()); in testStackedLinkProperties() 6140 verifyNoMoreInteractions(mMockNetd); in testStackedLinkProperties() 6143 reset(mMockNetd); in testStackedLinkProperties() 6164 verify(mMockNetd, times(1)).clatdStart(MOBILE_IFNAME, kNat64Prefix.toString()); in testStackedLinkProperties() 6194 reset(mMockNetd); in testStackedLinkProperties() 6202 verify(mMockNetd, times(1)).clatdStop(MOBILE_IFNAME); in testStackedLinkProperties() 6205 verify(mMockNetd, times(1)).clatdStart(MOBILE_IFNAME, kOtherNat64Prefix.toString()); in testStackedLinkProperties() [all …]
|