HomeSort by relevance Sort by last modified time
    Searched full:fetcher (Results 1 - 25 of 342) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/chrome/browser/local_discovery/
privet_url_fetcher_unittest.cc 28 virtual void OnError(PrivetURLFetcher* fetcher,
35 virtual void OnParsedJson(PrivetURLFetcher* fetcher,
45 PrivetURLFetcher* fetcher,
94 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
95 ASSERT_TRUE(fetcher != NULL);
96 fetcher->SetResponseString(kSampleParsableJSON);
97 fetcher->set_status(net::URLRequestStatus(net::URLRequestStatus::SUCCESS,
99 fetcher->set_response_code(200);
102 fetcher->delegate()->OnURLFetchComplete(fetcher);
113 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
137 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
161 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
175 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
189 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
210 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
222 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
    [all...]
cloud_print_account_manager_unittest.cc 64 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
68 fetcher->GetExtraRequestHeaders(&headers);
72 fetcher->GetOriginalURL());
74 fetcher->SetResponseString(kSampleResponse);
75 fetcher->set_status(net::URLRequestStatus(net::URLRequestStatus::SUCCESS,
77 fetcher->set_response_code(200);
85 fetcher->delegate()->OnURLFetchComplete(fetcher);
90 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
92 fetcher->SetResponseString(kSampleResponseFailure)
    [all...]
privet_confirm_api_flow_unittest.cc 104 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
106 EXPECT_EQ(GURL("http://SoMeUrL.com"), fetcher->GetOriginalURL());
109 fetcher->GetExtraRequestHeaders(&headers);
117 fetcher->SetResponseString(kSampleConfirmResponse);
118 fetcher->set_status(net::URLRequestStatus(net::URLRequestStatus::SUCCESS,
120 fetcher->set_response_code(200);
124 fetcher->delegate()->OnURLFetchComplete(fetcher);
136 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
139 fetcher->GetOriginalURL())
188 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
216 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
    [all...]
  /external/chromium_org/components/policy/core/common/cloud/
external_policy_data_updater_unittest.cc 128 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
129 ASSERT_TRUE(fetcher);
130 EXPECT_EQ(GURL(kExternalPolicyDataURLs[0]), fetcher->GetOriginalURL());
133 fetcher->set_response_code(200);
134 fetcher->SetResponseString(kExternalPolicyDataPayload);
135 fetcher->delegate()->OnURLFetchComplete(fetcher);
151 fetcher = fetcher_factory_.GetFetcherByID(1);
152 ASSERT_TRUE(fetcher);
153 EXPECT_EQ(GURL(kExternalPolicyDataURLs[1]), fetcher->GetOriginalURL())
171 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
207 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
242 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
276 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(fetcher_id); local
300 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(fetcher_id); local
334 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(fetcher_id); local
391 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
423 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
485 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
516 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
556 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
585 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(1); local
680 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
775 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(1); local
854 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(1); local
935 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
    [all...]
external_policy_data_fetcher_unittest.cc 125 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
126 ASSERT_TRUE(fetcher);
127 EXPECT_EQ(GURL(kExternalPolicyDataURLs[0]), fetcher->GetOriginalURL());
130 fetcher->set_response_code(200);
131 fetcher->SetResponseString(kExternalPolicyDataPayload);
132 fetcher->delegate()->OnURLFetchComplete(fetcher);
151 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
152 ASSERT_TRUE(fetcher);
153 EXPECT_EQ(GURL(kExternalPolicyDataURLs[0]), fetcher->GetOriginalURL())
177 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
203 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
228 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
252 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
276 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
300 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
321 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
348 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(1); local
401 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
454 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(1); local
    [all...]
device_management_service_unittest.cc 156 void SendResponse(net::TestURLFetcher* fetcher,
160 fetcher->set_url(GURL(kServiceUrl));
161 fetcher->set_status(request_status);
162 fetcher->set_response_code(http_status);
163 fetcher->SetResponseString(response);
164 fetcher->delegate()->OnURLFetchComplete(fetcher);
211 net::TestURLFetcher* fetcher = GetFetcher(); local
212 ASSERT_TRUE(fetcher);
214 SendResponse(fetcher, GetParam().request_status_, GetParam().http_status_
223 net::TestURLFetcher* fetcher = GetFetcher(); local
234 net::TestURLFetcher* fetcher = GetFetcher(); local
245 net::TestURLFetcher* fetcher = GetFetcher(); local
256 net::TestURLFetcher* fetcher = GetFetcher(); local
406 net::TestURLFetcher* fetcher = GetFetcher(); local
433 net::TestURLFetcher* fetcher = GetFetcher(); local
458 net::TestURLFetcher* fetcher = GetFetcher(); local
488 net::TestURLFetcher* fetcher = GetFetcher(); local
500 net::TestURLFetcher* fetcher = GetFetcher(); local
511 net::TestURLFetcher* fetcher = GetFetcher(); local
522 net::TestURLFetcher* fetcher = GetFetcher(); local
542 net::TestURLFetcher* fetcher = GetFetcher(); local
562 net::TestURLFetcher* fetcher = GetFetcher(); local
577 net::TestURLFetcher* fetcher = GetFetcher(); local
598 net::TestURLFetcher* fetcher = GetFetcher(); local
623 net::TestURLFetcher* fetcher = GetFetcher(); local
653 net::TestURLFetcher* fetcher = GetFetcher(); local
680 net::TestURLFetcher* fetcher = GetFetcher(); local
693 net::TestURLFetcher* fetcher = GetFetcher(); local
    [all...]
component_cloud_policy_updater_unittest.cc 134 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
135 ASSERT_TRUE(fetcher);
136 EXPECT_EQ(GURL(kTestDownload), fetcher->GetOriginalURL());
139 fetcher->set_response_code(200);
140 fetcher->SetResponseString(kTestPolicy);
141 fetcher->delegate()->OnURLFetchComplete(fetcher);
168 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
169 ASSERT_TRUE(fetcher);
170 EXPECT_EQ(GURL(kTestDownload2), fetcher->GetOriginalURL())
193 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
233 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
258 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
283 net::TestURLFetcher* fetcher = fetcher_factory_.GetFetcherByID(0); local
    [all...]
  /external/chromium_org/content/browser/device_orientation/
data_fetcher_impl_android_unittest.cc 54 FakeDataFetcherImplAndroid fetcher; local
55 fetcher.SetNumberActiveDeviceMotionSensors(3);
57 fetcher.StartFetchingDeviceMotionData(motion_buffer_.get());
60 fetcher.GotAcceleration(0, 0, 1, 2, 3);
69 fetcher.GotAccelerationIncludingGravity(0, 0, 4, 5, 6);
78 fetcher.GotRotationRate(0, 0, 7, 8, 9);
88 fetcher.StopFetchingDeviceMotionData();
94 FakeDataFetcherImplAndroid fetcher; local
95 fetcher.SetNumberActiveDeviceMotionSensors(2);
97 fetcher.StartFetchingDeviceMotionData(motion_buffer_.get())
113 FakeDataFetcherImplAndroid fetcher; local
126 FakeDataFetcherImplAndroid fetcher; local
    [all...]
  /external/chromium/chrome/browser/policy/
device_token_fetcher_unittest.cc 75 DeviceTokenFetcher fetcher(&service_, cache_.get(), &notifier_);
78 fetcher.AddObserver(&observer);
79 EXPECT_EQ("", fetcher.GetDeviceToken());
80 fetcher.FetchToken("fake_auth_token", "fake_device_id",
85 std::string token = fetcher.GetDeviceToken();
92 fetcher.FetchToken("fake_auth_token", "fake_device_id",
97 std::string token2 = fetcher.GetDeviceToken();
100 fetcher.RemoveObserver(&observer);
109 DeviceTokenFetcher fetcher(&service_, cache_.get(), &notifier_, 0, 0, 0);
112 fetcher.AddObserver(&observer)
    [all...]
device_management_service_unittest.cc 109 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
110 ASSERT_TRUE(fetcher);
112 fetcher->delegate()->OnURLFetchComplete(fetcher,
125 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
126 ASSERT_TRUE(fetcher);
128 fetcher->delegate()->OnURLFetchComplete(fetcher,
145 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
146 ASSERT_TRUE(fetcher);
295 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
329 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
370 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
382 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
399 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
417 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
450 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
467 TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
    [all...]
  /external/chromium_org/chrome/common/extensions/docs/server2/
subversion_file_system_test.py 22 fetcher = FakeUrlFetcher(path)
23 return SubversionFileSystem(fetcher, fetcher, path), fetcher
32 file_system, fetcher = _CreateSubversionFileSystem(
35 self.assertTrue(*fetcher.CheckAndReset(async_count=3))
37 self.assertTrue(*fetcher.CheckAndReset(async_resolve_count=3))
41 file_system, fetcher = _CreateSubversionFileSystem(
44 self.assertTrue(*fetcher.CheckAndReset(async_count=1))
46 self.assertTrue(*fetcher.CheckAndReset(async_resolve_count=1)
    [all...]
  /external/chromium_org/google_apis/gaia/
oauth2_token_service_unittest.cc 120 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
121 ASSERT_TRUE(fetcher);
122 fetcher->set_response_code(net::HTTP_UNAUTHORIZED);
123 fetcher->SetResponseString(std::string());
124 fetcher->delegate()->OnURLFetchComplete(fetcher);
127 EXPECT_EQ(fetcher, factory_.GetFetcherByID(0));
140 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
141 ASSERT_TRUE(fetcher);
142 fetcher->set_response_code(net::HTTP_OK)
169 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
216 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
255 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
293 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
311 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
340 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
355 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
440 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
468 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
    [all...]
oauth2_token_service.cc 83 // To use this class, call CreateAndStart() to create and start a Fetcher.
85 // The Fetcher will call back the service by calling
87 // not destructed before it completes fetching; if the Fetcher is destructed
89 // Fetcher destructs itself after calling back the service when finishes
92 // Requests that are waiting for the fetching results of this Fetcher can be
93 // added to the Fetcher by calling
94 // OAuth2TokenService::Fetcher::AddWaitingRequest() before the Fetcher
100 // - when the Fetcher completes fetching, if the Fetcher is not destructe
197 OAuth2TokenService::Fetcher* fetcher = new Fetcher( local
    [all...]
  /external/chromium/chrome/browser/chromeos/login/
client_login_response_handler.cc 35 URLFetcher* fetcher = local
39 fetcher->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES);
40 fetcher->set_upload_data("application/x-www-form-urlencoded", payload_);
43 fetcher->set_request_context(getter_);
44 fetcher->Start();
46 return fetcher;
issue_response_handler.cc 29 URLFetcher* fetcher = local
31 fetcher->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES);
34 fetcher->set_request_context(getter_);
35 fetcher->Start();
37 return fetcher;
  /external/chromium_org/content/browser/geolocation/
network_location_provider_unittest.cc 146 // Returns the current url fetcher (if any) and advances the id ready for the
149 net::TestURLFetcher* fetcher = url_fetcher_factory_.GetFetcherByID( local
151 if (fetcher)
153 return fetcher;
339 net::TestURLFetcher* fetcher = get_url_fetcher_and_advance_id(); local
340 ASSERT_TRUE(fetcher != NULL);
341 CheckRequestIsValid(*fetcher, 0, 0, 0, std::string());
348 net::TestURLFetcher* fetcher = get_url_fetcher_and_advance_id(); local
349 ASSERT_TRUE(fetcher != NULL);
350 CheckRequestIsValid(*fetcher, 0, 0, 0, std::string())
359 net::TestURLFetcher* fetcher = get_url_fetcher_and_advance_id(); local
372 net::TestURLFetcher* fetcher = get_url_fetcher_and_advance_id(); local
494 net::TestURLFetcher* fetcher = get_url_fetcher_and_advance_id(); local
507 net::TestURLFetcher* fetcher = get_url_fetcher_and_advance_id(); local
523 net::TestURLFetcher* fetcher = get_url_fetcher_and_advance_id(); local
    [all...]
  /external/chromium_org/net/test/embedded_test_server/
embedded_test_server_unittest.cc 23 std::string GetContentFromFetcher(const URLFetcher& fetcher) {
25 const bool success = fetcher.GetResponseAsString(&result);
31 std::string GetContentTypeFromFetcher(const URLFetcher& fetcher) {
32 const HttpResponseHeaders* headers = fetcher.GetResponseHeaders();
133 scoped_ptr<URLFetcher> fetcher(
137 fetcher->SetRequestContext(request_context_getter_.get());
138 fetcher->Start();
141 EXPECT_EQ(URLRequestStatus::SUCCESS, fetcher->GetStatus().status());
142 EXPECT_EQ(HTTP_OK, fetcher->GetResponseCode());
143 EXPECT_EQ("<b>Worked!</b>", GetContentFromFetcher(*fetcher));
    [all...]
  /external/chromium/chrome/browser/autofill/
autofill_download_unittest.cc 239 TestURLFetcher* fetcher = factory.GetFetcherByID(1); local
240 ASSERT_TRUE(fetcher);
241 fetcher->delegate()->OnURLFetchComplete(fetcher, GURL(),
249 fetcher = factory.GetFetcherByID(2);
250 ASSERT_TRUE(fetcher);
251 fetcher->delegate()->OnURLFetchComplete(fetcher, GURL(),
255 fetcher = factory.GetFetcherByID(0);
256 ASSERT_TRUE(fetcher);
448 TestURLFetcher* fetcher = factory.GetFetcherByID(0); local
    [all...]
  /external/chromium_org/components/autofill/core/browser/
autofill_download_unittest.cc 41 // Call |fetcher->OnURLFetchComplete()| as the URLFetcher would when
43 void FakeOnURLFetchComplete(net::TestURLFetcher* fetcher,
46 fetcher->set_url(GURL());
47 fetcher->set_status(net::URLRequestStatus());
48 fetcher->set_response_code(response_code);
49 fetcher->SetResponseString(response_body);
51 fetcher->delegate()->OnURLFetchComplete(fetcher);
232 net::TestURLFetcher* fetcher = factory.GetFetcherByID(1); local
233 ASSERT_TRUE(fetcher);
414 net::TestURLFetcher* fetcher = factory.GetFetcherByID(0); local
    [all...]
  /external/chromium_org/chrome/browser/captive_portal/
testing_utils.cc 52 fetcher()->set_status(net::URLRequestStatus(net::URLRequestStatus::FAILED,
55 fetcher()->set_response_code(status_code);
60 fetcher()->set_response_headers(headers);
63 detector()->OnURLFetchComplete(fetcher());
  /external/chromium_org/net/proxy/
dhcp_proxy_script_fetcher_factory_unittest.cc 16 scoped_ptr<DhcpProxyScriptFetcher> fetcher(factory.Create(NULL));
17 EXPECT_EQ("", fetcher->GetFetcherName());
26 scoped_ptr<DhcpProxyScriptFetcher> fetcher(factory.Create(context.get()));
27 EXPECT_EQ("win", fetcher->GetFetcherName());
  /external/chromium_org/chrome/browser/chromeos/attestation/
attestation_ca_client.cc 70 DCHECK(result) << "Invalid fetcher setting.";
80 net::URLFetcher* fetcher = net::URLFetcher::Create(0, local
84 fetcher->SetRequestContext(g_browser_process->system_request_context());
85 fetcher->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
88 fetcher->SetUploadData(kMimeContentType, request);
89 pending_requests_[fetcher] = on_response;
90 fetcher->Start();
  /external/chromium_org/components/autofill/content/browser/wallet/
wallet_signin_helper_unittest.cc 66 net::TestURLFetcher* fetcher = factory_.GetFetcherByID(0); local
67 ASSERT_TRUE(fetcher);
68 ASSERT_TRUE(fetcher->delegate());
70 fetcher->set_url(GURL(url));
71 fetcher->set_status(net::URLRequestStatus());
72 fetcher->set_response_code(response_code);
73 fetcher->SetResponseString(response_string);
74 fetcher->set_cookies(cookies);
75 fetcher->delegate()->OnURLFetchComplete(fetcher);
    [all...]
  /external/chromium_org/content/browser/speech/
google_one_shot_remote_engine_unittest.cc 24 // Creates a speech recognition request and invokes its URL fetcher delegate
64 net::TestURLFetcher* fetcher = url_fetcher_factory_.GetFetcherByID(0); local
65 ASSERT_TRUE(fetcher);
67 fetcher->set_url(fetcher->GetOriginalURL());
71 fetcher->set_status(status);
72 fetcher->set_response_code(success ? 200 : 500);
73 fetcher->SetResponseString(http_response);
75 fetcher->delegate()->OnURLFetchComplete(fetcher);
    [all...]
  /external/chromium_org/chrome/browser/chromeos/login/
login_utils_browsertest.cc 398 net::TestURLFetcher* fetcher = test_url_fetcher_factory_.GetFetcherByID(0); local
399 EXPECT_TRUE(fetcher);
400 if (!fetcher)
402 EXPECT_TRUE(fetcher->delegate());
403 EXPECT_TRUE(StartsWithASCII(fetcher->GetOriginalURL().spec(),
406 fetcher->set_url(fetcher->GetOriginalURL());
407 fetcher->set_response_code(200);
408 fetcher->set_status(net::URLRequestStatus());
409 return fetcher;
415 net::TestURLFetcher* fetcher = test_url_fetcher_factory_.GetFetcherByID( local
590 net::TestURLFetcher* fetcher; local
652 net::TestURLFetcher* fetcher = test_url_fetcher_factory_.GetFetcherByID( local
    [all...]

Completed in 378 milliseconds

1 2 3 4 5 6 7 8 91011>>