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
3 // found in the LICENSE file.
5 #ifndef SYNC_API_FAKE_SYNC_CHANGE_PROCESSOR_H_
6 #define SYNC_API_FAKE_SYNC_CHANGE_PROCESSOR_H_
8 #include "sync/api/sync_change_processor.h"
12 class FakeSyncChangeProcessor
: public SyncChangeProcessor
{
14 FakeSyncChangeProcessor();
15 ~FakeSyncChangeProcessor() override
;
17 // SyncChangeProcessor implementation.
19 // ProcessSyncChanges will accumulate changes in changes() until they are
21 syncer::SyncError
ProcessSyncChanges(
22 const tracked_objects::Location
& from_here
,
23 const syncer::SyncChangeList
& change_list
) override
;
25 // SyncChangeProcessor implementation.
28 syncer::SyncDataList
GetAllSyncData(syncer::ModelType type
) const override
;
30 // SyncChangeProcessor implementation.
33 syncer::SyncError
UpdateDataTypeContext(ModelType type
,
34 ContextRefreshStatus refresh_status
,
35 const std::string
& context
) override
;
37 virtual const syncer::SyncChangeList
& changes() const;
38 virtual syncer::SyncChangeList
& changes();
40 virtual const syncer::SyncDataList
& data() const;
41 virtual syncer::SyncDataList
& data();
43 virtual const std::string
& context() const;
44 virtual std::string
& context();
47 syncer::SyncChangeList changes_
;
48 syncer::SyncDataList data_
;
51 DISALLOW_COPY_AND_ASSIGN(FakeSyncChangeProcessor
);
56 #endif // SYNC_API_FAKE_SYNC_CHANGE_PROCESSOR_H_