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

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

Issue 1117453002: Add gaia_id to ProfileInfoCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments 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_global_error_unittest.cc
diff --git a/chrome/browser/signin/signin_global_error_unittest.cc b/chrome/browser/signin/signin_global_error_unittest.cc
index 692d49c8dd1aa5d731b1888de0e90fd7c3652b1b..025f540a3a4a8d2b386c6f5081c61ae3eff199a1 100644
--- a/chrome/browser/signin/signin_global_error_unittest.cc
+++ b/chrome/browser/signin/signin_global_error_unittest.cc
@@ -31,6 +31,7 @@
#include "testing/gtest/include/gtest/gtest.h"
static const char kTestAccountId[] = "id-testuser@test.com";
+static const char kTestGaiaId[] = "gaiaid-testuser@test.com";
static const char kTestUsername[] = "testuser@test.com";
class SigninGlobalErrorTest : public testing::Test {
@@ -57,9 +58,9 @@ class SigninGlobalErrorTest : public testing::Test {
->SetAuthenticatedAccountInfo(kTestAccountId, kTestUsername);
ProfileInfoCache& cache =
profile_manager_.profile_manager()->GetProfileInfoCache();
- cache.SetUserNameOfProfileAtIndex(
+ cache.SetAuthInfoOfProfileAtIndex(
cache.GetIndexOfProfileWithPath(profile()->GetPath()),
- base::UTF8ToUTF16(kTestUsername));
+ kTestGaiaId, base::UTF8ToUTF16(kTestUsername));
global_error_ = SigninGlobalErrorFactory::GetForProfile(profile());
error_controller_ = SigninErrorControllerFactory::GetForProfile(profile());
« no previous file with comments | « chrome/browser/signin/chrome_signin_client.cc ('k') | chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698