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

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

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_service.h ('k') | sync/api/fake_sync_change_processor.h » ('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 #include "sync/api/fake_model_type_service.h"
6
7 #include <string>
8
9 #include "base/bind.h"
10 #include "base/memory/ptr_util.h"
11 #include "sync/api/fake_model_type_change_processor.h"
12
13 namespace syncer_v2 {
14
15 FakeModelTypeService::FakeModelTypeService()
16 : FakeModelTypeService(base::Bind(&FakeModelTypeChangeProcessor::Create)) {}
17
18 FakeModelTypeService::FakeModelTypeService(
19 const ChangeProcessorFactory& change_processor_factory)
20 : ModelTypeService(change_processor_factory, syncer::PREFERENCES) {}
21
22 FakeModelTypeService::~FakeModelTypeService() {}
23
24 std::unique_ptr<MetadataChangeList>
25 FakeModelTypeService::CreateMetadataChangeList() {
26 return std::unique_ptr<MetadataChangeList>();
27 }
28
29 syncer::SyncError FakeModelTypeService::MergeSyncData(
30 std::unique_ptr<MetadataChangeList> metadata_change_list,
31 EntityDataMap entity_data_map) {
32 return syncer::SyncError();
33 }
34
35 syncer::SyncError FakeModelTypeService::ApplySyncChanges(
36 std::unique_ptr<MetadataChangeList> metadata_change_list,
37 EntityChangeList entity_changes) {
38 return syncer::SyncError();
39 }
40
41 void FakeModelTypeService::GetData(ClientTagList client_tags,
42 DataCallback callback) {}
43
44 void FakeModelTypeService::GetAllData(DataCallback callback) {}
45
46 std::string FakeModelTypeService::GetClientTag(const EntityData& entity_data) {
47 return std::string();
48 }
49
50 void FakeModelTypeService::OnChangeProcessorSet() {}
51
52 bool FakeModelTypeService::HasChangeProcessor() const {
53 return change_processor() != nullptr;
54 }
55
56 } // namespace syncer_v2
OLDNEW
« no previous file with comments | « sync/api/fake_model_type_service.h ('k') | sync/api/fake_sync_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698