Home
last modified time | relevance | path

Searched refs:SetResponseString (Results 1 – 25 of 54) sorted by relevance

123

/external/chromium_org/chrome/browser/local_discovery/
Dprivet_url_fetcher_unittest.cc96 fetcher->SetResponseString(kSampleParsableJSON); in TEST_F()
115 fetcher->SetResponseString(kSampleParsableJSON); in TEST_F()
126 fetcher->SetResponseString(kSampleParsableJSON); in TEST_F()
139 fetcher->SetResponseString(kSampleParsableJSON); in TEST_F()
150 fetcher->SetResponseString(kSampleParsableJSON); in TEST_F()
163 fetcher->SetResponseString(kSampleParsableJSON); in TEST_F()
177 fetcher->SetResponseString(kSampleUnparsableJSON); in TEST_F()
224 fetcher->SetResponseString(kSampleJSONWithError); in TEST_F()
Dprivet_confirm_api_flow_unittest.cc117 fetcher->SetResponseString(kSampleConfirmResponse); in TEST_F()
147 fetcher->SetResponseString(kSampleConfirmResponse); in TEST_F()
192 fetcher->SetResponseString(kFailedConfirmResponse); in TEST_F()
220 fetcher->SetResponseString(kFailedConfirmResponseBadJson); in TEST_F()
Dcloud_print_account_manager_unittest.cc74 fetcher->SetResponseString(kSampleResponse); in TEST_F()
92 fetcher->SetResponseString(kSampleResponseFailure); in TEST_F()
Dprivet_http_unittest.cc224 fetcher->SetResponseString(response); in SuccessfulResponseToURL()
441 fetcher->SetResponseString(kSampleInfoResponse); in TEST_F()
460 fetcher->SetResponseString(kSampleInfoResponse); in TEST_F()
517 fetcher->SetResponseString(response); in SuccessfulResponseToURL()
Dprivet_local_printer_lister_unittest.cc154 fetcher->SetResponseString(response); in SuccessfulResponseToURL()
/external/chromium_org/google_apis/gaia/
Doauth2_token_service_unittest.cc123 fetcher->SetResponseString(std::string()); in TEST_F()
143 fetcher->SetResponseString(GetValidTokenResponse("token", 3600)); in TEST_F()
172 fetcher->SetResponseString(GetValidTokenResponse("token", 3600)); in TEST_F()
198 fetcher->SetResponseString(GetValidTokenResponse("token2", 3600)); in TEST_F()
219 fetcher->SetResponseString(GetValidTokenResponse("token", 0)); in TEST_F()
238 fetcher->SetResponseString(std::string()); in TEST_F()
258 fetcher->SetResponseString(GetValidTokenResponse("token", 0)); in TEST_F()
276 fetcher->SetResponseString(GetValidTokenResponse("another token", 0)); in TEST_F()
299 fetcher->SetResponseString(GetValidTokenResponse("token", 3600)); in TEST_F()
314 fetcher->SetResponseString(GetValidTokenResponse("token", 3600)); in TEST_F()
[all …]
Doauth2_access_token_fetcher_unittest.cc109 url_fetcher->SetResponseString(body); in SetupGetAccessToken()
209 url_fetcher.SetResponseString("foo"); in TEST_F()
219 url_fetcher.SetResponseString(kTokenResponseNoAccessToken); in TEST_F()
229 url_fetcher.SetResponseString(kValidTokenResponse); in TEST_F()
240 url_fetcher.SetResponseString(kTokenResponseNoAccessToken); in TEST_F()
249 url_fetcher.SetResponseString(kValidFailureTokenResponse); in TEST_F()
Doauth2_mint_token_flow_unittest.cc282 url_fetcher.SetResponseString(std::string()); in TEST_F()
289 url_fetcher.SetResponseString("foo"); in TEST_F()
296 url_fetcher.SetResponseString(kTokenResponseNoAccessToken); in TEST_F()
303 url_fetcher.SetResponseString(kValidTokenResponse); in TEST_F()
310 url_fetcher.SetResponseString(kIssueAdviceResponseNoDescription); in TEST_F()
317 url_fetcher.SetResponseString(kIssueAdviceResponseNoDetail); in TEST_F()
324 url_fetcher.SetResponseString(kValidIssueAdviceResponse); in TEST_F()
/external/chromium_org/chrome/browser/safe_browsing/
Dprotocol_manager_unittest.cc381 url_fetcher->SetResponseString(std::string()); in TEST_F()
415 url_fetcher->SetResponseString("THIS_IS_A_BAD_RESPONSE"); in TEST_F()
427 backup_url_fetcher->SetResponseString(std::string()); in TEST_F()
463 url_fetcher->SetResponseString(std::string()); in TEST_F()
474 backup_url_fetcher->SetResponseString(std::string()); in TEST_F()
510 url_fetcher->SetResponseString(std::string()); in TEST_F()
522 backup_url_fetcher->SetResponseString(std::string()); in TEST_F()
558 url_fetcher->SetResponseString(std::string()); in TEST_F()
620 backup_url_fetcher->SetResponseString(std::string()); in TEST_F()
668 backup_url_fetcher->SetResponseString(std::string()); in TEST_F()
[all …]
/external/chromium_org/components/policy/core/common/cloud/
Dexternal_policy_data_updater_unittest.cc134 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
398 fetcher->SetResponseString("Invalid external policy data"); in TEST_F()
429 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
460 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
596 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
624 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
647 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
691 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
719 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
742 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
[all …]
Dexternal_policy_data_fetcher_unittest.cc131 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
327 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
359 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
380 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
412 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
433 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
481 fetcher->SetResponseString(kExternalPolicyDataPayload); in TEST_F()
Duser_info_fetcher_unittest.cc75 url_fetcher->SetResponseString(kUserInfoResponse); in TEST_F()
Dcomponent_cloud_policy_updater_unittest.cc140 fetcher->SetResponseString(kTestPolicy); in TEST_F()
289 fetcher->SetResponseString(kTestPolicy); in TEST_F()
/external/chromium_org/chrome/browser/extensions/api/push_messaging/
Dobfuscated_gaia_id_fetcher_unittest.cc83 url_fetcher.SetResponseString(kGoodData); in TEST()
97 url_fetcher.SetResponseString(kDictionaryMissingIdData); in TEST()
/external/chromium_org/chrome/browser/net/gaia/
Dgaia_oauth_fetcher_unittest.cc162 test_fetcher.SetResponseString(data); in TEST_F()
197 test_fetcher.SetResponseString(data); in TEST_F()
227 test_fetcher.SetResponseString(data); in TEST_F()
/external/chromium_org/chrome/browser/chromeos/login/
Dmock_url_fetchers.cc118 SetResponseString(base::StringPrintf("Error=%s\n" in CaptchaFetcher()
167 SetResponseString("Error=BadAuthentication"); in Start()
Dlogin_utils_browsertest.cc429 fetcher->SetResponseString(data); in PrepareDMServiceFetcher()
615 fetcher->SetResponseString(kOAuth2TokenPairData); in TEST_P()
622 fetcher->SetResponseString(kOAuth2AccessTokenData); in TEST_P()
661 fetcher->SetResponseString(kGaiaAccountDisabledResponse); in TEST_P()
/external/chromium_org/net/quic/
Dquic_http_stream_test.cc238 void SetResponseString(const std::string& status, const std::string& body) { in SetResponseString() function in net::test::QuicHttpStreamTest
397 SetResponseString("404 Not Found", std::string()); in TEST_F()
486 SetResponseString("200 OK", "hello world!"); in TEST_F()
536 SetResponseString("200 OK", std::string()); in TEST_F()
598 SetResponseString("200 OK", std::string()); in TEST_F()
648 SetResponseString("404 OK", "hello world!"); in TEST_F()
693 SetResponseString("404 OK", "hello world!"); in TEST_F()
/external/chromium_org/chrome/browser/autocomplete/
Dsearch_provider_unittest.cc427 fetcher->SetResponseString(json); in ForcedQueryTestHelper()
1041 fetcher->SetResponseString( in TEST_F()
1069 fetcher->SetResponseString("[\"a\",[\"a1\", \"a2\", \"a3\", \"a4\"]]"); in TEST_F()
1128 default_fetcher->SetResponseString(cases[i].default_provider_json); in TEST_F()
1135 keyword_fetcher->SetResponseString(cases[i].keyword_provider_json); in TEST_F()
1400 fetcher->SetResponseString(cases[i].json); in TEST_F()
1659 fetcher->SetResponseString(cases[i].json); in TEST_F()
2142 keyword_fetcher->SetResponseString(cases[i].json); in TEST_F()
2608 keyword_fetcher->SetResponseString(cases[i].json); in TEST_F()
2708 fetcher->SetResponseString(cases[i].json); in TEST_F()
[all …]
/external/chromium_org/net/url_request/
Dtest_url_fetcher_factory.cc237 void TestURLFetcher::SetResponseString(const std::string& response) { in SetResponseString() function in net::TestURLFetcher
308 SetResponseString(response_data); in FakeURLFetcher()
/external/chromium_org/content/browser/speech/
Dspeech_recognizer_impl_unittest.cc251 fetcher->SetResponseString( in TEST_F()
310 fetcher->SetResponseString(std::string()); in TEST_F()
347 fetcher->SetResponseString("Internal Server Error"); in TEST_F()
Dgoogle_one_shot_remote_engine_unittest.cc73 fetcher->SetResponseString(http_response); in CreateAndTestRequest()
/external/chromium_org/content/browser/geolocation/
Dnetwork_location_provider_unittest.cc384 fetcher->SetResponseString(kNoFixNetworkResponse); in TEST_F()
413 fetcher->SetResponseString(kReferenceNetworkResponse); in TEST_F()
452 fetcher->SetResponseString(std::string()); in TEST_F()
/external/chromium_org/chrome/browser/chromeos/policy/
Duser_cloud_policy_manager_chromeos_unittest.cc234 fetcher->SetResponseString(kOAuth2TokenPairData); in IssueOAuthToken()
241 fetcher->SetResponseString(kOAuth2AccessTokenData); in IssueOAuthToken()
418 fetcher->SetResponseString("Error=BadAuthentication"); in TEST_F()
/external/chromium_org/chrome/browser/chromeos/attestation/
Dattestation_ca_client_unittest.cc48 fetcher->SetResponseString(fetcher->upload_data() + "_response"); in SendResponse()

123