OLD | NEW |
| (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_ | |
OLD | NEW |