Searched refs:readAscii (Results 1 - 4 of 4) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
H A DHttpResponseCacheTest.java221 readAscii(conn);
263 assertEquals(body, readAscii(connection));
288 assertEquals("abc", readAscii(connection, 3));
321 assertEquals("I love ", readAscii(urlConnection, "I love ".length()));
323 assertEquals("spiders", readAscii(urlConnection, "spiders".length()));
332 readAscii(urlConnection, "I love puppies but hate spiders".length()));
354 assertEquals("ABC", readAscii(c1));
366 assertEquals("ABC", readAscii(c2));
391 assertEquals("ABC", readAscii(connection));
394 assertEquals("ABC", readAscii(connectio
2027 private String readAscii(URLConnection connection, int count) throws IOException { method in class:HttpResponseCacheTest
2044 private String readAscii(URLConnection connection) throws IOException { method in class:HttpResponseCacheTest
[all...]
H A DResponseCacheTest.java160 assertEquals("I love ", readAscii(urlConnection, "I love ".length()));
162 assertEquals("spiders", readAscii(urlConnection, "spiders".length()));
169 readAscii(urlConnection, "I love puppies but hate spiders".length()));
187 assertEquals("ABC", readAscii(c1));
199 assertEquals("ABC", readAscii(c2));
219 assertEquals("ABC", readAscii(connection1));
225 assertEquals("DEF", readAscii(connection2));
240 assertEquals("ABC", readAscii(connection));
243 assertEquals("ABC", readAscii(connection));
253 assertEquals("ABC", readAscii(openConnectio
1434 private String readAscii(URLConnection connection, int count) throws IOException { method in class:ResponseCacheTest
1450 private String readAscii(URLConnection connection) throws IOException { method in class:ResponseCacheTest
[all...]
H A DHttpOverSpdyTest.java204 assertEquals("ABC", readAscii(connection1.getInputStream(), 3));
205 assertEquals("GHI", readAscii(connection2.getInputStream(), 3));
206 assertEquals("DEF", readAscii(connection1.getInputStream(), 3));
207 assertEquals("JKL", readAscii(connection2.getInputStream(), 3));
242 assertEquals("Successful auth!", readAscii(connection.getInputStream(), Integer.MAX_VALUE));
274 assertEquals("ABC", readAscii(in, 3));
329 readAscii(connection.getInputStream(), Integer.MAX_VALUE);
394 assertEquals("AB", readAscii(in1, 2));
399 assertEquals("ABCD", readAscii(in2, Integer.MAX_VALUE));
432 assertEquals(expected, readAscii(connectio
443 private String readAscii(InputStream in, int count) throws IOException { method in class:HttpOverSpdyTest
[all...]
H A DURLConnectionTest.java343 assertEquals("A", readAscii(connection.getErrorStream(), Integer.MAX_VALUE));
614 readAscii(connection2.getInputStream(), Integer.MAX_VALUE);
1082 private String readAscii(InputStream in, int count) throws IOException { method in class:URLConnectionTest
1117 assertEquals("ABCDE", readAscii(in, 5));
1123 assertEquals("FGHIJKLMNOPQRSTUVWXYZ", readAscii(in, Integer.MAX_VALUE));
1158 readAscii(connection.getInputStream(), Integer.MAX_VALUE);
1173 readAscii(connection.getInputStream(), Integer.MAX_VALUE);
1190 assertEquals("ABCABCABC", readAscii(connection.getInputStream(), Integer.MAX_VALUE));
1208 assertEquals("ABCDEFGHIJKLMNOPQRSTUVWXYZ", readAscii(gunzippedIn, Integer.MAX_VALUE));
1237 assertEquals("ABCDE", readAscii(connectio
[all...]

Completed in 86 milliseconds