| Index: chromeos/login/auth/mock_authenticator.h
|
| diff --git a/chrome/browser/chromeos/login/auth/mock_authenticator.h b/chromeos/login/auth/mock_authenticator.h
|
| similarity index 73%
|
| rename from chrome/browser/chromeos/login/auth/mock_authenticator.h
|
| rename to chromeos/login/auth/mock_authenticator.h
|
| index 4bd3482053e482ae2d754d57e745fecb897679fb..19646f58772e22881f7b325f060576956ea2370f 100644
|
| --- a/chrome/browser/chromeos/login/auth/mock_authenticator.h
|
| +++ b/chromeos/login/auth/mock_authenticator.h
|
| @@ -2,12 +2,14 @@
|
| // 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_AUTH_MOCK_AUTHENTICATOR_H_
|
| -#define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_
|
| +#ifndef CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_
|
| +#define CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_
|
|
|
| #include <string>
|
|
|
| -#include "chrome/browser/chromeos/login/auth/authenticator.h"
|
| +#include "base/message_loop/message_loop_proxy.h"
|
| +#include "chromeos/chromeos_export.h"
|
| +#include "chromeos/login/auth/authenticator.h"
|
| #include "chromeos/login/auth/user_context.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -17,7 +19,7 @@ namespace chromeos {
|
|
|
| class AuthStatusConsumer;
|
|
|
| -class MockAuthenticator : public Authenticator {
|
| +class CHROMEOS_EXPORT MockAuthenticator : public Authenticator {
|
| public:
|
| MockAuthenticator(AuthStatusConsumer* consumer,
|
| const UserContext& expected_user_context);
|
| @@ -28,8 +30,7 @@ class MockAuthenticator : public Authenticator {
|
| virtual void AuthenticateToLogin(Profile* profile,
|
| const UserContext& user_context) OVERRIDE;
|
| virtual void AuthenticateToUnlock(const UserContext& user_context) OVERRIDE;
|
| - virtual void LoginAsSupervisedUser(
|
| - const UserContext& user_context) OVERRIDE;
|
| + virtual void LoginAsSupervisedUser(const UserContext& user_context) OVERRIDE;
|
| virtual void LoginRetailMode() OVERRIDE;
|
| virtual void LoginOffTheRecord() OVERRIDE;
|
| virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE;
|
| @@ -38,8 +39,7 @@ class MockAuthenticator : public Authenticator {
|
| virtual void OnRetailModeAuthSuccess() OVERRIDE;
|
| virtual void OnAuthSuccess() OVERRIDE;
|
| virtual void OnAuthFailure(const AuthFailure& failure) OVERRIDE;
|
| - virtual void RecoverEncryptedData(
|
| - const std::string& old_password) OVERRIDE;
|
| + virtual void RecoverEncryptedData(const std::string& old_password) OVERRIDE;
|
| virtual void ResyncEncryptedData() OVERRIDE;
|
|
|
| virtual void SetExpectedCredentials(const UserContext& user_context);
|
| @@ -49,10 +49,11 @@ class MockAuthenticator : public Authenticator {
|
|
|
| private:
|
| UserContext expected_user_context_;
|
| + scoped_refptr<base::MessageLoopProxy> message_loop_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(MockAuthenticator);
|
| };
|
|
|
| } // namespace chromeos
|
|
|
| -#endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_
|
| +#endif // CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_
|
|
|