| 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_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/sync/profile_sync_components_factory.h" | 9 #include "chrome/browser/sync/profile_sync_components_factory.h" |
| 10 #include "chrome/browser/sync/profile_sync_service.h" | 10 #include "chrome/browser/sync/profile_sync_service.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 class ProfileSyncComponentsFactoryMock : public ProfileSyncComponentsFactory { | 22 class ProfileSyncComponentsFactoryMock : public ProfileSyncComponentsFactory { |
| 23 public: | 23 public: |
| 24 ProfileSyncComponentsFactoryMock(); | 24 ProfileSyncComponentsFactoryMock(); |
| 25 ProfileSyncComponentsFactoryMock( | 25 ProfileSyncComponentsFactoryMock( |
| 26 sync_driver::AssociatorInterface* model_associator, | 26 sync_driver::AssociatorInterface* model_associator, |
| 27 sync_driver::ChangeProcessor* change_processor); | 27 sync_driver::ChangeProcessor* change_processor); |
| 28 virtual ~ProfileSyncComponentsFactoryMock(); | 28 virtual ~ProfileSyncComponentsFactoryMock(); |
| 29 | 29 |
| 30 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*)); | 30 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*)); |
| 31 MOCK_METHOD5(CreateDataTypeManager, | 31 MOCK_METHOD6(CreateDataTypeManager, |
| 32 sync_driver::DataTypeManager*( | 32 sync_driver::DataTypeManager*( |
| 33 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&, | 33 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&, |
| 34 const sync_driver::DataTypeController::TypeMap*, | 34 const sync_driver::DataTypeController::TypeMap*, |
| 35 const sync_driver::DataTypeEncryptionHandler*, | 35 const sync_driver::DataTypeEncryptionHandler*, |
| 36 browser_sync::SyncBackendHost*, | 36 browser_sync::SyncBackendHost*, |
| 37 sync_driver::DataTypeManagerObserver* observer)); | 37 sync_driver::DataTypeManagerObserver* observer, |
| 38 sync_driver::DataTypeStatusTable* |
| 39 data_type_status_table)); |
| 38 MOCK_METHOD5(CreateSyncBackendHost, | 40 MOCK_METHOD5(CreateSyncBackendHost, |
| 39 browser_sync::SyncBackendHost*( | 41 browser_sync::SyncBackendHost*( |
| 40 const std::string& name, | 42 const std::string& name, |
| 41 Profile* profile, | 43 Profile* profile, |
| 42 invalidation::InvalidationService* invalidator, | 44 invalidation::InvalidationService* invalidator, |
| 43 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, | 45 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, |
| 44 const base::FilePath& sync_folder)); | 46 const base::FilePath& sync_folder)); |
| 45 | 47 |
| 46 virtual scoped_ptr<browser_sync::LocalDeviceInfoProvider> | 48 virtual scoped_ptr<browser_sync::LocalDeviceInfoProvider> |
| 47 CreateLocalDeviceInfoProvider() OVERRIDE; | 49 CreateLocalDeviceInfoProvider() OVERRIDE; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 71 SyncComponents MakeSyncComponents(); | 73 SyncComponents MakeSyncComponents(); |
| 72 | 74 |
| 73 scoped_ptr<sync_driver::AssociatorInterface> model_associator_; | 75 scoped_ptr<sync_driver::AssociatorInterface> model_associator_; |
| 74 scoped_ptr<sync_driver::ChangeProcessor> change_processor_; | 76 scoped_ptr<sync_driver::ChangeProcessor> change_processor_; |
| 75 // LocalDeviceInfoProvider is initially owned by this class, | 77 // LocalDeviceInfoProvider is initially owned by this class, |
| 76 // transferred to caller when CreateLocalDeviceInfoProvider is called. | 78 // transferred to caller when CreateLocalDeviceInfoProvider is called. |
| 77 scoped_ptr<browser_sync::LocalDeviceInfoProvider> local_device_; | 79 scoped_ptr<browser_sync::LocalDeviceInfoProvider> local_device_; |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ | 82 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ |
| OLD | NEW |