| OLD | NEW |
| 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 15 matching lines...) Expand all Loading... |
| 26 MockAuthenticator(AuthStatusConsumer* consumer, | 26 MockAuthenticator(AuthStatusConsumer* consumer, |
| 27 const UserContext& expected_user_context); | 27 const UserContext& expected_user_context); |
| 28 | 28 |
| 29 // Authenticator: | 29 // Authenticator: |
| 30 virtual void CompleteLogin(content::BrowserContext* context, | 30 virtual void CompleteLogin(content::BrowserContext* context, |
| 31 const UserContext& user_context) override; | 31 const UserContext& user_context) override; |
| 32 virtual void AuthenticateToLogin(content::BrowserContext* context, | 32 virtual void AuthenticateToLogin(content::BrowserContext* context, |
| 33 const UserContext& user_context) override; | 33 const UserContext& user_context) override; |
| 34 virtual void AuthenticateToUnlock(const UserContext& user_context) override; | 34 virtual void AuthenticateToUnlock(const UserContext& user_context) override; |
| 35 virtual void LoginAsSupervisedUser(const UserContext& user_context) override; | 35 virtual void LoginAsSupervisedUser(const UserContext& user_context) override; |
| 36 virtual void LoginRetailMode() override; | |
| 37 virtual void LoginOffTheRecord() override; | 36 virtual void LoginOffTheRecord() override; |
| 38 virtual void LoginAsPublicSession(const UserContext& user_context) override; | 37 virtual void LoginAsPublicSession(const UserContext& user_context) override; |
| 39 virtual void LoginAsKioskAccount(const std::string& app_user_id, | 38 virtual void LoginAsKioskAccount(const std::string& app_user_id, |
| 40 bool use_guest_mount) override; | 39 bool use_guest_mount) override; |
| 41 virtual void OnRetailModeAuthSuccess() override; | |
| 42 virtual void OnAuthSuccess() override; | 40 virtual void OnAuthSuccess() override; |
| 43 virtual void OnAuthFailure(const AuthFailure& failure) override; | 41 virtual void OnAuthFailure(const AuthFailure& failure) override; |
| 44 virtual void RecoverEncryptedData(const std::string& old_password) override; | 42 virtual void RecoverEncryptedData(const std::string& old_password) override; |
| 45 virtual void ResyncEncryptedData() override; | 43 virtual void ResyncEncryptedData() override; |
| 46 | 44 |
| 47 virtual void SetExpectedCredentials(const UserContext& user_context); | 45 virtual void SetExpectedCredentials(const UserContext& user_context); |
| 48 | 46 |
| 49 protected: | 47 protected: |
| 50 virtual ~MockAuthenticator(); | 48 virtual ~MockAuthenticator(); |
| 51 | 49 |
| 52 private: | 50 private: |
| 53 UserContext expected_user_context_; | 51 UserContext expected_user_context_; |
| 54 scoped_refptr<base::MessageLoopProxy> message_loop_; | 52 scoped_refptr<base::MessageLoopProxy> message_loop_; |
| 55 | 53 |
| 56 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); | 54 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); |
| 57 }; | 55 }; |
| 58 | 56 |
| 59 } // namespace chromeos | 57 } // namespace chromeos |
| 60 | 58 |
| 61 #endif // CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_ | 59 #endif // CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_ |
| OLD | NEW |