/external/chromium_org/google_apis/gaia/ |
D | oauth2_access_token_fetcher_unittest.cc | 100 TestURLFetcher* url_fetcher = new TestURLFetcher(0, url, &fetcher_); in SetupGetAccessToken() local 103 url_fetcher->set_status(URLRequestStatus(status, 0)); in SetupGetAccessToken() 106 url_fetcher->set_response_code(response_code); in SetupGetAccessToken() 109 url_fetcher->SetResponseString(body); in SetupGetAccessToken() 112 .WillOnce(Return(url_fetcher)); in SetupGetAccessToken() 113 return url_fetcher; in SetupGetAccessToken() 126 TestURLFetcher* url_fetcher = SetupGetAccessToken(false, 0, std::string()); in TEST_F() local 129 fetcher_.OnURLFetchComplete(url_fetcher); in TEST_F() 134 TestURLFetcher* url_fetcher = in TEST_F() local 138 fetcher_.OnURLFetchComplete(url_fetcher); in TEST_F() [all …]
|
D | oauth2_mint_token_flow_unittest.cc | 281 TestURLFetcher url_fetcher(1, GURL("http://www.google.com"), NULL); in TEST_F() local 282 url_fetcher.SetResponseString(std::string()); in TEST_F() 285 flow_->ProcessApiCallSuccess(&url_fetcher); in TEST_F() 288 TestURLFetcher url_fetcher(1, GURL("http://www.google.com"), NULL); in TEST_F() local 289 url_fetcher.SetResponseString("foo"); in TEST_F() 292 flow_->ProcessApiCallSuccess(&url_fetcher); in TEST_F() 295 TestURLFetcher url_fetcher(1, GURL("http://www.google.com"), NULL); in TEST_F() local 296 url_fetcher.SetResponseString(kTokenResponseNoAccessToken); in TEST_F() 299 flow_->ProcessApiCallSuccess(&url_fetcher); in TEST_F() 302 TestURLFetcher url_fetcher(1, GURL("http://www.google.com"), NULL); in TEST_F() local [all …]
|
D | oauth2_api_call_flow_unittest.cc | 127 TestURLFetcher* url_fetcher = new TestURLFetcher(0, url, flow_.get()); in CreateURLFetcher() local 130 url_fetcher->set_status(URLRequestStatus(status, 0)); in CreateURLFetcher() 133 url_fetcher->set_response_code(response_code); in CreateURLFetcher() 136 url_fetcher->SetResponseString(body); in CreateURLFetcher() 138 return url_fetcher; in CreateURLFetcher() 158 TestURLFetcher* url_fetcher = in SetupApiCall() local 161 .WillOnce(Return(url_fetcher)); in SetupApiCall() 162 return url_fetcher; in SetupApiCall() 177 TestURLFetcher* url_fetcher = SetupApiCall(true, net::HTTP_OK); in TEST_F() local 178 EXPECT_CALL(*flow_, ProcessApiCallSuccess(url_fetcher)); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/safe_browsing/ |
D | protocol_manager_unittest.cc | 61 const net::TestURLFetcher* url_fetcher, in ValidateUpdateFetcherRequest() argument 63 ASSERT_TRUE(url_fetcher); in ValidateUpdateFetcherRequest() 64 EXPECT_EQ(net::LOAD_DISABLE_CACHE, url_fetcher->GetLoadFlags()); in ValidateUpdateFetcherRequest() 66 url_fetcher->upload_data()); in ValidateUpdateFetcherRequest() 69 url_fetcher->GetOriginalURL()); in ValidateUpdateFetcherRequest() 72 void ValidateUpdateFetcherRequest(const net::TestURLFetcher* url_fetcher) { in ValidateUpdateFetcherRequest() argument 73 ValidateUpdateFetcherRequest(url_fetcher, kUrlPrefix); in ValidateUpdateFetcherRequest() 76 void ValidateRedirectFetcherRequest(const net::TestURLFetcher* url_fetcher, in ValidateRedirectFetcherRequest() argument 78 ASSERT_TRUE(url_fetcher); in ValidateRedirectFetcherRequest() 79 EXPECT_EQ(net::LOAD_DISABLE_CACHE, url_fetcher->GetLoadFlags()); in ValidateRedirectFetcherRequest() [all …]
|
/external/chromium_org/chrome/browser/managed_mode/ |
D | managed_user_refresh_token_fetcher_unittest.cc | 57 void SendResponse(net::TestURLFetcher* url_fetcher, in SendResponse() argument 59 url_fetcher->set_status( in SendResponse() 61 url_fetcher->set_response_code(net::HTTP_OK); in SendResponse() 62 url_fetcher->SetResponseString(response); in SendResponse() 63 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher); in SendResponse() 66 void SetNetworkError(net::TestURLFetcher* url_fetcher, int error) { in SetNetworkError() argument 67 url_fetcher->set_status( in SetNetworkError() 69 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher); in SetNetworkError() 72 void SetHttpError(net::TestURLFetcher* url_fetcher, int error) { in SetHttpError() argument 73 url_fetcher->set_status(net::URLRequestStatus()); in SetHttpError() [all …]
|
/external/chromium_org/components/policy/core/common/cloud/ |
D | user_info_fetcher_unittest.cc | 52 net::TestURLFetcher* url_fetcher = url_factory_.GetFetcherByID(0); in TEST_F() local 53 url_fetcher->set_status(net::URLRequestStatus( in TEST_F() 55 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher); in TEST_F() 73 net::TestURLFetcher* url_fetcher = url_factory_.GetFetcherByID(0); in TEST_F() local 74 url_fetcher->set_response_code(net::HTTP_OK); in TEST_F() 75 url_fetcher->SetResponseString(kUserInfoResponse); in TEST_F() 76 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher); in TEST_F()
|
/external/chromium_org/chrome/browser/extensions/api/push_messaging/ |
D | obfuscated_gaia_id_fetcher_unittest.cc | 80 net::TestURLFetcher url_fetcher(1, GURL("http://www.google.com"), NULL); in TEST() local 81 url_fetcher.set_status( in TEST() 83 url_fetcher.SetResponseString(kGoodData); in TEST() 86 fetcher.ProcessApiCallSuccess(&url_fetcher); in TEST() 94 net::TestURLFetcher url_fetcher(1, GURL("http://www.google.com"), NULL); in TEST() local 95 url_fetcher.set_status( in TEST() 97 url_fetcher.SetResponseString(kDictionaryMissingIdData); in TEST() 100 fetcher.ProcessApiCallSuccess(&url_fetcher); in TEST()
|
/external/chromium_org/chrome/browser/component_updater/ |
D | component_updater_utils.cc | 78 net::URLFetcher* url_fetcher( in SendProtocolRequest() local 84 url_fetcher->SetUploadData("application/xml", protocol_request); in SendProtocolRequest() 85 url_fetcher->SetRequestContext(url_request_context_getter); in SendProtocolRequest() 86 url_fetcher->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES | in SendProtocolRequest() 89 url_fetcher->SetAutomaticallyRetryOn5xx(false); in SendProtocolRequest() 90 url_fetcher->Start(); in SendProtocolRequest() 92 return url_fetcher; in SendProtocolRequest()
|
/external/chromium_org/remoting/jingle_glue/ |
D | chromium_port_allocator.cc | 43 virtual void OnURLFetchComplete(const net::URLFetcher* url_fetcher) OVERRIDE; 99 scoped_ptr<net::URLFetcher> url_fetcher( in SendSessionRequest() local 101 url_fetcher->SetRequestContext(url_context_.get()); in SendSessionRequest() 102 url_fetcher->AddExtraRequestHeader("X-Talk-Google-Relay-Auth: " + in SendSessionRequest() 104 url_fetcher->AddExtraRequestHeader("X-Google-Relay-Auth: " + relay_token()); in SendSessionRequest() 105 url_fetcher->AddExtraRequestHeader("X-Stream-Type: chromoting"); in SendSessionRequest() 106 url_fetcher->Start(); in SendSessionRequest() 107 url_fetchers_.insert(url_fetcher.release()); in SendSessionRequest()
|
/external/chromium_org/content/common/net/ |
D | url_fetcher.cc | 23 void AssociateURLFetcherWithRenderView(net::URLFetcher* url_fetcher, in AssociateURLFetcherWithRenderView() argument 27 url_fetcher->SetFirstPartyForCookies(first_party_for_cookies); in AssociateURLFetcherWithRenderView() 28 url_fetcher->SetURLRequestUserData( in AssociateURLFetcherWithRenderView()
|
/external/chromium_org/chrome/browser/captive_portal/ |
D | captive_portal_detector.cc | 98 const net::URLFetcher* url_fetcher, in GetCaptivePortalResultFromResponse() argument 101 DCHECK(!url_fetcher->GetStatus().is_io_pending()); in GetCaptivePortalResultFromResponse() 104 results->response_code = url_fetcher->GetResponseCode(); in GetCaptivePortalResultFromResponse() 111 if (url_fetcher->GetStatus().status() != net::URLRequestStatus::SUCCESS) in GetCaptivePortalResultFromResponse() 116 net::HttpResponseHeaders* headers = url_fetcher->GetResponseHeaders(); in GetCaptivePortalResultFromResponse()
|
D | captive_portal_detector.h | 82 void GetCaptivePortalResultFromResponse(const net::URLFetcher* url_fetcher,
|
/external/chromium_org/chrome/browser/chromeos/policy/ |
D | device_cloud_policy_manager_chromeos_unittest.cc | 364 net::TestURLFetcher* url_fetcher = url_fetcher_factory_.GetFetcherByID( in RunTest() local 366 ASSERT_TRUE(url_fetcher); in RunTest() 367 url_fetcher->SetMaxRetriesOn5xx(0); in RunTest() 368 url_fetcher->set_status(net::URLRequestStatus()); in RunTest() 369 url_fetcher->set_response_code(url_fetcher_response_code_); in RunTest() 370 url_fetcher->SetResponseString(url_fetcher_response_string_); in RunTest() 371 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher); in RunTest()
|
/external/chromium_org/chrome/browser/media/ |
D | webrtc_log_uploader.cc | 261 net::URLFetcher* url_fetcher = in CreateAndStartURLFetcher() local 263 url_fetcher->SetRequestContext(request_context); in CreateAndStartURLFetcher() 264 url_fetcher->SetUploadData(content_type, *post_data); in CreateAndStartURLFetcher() 265 url_fetcher->Start(); in CreateAndStartURLFetcher() 266 upload_done_data_[url_fetcher] = upload_done_data; in CreateAndStartURLFetcher()
|
/external/chromium_org/content/public/common/ |
D | url_fetcher.h | 21 net::URLFetcher* url_fetcher,
|
/external/chromium_org/google_apis/drive/ |
D | base_requests.cc | 74 const URLFetcher* url_fetcher) { in GetResponseHeadersAsString() argument 83 if (url_fetcher->GetResponseCode() == URLFetcher::RESPONSE_CODE_INVALID) { in GetResponseHeadersAsString() 86 url_fetcher->GetResponseHeaders()->GetNormalizedHeaders(&headers); in GetResponseHeadersAsString()
|
/external/chromium_org/components/autofill/content/browser/wallet/ |
D | wallet_signin_helper.cc | 138 scoped_ptr<net::URLFetcher> url_fetcher(url_fetcher_.release()); in OnURLFetchComplete() local
|
/external/chromium_org/chrome_frame/ |
D | chrome_frame_automation.cc | 1206 PluginUrlRequestManager* url_fetcher) { in SetUrlFetcher() argument 1207 DCHECK(url_fetcher != NULL); in SetUrlFetcher() 1208 url_fetcher_ = url_fetcher; in SetUrlFetcher() 1209 url_fetcher_flags_ = url_fetcher->GetThreadSafeFlags(); in SetUrlFetcher()
|
D | chrome_frame_automation.h | 386 void SetUrlFetcher(PluginUrlRequestManager* url_fetcher);
|
/external/chromium_org/content/ |
D | content_common.gypi | 99 'public/common/url_fetcher.h', 319 'common/net/url_fetcher.cc', 431 ['include', '^common/net/url_fetcher\\.cc$'],
|
D | content_common.target.darwin-mips.mk | 131 content/common/net/url_fetcher.cc \
|
D | content_common.target.linux-mips.mk | 131 content/common/net/url_fetcher.cc \
|
D | content_common.target.linux-arm.mk | 131 content/common/net/url_fetcher.cc \
|
D | content_common.target.linux-x86.mk | 131 content/common/net/url_fetcher.cc \
|
D | content_common.target.darwin-arm.mk | 131 content/common/net/url_fetcher.cc \
|