OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/mock_authenticator.h" | 5 #include "chrome/browser/chromeos/login/auth/mock_authenticator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chrome/browser/chromeos/login/user.h" | 8 #include "chrome/browser/chromeos/login/users/user.h" |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 | 10 |
11 using content::BrowserThread; | 11 using content::BrowserThread; |
12 | 12 |
13 namespace chromeos { | 13 namespace chromeos { |
14 | 14 |
15 void MockAuthenticator::AuthenticateToLogin(Profile* profile, | 15 void MockAuthenticator::AuthenticateToLogin(Profile* profile, |
16 const UserContext& user_context) { | 16 const UserContext& user_context) { |
17 if (expected_username_ == user_context.GetUserID() && | 17 if (expected_username_ == user_context.GetUserID() && |
18 expected_password_ == user_context.GetPassword()) { | 18 expected_password_ == user_context.GetPassword()) { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 } | 94 } |
95 | 95 |
96 void MockAuthenticator::SetExpectedCredentials( | 96 void MockAuthenticator::SetExpectedCredentials( |
97 const std::string& expected_username, | 97 const std::string& expected_username, |
98 const std::string& expected_password) { | 98 const std::string& expected_password) { |
99 expected_username_ = expected_username; | 99 expected_username_ = expected_username; |
100 expected_password_ = expected_password; | 100 expected_password_ = expected_password; |
101 } | 101 } |
102 | 102 |
103 } // namespace chromeos | 103 } // namespace chromeos |
OLD | NEW |