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

Unified Diff: chrome/browser/chromeos/login/mock_authenticator.h

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 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
Index: chrome/browser/chromeos/login/mock_authenticator.h
diff --git a/chrome/browser/chromeos/login/mock_authenticator.h b/chrome/browser/chromeos/login/mock_authenticator.h
deleted file mode 100644
index 2c317d2f68296d280d2211aa6f7ab5e62866c172..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/mock_authenticator.h
+++ /dev/null
@@ -1,71 +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_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
-
-#include <string>
-
-#include "chrome/browser/chromeos/login/authenticator.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-class Profile;
-
-namespace chromeos {
-
-class LoginStatusConsumer;
-
-class MockAuthenticator : public Authenticator {
- public:
- MockAuthenticator(LoginStatusConsumer* consumer,
- const std::string& expected_username,
- const std::string& expected_password)
- : Authenticator(consumer),
- expected_username_(expected_username),
- expected_password_(expected_password) {
- }
-
- virtual void CompleteLogin(Profile* profile,
- const UserContext& user_context) OVERRIDE;
-
- virtual void AuthenticateToLogin(Profile* profile,
- const UserContext& user_context) OVERRIDE;
-
- virtual void AuthenticateToUnlock(const UserContext& user_context) OVERRIDE;
-
- virtual void LoginAsLocallyManagedUser(
- const UserContext& user_context) OVERRIDE;
- virtual void LoginRetailMode() OVERRIDE;
- virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE;
- virtual void LoginAsKioskAccount(const std::string& app_user_id,
- bool use_guest_mount) OVERRIDE;
- virtual void LoginOffTheRecord() OVERRIDE;
-
- virtual void OnRetailModeLoginSuccess() OVERRIDE;
-
- virtual void OnLoginSuccess() OVERRIDE;
-
- virtual void OnLoginFailure(const LoginFailure& failure) OVERRIDE;
-
- virtual void RecoverEncryptedData(
- const std::string& old_password) OVERRIDE {}
-
- virtual void ResyncEncryptedData() OVERRIDE {}
-
- virtual void SetExpectedCredentials(const std::string& expected_username,
- const std::string& expected_password);
-
- protected:
- virtual ~MockAuthenticator() {}
-
- private:
- std::string expected_username_;
- std::string expected_password_;
-
- DISALLOW_COPY_AND_ASSIGN(MockAuthenticator);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
« no previous file with comments | « chrome/browser/chromeos/login/mock_auth_attempt_state_resolver.cc ('k') | chrome/browser/chromeos/login/mock_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698