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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 virtual void ResyncEncryptedData( | 61 virtual void ResyncEncryptedData( |
62 const GaiaAuthConsumer::ClientLoginResult& credentials) {} | 62 const GaiaAuthConsumer::ClientLoginResult& credentials) {} |
63 | 63 |
64 virtual void RetryAuth(Profile* profile, | 64 virtual void RetryAuth(Profile* profile, |
65 const std::string& username, | 65 const std::string& username, |
66 const std::string& password, | 66 const std::string& password, |
67 const std::string& login_token, | 67 const std::string& login_token, |
68 const std::string& login_captcha) {} | 68 const std::string& login_captcha) {} |
69 | 69 |
70 virtual std::string EncryptToken(const std::string& token) { | 70 virtual std::string EncryptToken(const std::string& token); |
71 return std::string(); | |
72 } | |
73 | 71 |
74 virtual std::string DecryptToken(const std::string& encrypted_token) { | 72 virtual std::string DecryptToken(const std::string& encrypted_token); |
75 return std::string(); | |
76 } | |
77 | 73 |
78 virtual void VerifyOAuth1AccessToken(const std::string& oauth1_access_token, | 74 virtual void VerifyOAuth1AccessToken(const std::string& oauth1_access_token, |
79 const std::string& oauth1_secret) {} | 75 const std::string& oauth1_secret) {} |
80 | 76 |
81 private: | 77 private: |
82 std::string expected_username_; | 78 std::string expected_username_; |
83 std::string expected_password_; | 79 std::string expected_password_; |
84 | 80 |
85 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); | 81 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); |
86 }; | 82 }; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 std::string expected_password_; | 130 std::string expected_password_; |
135 std::string auth_token_; | 131 std::string auth_token_; |
136 chromeos::BackgroundView* background_view_; | 132 chromeos::BackgroundView* background_view_; |
137 | 133 |
138 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); | 134 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); |
139 }; | 135 }; |
140 | 136 |
141 } // namespace chromeos | 137 } // namespace chromeos |
142 | 138 |
143 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ | 139 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ |
OLD | NEW |