Home
last modified time | relevance | path

Searched refs:mMockIpSecService (Results 1 – 4 of 4) sorted by relevance

/aosp12/packages/modules/Connectivity/tests/unit/java/android/net/
H A DIpSecManagerTest.java77 private IpSecService mMockIpSecService; field in IpSecManagerTest
88 mMockIpSecService = mock(IpSecService.class); in setUp()
89 mIpSecManager = new IpSecManager(mMockContext, mMockIpSecService); in setUp()
100 when(mMockIpSecService.allocateSecurityParameterIndex( in testAllocSpi()
119 when(mMockIpSecService.allocateSecurityParameterIndex( in testAllocRandomSpi()
142 when(mMockIpSecService.allocateSecurityParameterIndex( in testAllocSpiResUnavailableException()
159 when(mMockIpSecService.allocateSecurityParameterIndex( in testAllocSpiSpiUnavailableException()
239 when(mMockIpSecService.openUdpEncapsulationSocket(eq(0), anyObject())) in testOpenEncapsulationSocketOnRandomPort()
268 when(mMockIpSecService.createTunnelInterface( in createAndValidateVti()
298 verify(mMockIpSecService) in testAddRemoveAddressesFromVti()
[all …]
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/testutils/
H A DMockIpSecTestUtils.java48 private IpSecService mMockIpSecService; field in MockIpSecTestUtils
52 mMockIpSecService = mock(IpSecService.class); in MockIpSecTestUtils()
54 mIpSecManager = new IpSecManager(mContext, mMockIpSecService); in MockIpSecTestUtils()
56 when(mMockIpSecService.allocateSecurityParameterIndex(anyString(), anyInt(), anyObject())) in MockIpSecTestUtils()
63 when(mMockIpSecService.openUdpEncapsulationSocket(anyInt(), anyObject())) in MockIpSecTestUtils()
97 return mMockIpSecService; in getIpSecService()
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
H A DIkeSaPayloadTest.java165 private IpSecService mMockIpSecService; field in IkeSaPayloadTest
244 IpSecService mMockIpSecService = mMockIpSecTestUtils.getIpSecService(); in setUp() local
245 when(mMockIpSecService.allocateSecurityParameterIndex( in setUp()
250 when(mMockIpSecService.allocateSecurityParameterIndex( in setUp()
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
H A DChildSessionStateMachineTest.java188 private IpSecService mMockIpSecService; field in ChildSessionStateMachineTest
249 mMockIpSecService = mock(IpSecService.class); in setup()
250 mMockIpSecManager = new IpSecManager(mContext, mMockIpSecService); in setup()
313 when(mMockIpSecService.allocateSecurityParameterIndex( in setUpSpiResource()