Searched refs:readAscii (Results 1 – 4 of 4) sorted by relevance
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
D | ResponseCacheTest.java | 203 readAscii(connection); in assertCached() 241 assertEquals("I love ", readAscii(urlConnection, "I love ".length())); in testResponseCaching() 243 assertEquals("spiders", readAscii(urlConnection, "spiders".length())); in testResponseCaching() 250 readAscii(urlConnection, "I love puppies but hate spiders".length())); in testResponseCaching() 268 assertEquals("ABC", readAscii(c1)); in secureResponseCaching() 280 assertEquals("ABC", readAscii(c2)); in secureResponseCaching() 303 assertEquals("ABC", readAscii(connection)); in responseCachingAndRedirects() 306 assertEquals("ABC", readAscii(connection)); in responseCachingAndRedirects() 319 assertEquals("ABC", readAscii(openConnection(server.getUrl("/foo")))); in redirectToCachedResult() 324 assertEquals("ABC", readAscii(openConnection(server.getUrl("/bar")))); in redirectToCachedResult() [all …]
|
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
D | UrlConnectionCacheTest.java | 186 readAscii(conn); in assertCached() 225 assertEquals("I love ", readAscii(urlConnection, "I love ".length())); in testResponseCaching() 227 assertEquals("spiders", readAscii(urlConnection, "spiders".length())); in testResponseCaching() 236 readAscii(urlConnection, "I love puppies but hate spiders".length())); in testResponseCaching() 257 assertEquals("ABC", readAscii(c1)); in secureResponseCaching() 269 assertEquals("ABC", readAscii(c2)); in secureResponseCaching() 293 assertEquals("ABC", readAscii(connection)); in responseCachingAndRedirects() 296 assertEquals("ABC", readAscii(connection)); in responseCachingAndRedirects() 309 assertEquals("ABC", readAscii(client.open(server.getUrl("/foo")))); in redirectToCachedResult() 314 assertEquals("ABC", readAscii(client.open(server.getUrl("/bar")))); in redirectToCachedResult() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
D | HttpOverSpdyTest.java | 188 assertEquals("ABC", readAscii(connection1.getInputStream(), 3)); in spdyConnectionReuse() 189 assertEquals("GHI", readAscii(connection2.getInputStream(), 3)); in spdyConnectionReuse() 190 assertEquals("DEF", readAscii(connection1.getInputStream(), 3)); in spdyConnectionReuse() 191 assertEquals("JKL", readAscii(connection2.getInputStream(), 3)); in spdyConnectionReuse() 223 assertEquals("Successful auth!", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); in authenticate() 253 assertEquals("ABC", readAscii(in, 3)); in readAfterLastByte() 303 readAscii(connection.getInputStream(), Integer.MAX_VALUE); in readTimeoutOnSlowConnection() 364 assertEquals("AB", readAscii(in1, 2)); in responseCachedWithoutConsumingFullBody() 369 assertEquals("ABCD", readAscii(in2, Integer.MAX_VALUE)); in responseCachedWithoutConsumingFullBody() 418 assertEquals(expected, readAscii(connection.getInputStream(), limit)); in assertContent() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | URLConnectionTest.java | 330 assertEquals("A", readAscii(connection.getErrorStream(), Integer.MAX_VALUE)); in getErrorStreamOnUnsuccessfulRequest() 596 readAscii(connection2.getInputStream(), Integer.MAX_VALUE); in connectViaHttpsReusingConnectionsDifferentFactories() 727 readAscii(client.open(server.getUrl("/")).getInputStream(), 5); in contentDisagreesWithContentLengthHeaderBodyTooShort() 804 readAscii(client.open(server.getUrl("/")).getInputStream(), 5); in contentDisagreesWithChunkedHeaderBodyTooShort() 1056 private String readAscii(InputStream in, int count) throws IOException { in readAscii() method in URLConnectionTest 1090 assertEquals("ABCDE", readAscii(in, 5)); in testMarkAndReset() 1096 assertEquals("FGHIJKLMNOPQRSTUVWXYZ", readAscii(in, Integer.MAX_VALUE)); in testMarkAndReset() 1131 readAscii(connection.getInputStream(), Integer.MAX_VALUE); in nonHexChunkSize() 1145 readAscii(connection.getInputStream(), Integer.MAX_VALUE); in malformedChunkSize() 1170 readAscii(connection.getInputStream(), Integer.MAX_VALUE); in missingChunkBody() [all …]
|