Home
last modified time | relevance | path

Searched refs:testServer (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/
DTestDnsServerTest.kt48 private val testServer: TestDnsServer = TestDnsServer(network, localAddr) constant in com.android.testutils.TestDnsServerTest
52 if (testServer.isAlive) testServer.stop() in tearDown()
66 assertFailsWith<IllegalStateException> { testServer.stop() } in testStartStop()
67 testServer.start() in testStartStop()
68 assertTrue(testServer.isAlive) in testStartStop()
69 assertFailsWith<IllegalStateException> { testServer.start() } in testStartStop()
70 testServer.stop() in testStartStop()
71 assertFalse(testServer.isAlive) in testStartStop()
72 assertFailsWith<IllegalStateException> { testServer.stop() } in testStartStop()
74 assertFailsWith<IllegalStateException> { testServer.start() } in testStartStop()
[all …]
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DIkeSessionTestUtils.java72 final String testServer = testIpv6 ? TEST_SERVER_ADDR_V6 : TEST_SERVER_ADDR_V4; in getTestIkeSessionParams() local
73 final InetAddress addr = InetAddresses.parseNumericAddress(testServer); in getTestIkeSessionParams()
76 .setServerHostname(testServer) in getTestIkeSessionParams()