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 <string> | 8 #include <string> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "components/sync_driver/generic_change_processor.h" | 11 #include "components/sync_driver/generic_change_processor.h" |
11 #include "components/sync_driver/generic_change_processor_factory.h" | 12 #include "components/sync_driver/generic_change_processor_factory.h" |
12 #include "components/sync_driver/sync_api_component_factory.h" | 13 #include "components/sync_driver/sync_api_component_factory.h" |
13 #include "sync/api/sync_error.h" | 14 #include "sync/api/sync_error.h" |
14 #include "sync/internal_api/public/base/model_type.h" | 15 #include "sync/internal_api/public/base/model_type.h" |
15 | 16 |
16 namespace sync_driver { | 17 namespace sync_driver { |
17 | 18 |
18 // A fake GenericChangeProcessor that can return arbitrary values. | 19 // A fake GenericChangeProcessor that can return arbitrary values. |
19 class FakeGenericChangeProcessor : public GenericChangeProcessor { | 20 class FakeGenericChangeProcessor : public GenericChangeProcessor { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 SyncClient* sync_client) override; | 58 SyncClient* sync_client) override; |
58 | 59 |
59 private: | 60 private: |
60 scoped_ptr<FakeGenericChangeProcessor> processor_; | 61 scoped_ptr<FakeGenericChangeProcessor> processor_; |
61 DISALLOW_COPY_AND_ASSIGN(FakeGenericChangeProcessorFactory); | 62 DISALLOW_COPY_AND_ASSIGN(FakeGenericChangeProcessorFactory); |
62 }; | 63 }; |
63 | 64 |
64 } // namespace sync_driver | 65 } // namespace sync_driver |
65 | 66 |
66 #endif // COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ | 67 #endif // COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ |
OLD | NEW |