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

Unified Diff: chrome/browser/signin/signin_manager_unittest.cc

Issue 1091363002: Change ProfileDownloader to use AccountTrackerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. Created 5 years, 7 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/signin/signin_manager_unittest.cc
diff --git a/chrome/browser/signin/signin_manager_unittest.cc b/chrome/browser/signin/signin_manager_unittest.cc
index 750333eda6facda6a64cdead2ade09a4b8368647..68a4c3b7179883ee78b882c86cf52fbe096e9c56 100644
--- a/chrome/browser/signin/signin_manager_unittest.cc
+++ b/chrome/browser/signin/signin_manager_unittest.cc
@@ -276,8 +276,6 @@ TEST_F(SigninManagerTest, SignInWithRefreshTokenCallsPostSignout) {
AccountTrackerServiceFactory::GetForProfile(profile()));
account_tracker_service->SeedAccountInfo(gaia_id, email);
account_tracker_service->EnableNetworkFetches();
- std::string account_id = account_tracker_service->PickAccountIdForAccount(
- gaia_id, email);
ASSERT_TRUE(signin_client()->get_signed_in_password().empty());
@@ -291,8 +289,13 @@ TEST_F(SigninManagerTest, SignInWithRefreshTokenCallsPostSignout) {
// PostSignedIn is not called until the AccountTrackerService returns.
ASSERT_EQ("", signin_client()->get_signed_in_password());
- account_tracker_service->FakeUserInfoFetchSuccess(
- account_id, email, gaia_id, "google.com");
+ account_tracker_service->FakeUserInfoFetchSuccess(email,
+ gaia_id,
+ "google.com",
+ "full_name",
+ "given_name",
+ "locale",
+ "http://www.google.com");
// AccountTracker and SigninManager are both done and PostSignedIn was called.
ASSERT_EQ("password", signin_client()->get_signed_in_password());
« no previous file with comments | « chrome/browser/signin/fake_account_tracker_service.cc ('k') | components/signin/core/browser/account_tracker_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698