Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Side by Side Diff: components/sync/driver/sync_api_component_factory_mock.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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__
OLDNEW
« no previous file with comments | « components/sync/driver/sync_api_component_factory.h ('k') | components/sync/driver/sync_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698