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

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

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 months 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 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 "base/macros.h"
11 #include "components/sync/api/sync_error.h" 11 #include "components/sync/api/sync_error.h"
12 #include "components/sync/base/model_type.h" 12 #include "components/sync/base/model_type.h"
13 #include "components/sync_driver/generic_change_processor.h" 13 #include "components/sync/driver/generic_change_processor.h"
14 #include "components/sync_driver/generic_change_processor_factory.h" 14 #include "components/sync/driver/generic_change_processor_factory.h"
15 #include "components/sync_driver/sync_api_component_factory.h" 15 #include "components/sync/driver/sync_api_component_factory.h"
16 16
17 namespace sync_driver { 17 namespace sync_driver {
18 18
19 // A fake GenericChangeProcessor that can return arbitrary values. 19 // A fake GenericChangeProcessor that can return arbitrary values.
20 class FakeGenericChangeProcessor : public GenericChangeProcessor { 20 class FakeGenericChangeProcessor : public GenericChangeProcessor {
21 public: 21 public:
22 FakeGenericChangeProcessor(syncer::ModelType type, 22 FakeGenericChangeProcessor(syncer::ModelType type, SyncClient* sync_client);
23 SyncClient* sync_client);
24 ~FakeGenericChangeProcessor() override; 23 ~FakeGenericChangeProcessor() override;
25 24
26 // Setters for GenericChangeProcessor implementation results. 25 // Setters for GenericChangeProcessor implementation results.
27 void set_sync_model_has_user_created_nodes(bool has_nodes); 26 void set_sync_model_has_user_created_nodes(bool has_nodes);
28 void set_sync_model_has_user_created_nodes_success(bool success); 27 void set_sync_model_has_user_created_nodes_success(bool success);
29 28
30 // GenericChangeProcessor implementations. 29 // GenericChangeProcessor implementations.
31 syncer::SyncError ProcessSyncChanges( 30 syncer::SyncError ProcessSyncChanges(
32 const tracked_objects::Location& from_here, 31 const tracked_objects::Location& from_here,
33 const syncer::SyncChangeList& change_list) override; 32 const syncer::SyncChangeList& change_list) override;
(...skipping 24 matching lines...) Expand all
58 SyncClient* sync_client) override; 57 SyncClient* sync_client) override;
59 58
60 private: 59 private:
61 std::unique_ptr<FakeGenericChangeProcessor> processor_; 60 std::unique_ptr<FakeGenericChangeProcessor> processor_;
62 DISALLOW_COPY_AND_ASSIGN(FakeGenericChangeProcessorFactory); 61 DISALLOW_COPY_AND_ASSIGN(FakeGenericChangeProcessorFactory);
63 }; 62 };
64 63
65 } // namespace sync_driver 64 } // namespace sync_driver
66 65
67 #endif // COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_ 66 #endif // COMPONENTS_SYNC_DRIVER_FAKE_GENERIC_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « components/sync/driver/fake_data_type_controller.cc ('k') | components/sync/driver/fake_generic_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698