/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/offline/ |
D | DownloadRequestTest.java | 49 DownloadRequest request1 = in mergeRequests_withDifferentIds_fails() local 66 request1.copyWithMergedRequest(request2); in mergeRequests_withDifferentIds_fails() 75 DownloadRequest request1 = in mergeRequests_withDifferentTypes_fails() local 92 request1.copyWithMergedRequest(request2); in mergeRequests_withDifferentTypes_fails() 101 DownloadRequest request1 = createRequest(uri1, new StreamKey(0, 0, 0)); in mergeRequest_withSameRequest() local 103 DownloadRequest mergedRequest = request1.copyWithMergedRequest(request1); in mergeRequest_withSameRequest() 104 assertEqual(request1, mergedRequest); in mergeRequest_withSameRequest() 109 DownloadRequest request1 = createRequest(uri1, new StreamKey(0, 0, 0)); in mergeRequests_withEmptyStreamKeys() local 113 DownloadRequest mergedRequest = request1.copyWithMergedRequest(request2); in mergeRequests_withEmptyStreamKeys() 116 mergedRequest = request2.copyWithMergedRequest(request1); in mergeRequests_withEmptyStreamKeys() [all …]
|
D | ActionFileUpgradeUtilTest.java | 129 DownloadRequest request1 = in mergeRequest_existingDownload_createsMergedDownload() local 146 request1, downloadIndex, /* addNewDownloadAsCompleted= */ false, NOW_MS); in mergeRequest_existingDownload_createsMergedDownload() 166 DownloadRequest request1 = in mergeRequest_addNewDownloadAsCompleted() local 183 request1, downloadIndex, /* addNewDownloadAsCompleted= */ false, NOW_MS); in mergeRequest_addNewDownloadAsCompleted() 187 request1, downloadIndex, /* addNewDownloadAsCompleted= */ true, NOW_MS); in mergeRequest_addNewDownloadAsCompleted() 188 assertThat(downloadIndex.getDownload(request1.id).state).isEqualTo(Download.STATE_QUEUED); in mergeRequest_addNewDownloadAsCompleted()
|
/external/grpc-grpc-java/testing/src/test/java/io/grpc/testing/ |
D | GrpcServerRuleTest.java | 63 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/ |
D | OkApacheClientTest.java | 78 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/ |
D | test_http.py | 1090 self.request1 = HttpRequest( 1195 batch.add(self.request1, request_id='3') 1202 batch.add(self.request1, request_id='1') 1203 self.assertRaises(KeyError, batch.add, self.request1, request_id='1') 1218 self.assertRaises(BatchError, batch.add, self.request1) 1225 self.request1.resumable = upload 1227 batch.add(self.request1, request_id='1') 1239 batch.add(self.request1, callback=callbacks.f) 1255 batch.add(self.request1) 1278 batch.add(self.request1, request_id='abc'*20) [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | SocksProxyTest.java | 54 Request request1 = new Request.Builder().url(server.url("/")).build(); in proxy() local 55 Response response1 = client.newCall(request1).execute(); in proxy()
|
D | CacheTest.java | 317 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 …]
|
D | CallTest.java | 805 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 …]
|
D | URLConnectionTest.java | 663 RecordedRequest request1 = server.takeRequest(); in sslFallbackNotUsedWhenRecycledConnectionFails() local 664 assertTrue(tlsVersions.contains(request1.getTlsVersion())); in sslFallbackNotUsedWhenRecycledConnectionFails()
|
/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/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/ |
D | WebSocketCallTest.java | 195 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/ |
D | ShadowDefaultRequestDirectorTest.java | 264 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/ |
D | ResponseCacheTest.java | 320 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/ |
D | UrlConnectionCacheTest.java | 310 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/grpc-grpc/src/objective-c/tests/ |
D | InteropTests.m | 266 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/ |
D | associated_interface_unittest.cc | 132 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/ |
D | HttpOverSpdyTest.java | 242 RecordedRequest request1 = server.takeRequest(); in redirect() local 243 assertEquals("/", request1.getPath()); in redirect()
|
/external/grpc-grpc/test/cpp/interop/ |
D | interop_client.cc | 913 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()
|
/external/python/cryptography/tests/x509/ |
D | test_x509.py | 1437 request1 = _load_cert( 1448 assert request1 == request2 1451 request1 = _load_cert( 1462 assert request1 != request2 1463 assert request1 != object() 1466 request1 = _load_cert( 1482 assert hash(request1) == hash(request2) 1483 assert hash(request1) != hash(request3)
|