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 // Helper function to force a signout. |
| 35 virtual void ForceSignOut(); |
| 36 |
34 virtual bool AuthInProgress() const OVERRIDE; | 37 virtual bool AuthInProgress() const OVERRIDE; |
35 void set_auth_in_progress(bool in_progress) { | 38 void set_auth_in_progress(bool in_progress) { |
36 auth_in_progress_ = in_progress; | 39 auth_in_progress_ = in_progress; |
37 } | 40 } |
38 | 41 |
39 // Helper function to be used with ProfileKeyedService::SetTestingFactory(). | 42 // Helper function to be used with ProfileKeyedService::SetTestingFactory(). |
40 static ProfileKeyedService* Build(Profile* profile); | 43 static ProfileKeyedService* Build(Profile* profile); |
41 | 44 |
42 private: | 45 private: |
43 bool auth_in_progress_; | 46 bool auth_in_progress_; |
44 }; | 47 }; |
45 | 48 |
46 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_ | 49 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_ |
OLD | NEW |