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

Unified Diff: chrome/browser/chromeos/input_method/input_method_persistence_unittest.cc

Issue 1412813003: This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Fix Win GN build. Created 5 years, 1 month 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/chromeos/input_method/input_method_persistence_unittest.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_persistence_unittest.cc b/chrome/browser/chromeos/input_method/input_method_persistence_unittest.cc
index 4811cac5af0c6afce47acc212fcbf23c5620b5c2..ad88581fd5644290ce40247ddcd8481ffb3edcc2 100644
--- a/chrome/browser/chromeos/input_method/input_method_persistence_unittest.cc
+++ b/chrome/browser/chromeos/input_method/input_method_persistence_unittest.cc
@@ -43,13 +43,14 @@ class InputMethodPersistenceTest : public testing::Test {
ASSERT_TRUE(mock_profile_manager_.SetUp());
// Add a user.
- const char kTestUserName[] = "test-user@example.com";
- fake_user_manager_->AddUser(kTestUserName);
- fake_user_manager_->LoginUser(kTestUserName);
+ const AccountId test_account_id(
+ AccountId::FromUserEmail("test-user@example.com"));
+ fake_user_manager_->AddUser(test_account_id);
+ fake_user_manager_->LoginUser(test_account_id);
// Create a valid profile for the user.
- TestingProfile* mock_profile =
- mock_profile_manager_.CreateTestingProfile(kTestUserName);
+ TestingProfile* mock_profile = mock_profile_manager_.CreateTestingProfile(
+ test_account_id.GetUserEmail());
mock_profile_manager_.SetLoggedIn(true);
EXPECT_TRUE(ProfileManager::GetActiveUserProfile() == mock_profile);

Powered by Google App Engine
This is Rietveld 408576698