| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/sync/profile_sync_service.h" | 10 #include "chrome/browser/sync/profile_sync_service.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 browser_sync::ChangeProcessor* change_processor); | 26 browser_sync::ChangeProcessor* change_processor); |
| 27 virtual ~ProfileSyncFactoryMock(); | 27 virtual ~ProfileSyncFactoryMock(); |
| 28 | 28 |
| 29 MOCK_METHOD1(CreateProfileSyncService, | 29 MOCK_METHOD1(CreateProfileSyncService, |
| 30 ProfileSyncService*(const std::string&)); | 30 ProfileSyncService*(const std::string&)); |
| 31 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*)); | 31 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*)); |
| 32 MOCK_METHOD2(CreateDataTypeManager, | 32 MOCK_METHOD2(CreateDataTypeManager, |
| 33 browser_sync::DataTypeManager*( | 33 browser_sync::DataTypeManager*( |
| 34 browser_sync::SyncBackendHost*, | 34 browser_sync::SyncBackendHost*, |
| 35 const browser_sync::DataTypeController::TypeMap*)); | 35 const browser_sync::DataTypeController::TypeMap*)); |
| 36 MOCK_METHOD3(CreateGenericChangeProcessor, |
| 37 browser_sync::GenericChangeProcessor*( |
| 38 ProfileSyncService* profile_sync_service, |
| 39 browser_sync::UnrecoverableErrorHandler* error_handler, |
| 40 const base::WeakPtr<SyncableService>& local_service)); |
| 41 MOCK_METHOD0(CreateSharedChangeProcessor, |
| 42 browser_sync::SharedChangeProcessor*()); |
| 36 MOCK_METHOD2(CreateAppSyncComponents, | 43 MOCK_METHOD2(CreateAppSyncComponents, |
| 37 SyncComponents(ProfileSyncService* profile_sync_service, | 44 SyncComponents(ProfileSyncService* profile_sync_service, |
| 38 browser_sync::UnrecoverableErrorHandler* error_handler)); | 45 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 39 MOCK_METHOD3(CreateAutofillSyncComponents, | 46 MOCK_METHOD3(CreateAutofillSyncComponents, |
| 40 SyncComponents( | 47 SyncComponents( |
| 41 ProfileSyncService* profile_sync_service, | 48 ProfileSyncService* profile_sync_service, |
| 42 WebDatabase* web_database, | 49 WebDatabase* web_database, |
| 43 browser_sync::UnrecoverableErrorHandler* error_handler)); | 50 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 44 MOCK_METHOD3(CreateAutofillProfileSyncComponents, | 51 MOCK_CONST_METHOD1(GetAutofillProfileSyncableService, |
| 45 SyncComponents( | 52 base::WeakPtr<SyncableService>( |
| 46 ProfileSyncService* profile_sync_service, | 53 WebDataService* web_data_service)); |
| 47 WebDataService* web_data_service, | |
| 48 browser_sync::UnrecoverableErrorHandler* error_handler)); | |
| 49 MOCK_METHOD2(CreateBookmarkSyncComponents, | 54 MOCK_METHOD2(CreateBookmarkSyncComponents, |
| 50 SyncComponents(ProfileSyncService* profile_sync_service, | 55 SyncComponents(ProfileSyncService* profile_sync_service, |
| 51 browser_sync::UnrecoverableErrorHandler* error_handler)); | 56 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 52 MOCK_METHOD2(CreateExtensionSyncComponents, | 57 MOCK_METHOD2(CreateExtensionSyncComponents, |
| 53 SyncComponents(ProfileSyncService* profile_sync_service, | 58 SyncComponents(ProfileSyncService* profile_sync_service, |
| 54 browser_sync::UnrecoverableErrorHandler* error_handler)); | 59 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 55 MOCK_METHOD3(CreateExtensionSettingSyncComponents, | 60 MOCK_METHOD3(CreateExtensionSettingSyncComponents, |
| 56 SyncComponents(ExtensionSettingsBackend* extension_settings_backend, | 61 SyncComponents(ExtensionSettingsBackend* extension_settings_backend, |
| 57 ProfileSyncService* profile_sync_service, | 62 ProfileSyncService* profile_sync_service, |
| 58 browser_sync::UnrecoverableErrorHandler* error_handler)); | 63 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 81 browser_sync::UnrecoverableErrorHandler* error_handler)); | 86 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 82 | 87 |
| 83 private: | 88 private: |
| 84 SyncComponents MakeSyncComponents(); | 89 SyncComponents MakeSyncComponents(); |
| 85 | 90 |
| 86 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; | 91 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; |
| 87 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; | 92 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; |
| 88 }; | 93 }; |
| 89 | 94 |
| 90 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ | 95 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ |
| OLD | NEW |