Lines Matching refs:url_request
17 #include "net/url_request/url_request.h"
18 #include "net/url_request/url_request_test_util.h"
141 scoped_ptr<net::URLRequest> url_request(
146 url_request->Start();
157 WebRequestData(url_request.get(), ON_BEFORE_REQUEST,
158 url_request->response_headers())));
160 WebRequestData(url_request.get(), ON_HEADERS_RECEIVED,
161 url_request->response_headers())));
170 WebRequestData(url_request.get(), ON_HEADERS_RECEIVED,
171 url_request->response_headers())));
181 WebRequestData(url_request.get(), ON_HEADERS_RECEIVED,
182 url_request->response_headers())));
190 WebRequestData(url_request.get(), ON_HEADERS_RECEIVED,
191 url_request->response_headers())));
228 scoped_ptr<net::URLRequest> url_request(
235 url_request->set_first_party_for_cookies(url_empty);
237 WebRequestData(url_request.get(), stage)));
239 WebRequestData(url_request.get(), stage)));
241 url_request->set_first_party_for_cookies(url_b);
243 WebRequestData(url_request.get(), stage)));
245 WebRequestData(url_request.get(), stage)));
247 url_request->set_first_party_for_cookies(url_a);
249 WebRequestData(url_request.get(), stage)));
251 WebRequestData(url_request.get(), stage)));
319 scoped_ptr<net::URLRequest> url_request(
324 WebRequestData(url_request.get(), active_stages[i].first)));
329 WebRequestData(url_request.get(), active_stages[i].first)));
333 WebRequestData(url_request.get(), active_stages[i].first)));
404 // Returns whether the response headers from |url_request| satisfy the match
412 net::URLRequest* url_request,
429 url_request, stage, url_request->response_headers()));
444 scoped_ptr<net::URLRequest> url_request(
449 url_request->SetExtraRequestHeaderByName(
451 url_request->Start();
470 tests, keys::kRequestHeadersKey, stage, url_request.get(), &result);
474 url_request.get(), &result);
487 MatchAndCheck(tests, keys::kRequestHeadersKey, stage, url_request.get(),
492 url_request.get(), &result);
498 MatchAndCheck(tests, keys::kRequestHeadersKey, stage, url_request.get(),
503 url_request.get(), &result);
510 MatchAndCheck(tests, keys::kRequestHeadersKey, stage, url_request.get(),
515 url_request.get(), &result);
534 scoped_ptr<net::URLRequest> url_request(
539 url_request->Start();
564 MatchAndCheck(tests, keys::kResponseHeadersKey, stage, url_request.get(),
577 MatchAndCheck(tests, keys::kResponseHeadersKey, stage, url_request.get(),
588 MatchAndCheck(tests, keys::kResponseHeadersKey, stage, url_request.get(),
599 MatchAndCheck(tests, keys::kResponseHeadersKey, stage, url_request.get(),
608 MatchAndCheck(tests, keys::kResponseHeadersKey, stage, url_request.get(),
620 MatchAndCheck(tests, keys::kResponseHeadersKey, stage, url_request.get(),
626 MatchAndCheck(tests, keys::kResponseHeadersKey, stage, url_request.get(),
637 MatchAndCheck(tests, keys::kResponseHeadersKey, stage, url_request.get(),
648 MatchAndCheck(tests, keys::kResponseHeadersKey, stage, url_request.get(),
665 MatchAndCheck(tests, keys::kResponseHeadersKey, stage, url_request.get(),
678 MatchAndCheck(tests, keys::kResponseHeadersKey, stage, url_request.get(),
691 MatchAndCheck(tests, keys::kResponseHeadersKey, stage, url_request.get(),
703 url_request.get(), &result);
714 url_request.get(), &result);