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 |
11 #include "components/sync/base/model_type.h" | 11 #include "components/sync/base/model_type.h" |
12 #include "components/sync/driver/data_type_controller.h" | 12 #include "components/sync/driver/data_type_controller.h" |
13 #include "components/sync/driver/sync_api_component_factory.h" | 13 #include "components/sync/driver/sync_api_component_factory.h" |
14 #include "components/sync/model/data_type_error_handler.h" | 14 #include "components/sync/model/data_type_error_handler.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
16 | 16 |
17 namespace syncer { | 17 namespace syncer { |
18 | 18 |
19 class AssociatorInterface; | 19 class AssociatorInterface; |
20 class ChangeProcessor; | 20 class ChangeProcessor; |
21 class DataTypeEncryptionHandler; | 21 class DataTypeEncryptionHandler; |
22 class DataTypeStatusTable; | |
23 class SyncClient; | |
24 | 22 |
25 class SyncApiComponentFactoryMock : public SyncApiComponentFactory { | 23 class SyncApiComponentFactoryMock : public SyncApiComponentFactory { |
26 public: | 24 public: |
27 SyncApiComponentFactoryMock(); | 25 SyncApiComponentFactoryMock(); |
28 SyncApiComponentFactoryMock(AssociatorInterface* model_associator, | 26 SyncApiComponentFactoryMock(AssociatorInterface* model_associator, |
29 ChangeProcessor* change_processor); | 27 ChangeProcessor* change_processor); |
30 ~SyncApiComponentFactoryMock() override; | 28 ~SyncApiComponentFactoryMock() override; |
31 | 29 |
32 MOCK_METHOD2(RegisterDataTypes, | 30 MOCK_METHOD2(RegisterDataTypes, |
33 void(SyncService* sync_service, const RegisterDataTypesMethod&)); | 31 void(SyncService* sync_service, const RegisterDataTypesMethod&)); |
(...skipping 30 matching lines...) Expand all Loading... |
64 std::unique_ptr<AssociatorInterface> model_associator_; | 62 std::unique_ptr<AssociatorInterface> model_associator_; |
65 std::unique_ptr<ChangeProcessor> change_processor_; | 63 std::unique_ptr<ChangeProcessor> change_processor_; |
66 // LocalDeviceInfoProvider is initially owned by this class, | 64 // LocalDeviceInfoProvider is initially owned by this class, |
67 // transferred to caller when CreateLocalDeviceInfoProvider is called. | 65 // transferred to caller when CreateLocalDeviceInfoProvider is called. |
68 std::unique_ptr<LocalDeviceInfoProvider> local_device_; | 66 std::unique_ptr<LocalDeviceInfoProvider> local_device_; |
69 }; | 67 }; |
70 | 68 |
71 } // namespace syncer | 69 } // namespace syncer |
72 | 70 |
73 #endif // COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_MOCK_H__ | 71 #endif // COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_MOCK_H__ |
OLD | NEW |