OLD | NEW |
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 Loading... |
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 |
OLD | NEW |