/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLSocketFactoryTest.java | 66 int sport = startServer("test_createSocket()"); in test_createSocket() local 72 Socket st = new Socket("localhost", sport); in test_createSocket() 73 Socket s = sf.createSocket(st, "localhost", sport, false); in test_createSocket() 76 st = new Socket("localhost", sport); in test_createSocket() 77 s = sf.createSocket(st, "localhost", sport, true); in test_createSocket() 82 sf.createSocket(null, "localhost", sport, true); in test_createSocket() 96 st = new Socket("1.2.3.4hello", sport); in test_createSocket() 97 s = sf.createSocket(st, "1.2.3.4hello", sport, false); in test_createSocket()
|
D | SSLSocketTest.java | 64 int sport = startServer("Cons InetAddress,I"); in testConstructor_InetAddressI() local 67 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport); in testConstructor_InetAddressI() 69 assertEquals(sport, ssl.getPort()); in testConstructor_InetAddressI() 73 getSSLSocket(InetAddress.getLocalHost(), sport + 1); in testConstructor_InetAddressI() local 92 int sport = startServer("Cons InetAddress,I,InetAddress,I"); in testConstructor_InetAddressIInetAddressI() local 94 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport, in testConstructor_InetAddressIInetAddressI() 97 assertEquals(sport, ssl.getPort()); in testConstructor_InetAddressIInetAddressI() 107 getSSLSocket(InetAddress.getLocalHost(), -1, InetAddress.getLocalHost(), sport + 1); in testConstructor_InetAddressIInetAddressI() local 112 getSSLSocket(InetAddress.getLocalHost(), sport, InetAddress.getLocalHost(), -1); in testConstructor_InetAddressIInetAddressI() local 119 InetAddress.getLocalHost(), sport + 1); in testConstructor_InetAddressIInetAddressI() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ |
D | SocketFactoryTest.java | 60 int sport = new ServerSocket(0).getLocalPort(); in test_createSocket_StringI() local 63 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport); in test_createSocket_StringI() 65 assertTrue("Failed to create socket", s.getPort() == sport); in test_createSocket_StringI() 68 sf.createSocket("1.2.3.4hello", sport); in test_createSocket_StringI() 97 int sport = new ServerSocket(0).getLocalPort(); in test_createSocket_InetAddressI() local 100 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport); in test_createSocket_InetAddressI() 102 assertTrue("Failed to create socket", s.getPort() == sport); in test_createSocket_InetAddressI() 128 int sport = new ServerSocket(0).getLocalPort(); in test_createSocket_InetAddressIInetAddressI() local 130 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport, in test_createSocket_InetAddressIInetAddressI() 133 assertTrue("1: Failed to create socket", s.getPort() == sport); in test_createSocket_InetAddressIInetAddressI() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldSocketTest.java | 81 int sport = startServer("Cons String,I"); in test_ConstructorLjava_lang_StringI() local 82 s = new Socket(InetAddress.getLocalHost().getHostName(), sport); in test_ConstructorLjava_lang_StringI() 83 assertTrue("Failed to create socket", s.getPort() == sport); in test_ConstructorLjava_lang_StringI() 111 socket = new Socket(InetAddress.getByName(null), sport); in test_ConstructorLjava_lang_StringI() 122 int sport = startServer("Cons String,I,InetAddress,I"); in test_ConstructorLjava_lang_StringILjava_net_InetAddressI1() local 123 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, in test_ConstructorLjava_lang_StringILjava_net_InetAddressI1() 125 assertTrue("Failed to create socket", s.getPort() == sport); in test_ConstructorLjava_lang_StringILjava_net_InetAddressI1() 129 int sport = startServer("Cons String,I,InetAddress,I"); in test_ConstructorLjava_lang_StringILjava_net_InetAddressI2() local 130 Socket s1 = new Socket(InetAddress.getLocalHost(), sport, null, 0); in test_ConstructorLjava_lang_StringILjava_net_InetAddressI2() 132 Socket s2 = new Socket(InetAddress.getLocalHost(), sport, null, s1.getLocalPort()); in test_ConstructorLjava_lang_StringILjava_net_InetAddressI2() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | SocketTest.java | 191 int sport = server.getLocalPort(); in test_bindLjava_net_SocketAddress() local 193 .getLocalHost(), sport); in test_bindLjava_net_SocketAddress()
|