/external/chromium/chrome/browser/policy/ |
D | device_token_fetcher_unittest.cc | 75 DeviceTokenFetcher fetcher(&service_, cache_.get(), ¬ifier_); in TEST_F() local 78 fetcher.AddObserver(&observer); in TEST_F() 79 EXPECT_EQ("", fetcher.GetDeviceToken()); in TEST_F() 80 fetcher.FetchToken("fake_auth_token", "fake_device_id", in TEST_F() 85 std::string token = fetcher.GetDeviceToken(); in TEST_F() 92 fetcher.FetchToken("fake_auth_token", "fake_device_id", in TEST_F() 97 std::string token2 = fetcher.GetDeviceToken(); in TEST_F() 100 fetcher.RemoveObserver(&observer); in TEST_F() 109 DeviceTokenFetcher fetcher(&service_, cache_.get(), ¬ifier_, 0, 0, 0); in TEST_F() local 112 fetcher.AddObserver(&observer); in TEST_F() [all …]
|
D | device_management_service_unittest.cc | 109 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); in TEST_P() local 110 ASSERT_TRUE(fetcher); in TEST_P() 112 fetcher->delegate()->OnURLFetchComplete(fetcher, in TEST_P() 125 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); in TEST_P() local 126 ASSERT_TRUE(fetcher); in TEST_P() 128 fetcher->delegate()->OnURLFetchComplete(fetcher, in TEST_P() 145 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); in TEST_P() local 146 ASSERT_TRUE(fetcher); in TEST_P() 148 fetcher->delegate()->OnURLFetchComplete(fetcher, in TEST_P() 295 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); in TEST_F() local [all …]
|
D | device_management_service.cc | 170 URLFetcher* fetcher = URLFetcher::Create(0, job->GetURL(server_url_), in StartJob() local 172 fetcher->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES | in StartJob() 175 fetcher->set_request_context(request_context_getter_.get()); in StartJob() 176 job->ConfigureRequest(fetcher); in StartJob() 177 pending_jobs_[fetcher] = job; in StartJob() 178 fetcher->Start(); in StartJob()
|
D | device_management_backend_impl.cc | 126 virtual void ConfigureRequest(URLFetcher* fetcher); 263 void DeviceManagementJobBase::ConfigureRequest(URLFetcher* fetcher) { in ConfigureRequest() argument 264 fetcher->set_upload_data(kPostContentType, payload_); in ConfigureRequest() 270 fetcher->set_extra_request_headers(extra_headers); in ConfigureRequest()
|
/external/chromium/chrome/browser/autofill/ |
D | autofill_download_unittest.cc | 239 TestURLFetcher* fetcher = factory.GetFetcherByID(1); in TEST_F() local 240 ASSERT_TRUE(fetcher); in TEST_F() 241 fetcher->delegate()->OnURLFetchComplete(fetcher, GURL(), in TEST_F() 249 fetcher = factory.GetFetcherByID(2); in TEST_F() 250 ASSERT_TRUE(fetcher); in TEST_F() 251 fetcher->delegate()->OnURLFetchComplete(fetcher, GURL(), in TEST_F() 255 fetcher = factory.GetFetcherByID(0); in TEST_F() 256 ASSERT_TRUE(fetcher); in TEST_F() 257 fetcher->delegate()->OnURLFetchComplete(fetcher, GURL(), in TEST_F() 295 fetcher = factory.GetFetcherByID(3); in TEST_F() [all …]
|
D | autofill_download.cc | 238 URLFetcher *fetcher = URLFetcher::Create(fetcher_id_for_unittest_++, in StartRequest() local 242 url_fetchers_[fetcher] = request_data; in StartRequest() 243 fetcher->set_automatically_retry_on_5xx(false); in StartRequest() 244 fetcher->set_request_context(request_context); in StartRequest() 245 fetcher->set_upload_data("text/plain", form_xml); in StartRequest() 246 fetcher->Start(); in StartRequest()
|
D | autofill_browsertest.cc | 109 TestURLFetcher* fetcher = url_fetcher_factory_.GetFetcherByID(0); in SimulateURLFetch() local 110 ASSERT_TRUE(fetcher); in SimulateURLFetch() 141 fetcher->delegate()->OnURLFetchComplete(fetcher, fetcher->original_url(), in SimulateURLFetch()
|
/external/chromium/chrome/browser/extensions/ |
D | extension_updater_unittest.cc | 403 TestURLFetcher* fetcher = in TestExtensionUpdateCheckRequests() local 405 const GURL& url = fetcher->original_url(); in TestExtensionUpdateCheckRequests() 453 TestURLFetcher* fetcher = in TestBlacklistUpdateCheckRequests() local 455 ASSERT_FALSE(fetcher == NULL); in TestBlacklistUpdateCheckRequests() 456 const GURL& url = fetcher->original_url(); in TestBlacklistUpdateCheckRequests() 631 TestURLFetcher* fetcher = NULL; in TestMultipleManifestDownloading() local 655 fetcher = factory.GetFetcherByID(ExtensionUpdater::kManifestFetcherId); in TestMultipleManifestDownloading() 656 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL); in TestMultipleManifestDownloading() 657 EXPECT_TRUE(fetcher->load_flags() == expected_load_flags); in TestMultipleManifestDownloading() 658 fetcher->delegate()->OnURLFetchComplete( in TestMultipleManifestDownloading() [all …]
|
/external/chromium/chrome/browser/chromeos/login/ |
D | client_login_response_handler.cc | 35 URLFetcher* fetcher = in Handle() local 39 fetcher->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES); in Handle() 40 fetcher->set_upload_data("application/x-www-form-urlencoded", payload_); in Handle() 43 fetcher->set_request_context(getter_); in Handle() 44 fetcher->Start(); in Handle() 46 return fetcher; in Handle()
|
D | issue_response_handler.cc | 29 URLFetcher* fetcher = in Handle() local 31 fetcher->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES); in Handle() 34 fetcher->set_request_context(getter_); in Handle() 35 fetcher->Start(); in Handle() 37 return fetcher; in Handle()
|
D | cookie_fetcher_unittest.cc | 178 scoped_ptr<URLFetcher> fetcher(handler.Handle(input, NULL)); in TEST_F() local 188 scoped_ptr<URLFetcher> fetcher(handler.Handle(input, NULL)); in TEST_F() local
|
/external/chromium/chrome/browser/sync/ |
D | signin_manager_unittest.cc | 34 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); in SimulateValidResponse() local 35 DCHECK(fetcher); in SimulateValidResponse() 36 DCHECK(fetcher->delegate()); in SimulateValidResponse() 37 fetcher->delegate()->OnURLFetchComplete( in SimulateValidResponse() 38 fetcher, GURL(GaiaAuthFetcher::kClientLoginUrl), in SimulateValidResponse() 44 fetcher = factory_.GetFetcherByID(0); in SimulateValidResponse() 45 DCHECK(fetcher); in SimulateValidResponse() 46 DCHECK(fetcher->delegate()); in SimulateValidResponse() 47 fetcher->delegate()->OnURLFetchComplete( in SimulateValidResponse() 48 fetcher, GURL(GaiaAuthFetcher::kGetUserInfoUrl), in SimulateValidResponse()
|
/external/chromium/net/proxy/ |
D | init_proxy_resolver_unittest.cc | 176 RuleBasedProxyScriptFetcher fetcher(&rules); in TEST() local 185 InitProxyResolver init(&resolver, &fetcher, &log); in TEST() 212 RuleBasedProxyScriptFetcher fetcher(&rules); in TEST() local 221 InitProxyResolver init(&resolver, &fetcher, &log); in TEST() 245 RuleBasedProxyScriptFetcher fetcher(&rules); in TEST() local 253 InitProxyResolver init(&resolver, &fetcher, NULL); in TEST() 278 RuleBasedProxyScriptFetcher fetcher(&rules); in TEST() local 286 InitProxyResolver init(&resolver, &fetcher, NULL); in TEST() 295 RuleBasedProxyScriptFetcher fetcher(&rules); in TEST() local 305 InitProxyResolver init(&resolver, &fetcher, NULL); in TEST() [all …]
|
D | proxy_service_unittest.cc | 960 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher; in TEST() local 961 service->SetProxyScriptFetcher(fetcher); in TEST() 972 EXPECT_TRUE(fetcher->has_pending_request()); in TEST() 973 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url()); in TEST() 993 fetcher->NotifyFetchCompletion(OK, "pac-v1"); in TEST() 1040 MockProxyScriptFetcher* fetcher = new MockProxyScriptFetcher; in TEST() local 1041 service->SetProxyScriptFetcher(fetcher); in TEST() 1052 EXPECT_TRUE(fetcher->has_pending_request()); in TEST() 1053 EXPECT_EQ(GURL("http://foopy/proxy.pac"), fetcher->pending_request_url()); in TEST() 1068 fetcher = new MockProxyScriptFetcher; in TEST() [all …]
|
/external/chromium/chrome/browser/ |
D | intranet_redirect_detector.cc | 83 URLFetcher* fetcher = new URLFetcher(random_url, URLFetcher::HEAD, this); in FinishSleep() local 85 fetcher->set_load_flags(net::LOAD_DISABLE_CACHE | in FinishSleep() 87 fetcher->set_request_context(g_browser_process->system_request_context()); in FinishSleep() 88 fetcher->Start(); in FinishSleep() 89 fetchers_.insert(fetcher); in FinishSleep() 101 Fetchers::iterator fetcher = fetchers_.find(const_cast<URLFetcher*>(source)); in OnURLFetchComplete() local 102 DCHECK(fetcher != fetchers_.end()); in OnURLFetchComplete() 103 scoped_ptr<URLFetcher> clean_up_fetcher(*fetcher); in OnURLFetchComplete() 104 fetchers_.erase(fetcher); in OnURLFetchComplete()
|
D | bug_report_util.cc | 212 URLFetcher* fetcher = new URLFetcher(post_url, URLFetcher::POST, in SendFeedback() local 216 fetcher->set_request_context(profile->GetRequestContext()); in SendFeedback() 218 fetcher->set_upload_data(std::string(kProtBufMimeType), *post_body); in SendFeedback() 219 fetcher->Start(); in SendFeedback()
|
/external/chromium/webkit/glue/ |
D | resource_fetcher_unittest.cc | 105 scoped_ptr<ResourceFetcher> fetcher(new ResourceFetcher( in TEST_F() local 118 fetcher.reset(new ResourceFetcher(url, frame, in TEST_F() 138 scoped_ptr<ResourceFetcher> fetcher(new ResourceFetcher( in TEST_F() local 160 scoped_ptr<ResourceFetcher> fetcher(new ResourceFetcherWithTimeout( in TEST_F() local 176 void SetFetcher(ResourceFetcher* fetcher) { in SetFetcher() argument 177 fetcher_.reset(fetcher); in SetFetcher() 201 scoped_ptr<ResourceFetcher> fetcher(new ResourceFetcherWithTimeout( in TEST_F() local 204 delegate->SetFetcher(fetcher.release()); in TEST_F()
|
/external/chromium/chrome/browser/bookmarks/ |
D | bookmark_html_writer.cc | 30 static BookmarkFaviconFetcher* fetcher = NULL; variable 396 if (NotificationType::PROFILE_DESTROYED == type && fetcher != NULL) { in Observe() 397 MessageLoop::current()->DeleteSoon(FROM_HERE, fetcher); in Observe() 398 fetcher = NULL; in Observe() 425 if (fetcher != NULL) { in ExecuteWriter() 426 MessageLoop::current()->DeleteSoon(FROM_HERE, fetcher); in ExecuteWriter() 427 fetcher = NULL; in ExecuteWriter() 479 if (fetcher == NULL) { in WriteBookmarks() 480 fetcher = new BookmarkFaviconFetcher(profile, path, observer); in WriteBookmarks() 481 fetcher->ExportBookmarks(); in WriteBookmarks()
|
/external/chromium/chrome/browser/safe_browsing/ |
D | protocol_manager.cc | 170 URLFetcher* fetcher = new URLFetcher(gethash_url, URLFetcher::POST, this); in GetFullHash() local 171 hash_requests_[fetcher] = check; in GetFullHash() 177 fetcher->set_load_flags(net::LOAD_DISABLE_CACHE); in GetFullHash() 178 fetcher->set_request_context(request_context_getter_); in GetFullHash() 179 fetcher->set_upload_data("text/plain", get_hash); in GetFullHash() 180 fetcher->Start(); in GetFullHash() 214 scoped_ptr<const URLFetcher> fetcher; in OnURLFetchComplete() local 232 fetcher.reset(it->first); in OnURLFetchComplete() 281 fetcher.reset(request_.release()); in OnURLFetchComplete() 284 if (!fetcher.get()) { in OnURLFetchComplete() [all …]
|
D | client_side_detection_service.cc | 284 URLFetcher* fetcher = URLFetcher::Create(0 /* ID is not used */, in StartClientReportPhishingRequest() local 293 client_phishing_reports_[fetcher] = info; in StartClientReportPhishingRequest() 295 fetcher->set_load_flags(net::LOAD_DISABLE_CACHE); in StartClientReportPhishingRequest() 296 fetcher->set_request_context(request_context_getter_.get()); in StartClientReportPhishingRequest() 297 fetcher->set_upload_data("application/octet-stream", request_data); in StartClientReportPhishingRequest() 298 fetcher->Start(); in StartClientReportPhishingRequest()
|
/external/chromium/chrome/common/net/ |
D | test_url_fetcher_factory.cc | 42 TestURLFetcher* fetcher = new TestURLFetcher(id, url, request_type, d); in CreateURLFetcher() local 43 fetchers_[id] = fetcher; in CreateURLFetcher() 44 return fetcher; in CreateURLFetcher()
|
/external/chromium/chrome/browser/search_engines/ |
D | template_url_fetcher.cc | 28 RequestDelegate(TemplateURLFetcher* fetcher, 78 TemplateURLFetcher* fetcher, in RequestDelegate() argument 86 fetcher_(fetcher), in RequestDelegate() 103 url_fetcher_.set_request_context(fetcher->profile()->GetRequestContext()); in RequestDelegate()
|
/external/chromium/chrome/browser/autocomplete/ |
D | search_provider_unittest.cc | 228 TestURLFetcher* fetcher = test_factory_.GetFetcherByID( in TEST_F() local 230 ASSERT_TRUE(fetcher); in TEST_F() 235 ASSERT_TRUE(fetcher->original_url() == expected_url); in TEST_F() 238 fetcher->delegate()->OnURLFetchComplete( in TEST_F() 239 fetcher, GURL(), net::URLRequestStatus(), 200, ResponseCookies(), in TEST_F() 241 fetcher = NULL; in TEST_F()
|
/external/chromium/chrome/browser/google/ |
D | google_url_tracker_unittest.cc | 187 TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(expected_id); in MockSearchDomainCheckResponse() local 188 if (!fetcher) in MockSearchDomainCheckResponse() 190 fetcher->delegate()->OnURLFetchComplete(fetcher, in MockSearchDomainCheckResponse()
|
/external/chromium/net/base/ |
D | sdch_manager.h | 246 void set_sdch_fetcher(SdchFetcher* fetcher) { fetcher_.reset(fetcher); } in set_sdch_fetcher() argument
|