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 "chrome/browser/chromeos/login/fake_login_utils.h" | 5 #include "chrome/browser/chromeos/login/fake_login_utils.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/chromeos/login/auth/mock_authenticator.h" | |
11 #include "chrome/browser/chromeos/login/ui/login_display_host.h" | 10 #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
12 #include "chrome/browser/chromeos/login/user_flow.h" | 11 #include "chrome/browser/chromeos/login/user_flow.h" |
13 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" | 12 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" |
14 #include "chrome/browser/chromeos/login/users/user_manager.h" | 13 #include "chrome/browser/chromeos/login/users/user_manager.h" |
15 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 14 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
16 #include "chrome/browser/first_run/first_run.h" | 15 #include "chrome/browser/first_run/first_run.h" |
17 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 17 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
19 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
20 #include "chrome/test/base/testing_profile.h" | 19 #include "chrome/test/base/testing_profile.h" |
| 20 #include "chromeos/login/auth/mock_authenticator.h" |
21 #include "chromeos/login/auth/user_context.h" | 21 #include "chromeos/login/auth/user_context.h" |
22 #include "components/user_manager/user.h" | 22 #include "components/user_manager/user.h" |
23 #include "content/public/browser/notification_service.h" | 23 #include "content/public/browser/notification_service.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 | 25 |
26 namespace chromeos { | 26 namespace chromeos { |
27 | 27 |
28 FakeLoginUtils::FakeLoginUtils() : should_launch_browser_(false) {} | 28 FakeLoginUtils::FakeLoginUtils() : should_launch_browser_(false) {} |
29 | 29 |
30 FakeLoginUtils::~FakeLoginUtils() {} | 30 FakeLoginUtils::~FakeLoginUtils() {} |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 void FakeLoginUtils::SetExpectedCredentials(const UserContext& user_context) { | 113 void FakeLoginUtils::SetExpectedCredentials(const UserContext& user_context) { |
114 expected_user_context_ = user_context; | 114 expected_user_context_ = user_context; |
115 if (authenticator_) { | 115 if (authenticator_) { |
116 static_cast<MockAuthenticator*>(authenticator_.get())-> | 116 static_cast<MockAuthenticator*>(authenticator_.get())-> |
117 SetExpectedCredentials(user_context); | 117 SetExpectedCredentials(user_context); |
118 } | 118 } |
119 } | 119 } |
120 | 120 |
121 } // namespace chromeos | 121 } // namespace chromeos |
OLD | NEW |