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.java137 INetd mMockNetd; field in IpSecServiceParameterizedTest
162 mMockNetd = mock(INetd.class); in setUp()
168 when(mMockIpSecSrvConfig.getNetdInstance()).thenReturn(mMockNetd); in setUp()
189 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testIpSecServiceReserveSpi()
201 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testReleaseSecurityParameterIndex()
210 verify(mMockNetd) in testReleaseSecurityParameterIndex()
233 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testSecurityParameterIndexBinderDeath()
246 verify(mMockNetd) in testSecurityParameterIndexBinderDeath()
267 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), anyString(), anyInt())) in getNewSpiResourceId()
306 verify(mMockNetd, times(1)) in verifyTransformNetdCalledForCreatingSA()
[all …]
DIpSecServiceTest.java118 INetd mMockNetd; field in IpSecServiceTest
125 mMockNetd = mock(INetd.class); in setUp()
130 when(mMockIpSecSrvConfig.getNetdInstance()).thenReturn(mMockNetd); in setUp()
437 verify(mMockNetd).ipSecRemoveTransportModeTransform(pfd); in testRemoveTransportModeTransform()
518 when(mMockNetd.ipSecAllocateSpi( in testSpiResourceTrackerLimitation()
644 verify(mMockNetd).ipSecSetEncapSocketOwner(argThat(fdMatcher), eq(Os.getuid())); in testOpenUdpEncapsulationSocketCallsSetEncapSocketOwner()
DConnectivityServiceTest.java285 @Mock INetd mMockNetd; field in ConnectivityServiceTest
1307 mMockNetd, in setUp()
6052 reset(mMockNetd); in testStackedLinkProperties()
6060 verify(mMockNetd, times(1)).networkCreatePhysical(eq(cellNetId), anyInt()); in testStackedLinkProperties()
6077 verifyNoMoreInteractions(mMockNetd); in testStackedLinkProperties()
6079 reset(mMockNetd); in testStackedLinkProperties()
6098 verify(mMockNetd, times(1)).clatdStart(MOBILE_IFNAME, kNat64Prefix.toString()); in testStackedLinkProperties()
6129 verify(mMockNetd, times(1)).clatdStop(MOBILE_IFNAME); in testStackedLinkProperties()
6144 verifyNoMoreInteractions(mMockNetd); in testStackedLinkProperties()
6146 reset(mMockNetd); in testStackedLinkProperties()
[all …]