/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/ |
D | OkApacheClientTest.java | 77 HttpResponse response1 = client.execute(request1); in headers() local 78 Header[] headers1 = response1.getHeaders("Foo"); in headers() 131 HttpResponse response1 = client.execute(request1); in contentType() local 132 Header[] headers1 = response1.getHeaders("Content-Type"); in contentType() 135 assertNotNull(response1.getEntity().getContentType()); in contentType() 136 assertEquals("text/html", response1.getEntity().getContentType().getValue()); in contentType() 167 HttpResponse response1 = client.execute(request1); in contentEncoding() local 168 Header[] headers1 = response1.getHeaders("Content-Encoding"); in contentEncoding() 171 assertNotNull(response1.getEntity().getContentEncoding()); in contentEncoding() 172 assertEquals("gzip", response1.getEntity().getContentEncoding().getValue()); in contentEncoding() [all …]
|
/external/chromium_org/content/child/ |
D | multipart_response_delegate_unittest.cc | 489 WebURLResponse response1; in TEST() local 490 response1.initialize(); in TEST() 491 response1.setMIMEType("multipart/x-mixed-replace"); in TEST() 492 response1.setHTTPHeaderField("Content-Length", "200"); in TEST() 493 response1.setHTTPHeaderField("Content-type", in TEST() 498 response1, &multipart_boundary); in TEST() 563 WebURLResponse response1; in TEST() local 564 response1.initialize(); in TEST() 565 response1.setMIMEType("application/pdf"); in TEST() 566 response1.setHTTPHeaderField("Content-Length", "200"); // Ignored! in TEST() [all …]
|
/external/chromium_org/net/server/ |
D | http_server_unittest.cc | 595 std::string response1; in TEST_F() local 596 ASSERT_TRUE(client.ReadResponse(&response1)); in TEST_F() 597 ASSERT_TRUE(StartsWithASCII(response1, "HTTP/1.1 200 OK", true)); in TEST_F() 598 ASSERT_TRUE(EndsWith(response1, "Content for /test", true)); in TEST_F()
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | DefaultRequestDirectorTest.java | 222 … HttpResponse response1 = requestDirector.execute(null, new HttpGet("http://example.com"), null); in shouldHandleMultipleInvocations() local 225 assertThat(response1.getStatusLine().getStatusCode(), equalTo(200)); in shouldHandleMultipleInvocations() 226 …assertThat(Strings.fromStream(response1.getEntity().getContent()), equalTo("a happy response body"… in shouldHandleMultipleInvocations()
|
/external/chromium_org/net/spdy/ |
D | spdy_network_transaction_unittest.cc | 927 const HttpResponseInfo* response1 = trans1->GetResponseInfo(); in TEST_P() local 928 EXPECT_TRUE(response1->headers.get() != NULL); in TEST_P() 929 EXPECT_TRUE(response1->was_fetched_via_spdy); in TEST_P() 930 out.status_line = response1->headers->GetStatusLine(); in TEST_P() 931 out.response_info = *response1; in TEST_P() 1008 const HttpResponseInfo* response1 = trans1->GetResponseInfo(); in TEST_P() local 1009 EXPECT_TRUE(response1->headers.get() != NULL); in TEST_P() 1010 EXPECT_TRUE(response1->was_fetched_via_spdy); in TEST_P() 1011 out.status_line = response1->headers->GetStatusLine(); in TEST_P() 1012 out.response_info = *response1; in TEST_P() [all …]
|
D | spdy_http_stream_unittest.cc | 255 HttpResponseInfo response1; in TEST_P() local 272 EXPECT_EQ(ERR_IO_PENDING, http_stream1->SendRequest(headers1, &response1, in TEST_P()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | URLConnectionTest.java | 1326 MockResponse response1 = new MockResponse(); in testEarlyDisconnectDoesntHarmPooling() local 1327 transferKind.setBody(response1, "ABCDEFGHIJK", 1024); in testEarlyDisconnectDoesntHarmPooling() 1328 server.enqueue(response1); in testEarlyDisconnectDoesntHarmPooling() 2092 MockResponse response1 = new MockResponse() 2096 response1.setBody("This page has moved!"); 2098 server.enqueue(response1);
|
/external/chromium_org/content/browser/renderer_host/ |
D | render_widget_host_view_mac_unittest.mm | 761 scoped_ptr<IPC::Message> response1( 763 host->OnMessageReceived(*response1);
|
/external/chromium_org/net/http/ |
D | http_network_transaction_unittest.cc | 2805 const HttpResponseInfo* response1 = trans1->GetResponseInfo(); in TEST_P() local 2806 ASSERT_TRUE(response1 != NULL); in TEST_P() 2807 ASSERT_TRUE(response1->headers.get() != NULL); in TEST_P() 2808 EXPECT_EQ(1, response1->headers->GetContentLength()); in TEST_P() 2903 const HttpResponseInfo* response1 = trans1->GetResponseInfo(); in TEST_P() local 2904 ASSERT_TRUE(response1 != NULL); in TEST_P() 2905 ASSERT_TRUE(response1->headers.get() != NULL); in TEST_P() 2906 EXPECT_EQ(1, response1->headers->GetContentLength()); in TEST_P() 12826 const HttpResponseInfo* response1 = trans1->GetResponseInfo(); in TEST_P() local 12827 ASSERT_TRUE(response1 != NULL); in TEST_P() [all …]
|
D | http_cache_unittest.cc | 5071 net::HttpResponseInfo response1; in TEST() local 5072 response1.was_cached = false; in TEST() 5073 response1.socket_address = net::HostPortPair("1.2.3.4", 80); in TEST() 5074 response1.headers = new net::HttpResponseHeaders("HTTP/1.1 200 OK"); in TEST() 5078 response1.Persist(&pickle, false, false); in TEST()
|