Searched refs:throttleBody (Results 1 – 12 of 12) sorted by relevance
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | DisconnectTest.java | 78 .throttleBody(64 * 1024, 125, TimeUnit.MILLISECONDS)); // 500 Kbps in interruptWritingRequestBody() 105 .throttleBody(64 * 1024, 125, TimeUnit.MILLISECONDS)); // 500 Kbps in interruptReadingResponseBody()
|
D | ThreadInterruptTest.java | 80 .throttleBody(64 * 1024, 125, TimeUnit.MILLISECONDS)); // 500 Kbps in interruptWritingRequestBody() 107 .throttleBody(64 * 1024, 125, TimeUnit.MILLISECONDS)); // 500 Kbps in interruptReadingResponseBody()
|
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/ |
D | MockWebServerTest.java | 200 .throttleBody(3, 500, TimeUnit.MILLISECONDS)); in throttleRequest() 222 .throttleBody(3, 500, TimeUnit.MILLISECONDS));
|
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
D | MockResponse.java | 236 public MockResponse throttleBody(int bytesPerPeriod, long period, TimeUnit unit) { in throttleBody() method in MockResponse
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/ |
D | MockResponse.java | 202 public MockResponse throttleBody(long bytesPerPeriod, long period, TimeUnit unit) { in throttleBody() method in MockResponse
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
D | HttpOverSpdyTest.java | 278 …server.enqueue(new MockResponse().setBody(new String(body)).throttleBody(1024, 1, SECONDS)); // sl… in readTimeoutMoreGranularThanBodySize() 297 .throttleBody(1024, 1, SECONDS)); // slow connection 1KiB/second in readTimeoutOnSlowConnection()
|
/external/okhttp/mockwebserver/ |
D | README.md | 99 response.throttleBody(1024, 1, TimeUnit.SECONDS);
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | CallTest.java | 730 server.enqueue(new MockResponse().setBody("def").throttleBody(1, 750, TimeUnit.MILLISECONDS)); in timeoutsUpdatedOnReusedConnections() 1631 server.enqueue(new MockResponse().setBody("def").throttleBody(1, 750, TimeUnit.MILLISECONDS)); in cancelBeforeBodyIsRead()
|
D | URLConnectionTest.java | 1009 .throttleBody(2, 100, TimeUnit.MILLISECONDS) in disconnectedConnection() 1336 .throttleBody(100, 10, MILLISECONDS)); in streamDiscardingIsTimely() 2273 .throttleBody(1, 1, TimeUnit.SECONDS)); // Prevent the server from reading!
|
D | CacheTest.java | 539 .throttleBody(6, 1, TimeUnit.SECONDS); in testClientPrematureDisconnect()
|
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
D | UrlConnectionCacheTest.java | 441 MockResponse response = new MockResponse().throttleBody(6, 1, TimeUnit.SECONDS); in testClientPrematureDisconnect()
|
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
D | ResponseCacheTest.java | 507 .throttleBody(6, 1, TimeUnit.SECONDS); in testClientPrematureDisconnect()
|