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 25 matching lines...) Expand all Loading... |
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(CreateAuthenticator, | 39 MOCK_METHOD1(CreateAuthenticator, |
40 scoped_refptr<Authenticator>(LoginStatusConsumer*)); | 40 scoped_refptr<Authenticator>(LoginStatusConsumer*)); |
41 MOCK_METHOD1(StartTokenServices, void(Profile*)); | 41 MOCK_METHOD1(StartTokenServices, void(Profile*)); |
42 MOCK_METHOD2(TransferDefaultCookiesAndServerBoundCerts, | 42 MOCK_METHOD2(TransferDefaultCookiesAndServerBoundCerts, |
43 void(Profile*, Profile*)); | 43 void(Profile*, Profile*)); |
44 MOCK_METHOD2(TransferDefaultAuthCache, void(Profile*, Profile*)); | 44 MOCK_METHOD2(TransferDefaultAuthCache, void(Profile*, Profile*)); |
45 MOCK_METHOD0(StopBackgroundFetchers, void(void)); | 45 MOCK_METHOD0(StopBackgroundFetchers, void(void)); |
| 46 MOCK_METHOD1(RestartToApplyPerSessionFlagsIfNeed, |
| 47 bool(Profile*, bool early_restart)); |
46 | 48 |
47 void DelegateToFake(); | 49 void DelegateToFake(); |
48 FakeLoginUtils* GetFakeLoginUtils(); | 50 FakeLoginUtils* GetFakeLoginUtils(); |
49 | 51 |
50 private: | 52 private: |
51 scoped_ptr<FakeLoginUtils> fake_login_utils_; | 53 scoped_ptr<FakeLoginUtils> fake_login_utils_; |
52 }; | 54 }; |
53 | 55 |
54 } // namespace chromeos | 56 } // namespace chromeos |
55 | 57 |
56 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_ | 58 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_ |
OLD | NEW |