OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
11 #include "chrome/browser/browser_thread.h" | 11 #include "chrome/browser/browser_thread.h" |
12 #include "chrome/browser/chromeos/login/authenticator.h" | 12 #include "chrome/browser/chromeos/login/authenticator.h" |
| 13 #include "chrome/browser/chromeos/login/background_view.h" |
13 #include "chrome/browser/chromeos/login/login_utils.h" | 14 #include "chrome/browser/chromeos/login/login_utils.h" |
14 #include "chrome/common/net/gaia/google_service_auth_error.h" | 15 #include "chrome/common/net/gaia/google_service_auth_error.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 | 17 |
17 class Profile; | 18 class Profile; |
18 | 19 |
19 namespace chromeos { | 20 namespace chromeos { |
20 | 21 |
21 class LoginStatusConsumer; | 22 class LoginStatusConsumer; |
22 | 23 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 virtual void FetchCookies( | 143 virtual void FetchCookies( |
143 Profile* profile, | 144 Profile* profile, |
144 const GaiaAuthConsumer::ClientLoginResult& credentials) { | 145 const GaiaAuthConsumer::ClientLoginResult& credentials) { |
145 } | 146 } |
146 | 147 |
147 virtual void FetchTokens( | 148 virtual void FetchTokens( |
148 Profile* profile, | 149 Profile* profile, |
149 const GaiaAuthConsumer::ClientLoginResult& credentials) { | 150 const GaiaAuthConsumer::ClientLoginResult& credentials) { |
150 } | 151 } |
151 | 152 |
| 153 void SetBackgroundView(BackgroundView* background_view) { |
| 154 background_view_ = background_view; |
| 155 } |
| 156 |
| 157 BackgroundView* GetBackgroundView() { |
| 158 return background_view_; |
| 159 } |
| 160 |
152 private: | 161 private: |
153 std::string expected_username_; | 162 std::string expected_username_; |
154 std::string expected_password_; | 163 std::string expected_password_; |
155 std::string auth_token_; | 164 std::string auth_token_; |
| 165 chromeos::BackgroundView* background_view_; |
156 | 166 |
157 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); | 167 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); |
158 }; | 168 }; |
159 | 169 |
160 } // namespace chromeos | 170 } // namespace chromeos |
161 | 171 |
162 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ | 172 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ |
OLD | NEW |