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

Side by Side Diff: sync/api/fake_model_type_service.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
« no previous file with comments | « sync/api/fake_model_type_change_processor.cc ('k') | sync/api/fake_model_type_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SYNC_API_FAKE_MODEL_TYPE_SERVICE_H_
6 #define SYNC_API_FAKE_MODEL_TYPE_SERVICE_H_
7
8 #include <string>
9
10 #include "sync/api/model_type_service.h"
11
12 namespace syncer_v2 {
13
14 // A non-functional implementation of ModelTypeService for
15 // testing purposes.
16 class FakeModelTypeService : public ModelTypeService {
17 public:
18 FakeModelTypeService();
19 explicit FakeModelTypeService(
20 const ChangeProcessorFactory& change_processor_factory);
21 ~FakeModelTypeService() override;
22
23 std::unique_ptr<MetadataChangeList> CreateMetadataChangeList() override;
24 syncer::SyncError MergeSyncData(
25 std::unique_ptr<MetadataChangeList> metadata_change_list,
26 EntityDataMap entity_data_map) override;
27 syncer::SyncError ApplySyncChanges(
28 std::unique_ptr<MetadataChangeList> metadata_change_list,
29 EntityChangeList entity_changes) override;
30 void GetData(ClientTagList client_tags, DataCallback callback) override;
31 void GetAllData(DataCallback callback) override;
32 std::string GetClientTag(const EntityData& entity_data) override;
33 void OnChangeProcessorSet() override;
34
35 bool HasChangeProcessor() const;
36 };
37
38 } // namespace syncer_v2
39
40 #endif // SYNC_API_FAKE_MODEL_TYPE_SERVICE_H_
OLDNEW
« no previous file with comments | « sync/api/fake_model_type_change_processor.cc ('k') | sync/api/fake_model_type_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698