Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2691)

Unified Diff: chrome/browser/sync/test/integration/sync_test.cc

Issue 23625015: Consolidate TestURLFetcherFactory::SetFakeResponse (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Could have spelled it Cloud... Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/sync_test.cc
diff --git a/chrome/browser/sync/test/integration/sync_test.cc b/chrome/browser/sync/test/integration/sync_test.cc
index c1d8debd0388b7f08a98642f64fe81b4c994cd62..212ea592cf9b9629e4362a8e26f9f49df4c17d0d 100644
--- a/chrome/browser/sync/test/integration/sync_test.cc
+++ b/chrome/browser/sync/test/integration/sync_test.cc
@@ -426,27 +426,27 @@ void SyncTest::SetupMockGaiaResponses() {
password_ = "password";
factory_.reset(new net::URLFetcherImplFactory());
fake_factory_.reset(new net::FakeURLFetcherFactory(factory_.get()));
- fake_factory_->SetFakeResponseForURL(
+ fake_factory_->SetFakeResponse(
GaiaUrls::GetInstance()->client_login_url(),
"SID=sid\nLSID=lsid",
true);
- fake_factory_->SetFakeResponseForURL(
+ fake_factory_->SetFakeResponse(
GaiaUrls::GetInstance()->get_user_info_url(),
"email=user@gmail.com\ndisplayEmail=user@gmail.com",
true);
- fake_factory_->SetFakeResponseForURL(
+ fake_factory_->SetFakeResponse(
GaiaUrls::GetInstance()->issue_auth_token_url(),
"auth",
true);
fake_factory_->SetFakeResponse(
- GoogleURLTracker::kSearchDomainCheckURL,
+ GURL(GoogleURLTracker::kSearchDomainCheckURL),
".google.com",
true);
- fake_factory_->SetFakeResponseForURL(
+ fake_factory_->SetFakeResponse(
GaiaUrls::GetInstance()->client_login_to_oauth2_url(),
"some_response",
true);
- fake_factory_->SetFakeResponseForURL(
+ fake_factory_->SetFakeResponse(
GaiaUrls::GetInstance()->oauth2_token_url(),
"{"
" \"refresh_token\": \"rt1\","
@@ -455,7 +455,7 @@ void SyncTest::SetupMockGaiaResponses() {
" \"token_type\": \"Bearer\""
"}",
true);
- fake_factory_->SetFakeResponseForURL(
+ fake_factory_->SetFakeResponse(
GaiaUrls::GetInstance()->oauth1_login_url(),
"SID=sid\nLSID=lsid\nAuth=auth_token",
true);

Powered by Google App Engine
This is Rietveld 408576698