| 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 11 matching lines...) Expand all Loading... |
| 22 namespace chromeos { | 22 namespace chromeos { |
| 23 | 23 |
| 24 class LoginStatusConsumer; | 24 class LoginStatusConsumer; |
| 25 | 25 |
| 26 class MockLoginUtils : public LoginUtils { | 26 class MockLoginUtils : public LoginUtils { |
| 27 public: | 27 public: |
| 28 MockLoginUtils(); | 28 MockLoginUtils(); |
| 29 virtual ~MockLoginUtils(); | 29 virtual ~MockLoginUtils(); |
| 30 | 30 |
| 31 MOCK_METHOD2(DoBrowserLaunch, void(Profile*, LoginDisplayHost*)); | 31 MOCK_METHOD2(DoBrowserLaunch, void(Profile*, LoginDisplayHost*)); |
| 32 MOCK_METHOD7(PrepareProfile, | 32 MOCK_METHOD6(PrepareProfile, |
| 33 void(const std::string&, const std::string&, const std::string&, | 33 void(const std::string&, const std::string&, const std::string&, |
| 34 bool, bool, bool, | 34 bool, bool, LoginUtils::Delegate*)); |
| 35 LoginUtils::Delegate*)); | |
| 36 MOCK_METHOD1(DelegateDeleted, void(LoginUtils::Delegate*)); | 35 MOCK_METHOD1(DelegateDeleted, void(LoginUtils::Delegate*)); |
| 37 MOCK_METHOD1(CompleteOffTheRecordLogin, void(const GURL&)); | 36 MOCK_METHOD1(CompleteOffTheRecordLogin, void(const GURL&)); |
| 38 MOCK_METHOD1(SetFirstLoginPrefs, void(PrefService*)); | 37 MOCK_METHOD1(SetFirstLoginPrefs, void(PrefService*)); |
| 39 MOCK_METHOD1(CreateAuthenticator, | 38 MOCK_METHOD1(CreateAuthenticator, |
| 40 scoped_refptr<Authenticator>(LoginStatusConsumer*)); | 39 scoped_refptr<Authenticator>(LoginStatusConsumer*)); |
| 41 MOCK_METHOD0(PrewarmAuthentication, void(void)); | 40 MOCK_METHOD0(PrewarmAuthentication, void(void)); |
| 42 MOCK_METHOD1(RestoreAuthenticationSession, void(Profile*)); | 41 MOCK_METHOD1(RestoreAuthenticationSession, void(Profile*)); |
| 43 MOCK_METHOD1(StartTokenServices, void(Profile*)); | 42 MOCK_METHOD1(StartTokenServices, void(Profile*)); |
| 44 MOCK_METHOD2(StartSignedInServices, | |
| 45 void(Profile*, const GaiaAuthConsumer::ClientLoginResult&)); | |
| 46 MOCK_METHOD2(TransferDefaultCookiesAndServerBoundCerts, | 43 MOCK_METHOD2(TransferDefaultCookiesAndServerBoundCerts, |
| 47 void(Profile*, Profile*)); | 44 void(Profile*, Profile*)); |
| 48 MOCK_METHOD2(TransferDefaultAuthCache, void(Profile*, Profile*)); | 45 MOCK_METHOD2(TransferDefaultAuthCache, void(Profile*, Profile*)); |
| 49 MOCK_METHOD0(StopBackgroundFetchers, void(void)); | 46 MOCK_METHOD0(StopBackgroundFetchers, void(void)); |
| 50 MOCK_METHOD1(InitRlzDelayed, void(Profile*)); | 47 MOCK_METHOD1(InitRlzDelayed, void(Profile*)); |
| 51 MOCK_METHOD3(GetOffTheRecordCommandLine, | 48 MOCK_METHOD3(GetOffTheRecordCommandLine, |
| 52 std::string(const GURL&, const CommandLine&, CommandLine*)); | 49 std::string(const GURL&, const CommandLine&, CommandLine*)); |
| 53 }; | 50 }; |
| 54 | 51 |
| 55 } // namespace chromeos | 52 } // namespace chromeos |
| 56 | 53 |
| 57 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_ | 54 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_LOGIN_UTILS_H_ |
| OLD | NEW |