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

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

Issue 290513003: Move UserContext to its own file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/auth/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/users/user.h" 8 #include "chrome/browser/chromeos/login/auth/user_context.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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 90
91 void MockAuthenticator::SetExpectedCredentials( 91 void MockAuthenticator::SetExpectedCredentials(
92 const std::string& expected_username, 92 const std::string& expected_username,
93 const std::string& expected_password) { 93 const std::string& expected_password) {
94 expected_username_ = expected_username; 94 expected_username_ = expected_username;
95 expected_password_ = expected_password; 95 expected_password_ = expected_password;
96 } 96 }
97 97
98 } // namespace chromeos 98 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698