Searched refs:mMockIpSecService (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | IpSecManagerTest.java | 77 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() 112 verify(mMockIpSecService).releaseSecurityParameterIndex(DUMMY_RESOURCE_ID); in testAllocSpi() 119 when(mMockIpSecService.allocateSecurityParameterIndex( in testAllocRandomSpi() 132 verify(mMockIpSecService).releaseSecurityParameterIndex(DUMMY_RESOURCE_ID); in testAllocRandomSpi() 142 when(mMockIpSecService.allocateSecurityParameterIndex( in testAllocSpiResUnavailableException() 159 when(mMockIpSecService.allocateSecurityParameterIndex( in testAllocSpiSpiUnavailableException() 190 when(mMockIpSecService.openUdpEncapsulationSocket(eq(TEST_UDP_ENCAP_PORT), anyObject())) in testOpenEncapsulationSocket() [all …]
|
D | IpSecTransformTest.java | 64 private IpSecService mMockIpSecService; field in IpSecTransformTest 69 mMockIpSecService = mock(IpSecService.class); in setUp() 70 mIpSecManager = new IpSecManager(mock(Context.class) /* unused */, mMockIpSecService); in setUp() 100 when(mMockIpSecService.allocateSecurityParameterIndex(any(), anyInt(), any())) in setUp() 105 when(mMockIpSecService.createTransform(any(), any(), any())).thenReturn(transformResp); in setUp() 149 verify(mMockIpSecService) in testStartTransformMigration()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/testutils/ |
D | MockIpSecTestUtils.java | 48 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()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeSaPayloadTest.java | 174 private IpSecService mMockIpSecService; field in IkeSaPayloadTest 253 IpSecService mMockIpSecService = mMockIpSecTestUtils.getIpSecService(); in setUp() local 254 when(mMockIpSecService.allocateSecurityParameterIndex( in setUp() 259 when(mMockIpSecService.allocateSecurityParameterIndex( in setUp()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | ChildSessionStateMachineTest.java | 213 private IpSecService mMockIpSecService; field in ChildSessionStateMachineTest 279 mMockIpSecService = mock(IpSecService.class); in setup() 280 mMockIpSecManager = new IpSecManager(mContext, mMockIpSecService); in setup() 343 when(mMockIpSecService.allocateSecurityParameterIndex( in setUpSpiResource() 2514 verify(mMockIpSecService) in verifyMobike_usesKernelMobikeForSameEncapSocket() 2520 verify(mMockIpSecService) in verifyMobike_usesKernelMobikeForSameEncapSocket()
|