| 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 COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_MOCK_H__ | 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_MOCK_H__ |
| 6 #define COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_MOCK_H__ | 6 #define COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_MOCK_H__ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 class SyncApiComponentFactoryMock : public SyncApiComponentFactory { | 23 class SyncApiComponentFactoryMock : public SyncApiComponentFactory { |
| 24 public: | 24 public: |
| 25 SyncApiComponentFactoryMock(); | 25 SyncApiComponentFactoryMock(); |
| 26 SyncApiComponentFactoryMock(AssociatorInterface* model_associator, | 26 SyncApiComponentFactoryMock(AssociatorInterface* model_associator, |
| 27 ChangeProcessor* change_processor); | 27 ChangeProcessor* change_processor); |
| 28 ~SyncApiComponentFactoryMock() override; | 28 ~SyncApiComponentFactoryMock() override; |
| 29 | 29 |
| 30 MOCK_METHOD2(RegisterDataTypes, | 30 MOCK_METHOD2(RegisterDataTypes, |
| 31 void(SyncService* sync_service, const RegisterDataTypesMethod&)); | 31 void(SyncService* sync_service, const RegisterDataTypesMethod&)); |
| 32 MOCK_METHOD5(CreateDataTypeManager, | 32 MOCK_METHOD6(CreateDataTypeManager, |
| 33 DataTypeManager*(const WeakHandle<DataTypeDebugInfoListener>&, | 33 DataTypeManager*(ModelTypeSet initial_types, |
| 34 const WeakHandle<DataTypeDebugInfoListener>&, |
| 34 const DataTypeController::TypeMap*, | 35 const DataTypeController::TypeMap*, |
| 35 const DataTypeEncryptionHandler*, | 36 const DataTypeEncryptionHandler*, |
| 36 SyncEngine*, | 37 ModelTypeConfigurer*, |
| 37 DataTypeManagerObserver* observer)); | 38 DataTypeManagerObserver* observer)); |
| 38 MOCK_METHOD4(CreateSyncEngine, | 39 MOCK_METHOD4(CreateSyncEngine, |
| 39 SyncEngine*(const std::string& name, | 40 SyncEngine*(const std::string& name, |
| 40 invalidation::InvalidationService* invalidator, | 41 invalidation::InvalidationService* invalidator, |
| 41 const base::WeakPtr<SyncPrefs>& sync_prefs, | 42 const base::WeakPtr<SyncPrefs>& sync_prefs, |
| 42 const base::FilePath& sync_folder)); | 43 const base::FilePath& sync_folder)); |
| 43 | 44 |
| 44 std::unique_ptr<LocalDeviceInfoProvider> CreateLocalDeviceInfoProvider() | 45 std::unique_ptr<LocalDeviceInfoProvider> CreateLocalDeviceInfoProvider() |
| 45 override; | 46 override; |
| 46 void SetLocalDeviceInfoProvider( | 47 void SetLocalDeviceInfoProvider( |
| (...skipping 15 matching lines...) Expand all Loading... |
| 62 std::unique_ptr<AssociatorInterface> model_associator_; | 63 std::unique_ptr<AssociatorInterface> model_associator_; |
| 63 std::unique_ptr<ChangeProcessor> change_processor_; | 64 std::unique_ptr<ChangeProcessor> change_processor_; |
| 64 // LocalDeviceInfoProvider is initially owned by this class, | 65 // LocalDeviceInfoProvider is initially owned by this class, |
| 65 // transferred to caller when CreateLocalDeviceInfoProvider is called. | 66 // transferred to caller when CreateLocalDeviceInfoProvider is called. |
| 66 std::unique_ptr<LocalDeviceInfoProvider> local_device_; | 67 std::unique_ptr<LocalDeviceInfoProvider> local_device_; |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace syncer | 70 } // namespace syncer |
| 70 | 71 |
| 71 #endif // COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_MOCK_H__ | 72 #endif // COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_MOCK_H__ |
| OLD | NEW |