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_FAKE_SIGNIN_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ |
6 #define CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ | 6 #define CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 public: | 34 public: |
35 explicit FakeSigninManager(Profile* profile); | 35 explicit FakeSigninManager(Profile* profile); |
36 virtual ~FakeSigninManager(); | 36 virtual ~FakeSigninManager(); |
37 | 37 |
38 void set_auth_in_progress(const std::string& username) { | 38 void set_auth_in_progress(const std::string& username) { |
39 possibly_invalid_username_ = username; | 39 possibly_invalid_username_ = username; |
40 } | 40 } |
41 | 41 |
42 virtual void SignOut() OVERRIDE; | 42 virtual void SignOut() OVERRIDE; |
43 virtual void InitTokenService() OVERRIDE; | 43 virtual void InitTokenService() OVERRIDE; |
44 virtual void StartSignIn(const std::string& username, | |
45 const std::string& password, | |
46 const std::string& login_token, | |
47 const std::string& login_captcha) OVERRIDE; | |
48 | 44 |
49 virtual void StartSignInWithCredentials( | 45 virtual void StartSignInWithCredentials( |
50 const std::string& session_index, | 46 const std::string& session_index, |
51 const std::string& username, | 47 const std::string& username, |
52 const std::string& password, | 48 const std::string& password, |
53 const OAuthTokenFetchedCallback& oauth_fetched_callback) OVERRIDE; | 49 const OAuthTokenFetchedCallback& oauth_fetched_callback) OVERRIDE; |
54 | 50 |
55 virtual void CompletePendingSignin() OVERRIDE; | 51 virtual void CompletePendingSignin() OVERRIDE; |
56 | 52 |
57 // Helper function to be used with | 53 // Helper function to be used with |
58 // BrowserContextKeyedService::SetTestingFactory(). | 54 // BrowserContextKeyedService::SetTestingFactory(). |
59 static BrowserContextKeyedService* Build(content::BrowserContext* profile); | 55 static BrowserContextKeyedService* Build(content::BrowserContext* profile); |
60 }; | 56 }; |
61 | 57 |
62 #endif // !defined (OS_CHROMEOS) | 58 #endif // !defined (OS_CHROMEOS) |
63 | 59 |
64 #endif // CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ | 60 #endif // CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ |
OLD | NEW |