OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual void RetryAuth(Profile* profile, | 63 virtual void RetryAuth(Profile* profile, |
64 const std::string& username, | 64 const std::string& username, |
65 const std::string& password, | 65 const std::string& password, |
66 const std::string& login_token, | 66 const std::string& login_token, |
67 const std::string& login_captcha) {} | 67 const std::string& login_captcha) {} |
68 | 68 |
69 virtual std::string EncryptToken(const std::string& token); | 69 virtual std::string EncryptToken(const std::string& token); |
70 | 70 |
71 virtual std::string DecryptToken(const std::string& encrypted_token); | 71 virtual std::string DecryptToken(const std::string& encrypted_token); |
72 | 72 |
73 virtual std::string DecryptLegacyToken(const std::string& encrypted_token); | |
74 | |
75 virtual void VerifyOAuth1AccessToken(const std::string& oauth1_access_token, | 73 virtual void VerifyOAuth1AccessToken(const std::string& oauth1_access_token, |
76 const std::string& oauth1_secret) {} | 74 const std::string& oauth1_secret) {} |
77 | 75 |
78 private: | 76 private: |
79 std::string expected_username_; | 77 std::string expected_username_; |
80 std::string expected_password_; | 78 std::string expected_password_; |
81 | 79 |
82 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); | 80 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); |
83 }; | 81 }; |
84 | 82 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 std::string expected_password_; | 137 std::string expected_password_; |
140 std::string auth_token_; | 138 std::string auth_token_; |
141 chromeos::BackgroundView* background_view_; | 139 chromeos::BackgroundView* background_view_; |
142 | 140 |
143 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); | 141 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); |
144 }; | 142 }; |
145 | 143 |
146 } // namespace chromeos | 144 } // namespace chromeos |
147 | 145 |
148 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ | 146 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ |
OLD | NEW |