| Index: chrome/browser/signin/signin_manager_fake.h
|
| diff --git a/chrome/browser/signin/signin_manager_fake.h b/chrome/browser/signin/signin_manager_fake.h
|
| index f85880607c2560bc8aaa547820755a543922176f..62f34e43b5f8c08d2a670c2cd1f9720b2371d7dc 100644
|
| --- a/chrome/browser/signin/signin_manager_fake.h
|
| +++ b/chrome/browser/signin/signin_manager_fake.h
|
| @@ -13,6 +13,27 @@
|
| class Profile;
|
| class ProfileKeyedService;
|
|
|
| +class FakeSigninManagerBase : public SigninManagerBase {
|
| + public:
|
| + explicit FakeSigninManagerBase(Profile* profile);
|
| + virtual ~FakeSigninManagerBase();
|
| +
|
| + virtual void SignOut() OVERRIDE;
|
| +
|
| + virtual bool AuthInProgress() const OVERRIDE;
|
| + void set_auth_in_progress(bool in_progress) {
|
| + auth_in_progress_ = in_progress;
|
| + }
|
| +
|
| + // Helper function to be used with ProfileKeyedService::SetTestingFactory().
|
| + static ProfileKeyedService* Build(Profile* profile);
|
| +
|
| + private:
|
| + bool auth_in_progress_;
|
| +};
|
| +
|
| +#if !defined(OS_CHROMEOS)
|
| +
|
| // A signin manager that bypasses actual authentication routines with servers
|
| // and accepts the credentials provided to StartSignIn.
|
| class FakeSigninManager : public SigninManager {
|
| @@ -20,30 +41,23 @@ class FakeSigninManager : public SigninManager {
|
| explicit FakeSigninManager(Profile* profile);
|
| virtual ~FakeSigninManager();
|
|
|
| + virtual void SignOut() OVERRIDE;
|
| + virtual void InitTokenService() OVERRIDE;
|
| virtual void StartSignIn(const std::string& username,
|
| const std::string& password,
|
| const std::string& login_token,
|
| const std::string& login_captcha) OVERRIDE;
|
| +
|
| virtual void StartSignInWithCredentials(const std::string& session_index,
|
| const std::string& username,
|
| const std::string& password) OVERRIDE;
|
| virtual void StartSignInWithOAuth(const std::string& username,
|
| const std::string& password) OVERRIDE;
|
| - virtual void SignOut() OVERRIDE;
|
| -
|
| - // Helper function to force a signout.
|
| - virtual void ForceSignOut();
|
| -
|
| - virtual bool AuthInProgress() const OVERRIDE;
|
| - void set_auth_in_progress(bool in_progress) {
|
| - auth_in_progress_ = in_progress;
|
| - }
|
|
|
| // Helper function to be used with ProfileKeyedService::SetTestingFactory().
|
| static ProfileKeyedService* Build(Profile* profile);
|
| -
|
| - private:
|
| - bool auth_in_progress_;
|
| };
|
|
|
| +#endif // !defined (OS_CHROMEOS)
|
| +
|
| #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_
|
|
|