Home
last modified time | relevance | path

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

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionTestBase.java69 protected Network mMockDefaultNetwork; field in IkeSessionTestBase
102 mMockDefaultNetwork = mock(Network.class); in setUp()
103 doReturn(mMockDefaultNetwork).when(mMockConnectManager).getActiveNetwork(); in setUp()
104 doReturn(REMOTE_ADDRESS).when(mMockDefaultNetwork).getByName(REMOTE_HOSTNAME); in setUp()
106 .when(mMockDefaultNetwork) in setUp()
DIkeSessionStateMachineTest.java1296 verify(mMockDefaultNetwork).getByName(REMOTE_HOSTNAME); in testResolveRemoteHostName()
2272 assertEquals(mMockDefaultNetwork, ikeConnInfo.getNetwork()); in verifyAuthenticationCommonAndGetIkeMessage()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeSessionParamsTest.java93 private Network mMockDefaultNetwork; field in IkeSessionParamsTest
107 mMockDefaultNetwork = mock(Network.class); in setUp()
109 when(mMockConnectManager.getActiveNetwork()).thenReturn(mMockDefaultNetwork); in setUp()
176 assertEquals(mMockDefaultNetwork, sessionParams.getNetwork()); in testBuildWithPsk()
360 assertEquals(mMockDefaultNetwork, sessionParams.getNetwork()); in testBuildWithEap()