Home
last modified time | relevance | path

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

/external/grpc-grpc-java/testing/src/test/java/io/grpc/testing/
DGrpcServerRuleTest.java63 SimpleRequest request1 = SimpleRequest.getDefaultInstance(); in serverAllowsServicesToBeAddedViaServiceRegistry_withoutDirectExecutor() local
67 stub.unaryRpc(request1); in serverAllowsServicesToBeAddedViaServiceRegistry_withoutDirectExecutor()
70 assertThat(testService.unaryCallRequests).containsExactly(request1, request2); in serverAllowsServicesToBeAddedViaServiceRegistry_withoutDirectExecutor()
113 SimpleRequest request1 = SimpleRequest.getDefaultInstance(); in serverAllowsServicesToBeAddedViaServiceRegistry_withDirectExecutor() local
117 stub.unaryRpc(request1); in serverAllowsServicesToBeAddedViaServiceRegistry_withDirectExecutor()
120 assertThat(testService.unaryCallRequests).containsExactly(request1, request2); in serverAllowsServicesToBeAddedViaServiceRegistry_withDirectExecutor()
/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/python/google-api-python-client/tests/
Dtest_http.py1080 self.request1 = HttpRequest(
1185 batch.add(self.request1, request_id='3')
1192 batch.add(self.request1, request_id='1')
1193 self.assertRaises(KeyError, batch.add, self.request1, request_id='1')
1208 self.assertRaises(BatchError, batch.add, self.request1)
1215 self.request1.resumable = upload
1217 batch.add(self.request1, request_id='1')
1229 batch.add(self.request1, callback=callbacks.f)
1245 batch.add(self.request1)
1268 batch.add(self.request1, request_id='abc'*20)
[all …]
/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-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-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/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/grpc-grpc/src/objective-c/tests/
DInteropTests.m266 RMTStreamingInputCallRequest *request1 = [RMTStreamingInputCallRequest message];
267 request1.payload.body = [NSMutableData dataWithLength:27182];
278 GRXWriter *writer = [GRXWriter writerWithContainer:@[ request1, request2, request3, request4 ]];
/external/libchrome/mojo/public/cpp/bindings/tests/
Dassociated_interface_unittest.cc132 IntegerSenderAssociatedRequest* request1) { in CreateIntegerSenderWithExistingRouters() argument
133 *request1 = MakeRequest(ptr_info0); in CreateIntegerSenderWithExistingRouters()
301 AssociatedInterfaceRequest<IntegerSender> request1, in SetUp() argument
309 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()
/external/grpc-grpc/test/cpp/interop/
Dinterop_client.cc913 SimpleRequest request1; in DoCacheableUnary() local
914 request1.mutable_payload()->set_body(timestamp.c_str(), timestamp.size()); in DoCacheableUnary()
920 serviceStub_.Get()->CacheableUnaryCall(&context3, request1, &response3); in DoCacheableUnary()