| 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) { |
| 71 return std::string(); |
| 72 } |
| 73 |
| 74 virtual std::string DecryptToken(const std::string& encrypted_token) { |
| 75 return std::string(); |
| 76 } |
| 77 |
| 70 virtual void VerifyOAuth1AccessToken(const std::string& oauth1_access_token, | 78 virtual void VerifyOAuth1AccessToken(const std::string& oauth1_access_token, |
| 71 const std::string& oauth1_secret) {} | 79 const std::string& oauth1_secret) {} |
| 72 | 80 |
| 73 private: | 81 private: |
| 74 std::string expected_username_; | 82 std::string expected_username_; |
| 75 std::string expected_password_; | 83 std::string expected_password_; |
| 76 | 84 |
| 77 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); | 85 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); |
| 78 }; | 86 }; |
| 79 | 87 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 97 virtual void SetFirstLoginPrefs(PrefService* prefs) {} | 105 virtual void SetFirstLoginPrefs(PrefService* prefs) {} |
| 98 | 106 |
| 99 virtual Authenticator* CreateAuthenticator(LoginStatusConsumer* consumer); | 107 virtual Authenticator* CreateAuthenticator(LoginStatusConsumer* consumer); |
| 100 | 108 |
| 101 virtual void PrewarmAuthentication() {} | 109 virtual void PrewarmAuthentication() {} |
| 102 | 110 |
| 103 virtual void FetchCookies( | 111 virtual void FetchCookies( |
| 104 Profile* profile, | 112 Profile* profile, |
| 105 const GaiaAuthConsumer::ClientLoginResult& credentials) {} | 113 const GaiaAuthConsumer::ClientLoginResult& credentials) {} |
| 106 | 114 |
| 115 virtual void StartTokenServices(Profile* profile) {} |
| 116 |
| 107 virtual void StartSync( | 117 virtual void StartSync( |
| 108 Profile* profile, | 118 Profile* profile, |
| 109 const GaiaAuthConsumer::ClientLoginResult& credentials) {} | 119 const GaiaAuthConsumer::ClientLoginResult& credentials) {} |
| 110 | 120 |
| 111 virtual void SetBackgroundView(BackgroundView* background_view); | 121 virtual void SetBackgroundView(BackgroundView* background_view); |
| 112 | 122 |
| 113 virtual BackgroundView* GetBackgroundView(); | 123 virtual BackgroundView* GetBackgroundView(); |
| 114 | 124 |
| 115 virtual std::string GetOffTheRecordCommandLine( | 125 virtual std::string GetOffTheRecordCommandLine( |
| 116 const GURL& start_url, | 126 const GURL& start_url, |
| 117 const CommandLine& base_command_line, | 127 const CommandLine& base_command_line, |
| 118 CommandLine* command_line); | 128 CommandLine* command_line); |
| 119 | 129 |
| 120 virtual bool TransferDefaultCookies(Profile* default_profile, | 130 virtual bool TransferDefaultCookies(Profile* default_profile, |
| 121 Profile* new_profile); | 131 Profile* new_profile); |
| 122 private: | 132 private: |
| 123 std::string expected_username_; | 133 std::string expected_username_; |
| 124 std::string expected_password_; | 134 std::string expected_password_; |
| 125 std::string auth_token_; | 135 std::string auth_token_; |
| 126 chromeos::BackgroundView* background_view_; | 136 chromeos::BackgroundView* background_view_; |
| 127 | 137 |
| 128 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); | 138 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); |
| 129 }; | 139 }; |
| 130 | 140 |
| 131 } // namespace chromeos | 141 } // namespace chromeos |
| 132 | 142 |
| 133 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ | 143 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ |
| OLD | NEW |