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

Unified Diff: chrome/browser/chromeos/net/network_portal_detector_impl_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/net/network_portal_detector_impl_unittest.cc
diff --git a/chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc b/chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc
index 75b5b9ad0d85e36ae64f0638658e50b2372ee19a..e3760aa0b370932e4771b2a397e500805fccd81f 100644
--- a/chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc
+++ b/chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc
@@ -89,12 +89,14 @@ class NetworkPortalDetectorImplTest
ASSERT_TRUE(test_profile_manager_.SetUp());
// Add a user.
- const char kTestUserName[] = "test-user@example.com";
- user_manager->AddUser(kTestUserName);
- user_manager->LoginUser(kTestUserName);
+ const AccountId test_account_id(
+ AccountId::FromUserEmail("test-user@example.com"));
+ user_manager->AddUser(test_account_id);
+ user_manager->LoginUser(test_account_id);
// Create a profile for the user.
- profile_ = test_profile_manager_.CreateTestingProfile(kTestUserName);
+ profile_ = test_profile_manager_.CreateTestingProfile(
+ test_account_id.GetUserEmail());
test_profile_manager_.SetLoggedIn(true);
EXPECT_TRUE(user_manager::UserManager::Get()->GetPrimaryUser());

Powered by Google App Engine
This is Rietveld 408576698