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

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

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 #ifndef SYNC_API_FAKE_SYNC_CHANGE_PROCESSOR_H_ 5 #ifndef SYNC_API_FAKE_SYNC_CHANGE_PROCESSOR_H_
6 #define SYNC_API_FAKE_SYNC_CHANGE_PROCESSOR_H_ 6 #define SYNC_API_FAKE_SYNC_CHANGE_PROCESSOR_H_
7 7
8 #include "sync/api/sync_change_processor.h" 8 #include "sync/api/sync_change_processor.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 11
12 class FakeSyncChangeProcessor : public SyncChangeProcessor { 12 class FakeSyncChangeProcessor : public SyncChangeProcessor {
13 public: 13 public:
14 FakeSyncChangeProcessor(); 14 FakeSyncChangeProcessor();
15 virtual ~FakeSyncChangeProcessor(); 15 virtual ~FakeSyncChangeProcessor();
16 16
17 // SyncChangeProcessor implementation.
18 //
19 // ProcessSyncChanges will accumulate changes in changes() until they are
20 // cleared.
17 virtual syncer::SyncError ProcessSyncChanges( 21 virtual syncer::SyncError ProcessSyncChanges(
18 const tracked_objects::Location& from_here, 22 const tracked_objects::Location& from_here,
19 const syncer::SyncChangeList& change_list) OVERRIDE; 23 const syncer::SyncChangeList& change_list) OVERRIDE;
20 24
25 // SyncChangeProcessor implementation.
26 //
27 // Returns an empty list.
21 virtual syncer::SyncDataList GetAllSyncData(syncer::ModelType type) 28 virtual syncer::SyncDataList GetAllSyncData(syncer::ModelType type)
22 const OVERRIDE; 29 const OVERRIDE;
30
31 virtual const syncer::SyncChangeList& changes() const;
32 virtual syncer::SyncChangeList& changes();
33
34 private:
35 syncer::SyncChangeList change_list_;
36
37 DISALLOW_COPY_AND_ASSIGN(FakeSyncChangeProcessor);
23 }; 38 };
24 39
25 } // namespace syncer 40 } // namespace syncer
26 41
27 #endif // SYNC_API_FAKE_SYNC_CHANGE_PROCESSOR_H_ 42 #endif // SYNC_API_FAKE_SYNC_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/themes/theme_syncable_service_unittest.cc ('k') | sync/api/fake_sync_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698