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

Side by Side Diff: chrome/browser/chromeos/login/mock_authenticator.h

Issue 18686006: [cros] Cleanup login auth stack: remove ClientLogin legacy code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 7 years, 5 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/login/authenticator.h" 10 #include "chrome/browser/chromeos/login/authenticator.h"
(...skipping 12 matching lines...) Expand all
23 const std::string& expected_password) 23 const std::string& expected_password)
24 : Authenticator(consumer), 24 : Authenticator(consumer),
25 expected_username_(expected_username), 25 expected_username_(expected_username),
26 expected_password_(expected_password) { 26 expected_password_(expected_password) {
27 } 27 }
28 28
29 virtual void CompleteLogin(Profile* profile, 29 virtual void CompleteLogin(Profile* profile,
30 const UserContext& user_context) OVERRIDE; 30 const UserContext& user_context) OVERRIDE;
31 31
32 virtual void AuthenticateToLogin(Profile* profile, 32 virtual void AuthenticateToLogin(Profile* profile,
33 const UserContext& user_context, 33 const UserContext& user_context) OVERRIDE;
34 const std::string& login_token,
35 const std::string& login_captcha) OVERRIDE;
36 34
37 virtual void AuthenticateToUnlock(const UserContext& user_context) OVERRIDE; 35 virtual void AuthenticateToUnlock(const UserContext& user_context) OVERRIDE;
38 36
39 virtual void LoginAsLocallyManagedUser( 37 virtual void LoginAsLocallyManagedUser(
40 const UserContext& user_context) OVERRIDE; 38 const UserContext& user_context) OVERRIDE;
41 virtual void LoginRetailMode() OVERRIDE; 39 virtual void LoginRetailMode() OVERRIDE;
42 virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE; 40 virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE;
43 virtual void LoginOffTheRecord() OVERRIDE; 41 virtual void LoginOffTheRecord() OVERRIDE;
44 42
45 virtual void OnRetailModeLoginSuccess() OVERRIDE; 43 virtual void OnRetailModeLoginSuccess() OVERRIDE;
46 44
47 virtual void OnLoginSuccess(bool request_pending) OVERRIDE; 45 virtual void OnLoginSuccess(bool request_pending) OVERRIDE;
48 46
49 virtual void OnLoginFailure(const LoginFailure& failure) OVERRIDE; 47 virtual void OnLoginFailure(const LoginFailure& failure) OVERRIDE;
50 48
51 virtual void RecoverEncryptedData( 49 virtual void RecoverEncryptedData(
52 const std::string& old_password) OVERRIDE {} 50 const std::string& old_password) OVERRIDE {}
53 51
54 virtual void ResyncEncryptedData() OVERRIDE {} 52 virtual void ResyncEncryptedData() OVERRIDE {}
55 53
56 virtual void RetryAuth(Profile* profile,
57 const UserContext& user_context,
58 const std::string& login_token,
59 const std::string& login_captcha) OVERRIDE {}
60
61 virtual void SetExpectedCredentials(const std::string& expected_username, 54 virtual void SetExpectedCredentials(const std::string& expected_username,
62 const std::string& expected_password); 55 const std::string& expected_password);
63 56
64 protected: 57 protected:
65 virtual ~MockAuthenticator() {} 58 virtual ~MockAuthenticator() {}
66 59
67 private: 60 private:
68 std::string expected_username_; 61 std::string expected_username_;
69 std::string expected_password_; 62 std::string expected_password_;
70 63
71 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); 64 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator);
72 }; 65 };
73 66
74 } // namespace chromeos 67 } // namespace chromeos
75 68
76 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ 69 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_performer.cc ('k') | chrome/browser/chromeos/login/mock_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698