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

Side by Side Diff: components/sync/api/fake_model_type_change_processor.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_ 5 #ifndef COMPONENTS_SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_
6 #define COMPONENTS_SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_ 6 #define COMPONENTS_SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "components/sync/api/metadata_change_list.h" 11 #include "components/sync/api/metadata_change_list.h"
12 #include "components/sync/api/model_type_change_processor.h" 12 #include "components/sync/api/model_type_change_processor.h"
13 #include "components/sync/base/model_type.h" 13 #include "components/sync/base/model_type.h"
14 14
15 namespace syncer { 15 namespace syncer_v2 {
16 16
17 class ModelTypeService; 17 class ModelTypeService;
18 18
19 // A ModelTypeChangeProcessor implementation for tests. 19 // A ModelTypeChangeProcessor implementation for tests.
20 class FakeModelTypeChangeProcessor : public ModelTypeChangeProcessor { 20 class FakeModelTypeChangeProcessor : public ModelTypeChangeProcessor {
21 public: 21 public:
22 static std::unique_ptr<ModelTypeChangeProcessor> Create( 22 static std::unique_ptr<ModelTypeChangeProcessor> Create(
23 ModelType type, 23 syncer::ModelType type,
24 ModelTypeService* service); 24 ModelTypeService* service);
25 25
26 FakeModelTypeChangeProcessor(); 26 FakeModelTypeChangeProcessor();
27 ~FakeModelTypeChangeProcessor() override; 27 ~FakeModelTypeChangeProcessor() override;
28 28
29 // ModelTypeChangeProcessor overrides 29 // ModelTypeChangeProcessor overrides
30 void Put(const std::string& client_tag, 30 void Put(const std::string& client_tag,
31 std::unique_ptr<EntityData> entity_data, 31 std::unique_ptr<EntityData> entity_data,
32 MetadataChangeList* metadata_change_list) override; 32 MetadataChangeList* metadata_change_list) override;
33 void Delete(const std::string& client_tag, 33 void Delete(const std::string& client_tag,
34 MetadataChangeList* metadata_change_list) override; 34 MetadataChangeList* metadata_change_list) override;
35 void OnMetadataLoaded(SyncError error, 35 void OnMetadataLoaded(syncer::SyncError error,
36 std::unique_ptr<MetadataBatch> batch) override; 36 std::unique_ptr<MetadataBatch> batch) override;
37 void OnSyncStarting(std::unique_ptr<DataTypeErrorHandler> error_handler, 37 void OnSyncStarting(
38 const StartCallback& callback) override; 38 std::unique_ptr<syncer::DataTypeErrorHandler> error_handler,
39 const StartCallback& callback) override;
39 void DisableSync() override; 40 void DisableSync() override;
40 SyncError CreateAndUploadError(const tracked_objects::Location& location, 41 syncer::SyncError CreateAndUploadError(
41 const std::string& message) override; 42 const tracked_objects::Location& location,
43 const std::string& message) override;
42 }; 44 };
43 45
44 } // namespace syncer 46 } // namespace syncer_v2
45 47
46 #endif // COMPONENTS_SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_ 48 #endif // COMPONENTS_SYNC_API_FAKE_MODEL_TYPE_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « components/sync/api/entity_data_unittest.cc ('k') | components/sync/api/fake_model_type_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698