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

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

Issue 296773002: Add a Key class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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/auth/mock_authenticator.h
diff --git a/chrome/browser/chromeos/login/auth/mock_authenticator.h b/chrome/browser/chromeos/login/auth/mock_authenticator.h
index 18d8fb9170c4cdf020b35dcc35ac5c85943570a6..57a568698e39e6cb53ae46c3aac9a6db29626d8f 100644
--- a/chrome/browser/chromeos/login/auth/mock_authenticator.h
+++ b/chrome/browser/chromeos/login/auth/mock_authenticator.h
@@ -8,6 +8,7 @@
#include <string>
#include "chrome/browser/chromeos/login/auth/authenticator.h"
+#include "chrome/browser/chromeos/login/auth/user_context.h"
#include "testing/gtest/include/gtest/gtest.h"
class Profile;
@@ -19,49 +20,35 @@ 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) {
- }
+ const UserContext& expected_user_context);
+ // Authenticator:
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 LoginOffTheRecord() 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 {}
+ const std::string& old_password) OVERRIDE;
+ virtual void ResyncEncryptedData() OVERRIDE;
- virtual void SetExpectedCredentials(const std::string& expected_username,
- const std::string& expected_password);
+ virtual void SetExpectedCredentials(const UserContext& user_context);
protected:
- virtual ~MockAuthenticator() {}
+ virtual ~MockAuthenticator();
private:
- std::string expected_username_;
- std::string expected_password_;
+ UserContext expected_user_context_;
DISALLOW_COPY_AND_ASSIGN(MockAuthenticator);
};
« no previous file with comments | « chrome/browser/chromeos/login/auth/login_performer.cc ('k') | chrome/browser/chromeos/login/auth/mock_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698