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

Side by Side Diff: components/sync/api/fake_sync_change_processor.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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "sync/api/fake_sync_change_processor.h" 5 #include "components/sync/api/fake_sync_change_processor.h"
6 6
7 #include "sync/api/sync_change.h" 7 #include "components/sync/api/sync_change.h"
8 #include "sync/api/sync_data.h" 8 #include "components/sync/api/sync_data.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 11
12 FakeSyncChangeProcessor::FakeSyncChangeProcessor() {} 12 FakeSyncChangeProcessor::FakeSyncChangeProcessor() {}
13 13
14 FakeSyncChangeProcessor::~FakeSyncChangeProcessor() {} 14 FakeSyncChangeProcessor::~FakeSyncChangeProcessor() {}
15 15
16 syncer::SyncError FakeSyncChangeProcessor::ProcessSyncChanges( 16 syncer::SyncError FakeSyncChangeProcessor::ProcessSyncChanges(
17 const tracked_objects::Location& from_here, 17 const tracked_objects::Location& from_here,
18 const syncer::SyncChangeList& change_list) { 18 const syncer::SyncChangeList& change_list) {
19 changes_.insert( 19 changes_.insert(changes_.end(), change_list.begin(), change_list.end());
20 changes_.end(), change_list.begin(), change_list.end());
21 return syncer::SyncError(); 20 return syncer::SyncError();
22 } 21 }
23 22
24 syncer::SyncDataList FakeSyncChangeProcessor::GetAllSyncData( 23 syncer::SyncDataList FakeSyncChangeProcessor::GetAllSyncData(
25 syncer::ModelType type) const { 24 syncer::ModelType type) const {
26 return data_; 25 return data_;
27 } 26 }
28 27
29 syncer::SyncError FakeSyncChangeProcessor::UpdateDataTypeContext( 28 syncer::SyncError FakeSyncChangeProcessor::UpdateDataTypeContext(
30 ModelType type, 29 ModelType type,
(...skipping 21 matching lines...) Expand all
52 51
53 const std::string& FakeSyncChangeProcessor::context() const { 52 const std::string& FakeSyncChangeProcessor::context() const {
54 return context_; 53 return context_;
55 } 54 }
56 55
57 std::string& FakeSyncChangeProcessor::context() { 56 std::string& FakeSyncChangeProcessor::context() {
58 return context_; 57 return context_;
59 } 58 }
60 59
61 } // namespace syncer 60 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/api/fake_sync_change_processor.h ('k') | components/sync/api/fake_syncable_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698