Home
last modified time | relevance | path

Searched refs:response_info (Results 1 – 25 of 54) sorted by relevance

123

/external/chromium_org/net/websockets/
Dwebsocket_handshake_handler_test.cc214 HttpResponseInfo response_info; in TEST() local
215 response_info.headers = new HttpResponseHeaders(raw_headers); in TEST()
217 EXPECT_TRUE(StartsWithASCII(response_info.headers->GetStatusLine(), in TEST()
219 EXPECT_FALSE(response_info.headers->HasHeader("Upgrade")); in TEST()
220 EXPECT_FALSE(response_info.headers->HasHeader("Connection")); in TEST()
221 EXPECT_FALSE(response_info.headers->HasHeader("Sec-WebSocket-Accept")); in TEST()
222 EXPECT_TRUE(response_info.headers->HasHeaderValue("Sec-WebSocket-Protocol", in TEST()
227 EXPECT_TRUE(response_handler.ParseResponseInfo(response_info, challenge)); in TEST()
Dwebsocket_handshake_handler.cc358 const HttpResponseInfo& response_info, in ParseResponseInfo() argument
360 if (!response_info.headers.get()) in ParseResponseInfo()
365 response_message = response_info.headers->GetStatusLine(); in ParseResponseInfo()
383 while (response_info.headers->EnumerateHeaderLines(&iter, &name, &value)) { in ParseResponseInfo()
Dwebsocket_handshake_handler.h88 bool ParseResponseInfo(const HttpResponseInfo& response_info,
/external/chromium_org/chrome/test/chromedriver/chrome/
Ddevtools_client_impl.cc221 linked_ptr<ResponseInfo> response_info = in SendCommandInternal() local
223 response_info_map_[command_id] = response_info; in SendCommandInternal()
224 while (response_info->state == kWaiting) { in SendCommandInternal()
228 if (response_info->state == kReceived) in SendCommandInternal()
233 if (response_info->state == kBlocked) { in SendCommandInternal()
234 response_info->state = kIgnored; in SendCommandInternal()
237 CHECK_EQ(response_info->state, kReceived); in SendCommandInternal()
238 internal::InspectorCommandResponse& response = response_info->response; in SendCommandInternal()
365 linked_ptr<ResponseInfo> response_info = response_info_map_[response.id]; in ProcessCommandResponse() local
366 if (response_info->state == kReceived) in ProcessCommandResponse()
[all …]
/external/chromium_org/content/test/
Dweburl_loader_mock_factory.cc33 ResponseInfo response_info; in RegisterURL() local
34 response_info.response = response; in RegisterURL()
38 response_info.file_path = in RegisterURL()
42 response_info.file_path = base::FilePath(std::wstring( in RegisterURL()
45 DCHECK(base::PathExists(response_info.file_path)) in RegisterURL()
46 << response_info.file_path.MaybeAsASCII() << " does not exist."; in RegisterURL()
50 url_to_reponse_info_[url] = response_info; in RegisterURL()
/external/chromium_org/components/domain_reliability/
Dmonitor_unittest.cc66 request.response_info.socket_address = in MakeRequestInfo()
68 request.response_info.headers = MakeHttpResponseHeaders( in MakeRequestInfo()
70 request.response_info.network_accessed = true; in MakeRequestInfo()
71 request.response_info.was_fetched_via_proxy = false; in MakeRequestInfo()
139 request.response_info.headers = NULL; in TEST_F()
149 request.response_info.headers = in TEST_F()
181 request.response_info.network_accessed = false; in TEST_F()
226 request.response_info.socket_address = in TEST_F()
228 request.response_info.was_fetched_via_proxy = true; in TEST_F()
Dmonitor.cc142 response_info(request.response_info()), in RequestInfo()
152 response_info.network_accessed; in AccessedNetwork()
188 if (request.response_info.headers) in OnRequestLegComplete()
189 response_code = request.response_info.headers->response_code(); in OnRequestLegComplete()
219 if (!request.response_info.was_fetched_via_proxy) in OnRequestLegComplete()
220 beacon.server_ip = request.response_info.socket_address.host(); in OnRequestLegComplete()
/external/chromium_org/chrome/browser/android/
Dintercept_download_resource_throttle.cc50 if (request_->response_info().did_use_http_auth) { in ProcessDownloadRequest()
55 !(request_->response_info().headers && in ProcessDownloadRequest()
57 request_->response_info().headers))) { in ProcessDownloadRequest()
/external/chromium_org/net/tools/dump_cache/
Dcache_dumper.cc166 net::HttpResponseInfo response_info; in WriteEntry() local
169 &response_info, &truncated)) in WriteEntry()
177 response_info.headers->RemoveHeader("transfer-encoding"); in WriteEntry()
178 response_info.headers->RemoveHeader("content-length"); in WriteEntry()
179 response_info.headers->RemoveHeader("x-original-url"); in WriteEntry()
182 GetNormalizedHeaders(response_info, &headers); in WriteEntry()
/external/chromium_org/net/http/
Dhttp_stream_parser_unittest.cc256 HttpResponseInfo response_info; in TEST() local
260 &response_info, callback.callback()); in TEST()
410 HttpResponseInfo response_info; in TEST() local
412 &response_info, callback.callback()); in TEST()
418 EXPECT_TRUE(response_info.headers.get()); in TEST()
422 EXPECT_TRUE(response_info.headers.get()); in TEST()
425 EXPECT_FALSE(response_info.headers.get()); in TEST()
475 HttpResponseInfo response_info; in TEST() local
477 &response_info, callback.callback()); in TEST()
482 ASSERT_TRUE(response_info.headers.get()); in TEST()
[all …]
Dhttp_stream_factory_impl_job.h151 void OnNeedsProxyAuthCallback(const HttpResponseInfo& response_info,
154 void OnHttpsProxyTunnelResponseCallback(const HttpResponseInfo& response_info,
Dhttp_network_transaction.h94 const HttpResponseInfo& response_info,
100 virtual void OnHttpsProxyTunnelResponse(const HttpResponseInfo& response_info,
Dmock_http_cache.cc520 net::HttpResponseInfo* response_info, in ReadResponseInfo() argument
531 response_info, in ReadResponseInfo()
536 disk_cache::Entry* disk_entry, const net::HttpResponseInfo* response_info, in WriteResponseInfo() argument
539 response_info->Persist( in WriteResponseInfo()
/external/chromium_org/ppapi/tests/
Dtest_file_ref.cc65 pp::URLResponseInfo response_info(loader.GetResponseInfo()); in MakeExternalFileRef() local
66 ASSERT_FALSE(response_info.is_null()); in MakeExternalFileRef()
67 ASSERT_EQ(200, response_info.GetStatusCode()); in MakeExternalFileRef()
69 *file_ref_ext = pp::FileRef(response_info.GetBodyAsFileRef()); in MakeExternalFileRef()
207 pp::URLResponseInfo response_info(loader.GetResponseInfo()); in TestGetName() local
208 ASSERT_FALSE(response_info.is_null()); in TestGetName()
209 ASSERT_EQ(200, response_info.GetStatusCode()); in TestGetName()
211 pp::FileRef file_ref_ext(response_info.GetBodyAsFileRef()); in TestGetName()
241 pp::URLResponseInfo response_info(loader.GetResponseInfo()); in TestGetPath() local
242 ASSERT_FALSE(response_info.is_null()); in TestGetPath()
[all …]
Dtest_url_loader.cc201 pp::URLResponseInfo response_info(loader.GetResponseInfo()); in LoadAndCompareBody() local
202 if (response_info.is_null()) in LoadAndCompareBody()
204 int32_t status_code = response_info.GetStatusCode(); in LoadAndCompareBody()
458 pp::URLResponseInfo response_info(loader.GetResponseInfo()); in TestStreamToFile() local
459 if (response_info.is_null()) in TestStreamToFile()
461 int32_t status_code = response_info.GetStatusCode(); in TestStreamToFile()
465 pp::FileRef body(response_info.GetBodyAsFileRef()); in TestStreamToFile()
727 pp::URLResponseInfo response_info(loader.GetResponseInfo()); in TestAuditURLRedirect() local
728 if (response_info.is_null()) in TestAuditURLRedirect()
730 int32_t status_code = response_info.GetStatusCode(); in TestAuditURLRedirect()
/external/chromium_org/content/renderer/npapi/
Dwebplugin_impl.cc193 ResponseInfo* response_info) { in GetResponseInfo() argument
194 response_info->url = response.url(); in GetResponseInfo()
195 response_info->mime_type = response.mimeType().utf8(); in GetResponseInfo()
198 response_info->last_modified = in GetResponseInfo()
204 response_info->expected_length = in GetResponseInfo()
213 response_info->expected_length = 0; in GetResponseInfo()
427 ResponseInfo response_info; in didReceiveResponse() local
428 GetResponseInfo(response, &response_info); in didReceiveResponse()
431 response_info.url, in didReceiveResponse()
432 response_info.mime_type, in didReceiveResponse()
[all …]
/external/chromium_org/content/public/browser/
Dresource_request_details.cc30 request->response_info().headers.get() ? in ResourceRequestDetails()
31 request->response_info().headers.get()->response_code() : -1; in ResourceRequestDetails()
/external/chromium_org/content/browser/loader/
Dasync_resource_handler.cc211 if (request()->response_info().metadata.get()) { in OnResponseStarted()
212 std::vector<char> copy(request()->response_info().metadata->data(), in OnResponseStarted()
213 request()->response_info().metadata->data() + in OnResponseStarted()
214 request()->response_info().metadata->size()); in OnResponseStarted()
360 request_complete_data.exists_in_cache = request()->response_info().was_cached; in OnResponseCompleted()
Dresource_loader.cc49 net::HttpResponseInfo response_info = request->response_info(); in PopulateResourceResponse() local
50 response->head.was_fetched_via_spdy = response_info.was_fetched_via_spdy; in PopulateResourceResponse()
51 response->head.was_npn_negotiated = response_info.was_npn_negotiated; in PopulateResourceResponse()
53 response_info.npn_negotiated_protocol; in PopulateResourceResponse()
54 response->head.connection_info = response_info.connection_info; in PopulateResourceResponse()
/external/chromium_org/webkit/browser/appcache/
Dappcache_working_set.h50 void AddResponseInfo(AppCacheResponseInfo* response_info);
51 void RemoveResponseInfo(AppCacheResponseInfo* response_info);
Dappcache_url_request_job.cc272 AppCacheResponseInfo* response_info, int64 response_id) { in OnResponseInfoLoaded() argument
275 if (response_info) { in OnResponseInfoLoaded()
276 info_ = response_info; in OnResponseInfoLoaded()
/external/chromium_org/content/child/
Dresource_dispatcher_unittest.cc752 const ResourceResponseInfo& response_info() const { return response_info_; } in response_info() function in content::TimeConversionTest
772 EXPECT_LT(base::TimeTicks(), response_info().load_timing.request_start); in TEST_F()
774 response_info().load_timing.connect_timing.dns_start); in TEST_F()
776 response_info().load_timing.connect_timing.connect_start); in TEST_F()
787 EXPECT_EQ(base::TimeTicks(), response_info().load_timing.request_start); in TEST_F()
789 response_info().load_timing.connect_timing.dns_start); in TEST_F()
798 EXPECT_EQ(base::TimeTicks(), response_info().load_timing.request_start); in TEST_F()
800 response_info().load_timing.connect_timing.dns_start); in TEST_F()
/external/chromium_org/content/browser/appcache/
Dappcache_update_job_unittest.cc1268 net::HttpResponseInfo* response_info = new net::HttpResponseInfo(); in UpgradeLoadFromNewestCacheTest() local
1269 response_info->request_time = base::Time::Now(); in UpgradeLoadFromNewestCacheTest()
1270 response_info->response_time = base::Time::Now(); in UpgradeLoadFromNewestCacheTest()
1271 response_info->headers = headers; // adds ref to headers in UpgradeLoadFromNewestCacheTest()
1273 new HttpResponseInfoIOBuffer(response_info)); // adds ref to info in UpgradeLoadFromNewestCacheTest()
1328 net::HttpResponseInfo* response_info = new net::HttpResponseInfo(); in UpgradeNoLoadFromNewestCacheTest() local
1329 response_info->request_time = base::Time::Now(); in UpgradeNoLoadFromNewestCacheTest()
1330 response_info->response_time = base::Time::Now(); in UpgradeNoLoadFromNewestCacheTest()
1331 response_info->headers = headers; // adds ref to headers in UpgradeNoLoadFromNewestCacheTest()
1333 new HttpResponseInfoIOBuffer(response_info)); // adds ref to info in UpgradeNoLoadFromNewestCacheTest()
[all …]
/external/nanopb-c/tests/message_sizes/
Dmessages1.proto19 optional MessageResponseInfo response_info = 2; field
/external/chromium_org/components/navigation_interception/
Dintercept_navigation_resource_throttle_unittest.cc147 net::HttpResponseInfo& response_info = in TestIOThreadState() local
148 const_cast<net::HttpResponseInfo&>(request_.response_info()); in TestIOThreadState()
149 response_info.headers = new net::HttpResponseHeaders( in TestIOThreadState()

123