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

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

Issue 151963002: Remove duplicated code from sync related unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed a const qualifier. Created 6 years, 10 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 "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
OLDNEW
« no previous file with comments | « sync/api/fake_sync_change_processor.h ('k') | sync/api/sync_change_processor_wrapper_for_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698