OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FAKE_GENERIC_CHANGE_PROCESSOR_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ |
6 #define COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ | 6 #define COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "components/sync/api/sync_error.h" | |
13 #include "components/sync/base/model_type.h" | 12 #include "components/sync/base/model_type.h" |
14 #include "components/sync/driver/generic_change_processor.h" | 13 #include "components/sync/driver/generic_change_processor.h" |
15 #include "components/sync/driver/generic_change_processor_factory.h" | 14 #include "components/sync/driver/generic_change_processor_factory.h" |
16 #include "components/sync/driver/sync_api_component_factory.h" | 15 #include "components/sync/driver/sync_api_component_factory.h" |
| 16 #include "components/sync/model/sync_error.h" |
17 | 17 |
18 namespace syncer { | 18 namespace syncer { |
19 | 19 |
20 // A fake GenericChangeProcessor that can return arbitrary values. | 20 // A fake GenericChangeProcessor that can return arbitrary values. |
21 class FakeGenericChangeProcessor : public GenericChangeProcessor { | 21 class FakeGenericChangeProcessor : public GenericChangeProcessor { |
22 public: | 22 public: |
23 FakeGenericChangeProcessor(ModelType type, SyncClient* sync_client); | 23 FakeGenericChangeProcessor(ModelType type, SyncClient* sync_client); |
24 ~FakeGenericChangeProcessor() override; | 24 ~FakeGenericChangeProcessor() override; |
25 | 25 |
26 // Setters for GenericChangeProcessor implementation results. | 26 // Setters for GenericChangeProcessor implementation results. |
(...skipping 29 matching lines...) Expand all Loading... |
56 SyncClient* sync_client) override; | 56 SyncClient* sync_client) override; |
57 | 57 |
58 private: | 58 private: |
59 std::unique_ptr<FakeGenericChangeProcessor> processor_; | 59 std::unique_ptr<FakeGenericChangeProcessor> processor_; |
60 DISALLOW_COPY_AND_ASSIGN(FakeGenericChangeProcessorFactory); | 60 DISALLOW_COPY_AND_ASSIGN(FakeGenericChangeProcessorFactory); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace syncer | 63 } // namespace syncer |
64 | 64 |
65 #endif // COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ | 65 #endif // COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ |
OLD | NEW |