/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/ |
D | OkApacheClientTest.java | 77 HttpGet request1 = new HttpGet(server.getUrl("/").toURI()); in headers() local 78 HttpResponse response1 = client.execute(request1); in headers() 137 HttpGet request1 = new HttpGet(server.getUrl("/").toURI()); in contentType() local 138 HttpResponse response1 = client.execute(request1); in contentType() 194 HttpGet request1 = new HttpGet(server.getUrl("/").toURI()); in jsonGzipResponse() local 195 request1.setHeader("Accept-encoding", "gzip"); // Not transparent gzip. in jsonGzipResponse() 197 HttpResponse response = client.execute(request1); in jsonGzipResponse()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | SocksProxyTest.java | 54 Request request1 = new Request.Builder().url(server.getUrl("/")).build(); in proxy() local 55 Response response1 = client.newCall(request1).execute(); in proxy()
|
D | CallTest.java | 133 Request request1 = new Request.Builder() in lazilyEvaluateRequestUrl() local 136 Request request2 = request1.newBuilder() in lazilyEvaluateRequestUrl() 717 Request request1 = new Request.Builder() in reusedSinksGetIndependentTimeoutInstances() local 721 Response response1 = client.newCall(request1).execute(); in reusedSinksGetIndependentTimeoutInstances() 751 Request request1 = new Request.Builder().url(server.getUrl("/")).build(); in reusedSourcesGetIndependentTimeoutInstances() local 752 Response response1 = client.newCall(request1).execute(); in reusedSourcesGetIndependentTimeoutInstances() 947 Request request1 = new Request.Builder().url(server.getUrl("/")).build(); in matchingPinnedCertificate() local 948 Response response1 = client.newCall(request1).execute(); in matchingPinnedCertificate() 1008 Request request1 = new Request.Builder().url(server.getUrl("/")).build(); in postBodyRetransmittedOnFailureRecovery() local 1009 Response response1 = client.newCall(request1).execute(); in postBodyRetransmittedOnFailureRecovery() [all …]
|
D | CacheTest.java | 320 Request request1 = new Request.Builder().url(server.getUrl("/foo")).build(); in redirectToCachedResult() local 321 Response response1 = client.newCall(request1).execute(); in redirectToCachedResult() 925 Request request1 = new Request.Builder() in clientSideNoStore() local 929 Response response1 = client.newCall(request1).execute(); in clientSideNoStore() 1292 RecordedRequest request1 = server.takeRequest(); in retainServedDateFormat() local 1293 assertNull(request1.getHeader("If-Modified-Since")); in retainServedDateFormat() 1458 Request request1 = new Request.Builder() in varyMatchesUnchangedRequestHeaderField() local 1462 Response response2 = client.newCall(request1).execute(); in varyMatchesUnchangedRequestHeaderField() 1527 Request request1 = new Request.Builder() in varyFieldsAreCaseInsensitive() local 1531 Response response2 = client.newCall(request1).execute(); in varyFieldsAreCaseInsensitive() [all …]
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ |
D | CombinedExceptionEventsTest.java | 89 int request1 = requestException(superExceptionClassID, true, false); in runCombinedExceptionEventsTest() local 108 expectedRequests = new int[] { request1, request2, request5, request6 }; in runCombinedExceptionEventsTest()
|
/external/okhttp/mockwebserver/ |
D | README.md | 62 RecordedRequest request1 = server.takeRequest(); 63 assertEquals("/v1/chat/messages/", request1.getPath()); 64 assertNotNull(request1.getHeader("Authorization"));
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | DefaultRequestDirectorTest.java | 240 HttpUriRequest request1 = (HttpUriRequest) Robolectric.getSentHttpRequest(0); in shouldHandleMultipleInvocationsOfExecute() local 241 assertThat(request1.getMethod(), equalTo(HttpGet.METHOD_NAME)); in shouldHandleMultipleInvocationsOfExecute() 242 assertThat(request1.getURI(), equalTo(URI.create("http://example.com"))); in shouldHandleMultipleInvocationsOfExecute()
|
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
D | ResponseCacheTest.java | 331 RecordedRequest request1 = server.takeRequest(); in redirectToCachedResult() local 332 assertEquals("GET /foo HTTP/1.1", request1.getRequestLine()); in redirectToCachedResult() 333 assertEquals(0, request1.getSequenceNumber()); in redirectToCachedResult() 718 HttpURLConnection request1 = openConnection(url); in testRequestMethod() local 719 request1.setRequestMethod(requestMethod); in testRequestMethod() 720 addRequestBodyIfNecessary(requestMethod, request1); in testRequestMethod() 721 request1.getInputStream().close(); in testRequestMethod() 722 assertEquals("1", request1.getHeaderField("X-Response-ID")); in testRequestMethod() 1206 RecordedRequest request1 = server.takeRequest(); in retainServedDateFormat() local 1207 assertNull(request1.getHeader("If-Modified-Since")); in retainServedDateFormat()
|
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
D | UrlConnectionCacheTest.java | 316 RecordedRequest request1 = server.takeRequest(); in redirectToCachedResult() local 317 assertEquals("GET /foo HTTP/1.1", request1.getRequestLine()); in redirectToCachedResult() 318 assertEquals(0, request1.getSequenceNumber()); in redirectToCachedResult() 638 HttpURLConnection request1 = client.open(url); in testRequestMethod() local 639 request1.setRequestMethod(requestMethod); in testRequestMethod() 640 addRequestBodyIfNecessary(requestMethod, request1); in testRequestMethod() 641 request1.getInputStream().close(); in testRequestMethod() 642 assertEquals("1", request1.getHeaderField("X-Response-ID")); in testRequestMethod() 1089 RecordedRequest request1 = server.takeRequest(); in retainServedDateFormat() local 1090 assertNull(request1.getHeader("If-Modified-Since")); in retainServedDateFormat()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | HttpOverSpdyTest.java | 248 RecordedRequest request1 = server.takeRequest(); in redirect() local 249 assertEquals("/", request1.getPath()); in redirect()
|
D | URLConnectionTest.java | 669 RecordedRequest request1 = server.takeRequest(); in sslFallbackNotUsedWhenRecycledConnectionFails() local 670 assertTrue(tlsVersions.contains(request1.getTlsVersion())); in sslFallbackNotUsedWhenRecycledConnectionFails()
|