Home
last modified time | relevance | path

Searched refs:theSocket (Results 1 – 5 of 5) sorted by relevance

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DServerSocketTest.java385 ServerSocket theSocket = new ServerSocket(); in test_bindLjava_net_SocketAddress() local
388 theSocket.bind(theAddress); in test_bindLjava_net_SocketAddress()
389 int portNumber = theSocket.getLocalPort(); in test_bindLjava_net_SocketAddress()
392 + theSocket.getLocalSocketAddress().toString() in test_bindLjava_net_SocketAddress()
395 portNumber)).toString(), theSocket in test_bindLjava_net_SocketAddress()
399 assertTrue("Server socket not bound when it should be:", theSocket in test_bindLjava_net_SocketAddress()
408 Socket servSock = theSocket.accept(); in test_bindLjava_net_SocketAddress()
411 theSocket.close(); in test_bindLjava_net_SocketAddress()
417 theSocket = new ServerSocket(); in test_bindLjava_net_SocketAddress()
418 theSocket.bind(null); in test_bindLjava_net_SocketAddress()
[all …]
DDatagramSocketTest.java484 DatagramSocket theSocket = new DatagramSocket(); in test_getPort() local
486 theSocket.getPort()); in test_getPort()
490 theSocket.connect(InetAddress.getLocalHost(), portNumber); in test_getPort()
491 assertEquals("getPort returned wrong value", portNumber, theSocket in test_getPort()
967 DatagramSocket theSocket = new DatagramSocket(new InetSocketAddress( in test_bindLjava_net_SocketAddress() local
974 + theSocket.getLocalSocketAddress().toString() in test_bindLjava_net_SocketAddress()
977 portNumber)).toString(), theSocket in test_bindLjava_net_SocketAddress()
1008 theSocket = new DatagramSocket(null); in test_bindLjava_net_SocketAddress()
1009 theSocket.bind(null); in test_bindLjava_net_SocketAddress()
1010 assertNotNull("Bind with null did not work", theSocket in test_bindLjava_net_SocketAddress()
[all …]
DSocketTest.java161 Socket theSocket = new Socket(); in test_bindLjava_net_SocketAddress() local
165 theSocket.bind(bogusAddress); in test_bindLjava_net_SocketAddress()
170 theSocket.close(); in test_bindLjava_net_SocketAddress()
173 theSocket = new Socket(); in test_bindLjava_net_SocketAddress()
174 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_bindLjava_net_SocketAddress()
175 int portNumber = theSocket.getLocalPort(); in test_bindLjava_net_SocketAddress()
181 theSocket.getLocalSocketAddress()); in test_bindLjava_net_SocketAddress()
193 theSocket.connect(boundAddress); in test_bindLjava_net_SocketAddress()
199 theSocket.close(); in test_bindLjava_net_SocketAddress()
205 theSocket = new Socket(); in test_bindLjava_net_SocketAddress()
[all …]
DSocketImplTest.java44 MockSocketImpl theSocket = new MockSocketImpl(); in test_setPerformancePreference_Int_Int_Int() local
45 theSocket.setPerformancePreference(1, 1, 1); in test_setPerformancePreference_Int_Int_Int()
/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/
DUnixSocketTest.java91 Socket theSocket = new Socket(); in test_connectLjava_net_SocketAddressI() local
93 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(), in test_connectLjava_net_SocketAddressI()
99 theSocket.close(); in test_connectLjava_net_SocketAddressI()