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

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

Issue 745613002: [cros] Cleanup: remove LoginUtils (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get rid of FakeChromeUserManager usage in ExistingUserController* tests Created 5 years, 10 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 | « chromeos/chromeos.gyp ('k') | chromeos/login/auth/mock_authenticator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/mock_authenticator.h
diff --git a/chromeos/login/auth/mock_authenticator.h b/chromeos/login/auth/mock_authenticator.h
deleted file mode 100644
index e36eb6cf4f5b7f434363d93a720323650b279ecd..0000000000000000000000000000000000000000
--- a/chromeos/login/auth/mock_authenticator.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2014 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 CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_
-#define CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_
-
-#include <string>
-
-#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"
-
-namespace content {
-class BrowserContext;
-}
-
-namespace chromeos {
-
-class AuthStatusConsumer;
-
-class CHROMEOS_EXPORT MockAuthenticator : public Authenticator {
- public:
- MockAuthenticator(AuthStatusConsumer* consumer,
- const UserContext& expected_user_context);
-
- // Authenticator:
- void CompleteLogin(content::BrowserContext* context,
- const UserContext& user_context) override;
- void AuthenticateToLogin(content::BrowserContext* context,
- const UserContext& user_context) override;
- void AuthenticateToUnlock(const UserContext& user_context) override;
- void LoginAsSupervisedUser(const UserContext& user_context) override;
- void LoginOffTheRecord() override;
- void LoginAsPublicSession(const UserContext& user_context) override;
- void LoginAsKioskAccount(const std::string& app_user_id,
- bool use_guest_mount) override;
- void OnAuthSuccess() override;
- void OnAuthFailure(const AuthFailure& failure) override;
- void RecoverEncryptedData(const std::string& old_password) override;
- void ResyncEncryptedData() override;
-
- virtual void SetExpectedCredentials(const UserContext& user_context);
-
- protected:
- ~MockAuthenticator() override;
-
- private:
- UserContext expected_user_context_;
- scoped_refptr<base::MessageLoopProxy> message_loop_;
-
- DISALLOW_COPY_AND_ASSIGN(MockAuthenticator);
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_LOGIN_AUTH_MOCK_AUTHENTICATOR_H_
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/login/auth/mock_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698