root/sync/api/fake_sync_change_processor.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. ProcessSyncChanges
  2. GetAllSyncData
  3. changes
  4. changes

// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "sync/api/fake_sync_change_processor.h"
#include "sync/api/sync_change.h"
#include "sync/api/sync_data.h"

namespace syncer {

FakeSyncChangeProcessor::FakeSyncChangeProcessor() {}

FakeSyncChangeProcessor::~FakeSyncChangeProcessor() {}

syncer::SyncError FakeSyncChangeProcessor::ProcessSyncChanges(
      const tracked_objects::Location& from_here,
      const syncer::SyncChangeList& change_list) {
  change_list_.insert(
      change_list_.end(), change_list.begin(), change_list.end());
  return syncer::SyncError();
}

syncer::SyncDataList FakeSyncChangeProcessor::GetAllSyncData(
    syncer::ModelType type) const {
  return syncer::SyncDataList();
}

const syncer::SyncChangeList& FakeSyncChangeProcessor::changes() const {
  return change_list_;
}

syncer::SyncChangeList& FakeSyncChangeProcessor::changes() {
  return change_list_;
}

}  // namespace syncer

/* [<][>][^][v][top][bottom][index][help] */