Home
last modified time | relevance | path

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

123

/external/chromium_org/google_apis/gaia/
Doauth2_token_service_unittest.cc139 fetcher->SetResponseString(std::string()); in TEST_F()
159 fetcher->SetResponseString(GetValidTokenResponse("token", 3600)); in TEST_F()
188 fetcher->SetResponseString(GetValidTokenResponse("token", 3600)); in TEST_F()
214 fetcher->SetResponseString(GetValidTokenResponse("token2", 3600)); in TEST_F()
235 fetcher->SetResponseString(GetValidTokenResponse("token", 0)); in TEST_F()
254 fetcher->SetResponseString(std::string()); in TEST_F()
274 fetcher->SetResponseString(GetValidTokenResponse("token", 0)); in TEST_F()
292 fetcher->SetResponseString(GetValidTokenResponse("another token", 0)); in TEST_F()
315 fetcher->SetResponseString(GetValidTokenResponse("token", 3600)); in TEST_F()
330 fetcher->SetResponseString(GetValidTokenResponse("token", 3600)); in TEST_F()
[all …]
Doauth2_access_token_fetcher_impl_unittest.cc108 url_fetcher->SetResponseString(body); in SetupGetAccessToken()
213 url_fetcher.SetResponseString("foo"); in TEST_F()
224 url_fetcher.SetResponseString(kTokenResponseNoAccessToken); in TEST_F()
235 url_fetcher.SetResponseString(kValidTokenResponse); in TEST_F()
247 url_fetcher.SetResponseString(kTokenResponseNoAccessToken); in TEST_F()
257 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.cc429 url_fetcher->SetResponseString(std::string()); in TEST_F()
463 url_fetcher->SetResponseString("THIS_IS_A_BAD_RESPONSE"); in TEST_F()
475 backup_url_fetcher->SetResponseString(std::string()); in TEST_F()
511 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()
570 backup_url_fetcher->SetResponseString(std::string()); in TEST_F()
606 url_fetcher->SetResponseString(std::string()); in TEST_F()
668 backup_url_fetcher->SetResponseString(std::string()); in TEST_F()
716 backup_url_fetcher->SetResponseString(std::string()); in TEST_F()
[all …]
Dincident_report_uploader_impl_unittest.cc61 fetcher->SetResponseString(response); in TEST_F()
/external/chromium_org/chrome/browser/local_discovery/
Dprivet_url_fetcher_unittest.cc129 fetcher->SetResponseString(kSampleParsableJSON); in TEST_F()
148 fetcher->SetResponseString(kSampleParsableJSON); in TEST_F()
159 fetcher->SetResponseString(kSampleParsableJSON); in TEST_F()
172 fetcher->SetResponseString(kSampleParsableJSON); in TEST_F()
186 fetcher->SetResponseString(kSampleUnparsableJSON); in TEST_F()
246 fetcher->SetResponseString(kSampleJSONWithError); in TEST_F()
260 fetcher->SetResponseString(kSampleJSONWithError); in TEST_F()
Dgcd_api_flow_unittest.cc94 fetcher->SetResponseString(kSampleConfirmResponse); in TEST_F()
117 fetcher->SetResponseString(kFailedConfirmResponseBadJson); in TEST_F()
Dprivet_local_printer_lister_unittest.cc129 fetcher->SetResponseString(response); in SuccessfulResponseToURL()
/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/signin/
Daccount_service_flag_fetcher_unittest.cc72 fetcher->SetResponseString(std::string("SID=sid\nLSID=lsid\nAuth=auth\n")); in SendValidLoginResponse()
81 fetcher->SetResponseString(std::string()); in SendFailedLoginResponse()
90 fetcher->SetResponseString(BuildGetUserInfoResponse()); in SendValidGetUserInfoResponse()
99 fetcher->SetResponseString(std::string("allServicesIsMissing=true")); in SendInvalidGetUserInfoResponse()
108 fetcher->SetResponseString(std::string()); in SendFailedGetUserInfoResponse()
/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/autocomplete/
Dzero_suggest_provider_unittest.cc130 fetcher->SetResponseString(json_response); in TEST_F()
170 fetcher->SetResponseString(json_response2); in TEST_F()
215 fetcher->SetResponseString(empty_response); in TEST_F()
Dsearch_provider_unittest.cc439 fetcher->SetResponseString(json); in ForcedQueryTestHelper()
1074 fetcher->SetResponseString( in TEST_F()
1102 fetcher->SetResponseString("[\"a\",[\"a1\", \"a2\", \"a3\", \"a4\"]]"); in TEST_F()
1161 default_fetcher->SetResponseString(cases[i].default_provider_json); in TEST_F()
1168 keyword_fetcher->SetResponseString(cases[i].keyword_provider_json); in TEST_F()
1419 fetcher->SetResponseString(cases[i].json); in TEST_F()
1886 keyword_fetcher->SetResponseString(cases[i].json); in TEST_F()
1986 fetcher->SetResponseString(cases[i].json); in TEST_F()
2103 fetcher->SetResponseString(cases[i].json); in TEST_F()
2139 fetcher->SetResponseString( in TEST_F()
[all …]
/external/chromium_org/components/domain_reliability/
Duploader_unittest.cc80 fetcher->SetResponseString(""); in TEST_F()
103 fetcher->SetResponseString(""); in TEST_F()
/external/chromium_org/chrome/browser/chromeos/login/auth/
Dmock_url_fetchers.cc118 SetResponseString(base::StringPrintf("Error=%s\n" in CaptchaFetcher()
167 SetResponseString("Error=BadAuthentication"); in Start()
/external/chromium_org/chrome/browser/chromeos/login/
Dlogin_utils_browsertest.cc455 fetcher->SetResponseString(data); in PrepareDMServiceFetcher()
644 fetcher->SetResponseString(kOAuth2TokenPairData); in TEST_P()
651 fetcher->SetResponseString(kOAuth2AccessTokenData); in TEST_P()
690 fetcher->SetResponseString(kGaiaAccountDisabledResponse); in TEST_P()
/external/chromium_org/chrome/browser/extensions/
Dtest_blacklist_state_fetcher.cc75 url_fetcher->SetResponseString(response_str); in HandleFetcher()
/external/chromium_org/content/browser/speech/
Dspeech_recognizer_impl_unittest.cc267 fetcher->SetResponseString( in TEST_F()
324 fetcher->SetResponseString(std::string()); in TEST_F()
360 fetcher->SetResponseString("Internal Server Error"); in TEST_F()
Dgoogle_one_shot_remote_engine_unittest.cc73 fetcher->SetResponseString(http_response); in CreateAndTestRequest()
/external/chromium_org/chrome/browser/chromeos/policy/
Duser_cloud_policy_manager_chromeos_unittest.cc244 fetcher->SetResponseString(kOAuth2TokenPairData); in IssueOAuthToken()
251 fetcher->SetResponseString(kOAuth2AccessTokenData); in IssueOAuthToken()
427 fetcher->SetResponseString("Error=BadAuthentication"); in TEST_F()
/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/net/url_request/
Dtest_url_fetcher_factory.cc277 void TestURLFetcher::SetResponseString(const std::string& response) { in SetResponseString() function in net::TestURLFetcher
348 SetResponseString(response_data); in FakeURLFetcher()

123