| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
| 7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "chrome/browser/chromeos/login/login_manager_test.h" | 8 #include "chrome/browser/chromeos/login/login_manager_test.h" |
| 9 #include "chrome/browser/chromeos/login/startup_utils.h" | 9 #include "chrome/browser/chromeos/login/startup_utils.h" |
| 10 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h" | 10 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 RegisterUser(kTestUsers[1]); | 129 RegisterUser(kTestUsers[1]); |
| 130 StartupUtils::MarkOobeCompleted(); | 130 StartupUtils::MarkOobeCompleted(); |
| 131 } | 131 } |
| 132 | 132 |
| 133 IN_PROC_BROWSER_TEST_F(AccountsOptionsTest, MultiProfilesAccountsOptions) { | 133 IN_PROC_BROWSER_TEST_F(AccountsOptionsTest, MultiProfilesAccountsOptions) { |
| 134 LoginUser(kTestUsers[0]); | 134 LoginUser(kTestUsers[0]); |
| 135 UserAddingScreen::Get()->Start(); | 135 UserAddingScreen::Get()->Start(); |
| 136 content::RunAllPendingInMessageLoop(); | 136 content::RunAllPendingInMessageLoop(); |
| 137 AddUser(kTestUsers[1]); | 137 AddUser(kTestUsers[1]); |
| 138 | 138 |
| 139 UserManager* manager = UserManager::Get(); | 139 UserManager* manager = GetUserManager(); |
| 140 ASSERT_EQ(2u, manager->GetLoggedInUsers().size()); | 140 ASSERT_EQ(2u, manager->GetLoggedInUsers().size()); |
| 141 | 141 |
| 142 CheckAccountsUI(manager->FindUser(kTestUsers[0]), true /* is_owner */); | 142 CheckAccountsUI(manager->FindUser(kTestUsers[0]), true /* is_owner */); |
| 143 CheckAccountsUI(manager->FindUser(kTestUsers[1]), false /* is_owner */); | 143 CheckAccountsUI(manager->FindUser(kTestUsers[1]), false /* is_owner */); |
| 144 } | 144 } |
| 145 | 145 |
| 146 } // namespace chromeos | 146 } // namespace chromeos |
| OLD | NEW |