OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 class LoginStatusConsumer; | 25 class LoginStatusConsumer; |
26 class UserContext; | 26 class UserContext; |
27 | 27 |
28 class MockLoginUtils : public LoginUtils { | 28 class MockLoginUtils : public LoginUtils { |
29 public: | 29 public: |
30 MockLoginUtils(); | 30 MockLoginUtils(); |
31 virtual ~MockLoginUtils(); | 31 virtual ~MockLoginUtils(); |
32 | 32 |
33 MOCK_METHOD2(DoBrowserLaunch, void(Profile*, LoginDisplayHost*)); | 33 MOCK_METHOD2(DoBrowserLaunch, void(Profile*, LoginDisplayHost*)); |
34 MOCK_METHOD5(PrepareProfile, | 34 MOCK_METHOD4(PrepareProfile, |
35 void(const UserContext&, const std::string&, | 35 void(const UserContext&, |
36 bool, bool, LoginUtils::Delegate*)); | 36 bool, bool, LoginUtils::Delegate*)); |
37 MOCK_METHOD1(DelegateDeleted, void(LoginUtils::Delegate*)); | 37 MOCK_METHOD1(DelegateDeleted, void(LoginUtils::Delegate*)); |
38 MOCK_METHOD1(CompleteOffTheRecordLogin, void(const GURL&)); | 38 MOCK_METHOD1(CompleteOffTheRecordLogin, void(const GURL&)); |
39 MOCK_METHOD1(SetFirstLoginPrefs, void(PrefService*)); | |
40 MOCK_METHOD1(CreateAuthenticator, | 39 MOCK_METHOD1(CreateAuthenticator, |
41 scoped_refptr<Authenticator>(LoginStatusConsumer*)); | 40 scoped_refptr<Authenticator>(LoginStatusConsumer*)); |
42 MOCK_METHOD1(RestoreAuthenticationSession, void(Profile*)); | |
43 MOCK_METHOD1(StartTokenServices, void(Profile*)); | 41 MOCK_METHOD1(StartTokenServices, void(Profile*)); |
44 MOCK_METHOD2(TransferDefaultCookiesAndServerBoundCerts, | 42 MOCK_METHOD2(TransferDefaultCookiesAndServerBoundCerts, |
45 void(Profile*, Profile*)); | 43 void(Profile*, Profile*)); |
46 MOCK_METHOD2(TransferDefaultAuthCache, void(Profile*, Profile*)); | 44 MOCK_METHOD2(TransferDefaultAuthCache, void(Profile*, Profile*)); |
47 MOCK_METHOD0(StopBackgroundFetchers, void(void)); | 45 MOCK_METHOD0(StopBackgroundFetchers, void(void)); |
48 MOCK_METHOD1(InitRlzDelayed, void(Profile*)); | |
49 | 46 |
50 void DelegateToFake(); | 47 void DelegateToFake(); |
51 FakeLoginUtils* GetFakeLoginUtils(); | 48 FakeLoginUtils* GetFakeLoginUtils(); |
52 | 49 |
53 private: | 50 private: |
54 scoped_ptr<FakeLoginUtils> fake_login_utils_; | 51 scoped_ptr<FakeLoginUtils> fake_login_utils_; |
55 }; | 52 }; |
56 | 53 |
57 } // namespace chromeos | 54 } // namespace chromeos |
58 | 55 |
59 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_ | 56 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_ |
OLD | NEW |