Home
last modified time | relevance | path

Searched refs:SetFakeResponse (Results 1 – 25 of 29) sorted by relevance

12

/external/chromium_org/components/precache/core/
Dprecache_fetcher_unittest.cc129 factory_.SetFakeResponse(GURL(kConfigURL), config.SerializeAsString(), in TEST_F()
131 factory_.SetFakeResponse(GURL(kManifestFetchFailureURL), "", in TEST_F()
134 factory_.SetFakeResponse(GURL(kBadManifestURL), "bad protobuf", net::HTTP_OK, in TEST_F()
136 factory_.SetFakeResponse(GURL(kGoodManifestURL), in TEST_F()
139 factory_.SetFakeResponse(GURL(kResourceFetchFailureURL), in TEST_F()
142 factory_.SetFakeResponse(GURL(kGoodResourceURL), "good", net::HTTP_OK, in TEST_F()
144 factory_.SetFakeResponse(GURL(kForcedStartingURLManifestURL), in TEST_F()
174 factory_.SetFakeResponse(GURL(kConfigURL), "", in TEST_F()
197 factory_.SetFakeResponse(GURL(kConfigURL), "bad protobuf", net::HTTP_OK, in TEST_F()
222 factory_.SetFakeResponse(GURL(kConfigURL), config.SerializeAsString(), in TEST_F()
[all …]
/external/chromium_org/chrome/service/cloud_print/
Dprinter_job_handler_unittest.cc506 factory_.SetFakeResponse(JobListURI(kJobFetchReasonStartup), in MakeJobFetchReturnNoJobs()
509 factory_.SetFakeResponse(JobListURI(kJobFetchReasonFailure), in MakeJobFetchReturnNoJobs()
512 factory_.SetFakeResponse(JobListURI(kJobFetchReasonRetry), in MakeJobFetchReturnNoJobs()
562 factory_.SetFakeResponse(TicketURI(job_num), in SetUpJobSuccessTest()
565 factory_.SetFakeResponse(DownloadURI(job_num), in SetUpJobSuccessTest()
569 factory_.SetFakeResponse(DoneURI(job_num), in SetUpJobSuccessTest()
573 factory_.SetFakeResponse(InProgressURI(job_num), in SetUpJobSuccessTest()
680 factory_.SetFakeResponse(JobListURI(kJobFetchReasonStartup), in TEST_F()
683 factory_.SetFakeResponse(JobListURI(kJobFetchReasonQueryMore), in TEST_F()
699 factory_.SetFakeResponse(JobListURI(kJobFetchReasonStartup), in TEST_F()
[all …]
/external/chromium_org/chrome/browser/signin/
Daccount_reconcilor_unittest.cc99 void SetFakeResponse(const std::string& url, in SetFakeResponse() function in AccountReconcilorTest
103 url_fetcher_factory_.SetFakeResponse(GURL(url), data, code, status); in SetFakeResponse()
267 SetFakeResponse(GaiaUrls::GetInstance()->list_accounts_url().spec(), in TEST_F()
289 SetFakeResponse(GaiaUrls::GetInstance()->list_accounts_url().spec(), "", in TEST_F()
310 SetFakeResponse("https://www.googleapis.com/oauth2/v1/userinfo", in TEST_F()
332 SetFakeResponse("https://www.googleapis.com/oauth2/v1/userinfo", in TEST_F()
371 SetFakeResponse(GaiaUrls::GetInstance()->list_accounts_url().spec(), in TEST_P()
374 SetFakeResponse("https://www.googleapis.com/oauth2/v1/userinfo", in TEST_P()
418 SetFakeResponse(GaiaUrls::GetInstance()->list_accounts_url().spec(), in TEST_P()
421 SetFakeResponse("https://www.googleapis.com/oauth2/v1/userinfo", in TEST_P()
[all …]
Dsignin_browsertest.cc62 fake_factory_->SetFakeResponse( in SetUp()
65 fake_factory_->SetFakeResponse( in SetUp()
/external/chromium_org/third_party/libaddressinput/chromium/
Dchrome_downloader_impl_unittest.cc26 void SetFakeResponse(const std::string& payload, net::HttpStatusCode code) { in SetFakeResponse() function in autofill::ChromeDownloaderImplTest
27 fake_factory_.SetFakeResponse(url_, in SetFakeResponse()
71 SetFakeResponse(kFakePayload, net::HTTP_OK); in TEST_F()
80 SetFakeResponse(kFakePayload, net::HTTP_INTERNAL_SERVER_ERROR); in TEST_F()
89 SetFakeResponse(kFakePayload, net::HTTP_OK); in TEST_F()
/external/chromium_org/chrome/browser/ui/webui/local_discovery/
Dlocal_discovery_ui_browsertest.cc373 fake_fetcher_factory().SetFakeResponse( in SetUpOnMainThread()
379 fake_fetcher_factory().SetFakeResponse( in SetUpOnMainThread()
385 fake_fetcher_factory().SetFakeResponse( in SetUpOnMainThread()
391 fake_fetcher_factory().SetFakeResponse( in SetUpOnMainThread()
397 fake_fetcher_factory().SetFakeResponse( in SetUpOnMainThread()
403 fake_fetcher_factory().SetFakeResponse( in SetUpOnMainThread()
413 fake_fetcher_factory().SetFakeResponse( in SetUpOnMainThread()
534 fake_fetcher_factory().SetFakeResponse( in IN_PROC_BROWSER_TEST_F()
540 fake_fetcher_factory().SetFakeResponse( in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/chromeos/policy/
Dcloud_external_data_manager_base_unittest.cc124 void SetFakeResponse(const std::string& url,
242 void CloudExternalDataManagerBaseTest::SetFakeResponse( in SetFakeResponse() function in policy::CloudExternalDataManagerBaseTest
247 fetcher_factory_.SetFakeResponse( in SetFakeResponse()
294 SetFakeResponse(k10BytePolicyURL, k10ByteData, net::HTTP_OK, in TEST_F()
350 SetFakeResponse(k10BytePolicyURL, k10ByteData, net::HTTP_OK, in TEST_F()
352 SetFakeResponse(k20BytePolicyURL, k20ByteData, net::HTTP_OK, in TEST_F()
425 SetFakeResponse(k10BytePolicyURL, k10ByteData, net::HTTP_OK, in TEST_F()
444 SetFakeResponse(k20BytePolicyURL, std::string(), in TEST_F()
483 SetFakeResponse(k20BytePolicyURL, k10ByteData, net::HTTP_OK, in TEST_F()
663 SetFakeResponse(k10BytePolicyURL, k20ByteData, net::HTTP_OK, in TEST_F()
[all …]
/external/chromium_org/components/rappor/
Dlog_uploader_unittest.cc75 factory_.SetFakeResponse(GURL(kTestServerURL), in TEST_F()
89 factory_.SetFakeResponse(GURL(kTestServerURL), in TEST_F()
103 factory_.SetFakeResponse(GURL(kTestServerURL), in TEST_F()
124 factory_.SetFakeResponse(GURL(kTestServerURL), in TEST_F()
/external/chromium_org/components/dom_distiller/core/
Ddistiller_url_fetcher_unittest.cc34 factory_->SetFakeResponse( in SetUp()
39 factory_->SetFakeResponse( in SetUp()
/external/chromium_org/chrome/browser/
Dbitmap_fetcher_browsertest.cc112 url_fetcher_factory_->SetFakeResponse( in IN_PROC_BROWSER_TEST_F()
165 url_fetcher_factory_->SetFakeResponse(url, in IN_PROC_BROWSER_TEST_F()
193 url_fetcher_factory_->SetFakeResponse(url, in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/components/invalidation/
Dgcm_network_channel_unittest.cc248 url_fetcher_factory()->SetFakeResponse(GURL("http://test.url.com"), in TEST_F()
302 url_fetcher_factory()->SetFakeResponse(GURL("http://test.url.com"), in TEST_F()
348 url_fetcher_factory()->SetFakeResponse(GURL("http://test.url.com"), in TEST_F()
418 url_fetcher_factory()->SetFakeResponse(GURL("http://test.url.com"), in TEST_F()
436 url_fetcher_factory()->SetFakeResponse(GURL("http://test.url.com"), in TEST_F()
473 url_fetcher_factory()->SetFakeResponse(GURL("http://test.url.com"), in TEST_F()
/external/chromium_org/components/signin/core/browser/
Dmutable_profile_oauth2_token_service_unittest.cc43 factory_.SetFakeResponse(GaiaUrls::GetInstance()->oauth2_revoke_url(), in SetUp()
285 factory_.SetFakeResponse(GaiaUrls::GetInstance()->oauth2_token_url(), in TEST_F()
305 factory_.SetFakeResponse(GaiaUrls::GetInstance()->oauth2_token_url(), in TEST_F()
319 factory_.SetFakeResponse(GaiaUrls::GetInstance()->oauth2_token_url(), in TEST_F()
/external/chromium_org/chrome/browser/search/suggestions/
Dsuggestions_service_unittest.cc177 factory_.SetFakeResponse(GURL(expected_url), in FetchSuggestionsDataNoTimeoutHelper()
263 factory_.SetFakeResponse(GURL(expected_url), "irrelevant", net::HTTP_OK, in TEST_F()
293 factory_.SetFakeResponse(GURL(expected_url), "irrelevant", in TEST_F()
324 factory_.SetFakeResponse(GURL(expected_url), in TEST_F()
/external/chromium_org/chrome/browser/chromeos/login/
Deula_browsertest.cc65 factory.SetFakeResponse(GURL(kEULAURL), kFakeOnlineEULA, in IN_PROC_BROWSER_TEST_F()
86 factory.SetFakeResponse(GURL(kEULAURL), "", net::HTTP_INTERNAL_SERVER_ERROR, in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/sync/test/integration/
Dsync_test.cc545 fake_factory_->SetFakeResponse( in SetupMockGaiaResponses()
550 fake_factory_->SetFakeResponse( in SetupMockGaiaResponses()
555 fake_factory_->SetFakeResponse( in SetupMockGaiaResponses()
560 fake_factory_->SetFakeResponse( in SetupMockGaiaResponses()
565 fake_factory_->SetFakeResponse( in SetupMockGaiaResponses()
575 fake_factory_->SetFakeResponse( in SetupMockGaiaResponses()
582 fake_factory_->SetFakeResponse( in SetupMockGaiaResponses()
587 fake_factory_->SetFakeResponse( in SetupMockGaiaResponses()
598 fake_factory_->SetFakeResponse(GaiaUrls::GetInstance()->oauth2_token_url(), in SetOAuth2TokenResponse()
/external/chromium_org/chrome/browser/chromeos/geolocation/
Dsimple_geolocation_unittest.cc71 factory_->SetFakeResponse(url, response_, response_code, status); in CreateURLFetcher()
84 factory_->SetFakeResponse(url_, in Initialize()
/external/chromium_org/chrome/browser/safe_browsing/
Ddownload_protection_service_unittest.cc404 factory.SetFakeResponse( in TEST_F()
494 factory.SetFakeResponse( in TEST_F()
537 factory.SetFakeResponse( in TEST_F()
579 factory.SetFakeResponse( in TEST_F()
597 factory.SetFakeResponse( in TEST_F()
617 factory.SetFakeResponse( in TEST_F()
642 factory.SetFakeResponse( in TEST_F()
664 factory.SetFakeResponse( in TEST_F()
685 factory.SetFakeResponse( in TEST_F()
735 factory.SetFakeResponse( in TEST_F()
[all …]
Dclient_side_detection_service_unittest.cc112 factory_->SetFakeResponse(GURL(ClientSideDetectionService::kClientModelUrl), in SetModelFetchResponse()
119 factory_->SetFakeResponse( in SetClientReportPhishingResponse()
128 factory_->SetFakeResponse( in SetClientReportMalwareResponse()
/external/chromium_org/chrome/browser/chromeos/timezone/
Dtimezone_unittest.cc109 factory_->SetFakeResponse(url, response_, response_code, status); in CreateURLFetcher()
122 factory_->SetFakeResponse(url_, in Initialize()
/external/chromium_org/chrome/browser/chromeos/
Dcustomization_wallpaper_downloader_browsertest.cc134 factory_->SetFakeResponse(url, response_data, response_code, status); in CreateURLFetcher()
147 factory_->SetFakeResponse(url_, in Initialize()
Dcustomization_document_unittest.cc276 factory_.SetFakeResponse(url, in AddExpectedManifest()
288 factory_.SetFakeResponse(url, in AddManifestNotFound()
/external/chromium_org/chrome/browser/ui/search/
Dinstant_extended_interactive_uitest.cc827 fake_factory()->SetFakeResponse(instant_url().Resolve("#q=flowers"), in IN_PROC_BROWSER_TEST_F()
842 fake_factory()->SetFakeResponse( in IN_PROC_BROWSER_TEST_F()
887 fake_factory()->SetFakeResponse(instant_url().Resolve("#q=flowers"), in IN_PROC_BROWSER_TEST_F()
903 fake_factory()->SetFakeResponse( in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/components/precache/content/
Dprecache_manager_unittest.cc153 factory_.SetFakeResponse(GURL(kConfigURL), "", in SetUp()
/external/chromium_org/net/url_request/
Dtest_url_fetcher_factory.h415 void SetFakeResponse(const GURL& url,
Dtest_url_fetcher_factory.cc417 void FakeURLFetcherFactory::SetFakeResponse( in SetFakeResponse() function in net::FakeURLFetcherFactory

12