| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 ChromeThread::UI, FROM_HERE, new MessageLoop::QuitTask); | 84 ChromeThread::UI, FROM_HERE, new MessageLoop::QuitTask); |
| 85 } | 85 } |
| 86 | 86 |
| 87 virtual void RecoverEncryptedData( | 87 virtual void RecoverEncryptedData( |
| 88 const std::string& old_password, | 88 const std::string& old_password, |
| 89 const GaiaAuthConsumer::ClientLoginResult& credentials) {} | 89 const GaiaAuthConsumer::ClientLoginResult& credentials) {} |
| 90 | 90 |
| 91 virtual void ResyncEncryptedData( | 91 virtual void ResyncEncryptedData( |
| 92 const GaiaAuthConsumer::ClientLoginResult& credentials) {} | 92 const GaiaAuthConsumer::ClientLoginResult& credentials) {} |
| 93 | 93 |
| 94 virtual void RetryAuth(Profile* profile, |
| 95 const std::string& username, |
| 96 const std::string& password, |
| 97 const std::string& login_token, |
| 98 const std::string& login_captcha) {} |
| 99 |
| 94 private: | 100 private: |
| 95 std::string expected_username_; | 101 std::string expected_username_; |
| 96 std::string expected_password_; | 102 std::string expected_password_; |
| 97 | 103 |
| 98 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); | 104 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); |
| 99 }; | 105 }; |
| 100 | 106 |
| 101 class MockLoginUtils : public LoginUtils { | 107 class MockLoginUtils : public LoginUtils { |
| 102 public: | 108 public: |
| 103 explicit MockLoginUtils(const std::string& expected_username, | 109 explicit MockLoginUtils(const std::string& expected_username, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 std::string expected_username_; | 144 std::string expected_username_; |
| 139 std::string expected_password_; | 145 std::string expected_password_; |
| 140 std::string auth_token_; | 146 std::string auth_token_; |
| 141 | 147 |
| 142 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); | 148 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); |
| 143 }; | 149 }; |
| 144 | 150 |
| 145 } // namespace chromeos | 151 } // namespace chromeos |
| 146 | 152 |
| 147 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ | 153 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ |
| OLD | NEW |