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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/login/mock_login_utils.h"
6
7 #include "chromeos/login/auth/user_context.h"
8
9 using namespace testing;
10
11 namespace chromeos {
12
13 MockLoginUtils::MockLoginUtils() {}
14
15 MockLoginUtils::~MockLoginUtils() {}
16
17 void MockLoginUtils::DelegateToFake() {
18 if (fake_login_utils_.get())
19 return;
20 fake_login_utils_.reset(new FakeLoginUtils());
21 FakeLoginUtils* fake = fake_login_utils_.get();
22 ON_CALL(*this, DoBrowserLaunch(_, _))
23 .WillByDefault(Invoke(fake, &FakeLoginUtils::DoBrowserLaunch));
24 ON_CALL(*this, PrepareProfile(_, _, _, _))
25 .WillByDefault(Invoke(fake, &FakeLoginUtils::PrepareProfile));
26 ON_CALL(*this, CreateAuthenticator(_))
27 .WillByDefault(Invoke(fake, &FakeLoginUtils::CreateAuthenticator));
28 }
29
30 FakeLoginUtils* MockLoginUtils::GetFakeLoginUtils() {
31 return fake_login_utils_.get();
32 }
33
34 } // namespace chromeos
OLDNEW
« 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