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

Unified Diff: chrome/browser/chromeos/login/mock_login_utils.cc

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/mock_login_utils.cc
diff --git a/chrome/browser/chromeos/login/mock_login_utils.cc b/chrome/browser/chromeos/login/mock_login_utils.cc
deleted file mode 100644
index 23e6a95044d68e03277d43ce18286ad7ec575998..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/mock_login_utils.cc
+++ /dev/null
@@ -1,34 +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.
-
-#include "chrome/browser/chromeos/login/mock_login_utils.h"
-
-#include "chromeos/login/auth/user_context.h"
-
-using namespace testing;
-
-namespace chromeos {
-
-MockLoginUtils::MockLoginUtils() {}
-
-MockLoginUtils::~MockLoginUtils() {}
-
-void MockLoginUtils::DelegateToFake() {
- if (fake_login_utils_.get())
- return;
- fake_login_utils_.reset(new FakeLoginUtils());
- FakeLoginUtils* fake = fake_login_utils_.get();
- ON_CALL(*this, DoBrowserLaunch(_, _))
- .WillByDefault(Invoke(fake, &FakeLoginUtils::DoBrowserLaunch));
- ON_CALL(*this, PrepareProfile(_, _, _, _))
- .WillByDefault(Invoke(fake, &FakeLoginUtils::PrepareProfile));
- ON_CALL(*this, CreateAuthenticator(_))
- .WillByDefault(Invoke(fake, &FakeLoginUtils::CreateAuthenticator));
-}
-
-FakeLoginUtils* MockLoginUtils::GetFakeLoginUtils() {
- return fake_login_utils_.get();
-}
-
-} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/mock_login_utils.h ('k') | chrome/browser/chromeos/login/screens/network_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698