OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "sync/internal_api/public/test/null_sync_context_proxy.h" | 5 #include "sync/internal_api/public/test/null_sync_context_proxy.h" |
6 | 6 |
7 #include "sync/internal_api/public/activation_context.h" | 7 #include "sync/internal_api/public/activation_context.h" |
8 | 8 |
9 namespace syncer_v2 { | 9 namespace syncer_v2 { |
10 | 10 |
11 NullSyncContextProxy::NullSyncContextProxy() { | 11 NullSyncContextProxy::NullSyncContextProxy() { |
12 } | 12 } |
13 | 13 |
14 NullSyncContextProxy::~NullSyncContextProxy() { | 14 NullSyncContextProxy::~NullSyncContextProxy() { |
15 } | 15 } |
16 | 16 |
17 void NullSyncContextProxy::ConnectTypeToSync( | 17 void NullSyncContextProxy::ConnectTypeToSync( |
18 syncer::ModelType type, | 18 syncer::ModelType type, |
19 scoped_ptr<ActivationContext> activation_context) { | 19 std::unique_ptr<ActivationContext> activation_context) { |
20 NOTREACHED() << "NullSyncContextProxy is not meant to be used"; | 20 NOTREACHED() << "NullSyncContextProxy is not meant to be used"; |
21 } | 21 } |
22 | 22 |
23 void NullSyncContextProxy::Disconnect(syncer::ModelType type) { | 23 void NullSyncContextProxy::Disconnect(syncer::ModelType type) { |
24 NOTREACHED() << "NullSyncContextProxy is not meant to be used"; | 24 NOTREACHED() << "NullSyncContextProxy is not meant to be used"; |
25 } | 25 } |
26 | 26 |
27 scoped_ptr<SyncContextProxy> NullSyncContextProxy::Clone() const { | 27 std::unique_ptr<SyncContextProxy> NullSyncContextProxy::Clone() const { |
28 return scoped_ptr<SyncContextProxy>(new NullSyncContextProxy()); | 28 return std::unique_ptr<SyncContextProxy>(new NullSyncContextProxy()); |
29 } | 29 } |
30 | 30 |
31 } // namespace syncer_v2 | 31 } // namespace syncer_v2 |
OLD | NEW |