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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 const std::string& expected_password); | 87 const std::string& expected_password); |
88 virtual ~MockLoginUtils(); | 88 virtual ~MockLoginUtils(); |
89 | 89 |
90 virtual bool ShouldWaitForWifi(); | 90 virtual bool ShouldWaitForWifi(); |
91 | 91 |
92 virtual void PrepareProfile(const std::string& username, | 92 virtual void PrepareProfile(const std::string& username, |
93 const std::string& password, | 93 const std::string& password, |
94 const GaiaAuthConsumer::ClientLoginResult& res, | 94 const GaiaAuthConsumer::ClientLoginResult& res, |
95 bool pending_requests, | 95 bool pending_requests, |
96 bool using_oauth, | 96 bool using_oauth, |
| 97 bool has_cookies, |
97 Delegate* delegate); | 98 Delegate* delegate); |
98 | 99 |
99 virtual void CompleteOffTheRecordLogin(const GURL& start_url) {} | 100 virtual void CompleteOffTheRecordLogin(const GURL& start_url) {} |
100 | 101 |
101 virtual void SetFirstLoginPrefs(PrefService* prefs) {} | 102 virtual void SetFirstLoginPrefs(PrefService* prefs) {} |
102 | 103 |
103 virtual Authenticator* CreateAuthenticator(LoginStatusConsumer* consumer); | 104 virtual Authenticator* CreateAuthenticator(LoginStatusConsumer* consumer); |
104 | 105 |
105 virtual void PrewarmAuthentication() {} | 106 virtual void PrewarmAuthentication() {} |
106 | 107 |
(...skipping 23 matching lines...) Expand all Loading... |
130 std::string expected_password_; | 131 std::string expected_password_; |
131 std::string auth_token_; | 132 std::string auth_token_; |
132 chromeos::BackgroundView* background_view_; | 133 chromeos::BackgroundView* background_view_; |
133 | 134 |
134 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); | 135 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); |
135 }; | 136 }; |
136 | 137 |
137 } // namespace chromeos | 138 } // namespace chromeos |
138 | 139 |
139 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ | 140 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ |
OLD | NEW |