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 "sync/api/fake_sync_change_processor.h" |
| 6 #include "sync/api/sync_change.h" |
| 7 #include "sync/api/sync_data.h" |
6 | 8 |
7 namespace syncer { | 9 namespace syncer { |
8 | 10 |
9 FakeSyncChangeProcessor::FakeSyncChangeProcessor() {} | 11 FakeSyncChangeProcessor::FakeSyncChangeProcessor() {} |
10 | 12 |
11 FakeSyncChangeProcessor::~FakeSyncChangeProcessor() {} | 13 FakeSyncChangeProcessor::~FakeSyncChangeProcessor() {} |
12 | 14 |
13 syncer::SyncError FakeSyncChangeProcessor::ProcessSyncChanges( | 15 syncer::SyncError FakeSyncChangeProcessor::ProcessSyncChanges( |
14 const tracked_objects::Location& from_here, | 16 const tracked_objects::Location& from_here, |
15 const syncer::SyncChangeList& change_list) { | 17 const syncer::SyncChangeList& change_list) { |
| 18 change_list_.insert( |
| 19 change_list_.end(), change_list.begin(), change_list.end()); |
16 return syncer::SyncError(); | 20 return syncer::SyncError(); |
17 } | 21 } |
18 | 22 |
19 syncer::SyncDataList FakeSyncChangeProcessor::GetAllSyncData( | 23 syncer::SyncDataList FakeSyncChangeProcessor::GetAllSyncData( |
20 syncer::ModelType type) const { | 24 syncer::ModelType type) const { |
21 return syncer::SyncDataList(); | 25 return syncer::SyncDataList(); |
22 } | 26 } |
23 | 27 |
| 28 const syncer::SyncChangeList& FakeSyncChangeProcessor::changes() const { |
| 29 return change_list_; |
| 30 } |
| 31 |
| 32 syncer::SyncChangeList& FakeSyncChangeProcessor::changes() { |
| 33 return change_list_; |
| 34 } |
| 35 |
24 } // namespace syncer | 36 } // namespace syncer |
OLD | NEW |