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

Unified Diff: chrome/browser/chromeos/login/existing_user_controller_auto_login_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: Rebased. Created 5 years, 2 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/chromeos/login/existing_user_controller_auto_login_unittest.cc
diff --git a/chrome/browser/chromeos/login/existing_user_controller_auto_login_unittest.cc b/chrome/browser/chromeos/login/existing_user_controller_auto_login_unittest.cc
index 072545379a9634bac165eae320472c3aae6f0f83..e9f58122232e738da8fae56143ef2705d2e27236 100644
--- a/chrome/browser/chromeos/login/existing_user_controller_auto_login_unittest.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller_auto_login_unittest.cc
@@ -61,9 +61,10 @@ class ExistingUserControllerAutoLoginTest : public ::testing::Test {
EXPECT_CALL(*mock_user_manager_, Shutdown()).Times(AnyNumber());
EXPECT_CALL(*mock_user_manager_, FindUser(_))
.WillRepeatedly(ReturnNull());
- EXPECT_CALL(*mock_user_manager_, FindUser(auto_login_user_id_))
- .WillRepeatedly(Return(
- mock_user_manager_->CreatePublicAccountUser(auto_login_user_id_)));
+ EXPECT_CALL(*mock_user_manager_,
+ FindUser(AccountId::FromUserEmail(auto_login_user_id_)))
+ .WillRepeatedly(Return(mock_user_manager_->CreatePublicAccountUser(
+ AccountId::FromUserEmail(auto_login_user_id_))));
existing_user_controller_.reset(
new ExistingUserController(mock_login_display_host_.get()));

Powered by Google App Engine
This is Rietveld 408576698