Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/unit/java/com/android/server/
DIpSecServiceParameterizedTest.java208 when(deps.getNetdInstance(mTestContext)).thenReturn(mMockNetd); in makeDependencies()
213 INetd mMockNetd; field in IpSecServiceParameterizedTest
243 mMockNetd = mock(INetd.class); in setUp()
268 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testIpSecServiceReserveSpi()
280 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testReleaseSecurityParameterIndex()
289 verify(mMockNetd) in testReleaseSecurityParameterIndex()
312 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testSecurityParameterIndexBinderDeath()
325 verify(mMockNetd) in testSecurityParameterIndexBinderDeath()
346 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), anyString(), anyInt())) in getNewSpiResourceId()
385 verify(mMockNetd, times(1)) in verifyTransformNetdCalledForCreatingSA()
[all …]
DConnectivityServiceTest.java626 @Mock INetd mMockNetd; field in ConnectivityServiceTest
1585 verify(mMockNetd, times(1)).networkAddUidRangesParcel( in registerAgent()
1588 verify(mMockNetd, never()).networkRemoveUidRangesParcel(argThat(config -> in registerAgent()
1592 verify(mMockNetd).networkCreate(nativeNetworkConfigVpn(getNetwork().netId, in registerAgent()
1934 mMockNetd, in setUp()
2286 verify(mMockNetd).networkAddInterface(anyInt(), eq(iface)); in enableIngressRateLimit()
3972 verify(mMockNetd).networkCreate(nativeNetworkConfigPhysical(
3991 verify(mMockNetd, never()).networkDestroy(network.getNetId());
4003 verify(mMockNetd).networkDestroy(agent.getNetwork().getNetId());
6989 doReturn(getClatInterfaceConfigParcel(v4Addr)).when(mMockNetd)
[all …]
DIpSecServiceTest.java125 INetd mMockNetd; field in IpSecServiceTest
132 mMockNetd = mock(INetd.class); in setUp()
140 when(deps.getNetdInstance(mMockContext)).thenReturn(mMockNetd); in makeDependencies()
442 verify(mMockNetd).ipSecRemoveTransportModeTransform(pfd); in testRemoveTransportModeTransform()
523 when(mMockNetd.ipSecAllocateSpi( in testSpiResourceTrackerLimitation()
649 verify(mMockNetd).ipSecSetEncapSocketOwner(argThat(fdMatcher), eq(Os.getuid())); in testOpenUdpEncapsulationSocketCallsSetEncapSocketOwner()