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

Unified Diff: chrome/browser/chromeos/login/fake_login_utils.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
Index: chrome/browser/chromeos/login/fake_login_utils.h
diff --git a/chrome/browser/chromeos/login/fake_login_utils.h b/chrome/browser/chromeos/login/fake_login_utils.h
deleted file mode 100644
index 0696faf84a54ac6a5bad82f825946f1c30d3553d..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/fake_login_utils.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2013 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_FAKE_LOGIN_UTILS_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_
-
-#include "chrome/browser/chromeos/login/login_utils.h"
-#include "chromeos/login/auth/user_context.h"
-
-namespace chromeos {
-
-// This class emulates behavior of LoginUtils for browser tests.
-// It provides:
-// * Fake authentication. You can configure expected usernames and password for
-// next auth attempt.
-// * Preparing of profiles for authenticated users.
-// * Launching browser for user, if |should_launch_browser_| set.
-// * Correct communication with LoginDisplayHost and UserManager.
-class FakeLoginUtils : public LoginUtils {
- public:
- FakeLoginUtils();
- ~FakeLoginUtils() override;
- void DoBrowserLaunch(Profile* profile, LoginDisplayHost* login_host) override;
- void PrepareProfile(const UserContext& user_context,
- bool has_cookies,
- bool has_active_session,
- LoginUtils::Delegate* delegate) override;
- void DelegateDeleted(LoginUtils::Delegate* delegate) override;
- scoped_refptr<Authenticator> CreateAuthenticator(
- AuthStatusConsumer* consumer) override;
-
- void SetExpectedCredentials(const UserContext& user_context);
- void set_should_launch_browser(bool should_launch_browser) {
- should_launch_browser_ = should_launch_browser;
- }
-
- private:
- scoped_refptr<Authenticator> authenticator_;
- UserContext expected_user_context_;
- bool should_launch_browser_;
-
- DISALLOW_COPY_AND_ASSIGN(FakeLoginUtils);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_LOGIN_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698