Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / sync / internal_api / test / null_sync_context_proxy.cc
blob9beb2f4cdcc941c9cb86abbd7d6a72d1a7df1efe
1 // Copyright 2014 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/internal_api/public/test/null_sync_context_proxy.h"
7 namespace syncer_v2 {
9 NullSyncContextProxy::NullSyncContextProxy() {
12 NullSyncContextProxy::~NullSyncContextProxy() {
15 void NullSyncContextProxy::ConnectTypeToSync(
16 syncer::ModelType type,
17 const DataTypeState& data_type_state,
18 const UpdateResponseDataList& saved_pending_updates,
19 const base::WeakPtr<ModelTypeProcessor>& type_processor) {
20 NOTREACHED() << "NullSyncContextProxy is not meant to be used";
23 void NullSyncContextProxy::Disconnect(syncer::ModelType type) {
24 NOTREACHED() << "NullSyncContextProxy is not meant to be used";
27 scoped_ptr<SyncContextProxy> NullSyncContextProxy::Clone() const {
28 return scoped_ptr<SyncContextProxy>(new NullSyncContextProxy());
31 } // namespace syncer