/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | ConnectionReuseTest.java | 127 assertEquals(0, server.takeRequest().getSequenceNumber()); in connectionsReusedWithRedirectEvenIfPoolIsSizeZero() 128 assertEquals(1, server.takeRequest().getSequenceNumber()); in connectionsReusedWithRedirectEvenIfPoolIsSizeZero() 145 assertEquals(0, server.takeRequest().getSequenceNumber()); in connectionsNotReusedWithRedirectIfDiscardingResponseIsSlow() 146 assertEquals(0, server.takeRequest().getSequenceNumber()); in connectionsNotReusedWithRedirectIfDiscardingResponseIsSlow() 160 assertEquals(0, server.takeRequest().getSequenceNumber()); in silentRetryWhenIdempotentRequestFailsOnReusedConnection() 164 assertEquals(1, server.takeRequest().getSequenceNumber()); in silentRetryWhenIdempotentRequestFailsOnReusedConnection() 165 assertEquals(0, server.takeRequest().getSequenceNumber()); in silentRetryWhenIdempotentRequestFailsOnReusedConnection() 178 assertEquals(0, server.takeRequest().getSequenceNumber()); in staleConnectionNotReusedForNonIdempotentRequest() 186 assertEquals(0, server.takeRequest().getSequenceNumber()); in staleConnectionNotReusedForNonIdempotentRequest() 201 assertEquals(0, server.takeRequest().getSequenceNumber()); in http2ConnectionsAreSharedBeforeResponseIsConsumed() [all …]
|
D | CallTest.java | 124 RecordedRequest recordedRequest = server.takeRequest(); in get() 205 RecordedRequest recordedRequest = server.takeRequest(); in repeatedHeaderNames() 242 RecordedRequest recordedRequest = server.takeRequest(); in head() 276 RecordedRequest recordedRequest = server.takeRequest(); in post() 310 RecordedRequest recordedRequest = server.takeRequest(); in postZeroLength() 386 RecordedRequest recordedRequest1 = server.takeRequest(); in postBodyRetransmittedAfterAuthorizationFail() 391 RecordedRequest recordedRequest2 = server.takeRequest(); in postBodyRetransmittedAfterAuthorizationFail() 440 RecordedRequest recordedRequest = server.takeRequest(); in delete() 474 RecordedRequest recordedRequest = server.takeRequest(); in deleteWithRequestBody() 491 RecordedRequest recordedRequest = server.takeRequest(); in put() [all …]
|
D | URLConnectionTest.java | 169 RecordedRequest request = server.takeRequest(); in requestHeaders() 317 assertEquals("body", server.takeRequest().getBody().readUtf8()); in testRequestBodySurvivesRetries() 366 assertEquals(0, server.takeRequest().getSequenceNumber()); in connectionsArePooled() 368 assertEquals(1, server.takeRequest().getSequenceNumber()); in connectionsArePooled() 370 assertEquals(2, server.takeRequest().getSequenceNumber()); in connectionsArePooled() 381 assertEquals(0, server.takeRequest().getSequenceNumber()); in chunkedConnectionsArePooled() 383 assertEquals(1, server.takeRequest().getSequenceNumber()); in chunkedConnectionsArePooled() 385 assertEquals(2, server.takeRequest().getSequenceNumber()); in chunkedConnectionsArePooled() 421 assertEquals(0, server.takeRequest().getSequenceNumber()); in testServerClosesOutput() 427 RecordedRequest requestAfter = server.takeRequest(); in testServerClosesOutput() [all …]
|
D | CacheTest.java | 320 RecordedRequest recordedRequest1 = server.takeRequest(); in redirectToCachedResult() 327 RecordedRequest recordedRequest2 = server.takeRequest(); in redirectToCachedResult() 335 RecordedRequest recordedRequest3 = server.takeRequest(); in redirectToCachedResult() 1280 server.takeRequest(); // seed in assertClientSuppliedCondition() 1281 return server.takeRequest(); in assertClientSuppliedCondition() 1309 RecordedRequest request1 = server.takeRequest(); in retainServedDateFormat() 1313 RecordedRequest request2 = server.takeRequest(); in retainServedDateFormat() 1373 assertEquals(0, server.takeRequest().getSequenceNumber()); in connectionIsReturnedToPoolAfterConditionalSuccess() 1374 assertEquals(1, server.takeRequest().getSequenceNumber()); in connectionIsReturnedToPoolAfterConditionalSuccess() 1375 assertEquals(2, server.takeRequest().getSequenceNumber()); in connectionIsReturnedToPoolAfterConditionalSuccess() [all …]
|
D | InterceptorTest.java | 237 RecordedRequest recordedRequest = server.takeRequest(); in networkInterceptorsCanChangeRequestMethodFromGetToPost() 271 RecordedRequest recordedRequest = server.takeRequest(); in rewriteRequestToServer() 353 RecordedRequest recordedRequest = server.takeRequest(); in multipleInterceptors()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
D | HttpOverHttp2Test.java | 49 RecordedRequest request = server.takeRequest(); in serverSendsPushPromise_GET() 54 RecordedRequest pushedRequest = server.takeRequest(); in serverSendsPushPromise_GET() 73 RecordedRequest request = server.takeRequest(); in serverSendsPushPromise_HEAD() 78 RecordedRequest pushedRequest = server.takeRequest(); in serverSendsPushPromise_HEAD() 109 assertEquals(0, server.takeRequest().getSequenceNumber()); // Settings connection. in settingsLimitsMaxConcurrentStreams() 110 assertEquals(1, server.takeRequest().getSequenceNumber()); // Reuse settings connection. in settingsLimitsMaxConcurrentStreams() 111 assertEquals(2, server.takeRequest().getSequenceNumber()); // Reuse settings connection. in settingsLimitsMaxConcurrentStreams() 112 assertEquals(0, server.takeRequest().getSequenceNumber()); // New connection! in settingsLimitsMaxConcurrentStreams()
|
D | HttpOverSpdyTest.java | 105 RecordedRequest request = server.takeRequest(); in get() 129 RecordedRequest request = server.takeRequest(); in noDefaultContentLengthOnStreamingPost() 144 RecordedRequest request = server.takeRequest(); in userSuppliedContentLengthHeader() 161 RecordedRequest request = server.takeRequest(); in closeAfterFlush() 176 RecordedRequest request = server.takeRequest(); in setFixedLengthStreamingModeSetsContentLength() 192 assertEquals(0, server.takeRequest().getSequenceNumber()); in spdyConnectionReuse() 193 assertEquals(1, server.takeRequest().getSequenceNumber()); in spdyConnectionReuse() 205 assertEquals(0, server.takeRequest().getSequenceNumber()); in synchronousSpdyRequest() 206 assertEquals(1, server.takeRequest().getSequenceNumber()); in synchronousSpdyRequest() 225 RecordedRequest denied = server.takeRequest(); in authenticate() [all …]
|
/external/mockwebserver/src/test/java/com/google/mockwebserver/ |
D | MockWebServerTest.java | 118 RecordedRequest request = server.takeRequest(); in testRegularResponse() 136 RecordedRequest first = server.takeRequest(); in testRedirect() 138 RecordedRequest redirect = server.takeRequest(); in testRedirect() 209 assertEquals(0, server.takeRequest().getSequenceNumber()); in testResponseTimeout() 210 assertEquals(0, server.takeRequest().getSequenceNumber()); in testResponseTimeout()
|
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/ |
D | MockWebServerTest.java | 94 RecordedRequest request = server.takeRequest(); in regularResponse() 111 RecordedRequest first = server.takeRequest(); in redirect() 113 RecordedRequest redirect = server.takeRequest(); in redirect() 179 assertEquals(0, server.takeRequest().getSequenceNumber()); in responseTimeout() 180 assertEquals(0, server.takeRequest().getSequenceNumber()); in responseTimeout()
|
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/ |
D | OkApacheClientTest.java | 100 RecordedRequest request = server.takeRequest(); in postByteEntity() 113 RecordedRequest request = server.takeRequest(); in postInputStreamEntity() 122 RecordedRequest request = server.takeRequest(); in postEmptyEntity() 131 RecordedRequest request = server.takeRequest(); in putEmptyEntity() 145 RecordedRequest request = server.takeRequest(); in postOverrideContentType()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | CookiesTest.java | 206 RecordedRequest request = server.takeRequest(); in testSendingCookiesFromStore() 238 RecordedRequest request = redirectSource.takeRequest(); in testRedirectsDoNotIncludeTooManyCookies() 247 for (String header : redirectTarget.takeRequest().getHeaders().names()) { in testRedirectsDoNotIncludeTooManyCookies() 289 RecordedRequest request = server.takeRequest(); in testHeadersSentToCookieHandler() 332 RecordedRequest request = server.takeRequest(); in testCookiesSentIgnoresCase()
|
/external/okhttp/mockwebserver/ |
D | README.md | 62 RecordedRequest request1 = server.takeRequest(); 66 RecordedRequest request2 = server.takeRequest(); 69 RecordedRequest request3 = server.takeRequest(); 108 RecordedRequest request = server.takeRequest();
|
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
D | UrlConnectionCacheTest.java | 310 RecordedRequest request1 = server.takeRequest(); in redirectToCachedResult() 315 RecordedRequest request2 = server.takeRequest(); in redirectToCachedResult() 321 RecordedRequest request3 = server.takeRequest(); in redirectToCachedResult() 1036 server.takeRequest(); // seed in assertClientSuppliedCondition() 1037 return server.takeRequest(); in assertClientSuppliedCondition() 1053 RecordedRequest request = server.takeRequest(); in setIfModifiedSince() 1083 RecordedRequest request1 = server.takeRequest(); in retainServedDateFormat() 1087 RecordedRequest request2 = server.takeRequest(); in retainServedDateFormat() 1171 assertEquals(0, server.takeRequest().getSequenceNumber()); in connectionIsReturnedToPoolAfterConditionalSuccess() 1172 assertEquals(1, server.takeRequest().getSequenceNumber()); in connectionIsReturnedToPoolAfterConditionalSuccess() [all …]
|
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
D | ResponseCacheTest.java | 320 RecordedRequest request1 = server.takeRequest(); in redirectToCachedResult() 325 RecordedRequest request2 = server.takeRequest(); in redirectToCachedResult() 331 RecordedRequest request3 = server.takeRequest(); in redirectToCachedResult() 1166 server.takeRequest(); // seed in assertClientSuppliedCondition() 1167 return server.takeRequest(); in assertClientSuppliedCondition() 1195 RecordedRequest request1 = server.takeRequest(); in retainServedDateFormat() 1199 RecordedRequest request2 = server.takeRequest(); in retainServedDateFormat() 1254 assertEquals(0, server.takeRequest().getSequenceNumber()); in connectionIsReturnedToPoolAfterConditionalSuccess() 1255 assertEquals(1, server.takeRequest().getSequenceNumber()); in connectionIsReturnedToPoolAfterConditionalSuccess() 1256 assertEquals(2, server.takeRequest().getSequenceNumber()); in connectionIsReturnedToPoolAfterConditionalSuccess() [all …]
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/ |
D | MockWebServer.java | 271 public RecordedRequest takeRequest() throws InterruptedException { 286 public RecordedRequest takeRequest(long timeout, TimeUnit unit) throws InterruptedException {
|
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
D | MockWebServer.java | 169 public RecordedRequest takeRequest() throws InterruptedException { in takeRequest() method in MockWebServer
|