OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SIGNIN_SIGNIN_MANAGER_FAKE_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_ |
6 #define CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_ | 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 const std::string& password, | 24 const std::string& password, |
25 const std::string& login_token, | 25 const std::string& login_token, |
26 const std::string& login_captcha) OVERRIDE; | 26 const std::string& login_captcha) OVERRIDE; |
27 virtual void StartSignInWithCredentials(const std::string& session_index, | 27 virtual void StartSignInWithCredentials(const std::string& session_index, |
28 const std::string& username, | 28 const std::string& username, |
29 const std::string& password) OVERRIDE; | 29 const std::string& password) OVERRIDE; |
30 virtual void StartSignInWithOAuth(const std::string& username, | 30 virtual void StartSignInWithOAuth(const std::string& username, |
31 const std::string& password) OVERRIDE; | 31 const std::string& password) OVERRIDE; |
32 virtual void SignOut() OVERRIDE; | 32 virtual void SignOut() OVERRIDE; |
33 | 33 |
| 34 virtual bool AuthInProgress() const OVERRIDE; |
| 35 void set_auth_in_progress(bool in_progress) { |
| 36 auth_in_progress_ = in_progress; |
| 37 } |
| 38 |
34 // Helper function to be used with ProfileKeyedService::SetTestingFactory(). | 39 // Helper function to be used with ProfileKeyedService::SetTestingFactory(). |
35 static ProfileKeyedService* Build(Profile* profile); | 40 static ProfileKeyedService* Build(Profile* profile); |
| 41 |
| 42 private: |
| 43 bool auth_in_progress_; |
36 }; | 44 }; |
37 | 45 |
38 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_ | 46 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_ |
OLD | NEW |