Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / sync / api / fake_sync_change_processor.cc
blob272165039f0068301c9a3713e261a0ca816e67bb
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"
9 namespace syncer {
11 FakeSyncChangeProcessor::FakeSyncChangeProcessor() {}
13 FakeSyncChangeProcessor::~FakeSyncChangeProcessor() {}
15 syncer::SyncError FakeSyncChangeProcessor::ProcessSyncChanges(
16 const tracked_objects::Location& from_here,
17 const syncer::SyncChangeList& change_list) {
18 changes_.insert(
19 changes_.end(), change_list.begin(), change_list.end());
20 return syncer::SyncError();
23 syncer::SyncDataList FakeSyncChangeProcessor::GetAllSyncData(
24 syncer::ModelType type) const {
25 return data_;
28 syncer::SyncError FakeSyncChangeProcessor::UpdateDataTypeContext(
29 ModelType type,
30 ContextRefreshStatus refresh_status,
31 const std::string& context) {
32 context_ = context;
33 return syncer::SyncError();
36 const syncer::SyncChangeList& FakeSyncChangeProcessor::changes() const {
37 return changes_;
40 syncer::SyncChangeList& FakeSyncChangeProcessor::changes() {
41 return changes_;
44 const syncer::SyncDataList& FakeSyncChangeProcessor::data() const {
45 return data_;
48 syncer::SyncDataList& FakeSyncChangeProcessor::data() {
49 return data_;
52 const std::string& FakeSyncChangeProcessor::context() const {
53 return context_;
56 std::string& FakeSyncChangeProcessor::context() {
57 return context_;
60 } // namespace syncer