| 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/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "chrome/browser/chromeos/login/user.h" | 11 #include "chrome/browser/chromeos/login/users/user.h" |
| 12 #include "chrome/browser/chromeos/login/user_manager.h" | 12 #include "chrome/browser/chromeos/login/users/user_manager.h" |
| 13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
| 14 #include "chrome/test/base/in_process_browser_test.h" | 14 #include "chrome/test/base/in_process_browser_test.h" |
| 15 #include "chromeos/chromeos_switches.h" | 15 #include "chromeos/chromeos_switches.h" |
| 16 #include "chromeos/dbus/cryptohome_client.h" | 16 #include "chromeos/dbus/cryptohome_client.h" |
| 17 #include "chromeos/dbus/fake_dbus_thread_manager.h" | 17 #include "chromeos/dbus/fake_dbus_thread_manager.h" |
| 18 #include "chromeos/dbus/fake_session_manager_client.h" | 18 #include "chromeos/dbus/fake_session_manager_client.h" |
| 19 #include "chromeos/dbus/session_manager_client.h" | 19 #include "chromeos/dbus/session_manager_client.h" |
| 20 #include "content/public/test/test_utils.h" | 20 #include "content/public/test/test_utils.h" |
| 21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
| 22 #include "third_party/cros_system_api/dbus/service_constants.h" | 22 #include "third_party/cros_system_api/dbus/service_constants.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 users[0]->username_hash()); | 148 users[0]->username_hash()); |
| 149 EXPECT_EQ(kUserId2, users[1]->email()); | 149 EXPECT_EQ(kUserId2, users[1]->email()); |
| 150 EXPECT_EQ(CryptohomeClient::GetStubSanitizedUsername(kUserId2), | 150 EXPECT_EQ(CryptohomeClient::GetStubSanitizedUsername(kUserId2), |
| 151 users[1]->username_hash()); | 151 users[1]->username_hash()); |
| 152 EXPECT_EQ(kUserId1, users[2]->email()); | 152 EXPECT_EQ(kUserId1, users[2]->email()); |
| 153 EXPECT_EQ(CryptohomeClient::GetStubSanitizedUsername(kUserId1), | 153 EXPECT_EQ(CryptohomeClient::GetStubSanitizedUsername(kUserId1), |
| 154 users[2]->username_hash()); | 154 users[2]->username_hash()); |
| 155 } | 155 } |
| 156 | 156 |
| 157 } // namespace chromeos | 157 } // namespace chromeos |
| OLD | NEW |