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.java205 when(deps.getNetdInstance(mTestContext)).thenReturn(mMockNetd); in makeDependencies()
210 INetd mMockNetd; field in IpSecServiceParameterizedTest
240 mMockNetd = mock(INetd.class); in setUp()
265 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testIpSecServiceReserveSpi()
277 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testReleaseSecurityParameterIndex()
286 verify(mMockNetd) in testReleaseSecurityParameterIndex()
309 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testSecurityParameterIndexBinderDeath()
322 verify(mMockNetd) in testSecurityParameterIndexBinderDeath()
343 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), anyString(), anyInt())) in getNewSpiResourceId()
382 verify(mMockNetd, times(1)) in verifyTransformNetdCalledForCreatingSA()
[all …]
DConnectivityServiceTest.java628 @Mock INetd mMockNetd; field in ConnectivityServiceTest
1587 verify(mMockNetd, times(1)).networkAddUidRangesParcel( in registerAgent()
1590 verify(mMockNetd, never()).networkRemoveUidRangesParcel(argThat(config -> in registerAgent()
1594 verify(mMockNetd).networkCreate(nativeNetworkConfigVpn(getNetwork().netId, in registerAgent()
1937 mMockNetd, in setUp()
2304 verify(mMockNetd).networkAddInterface(anyInt(), eq(iface)); in enableIngressRateLimit()
4039 verify(mMockNetd).networkCreate(nativeNetworkConfigPhysical(
4058 verify(mMockNetd, never()).networkDestroy(network.getNetId());
4070 verify(mMockNetd).networkDestroy(agent.getNetwork().getNetId());
7056 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()