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 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_ |
7 | 7 |
8 #include "sync/internal_api/public/sync_context_proxy.h" | 8 #include "sync/internal_api/public/sync_context_proxy.h" |
9 | 9 |
10 namespace syncer_v2 { | 10 namespace syncer_v2 { |
11 | 11 |
12 // A non-functional implementation of SyncContextProxy. | 12 // A non-functional implementation of SyncContextProxy. |
13 // | 13 // |
14 // It supports Clone(), but not much else. Useful for testing. | 14 // It supports Clone(), but not much else. Useful for testing. |
15 class NullSyncContextProxy : public SyncContextProxy { | 15 class NullSyncContextProxy : public SyncContextProxy { |
16 public: | 16 public: |
17 NullSyncContextProxy(); | 17 NullSyncContextProxy(); |
18 ~NullSyncContextProxy() override; | 18 ~NullSyncContextProxy() override; |
19 | 19 |
20 void ConnectTypeToSync( | 20 void ConnectTypeToSync( |
21 syncer::ModelType type, | 21 syncer::ModelType type, |
22 scoped_ptr<ActivationContext> activation_context) override; | 22 std::unique_ptr<ActivationContext> activation_context) override; |
23 void Disconnect(syncer::ModelType type) override; | 23 void Disconnect(syncer::ModelType type) override; |
24 scoped_ptr<SyncContextProxy> Clone() const override; | 24 std::unique_ptr<SyncContextProxy> Clone() const override; |
25 }; | 25 }; |
26 | 26 |
27 } // namespace syncer_v2 | 27 } // namespace syncer_v2 |
28 | 28 |
29 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_ | 29 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_ |
OLD | NEW |