OLD | NEW |
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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const std::string& old_password) OVERRIDE {} | 58 const std::string& old_password) OVERRIDE {} |
59 | 59 |
60 virtual void ResyncEncryptedData() OVERRIDE {} | 60 virtual void ResyncEncryptedData() OVERRIDE {} |
61 | 61 |
62 virtual void RetryAuth(Profile* profile, | 62 virtual void RetryAuth(Profile* profile, |
63 const std::string& username, | 63 const std::string& username, |
64 const std::string& password, | 64 const std::string& password, |
65 const std::string& login_token, | 65 const std::string& login_token, |
66 const std::string& login_captcha) OVERRIDE {} | 66 const std::string& login_captcha) OVERRIDE {} |
67 | 67 |
| 68 protected: |
| 69 virtual ~MockAuthenticator() {} |
| 70 |
68 private: | 71 private: |
69 std::string expected_username_; | 72 std::string expected_username_; |
70 std::string expected_password_; | 73 std::string expected_password_; |
71 | 74 |
72 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); | 75 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); |
73 }; | 76 }; |
74 | 77 |
75 class TestLoginUtils : public LoginUtils { | 78 class TestLoginUtils : public LoginUtils { |
76 public: | 79 public: |
77 TestLoginUtils(const std::string& expected_username, | 80 TestLoginUtils(const std::string& expected_username, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 std::string expected_username_; | 127 std::string expected_username_; |
125 std::string expected_password_; | 128 std::string expected_password_; |
126 std::string auth_token_; | 129 std::string auth_token_; |
127 | 130 |
128 DISALLOW_COPY_AND_ASSIGN(TestLoginUtils); | 131 DISALLOW_COPY_AND_ASSIGN(TestLoginUtils); |
129 }; | 132 }; |
130 | 133 |
131 } // namespace chromeos | 134 } // namespace chromeos |
132 | 135 |
133 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ | 136 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ |
OLD | NEW |