Home
last modified time | relevance | path

Searched refs:request1 (Results 1 – 14 of 14) sorted by relevance

/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
DOkApacheClientTest.java78 HttpGet request1 = new HttpGet(server.getUrl("/").toURI()); in headers() local
79 HttpResponse response1 = client.execute(request1); in headers()
156 HttpGet request1 = new HttpGet(server.getUrl("/").toURI()); in contentType() local
157 HttpResponse response1 = client.execute(request1); in contentType()
213 HttpGet request1 = new HttpGet(server.getUrl("/").toURI()); in jsonGzipResponse() local
214 request1.setHeader("Accept-encoding", "gzip"); // Not transparent gzip. in jsonGzipResponse()
216 HttpResponse response = client.execute(request1); in jsonGzipResponse()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCacheTest.java317 Request request1 = new Request.Builder().url(server.url("/foo")).build(); in redirectToCachedResult() local
318 Response response1 = client.newCall(request1).execute(); in redirectToCachedResult()
476 Request request1 = new Request.Builder().url(server.url("/")).build(); in cachedRedirect() local
477 Response response1 = client.newCall(request1).execute(); in cachedRedirect()
942 Request request1 = new Request.Builder() in clientSideNoStore() local
946 Response response1 = client.newCall(request1).execute(); in clientSideNoStore()
1309 RecordedRequest request1 = server.takeRequest(); in retainServedDateFormat() local
1310 assertNull(request1.getHeader("If-Modified-Since")); in retainServedDateFormat()
1475 Request request1 = new Request.Builder() in varyMatchesUnchangedRequestHeaderField() local
1479 Response response2 = client.newCall(request1).execute(); in varyMatchesUnchangedRequestHeaderField()
[all …]
DSocksProxyTest.java54 Request request1 = new Request.Builder().url(server.url("/")).build(); in proxy() local
55 Response response1 = client.newCall(request1).execute(); in proxy()
DCallTest.java805 Request request1 = new Request.Builder() in reusedSinksGetIndependentTimeoutInstances() local
809 Response response1 = client.newCall(request1).execute(); in reusedSinksGetIndependentTimeoutInstances()
839 Request request1 = new Request.Builder().url(server.url("/")).build(); in reusedSourcesGetIndependentTimeoutInstances() local
840 Response response1 = client.newCall(request1).execute(); in reusedSourcesGetIndependentTimeoutInstances()
1030 Request request1 = new Request.Builder().url(server.url("/")).build(); in matchingPinnedCertificate() local
1031 Response response1 = client.newCall(request1).execute(); in matchingPinnedCertificate()
1090 Request request1 = new Request.Builder().url(server.url("/")).build(); in postBodyRetransmittedOnFailureRecovery() local
1091 Response response1 = client.newCall(request1).execute(); in postBodyRetransmittedOnFailureRecovery()
1232 Request request1 = new Request.Builder() in conditionalCacheHit_Async() local
1235 client.newCall(request1).enqueue(callback); in conditionalCacheHit_Async()
[all …]
DURLConnectionTest.java654 RecordedRequest request1 = server.takeRequest(); in sslFallbackNotUsedWhenRecycledConnectionFails() local
655 assertTrue(tlsVersions.contains(request1.getTlsVersion())); in sslFallbackNotUsedWhenRecycledConnectionFails()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/
DCombinedExceptionEventsTest.java89 int request1 = requestException(superExceptionClassID, true, false); in runCombinedExceptionEventsTest() local
108 expectedRequests = new int[] { request1, request2, request5, request6 }; in runCombinedExceptionEventsTest()
/external/okhttp/mockwebserver/
DREADME.md62 RecordedRequest request1 = server.takeRequest();
63 assertEquals("/v1/chat/messages/", request1.getPath());
64 assertNotNull(request1.getHeader("Authorization"));
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
DWebSocketCallTest.java195 Request request1 = new Request.Builder() in websocketScheme() local
199 WebSocket webSocket = awaitWebSocket(request1); in websocketScheme()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DDefaultRequestDirectorTest.java240 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/robolectric-shadows/shadows/httpclient/src/test/java/org/robolectric/shadows/httpclient/
DShadowDefaultRequestDirectorTest.java264 HttpUriRequest request1 = (HttpUriRequest) FakeHttp.getSentHttpRequest(0); in shouldHandleMultipleInvocationsOfExecute() local
265 assertThat(request1.getMethod()).isEqualTo(HttpGet.METHOD_NAME); in shouldHandleMultipleInvocationsOfExecute()
266 assertThat(request1.getURI()).isEqualTo(URI.create("http://example.com")); in shouldHandleMultipleInvocationsOfExecute()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java320 RecordedRequest request1 = server.takeRequest(); in redirectToCachedResult() local
321 assertEquals("GET /foo HTTP/1.1", request1.getRequestLine()); in redirectToCachedResult()
322 assertEquals(0, request1.getSequenceNumber()); in redirectToCachedResult()
707 HttpURLConnection request1 = openConnection(url); in testRequestMethod() local
708 request1.setRequestMethod(requestMethod); in testRequestMethod()
709 addRequestBodyIfNecessary(requestMethod, request1); in testRequestMethod()
710 request1.getInputStream().close(); in testRequestMethod()
711 assertEquals("1", request1.getHeaderField("X-Response-ID")); in testRequestMethod()
1195 RecordedRequest request1 = server.takeRequest(); in retainServedDateFormat() local
1196 assertNull(request1.getHeader("If-Modified-Since")); in retainServedDateFormat()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java310 RecordedRequest request1 = server.takeRequest(); in redirectToCachedResult() local
311 assertEquals("GET /foo HTTP/1.1", request1.getRequestLine()); in redirectToCachedResult()
312 assertEquals(0, request1.getSequenceNumber()); in redirectToCachedResult()
632 HttpURLConnection request1 = client.open(url); in testRequestMethod() local
633 request1.setRequestMethod(requestMethod); in testRequestMethod()
634 addRequestBodyIfNecessary(requestMethod, request1); in testRequestMethod()
635 request1.getInputStream().close(); in testRequestMethod()
636 assertEquals("1", request1.getHeaderField("X-Response-ID")); in testRequestMethod()
1083 RecordedRequest request1 = server.takeRequest(); in retainServedDateFormat() local
1084 assertNull(request1.getHeader("If-Modified-Since")); in retainServedDateFormat()
/external/libmojo/mojo/public/cpp/bindings/tests/
Dassociated_interface_unittest.cc279 AssociatedInterfaceRequest<IntegerSender> request1, in SetUp() argument
287 impl1_.reset(new IntegerSenderImpl(std::move(request1))); in SetUp()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverSpdyTest.java242 RecordedRequest request1 = server.takeRequest(); in redirect() local
243 assertEquals("/", request1.getPath()); in redirect()