Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: chrome/browser/signin/signin_manager_fake.h

Issue 13871009: Move signin_manager_fake.* to fake_signin_manager.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to TOT Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/signin/signin_global_error_unittest.cc ('k') | chrome/browser/signin/signin_manager_fake.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index f85880607c2560bc8aaa547820755a543922176f..0000000000000000000000000000000000000000
--- a/chrome/browser/signin/signin_manager_fake.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_
-#define CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_
-
-#include <string>
-
-#include "base/compiler_specific.h"
-#include "chrome/browser/signin/signin_manager.h"
-
-class Profile;
-class ProfileKeyedService;
-
-// A signin manager that bypasses actual authentication routines with servers
-// and accepts the credentials provided to StartSignIn.
-class FakeSigninManager : public SigninManager {
- public:
- explicit FakeSigninManager(Profile* profile);
- virtual ~FakeSigninManager();
-
- 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 // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_
« no previous file with comments | « chrome/browser/signin/signin_global_error_unittest.cc ('k') | chrome/browser/signin/signin_manager_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698