Home
last modified time | relevance | path

Searched refs:client (Results 1 – 23 of 23) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DSocketTest.java98 Socket client = socket.accept(); in run() local
99 client.close(); in run()
129 ClientThread client = new ClientThread(); in connectTestImpl() local
130 Thread clientThread = new Thread(client); in connectTestImpl()
262 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort()); in test_close() local
264 client.setSoLinger(false, 100); in test_close()
266 client.close(); in test_close()
268 client.getOutputStream(); in test_close()
346 Socket client = new Socket(); in test_connectLjava_net_SocketAddress() local
347 client.connect(boundAddress); in test_connectLjava_net_SocketAddress()
[all …]
/libcore/support/src/test/java/tests/resources/manifest/
Dhyts_MANIFEST.MF4 Bundle-Activator: com.ibm.ive.eccomm.client.support.ClientSupportActivator
5 Import-Package: com.ibm.ive.eccomm.client.services.log,
6 com.ibm.ive.eccomm.client.services.registry,
13 com.ibm.ive.eccomm.client.xml,
14 com.ibm.ive.eccomm.client.http.common,
15 com.ibm.ive.eccomm.client.http.client
19 Export-Package: com.ibm.ive.eccomm.client.services.authentication; specification-version=1.0.0,
22 com.ibm.ive.eccomm.client.services.registry.store; specification-version=1.0.0
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLSocketPair.java34 public final SSLSocket client; field in TestSSLSocketPair
38 SSLSocket client) { in TestSSLSocketPair() argument
41 this.client = client; in TestSSLSocketPair()
48 client.close(); in close()
74 final SSLSocket client = (SSLSocket) in connect() local
91 client.setEnabledCipherSuites(clientCipherSuites); in connect()
93 client.startHandshake(); in connect()
123 return new SSLSocket[] { server, client }; in connect()
DTestSSLEnginePair.java36 public final SSLEngine client; field in TestSSLEnginePair
40 SSLEngine client) { in TestSSLEnginePair() argument
43 this.client = client; in TestSSLEnginePair()
95 SSLEngine client = c.clientContext.createSSLEngine(c.host.getHostName(), c.port); in connect() local
97 client.setUseClientMode(true); in connect()
99 hooks.beforeBeginHandshake(client, server); in connect()
100 client.beginHandshake(); in connect()
104 boolean clientDone = client.getHandshakeStatus() == HandshakeStatus.NOT_HANDSHAKING; in connect()
112 progress |= handshakeCompleted(client, in connect()
135 return new SSLEngine[] { server, client }; in connect()
[all …]
DTestSSLSessions.java43 public final SSLSession client; field in TestSSLSessions
53 SSLSession client, in TestSSLSessions() argument
57 this.client = client; in TestSSLSessions()
71 return new TestSSLSessions(invalid, s.server.getSession(), s.client.getSession(), s); in create()
DTestSSLContext.java252 public static TestSSLContext create(TestKeyStore client, TestKeyStore server) { in create() argument
253 return createWithAdditionalKeyManagers(client, server, null, null); in create()
261 TestKeyStore client, TestKeyStore server, in createWithAdditionalKeyManagers() argument
264 KeyManager[] clientKeyManagers = concat(client.keyManagers, additionalClientKeyManagers); in createWithAdditionalKeyManagers()
267 createSSLContext(protocol, clientKeyManagers, client.trustManagers); in createWithAdditionalKeyManagers()
270 return create(client.keyStore, client.storePassword, in createWithAdditionalKeyManagers()
274 client.trustManagers[0], in createWithAdditionalKeyManagers()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DMembershipKeyTest.java39 private DatagramChannel client; field in MembershipKeyTest
45 client = DatagramChannel.open(StandardProtocolFamily.INET) in init()
47 client.configureBlocking(false); in init()
50 key = client.join(MULTICAST_ADDRESS, NETWORK_INTERFACE, sourceAddress); in init()
52 key = client.join(MULTICAST_ADDRESS, NETWORK_INTERFACE); in init()
58 client.close(); in tearDown()
74 client.close(); in check_isValid()
114 client.receive(buffer); in check_drop()
122 client.close(); in test_networkInterface()
148 assertEquals(client, key.channel()); in test_channelWithJoinWithSource()
[all …]
DServerSocketChannelTest.java146 SocketChannel client = channel.accept(); in call() local
148 client.close(); in call()
158 SocketChannel client; in clearAcceptQueue() local
159 while ((client = channel.accept()) != null) { in clearAcceptQueue()
160 client.close(); in clearAcceptQueue()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectorTest.java470 SocketChannel client = null;
486 client = ssc.accept();
494 if (null != client) {
495 client.close();
540 SocketChannel client = null;
546 client = ssc.accept();
549 client.configureBlocking(true);
557 client.write(ByteBuffer.wrap("a".getBytes()));
582 if (null != client) {
584 client.close();
[all …]
DSocketChannelTest.java2194 Socket client = new Socket(InetAddress.getLocalHost(), server.socket() in testReadByteBuffer_Direct2() local
2196 client.setTcpNoDelay(false); in testReadByteBuffer_Direct2()
2200 OutputStream out = client.getOutputStream(); in testReadByteBuffer_Direct2()
2218 client.close(); in testReadByteBuffer_Direct2()
2913 SocketChannel client = SocketChannel.open(); in test_write$LByteBuffer2() local
2914 client.connect(server.socket().getLocalSocketAddress()); in test_write$LByteBuffer2()
2925 client.write(buffers); in test_write$LByteBuffer2()
2926 client.close(); in test_write$LByteBuffer2()
2945 SocketChannel client = SocketChannel.open(); in test_write$LByteBuffer_buffers() local
2946 client.connect(server.socket().getLocalSocketAddress()); in test_write$LByteBuffer_buffers()
[all …]
DServerSocketChannelTest.java685 SocketChannel client = sc.accept(); in test_accept_SOTIMEOUT() local
686 assertNull(client); in test_accept_SOTIMEOUT()
DDatagramChannelTest.java2390 DatagramChannel client = DatagramChannel.open(); in test_bounded_harmony6493() local
2394 client.send(sent, boundedAddress); in test_bounded_harmony6493()
2395 assertTrue(client.socket().isBound()); in test_bounded_harmony6493()
2398 client.close(); in test_bounded_harmony6493()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSessionTest.java122 KeyStore store = client.getStore(); in test_getLocalCertificates()
133 KeyStore store = client.getStore(); in test_getLocalPrincipal()
242 TestClient client; field in SSLSessionTest
249 client = new TestClient(true, clientKeys); in setUp()
252 clientThread = new Thread(client); in setUp()
263 && client.exception == null) { in setUp()
275 if (client.exception != null) { in setUp()
276 client.exception.printStackTrace(); in setUp()
278 assertNull("client thread has a pending exception: " + client.exception, in setUp()
279 client.exception); in setUp()
[all …]
DHandshakeCompletedEventTest.java345 TestClient client = new TestClient(true, clientKeys); in testClientAuth() local
348 Thread clientThread = new Thread(client); in testClientAuth()
364 e = client.getException(); in testClientAuth()
/libcore/luni/src/test/java/libcore/libcore/io/
DFdsanTest.java118 Socket client = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort()); in testSocket() local
120 assertFdOwnedBySocket(client.getFileDescriptor$()); in testSocket()
122 client.close(); in testSocket()
/libcore/ojluni/src/main/java/sun/net/ftp/
DFtpClient.java122 FtpClient client = create(); in create() local
124 client.connect(dest); in create()
126 return client; in create()
/libcore/luni/src/test/java/libcore/libcore/net/
DNetworkSecurityPolicyTest.java259 try (Socket client = mSocket.accept()) { in CapturingServerSocket()
262 client.getOutputStream().write(replyOnConnect); in CapturingServerSocket()
263 client.getOutputStream().flush(); in CapturingServerSocket()
268 int chunkSize = client.getInputStream().read(buf); in CapturingServerSocket()
/libcore/luni/src/test/java/libcore/java/net/
DConcurrentCloseTest.java210 private Socket client; field in ConcurrentCloseTest.SilentServer
224 client = ss.accept(); in SilentServer()
237 client.close(); in close()
DSocketTest.java461 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort()); in testSocketWithProxySet() local
462 client.close(); in testSocketWithProxySet()
DOldSocketTest.java214 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort()); in test_getInputStream() local
215 InputStream is = client.getInputStream(); in test_getInputStream()
218 client.close(); in test_getInputStream()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java74 System.out.println("client=" + test.client.getLocalPort() in stress_test_TestSSLSocketPair_create()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DScannerTest.java72 private SocketChannel client; field in ScannerTest
881 s = new Scanner(client); in test_next()
936 s = new Scanner(client); in test_nextLPattern()
981 s = new Scanner(client); in test_nextLString()
1026 s = new Scanner(client); in test_nextBoolean()
2492 s = new Scanner(client); in test_hasNext()
2563 s = new Scanner(client); in test_hasNextLPattern()
2628 s = new Scanner(client); in test_hasNextLString()
2663 s = new Scanner(client); in test_hasNextBoolean()
5672 client = SocketChannel.open(); in setUp()
[all …]
/libcore/expectations/
Dknownfailures.txt1692 …"Some tests (ExcludedProxyTest) connect to a public webserver to check that the HTTP client works",
1698 …"Some tests (ExcludedProxyTest) connect to a public webserver to check that the HTTP client works",