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

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
H A DHttpOverSpdyTest.java188 assertEquals("ABC", readAscii(connection1.getInputStream(), 3));
189 assertEquals("GHI", readAscii(connection2.getInputStream(), 3));
190 assertEquals("DEF", readAscii(connection1.getInputStream(), 3));
191 assertEquals("JKL", readAscii(connection2.getInputStream(), 3));
223 assertEquals("Successful auth!", readAscii(connection.getInputStream(), Integer.MAX_VALUE));
253 assertEquals("ABC", readAscii(in, 3));
303 readAscii(connection.getInputStream(), Integer.MAX_VALUE);
364 assertEquals("AB", readAscii(in1, 2));
369 assertEquals("ABCD", readAscii(in2, Integer.MAX_VALUE));
418 assertEquals(expected, readAscii(connectio
421 private String readAscii(InputStream in, int count) throws IOException { method in class:HttpOverSpdyTest
[all...]
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
H A DResponseCacheTest.java203 readAscii(connection);
241 assertEquals("I love ", readAscii(urlConnection, "I love ".length()));
243 assertEquals("spiders", readAscii(urlConnection, "spiders".length()));
250 readAscii(urlConnection, "I love puppies but hate spiders".length()));
268 assertEquals("ABC", readAscii(c1));
280 assertEquals("ABC", readAscii(c2));
303 assertEquals("ABC", readAscii(connection));
306 assertEquals("ABC", readAscii(connection));
319 assertEquals("ABC", readAscii(openConnection(server.getUrl("/foo"))));
324 assertEquals("ABC", readAscii(openConnectio
1808 private String readAscii(URLConnection connection, int count) throws IOException { method in class:ResponseCacheTest
1824 private String readAscii(URLConnection connection) throws IOException { method in class:ResponseCacheTest
[all...]
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
H A DUrlConnectionCacheTest.java186 readAscii(conn);
225 assertEquals("I love ", readAscii(urlConnection, "I love ".length()));
227 assertEquals("spiders", readAscii(urlConnection, "spiders".length()));
236 readAscii(urlConnection, "I love puppies but hate spiders".length()));
257 assertEquals("ABC", readAscii(c1));
269 assertEquals("ABC", readAscii(c2));
293 assertEquals("ABC", readAscii(connection));
296 assertEquals("ABC", readAscii(connection));
309 assertEquals("ABC", readAscii(client.open(server.getUrl("/foo"))));
314 assertEquals("ABC", readAscii(clien
1755 private String readAscii(URLConnection connection, int count) throws IOException { method in class:UrlConnectionCacheTest
1772 private String readAscii(URLConnection connection) throws IOException { method in class:UrlConnectionCacheTest
[all...]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
H A DURLConnectionTest.java330 assertEquals("A", readAscii(connection.getErrorStream(), Integer.MAX_VALUE));
591 readAscii(connection2.getInputStream(), Integer.MAX_VALUE);
718 readAscii(client.open(server.getUrl("/")).getInputStream(), 5);
795 readAscii(client.open(server.getUrl("/")).getInputStream(), 5);
1047 private String readAscii(InputStream in, int count) throws IOException { method in class:URLConnectionTest
1081 assertEquals("ABCDE", readAscii(in, 5));
1087 assertEquals("FGHIJKLMNOPQRSTUVWXYZ", readAscii(in, Integer.MAX_VALUE));
1122 readAscii(connection.getInputStream(), Integer.MAX_VALUE);
1136 readAscii(connection.getInputStream(), Integer.MAX_VALUE);
1161 readAscii(connectio
[all...]

Completed in 209 milliseconds