| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 11 #include "chrome/browser/chromeos/login/session/user_session_manager.h" | 12 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
| 12 #include "chrome/browser/chromeos/login/session/user_session_manager_test_api.h" | 13 #include "chrome/browser/chromeos/login/session/user_session_manager_test_api.h" |
| 13 #include "chrome/test/base/in_process_browser_test.h" | 14 #include "chrome/test/base/in_process_browser_test.h" |
| 14 #include "chromeos/chromeos_switches.h" | 15 #include "chromeos/chromeos_switches.h" |
| 15 #include "chromeos/dbus/cryptohome_client.h" | 16 #include "chromeos/dbus/cryptohome_client.h" |
| 16 #include "chromeos/dbus/dbus_thread_manager.h" | 17 #include "chromeos/dbus/dbus_thread_manager.h" |
| 17 #include "chromeos/dbus/fake_session_manager_client.h" | 18 #include "chromeos/dbus/fake_session_manager_client.h" |
| 18 #include "chromeos/dbus/session_manager_client.h" | 19 #include "chromeos/dbus/session_manager_client.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 users[0]->username_hash()); | 150 users[0]->username_hash()); |
| 150 EXPECT_EQ(kUserId2, users[1]->email()); | 151 EXPECT_EQ(kUserId2, users[1]->email()); |
| 151 EXPECT_EQ(CryptohomeClient::GetStubSanitizedUsername(kUserId2), | 152 EXPECT_EQ(CryptohomeClient::GetStubSanitizedUsername(kUserId2), |
| 152 users[1]->username_hash()); | 153 users[1]->username_hash()); |
| 153 EXPECT_EQ(kUserId1, users[2]->email()); | 154 EXPECT_EQ(kUserId1, users[2]->email()); |
| 154 EXPECT_EQ(CryptohomeClient::GetStubSanitizedUsername(kUserId1), | 155 EXPECT_EQ(CryptohomeClient::GetStubSanitizedUsername(kUserId1), |
| 155 users[2]->username_hash()); | 156 users[2]->username_hash()); |
| 156 } | 157 } |
| 157 | 158 |
| 158 } // namespace chromeos | 159 } // namespace chromeos |
| OLD | NEW |