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

Side by Side Diff: components/sync/api/fake_sync_change_processor.cc

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
« no previous file with comments | « components/sync/api/fake_sync_change_processor.h ('k') | components/sync/api/metadata_batch.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/sync/api/fake_sync_change_processor.h" 5 #include "components/sync/api/fake_sync_change_processor.h"
6 6
7 #include "components/sync/api/sync_change.h" 7 #include "components/sync/api/sync_change.h"
8 #include "components/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 SyncError FakeSyncChangeProcessor::ProcessSyncChanges( 16 syncer::SyncError FakeSyncChangeProcessor::ProcessSyncChanges(
17 const tracked_objects::Location& from_here, 17 const tracked_objects::Location& from_here,
18 const SyncChangeList& change_list) { 18 const syncer::SyncChangeList& change_list) {
19 changes_.insert(changes_.end(), change_list.begin(), change_list.end()); 19 changes_.insert(changes_.end(), change_list.begin(), change_list.end());
20 return SyncError(); 20 return syncer::SyncError();
21 } 21 }
22 22
23 SyncDataList FakeSyncChangeProcessor::GetAllSyncData(ModelType type) const { 23 syncer::SyncDataList FakeSyncChangeProcessor::GetAllSyncData(
24 syncer::ModelType type) const {
24 return data_; 25 return data_;
25 } 26 }
26 27
27 SyncError FakeSyncChangeProcessor::UpdateDataTypeContext( 28 syncer::SyncError FakeSyncChangeProcessor::UpdateDataTypeContext(
28 ModelType type, 29 ModelType type,
29 ContextRefreshStatus refresh_status, 30 ContextRefreshStatus refresh_status,
30 const std::string& context) { 31 const std::string& context) {
31 context_ = context; 32 context_ = context;
32 return SyncError(); 33 return syncer::SyncError();
33 } 34 }
34 35
35 void FakeSyncChangeProcessor::AddLocalChangeObserver( 36 void FakeSyncChangeProcessor::AddLocalChangeObserver(
36 LocalChangeObserver* observer) {} 37 syncer::LocalChangeObserver* observer) {}
37 38
38 void FakeSyncChangeProcessor::RemoveLocalChangeObserver( 39 void FakeSyncChangeProcessor::RemoveLocalChangeObserver(
39 LocalChangeObserver* observer) {} 40 syncer::LocalChangeObserver* observer) {}
40 41
41 const SyncChangeList& FakeSyncChangeProcessor::changes() const { 42 const syncer::SyncChangeList& FakeSyncChangeProcessor::changes() const {
42 return changes_; 43 return changes_;
43 } 44 }
44 45
45 SyncChangeList& FakeSyncChangeProcessor::changes() { 46 syncer::SyncChangeList& FakeSyncChangeProcessor::changes() {
46 return changes_; 47 return changes_;
47 } 48 }
48 49
49 const SyncDataList& FakeSyncChangeProcessor::data() const { 50 const syncer::SyncDataList& FakeSyncChangeProcessor::data() const {
50 return data_; 51 return data_;
51 } 52 }
52 53
53 SyncDataList& FakeSyncChangeProcessor::data() { 54 syncer::SyncDataList& FakeSyncChangeProcessor::data() {
54 return data_; 55 return data_;
55 } 56 }
56 57
57 const std::string& FakeSyncChangeProcessor::context() const { 58 const std::string& FakeSyncChangeProcessor::context() const {
58 return context_; 59 return context_;
59 } 60 }
60 61
61 std::string& FakeSyncChangeProcessor::context() { 62 std::string& FakeSyncChangeProcessor::context() {
62 return context_; 63 return context_;
63 } 64 }
64 65
65 } // namespace syncer 66 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/api/fake_sync_change_processor.h ('k') | components/sync/api/metadata_batch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698