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

Side by Side Diff: chrome/browser/chromeos/login/mock_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 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_
7
8 #include <string>
9
10 #include "base/command_line.h"
11 #include "base/memory/ref_counted.h"
12 #include "chrome/browser/chromeos/login/fake_login_utils.h"
13 #include "chrome/browser/chromeos/login/login_utils.h"
14 #include "chrome/browser/chromeos/login/ui/login_display_host.h"
15 #include "chromeos/login/auth/authenticator.h"
16 #include "google_apis/gaia/gaia_auth_consumer.h"
17 #include "testing/gmock/include/gmock/gmock.h"
18 #include "url/gurl.h"
19
20 class Profile;
21
22 namespace chromeos {
23
24 class AuthStatusConsumer;
25 class UserContext;
26
27 class MockLoginUtils : public LoginUtils {
28 public:
29 MockLoginUtils();
30 virtual ~MockLoginUtils();
31
32 MOCK_METHOD2(DoBrowserLaunch, void(Profile*, LoginDisplayHost*));
33 MOCK_METHOD4(PrepareProfile,
34 void(const UserContext&,
35 bool, bool, LoginUtils::Delegate*));
36 MOCK_METHOD1(DelegateDeleted, void(LoginUtils::Delegate*));
37 MOCK_METHOD1(CreateAuthenticator,
38 scoped_refptr<Authenticator>(AuthStatusConsumer*));
39
40 void DelegateToFake();
41 FakeLoginUtils* GetFakeLoginUtils();
42
43 private:
44 scoped_ptr<FakeLoginUtils> fake_login_utils_;
45 };
46
47 } // namespace chromeos
48
49 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/login/mock_login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698