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 #include "sync/api/fake_sync_change_processor.h"
6 #include "sync/api/sync_change.h"
7 #include "sync/api/sync_data.h"
11 FakeSyncChangeProcessor::FakeSyncChangeProcessor() {}
13 FakeSyncChangeProcessor::~FakeSyncChangeProcessor() {}
15 syncer::SyncError
FakeSyncChangeProcessor::ProcessSyncChanges(
16 const tracked_objects::Location
& from_here
,
17 const syncer::SyncChangeList
& change_list
) {
19 changes_
.end(), change_list
.begin(), change_list
.end());
20 return syncer::SyncError();
23 syncer::SyncDataList
FakeSyncChangeProcessor::GetAllSyncData(
24 syncer::ModelType type
) const {
28 syncer::SyncError
FakeSyncChangeProcessor::UpdateDataTypeContext(
30 ContextRefreshStatus refresh_status
,
31 const std::string
& context
) {
33 return syncer::SyncError();
36 const syncer::SyncChangeList
& FakeSyncChangeProcessor::changes() const {
40 syncer::SyncChangeList
& FakeSyncChangeProcessor::changes() {
44 const syncer::SyncDataList
& FakeSyncChangeProcessor::data() const {
48 syncer::SyncDataList
& FakeSyncChangeProcessor::data() {
52 const std::string
& FakeSyncChangeProcessor::context() const {
56 std::string
& FakeSyncChangeProcessor::context() {