Home
last modified time | relevance | path

Searched refs:throttleBody (Results 1 – 12 of 12) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DDisconnectTest.java78 .throttleBody(64 * 1024, 125, TimeUnit.MILLISECONDS)); // 500 Kbps in interruptWritingRequestBody()
105 .throttleBody(64 * 1024, 125, TimeUnit.MILLISECONDS)); // 500 Kbps in interruptReadingResponseBody()
DThreadInterruptTest.java80 .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/
DMockWebServerTest.java200 .throttleBody(3, 500, TimeUnit.MILLISECONDS)); in throttleRequest()
222 .throttleBody(3, 500, TimeUnit.MILLISECONDS));
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockResponse.java236 public MockResponse throttleBody(int bytesPerPeriod, long period, TimeUnit unit) { in throttleBody() method in MockResponse
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockResponse.java202 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/
DHttpOverSpdyTest.java278 …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/
DREADME.md99 response.throttleBody(1024, 1, TimeUnit.SECONDS);
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCallTest.java730 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()
DURLConnectionTest.java1009 .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!
DCacheTest.java539 .throttleBody(6, 1, TimeUnit.SECONDS); in testClientPrematureDisconnect()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java441 MockResponse response = new MockResponse().throttleBody(6, 1, TimeUnit.SECONDS); in testClientPrematureDisconnect()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java507 .throttleBody(6, 1, TimeUnit.SECONDS); in testClientPrematureDisconnect()