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

Side by Side Diff: chromeos/login/auth/mock_authenticator.h

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 #ifndef CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_ 5 #ifndef CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_
6 #define CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_ 6 #define CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 13 matching lines...) Expand all
24 MockAuthenticator(AuthStatusConsumer* consumer, 24 MockAuthenticator(AuthStatusConsumer* consumer,
25 const UserContext& expected_user_context); 25 const UserContext& expected_user_context);
26 26
27 // Authenticator: 27 // Authenticator:
28 virtual void CompleteLogin(Profile* profile, 28 virtual void CompleteLogin(Profile* profile,
29 const UserContext& user_context) OVERRIDE; 29 const UserContext& user_context) OVERRIDE;
30 virtual void AuthenticateToLogin(Profile* profile, 30 virtual void AuthenticateToLogin(Profile* profile,
31 const UserContext& user_context) OVERRIDE; 31 const UserContext& user_context) OVERRIDE;
32 virtual void AuthenticateToUnlock(const UserContext& user_context) OVERRIDE; 32 virtual void AuthenticateToUnlock(const UserContext& user_context) OVERRIDE;
33 virtual void LoginAsSupervisedUser(const UserContext& user_context) OVERRIDE; 33 virtual void LoginAsSupervisedUser(const UserContext& user_context) OVERRIDE;
34 virtual void LoginRetailMode() OVERRIDE;
35 virtual void LoginOffTheRecord() OVERRIDE; 34 virtual void LoginOffTheRecord() OVERRIDE;
36 virtual void LoginAsPublicSession(const UserContext& user_context) OVERRIDE; 35 virtual void LoginAsPublicSession(const UserContext& user_context) OVERRIDE;
37 virtual void LoginAsKioskAccount(const std::string& app_user_id, 36 virtual void LoginAsKioskAccount(const std::string& app_user_id,
38 bool use_guest_mount) OVERRIDE; 37 bool use_guest_mount) OVERRIDE;
39 virtual void OnRetailModeAuthSuccess() OVERRIDE;
40 virtual void OnAuthSuccess() OVERRIDE; 38 virtual void OnAuthSuccess() OVERRIDE;
41 virtual void OnAuthFailure(const AuthFailure& failure) OVERRIDE; 39 virtual void OnAuthFailure(const AuthFailure& failure) OVERRIDE;
42 virtual void RecoverEncryptedData(const std::string& old_password) OVERRIDE; 40 virtual void RecoverEncryptedData(const std::string& old_password) OVERRIDE;
43 virtual void ResyncEncryptedData() OVERRIDE; 41 virtual void ResyncEncryptedData() OVERRIDE;
44 42
45 virtual void SetExpectedCredentials(const UserContext& user_context); 43 virtual void SetExpectedCredentials(const UserContext& user_context);
46 44
47 protected: 45 protected:
48 virtual ~MockAuthenticator(); 46 virtual ~MockAuthenticator();
49 47
50 private: 48 private:
51 UserContext expected_user_context_; 49 UserContext expected_user_context_;
52 scoped_refptr<base::MessageLoopProxy> message_loop_; 50 scoped_refptr<base::MessageLoopProxy> message_loop_;
53 51
54 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); 52 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator);
55 }; 53 };
56 54
57 } // namespace chromeos 55 } // namespace chromeos
58 56
59 #endif // CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_ 57 #endif // CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698