Searched defs:connection (Results 1 - 2 of 2) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
H A DHttpsURLConnectionTest.java88 // read/connection timeout value
138 // create url connection to be tested
140 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
141 connection.setSSLSocketFactory(ctx.getSocketFactory());
144 executeClientRequest(connection, false /* doOutput */);
146 checkConnectionStateParameters(connection, dispatcher.getLastRequest());
149 connection.connect();
155 * Tests the behaviour of HTTPS connection in case of unavailability of requested resource.
171 // create url connection to be tested
173 HttpsURLConnection connection
692 checkConnectionStateParameters( HttpsURLConnection connection, RecordedRequest request) argument
959 executeClientRequest( HttpsURLConnection connection, boolean doOutput) argument
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DURLConnectionTest.java339 HttpURLConnection connection = (HttpURLConnection) server.getUrl("/").openConnection();
340 assertNull(connection.getErrorStream());
346 HttpURLConnection connection = (HttpURLConnection) server.getUrl("/").openConnection();
347 assertEquals("A", readAscii(connection.getErrorStream(), Integer.MAX_VALUE));
351 // recycled connection doesn't get the unread tail of the first request's response.
430 .setBody("This connection won't pool properly")
432 server.enqueue(new MockResponse().setBody("This comes after a busted connection"));
435 assertContent("This connection won't pool properly", server.getUrl("/a").openConnection());
437 assertContent("This comes after a busted connection", server.getUrl("/b").openConnection());
438 // sequence number 0 means the HTTP socket connection wa
1108 connect(HttpURLConnection connection) argument
3011 assertContent(String expected, URLConnection connection, int limit) argument
3018 assertContent(String expected, URLConnection connection) argument
[all...]

Completed in 829 milliseconds