Home
last modified time | relevance | path

Searched refs:mMockNetd (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceParameterizedTest.java138 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 …]
DIpSecServiceTest.java120 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()
DConnectivityServiceTest.java348 @Mock INetd mMockNetd; field in ConnectivityServiceTest
1237 mMockNetd, in setUp()
6098 reset(mMockNetd); in testStackedLinkProperties()
6106 verify(mMockNetd, times(1)).networkCreatePhysical(eq(cellNetId), anyInt()); in testStackedLinkProperties()
6132 verifyNoMoreInteractions(mMockNetd); in testStackedLinkProperties()
6135 reset(mMockNetd); in testStackedLinkProperties()
6156 verify(mMockNetd, times(1)).clatdStart(MOBILE_IFNAME, kNat64Prefix.toString()); in testStackedLinkProperties()
6186 reset(mMockNetd); in testStackedLinkProperties()
6194 verify(mMockNetd, times(1)).clatdStop(MOBILE_IFNAME); in testStackedLinkProperties()
6197 verify(mMockNetd, times(1)).clatdStart(MOBILE_IFNAME, kOtherNat64Prefix.toString()); in testStackedLinkProperties()
[all …]