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

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

Issue 964563002: Replace SetAuthenticatedUsername with SetAuthenticatedAccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@priv
Patch Set: rebased Created 5 years, 8 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 0b16dcf80cd85df571488b9cf3ea2f5c0025f138..c9416dc9ad2a147b901959ca52510e738d56f1e5 100644
--- a/chrome/browser/signin/signin_global_error_unittest.cc
+++ b/chrome/browser/signin/signin_global_error_unittest.cc
@@ -30,7 +30,7 @@
#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
-static const char kTestAccountId[] = "testuser@test.com";
+static const char kTestAccountId[] = "id-testuser@test.com";
static const char kTestUsername[] = "testuser@test.com";
class SigninGlobalErrorTest : public testing::Test {
@@ -54,12 +54,12 @@ class SigninGlobalErrorTest : public testing::Test {
base::UTF8ToUTF16("Person 1"), 0, std::string(), testing_factories);
SigninManagerFactory::GetForProfile(profile())
- ->SetAuthenticatedUsername(kTestAccountId);
+ ->SetAuthenticatedAccountInfo(kTestAccountId, kTestUsername);
ProfileInfoCache& cache =
profile_manager_.profile_manager()->GetProfileInfoCache();
cache.SetUserNameOfProfileAtIndex(
cache.GetIndexOfProfileWithPath(profile()->GetPath()),
- base::UTF8ToUTF16(kTestAccountId));
+ base::UTF8ToUTF16(kTestUsername));
global_error_ = SigninGlobalErrorFactory::GetForProfile(profile());
error_controller_ = SigninErrorControllerFactory::GetForProfile(profile());

Powered by Google App Engine
This is Rietveld 408576698