Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(900)

Side by Side Diff: chrome/browser/chromeos/login/auth/mock_authenticator.cc

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698