Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: cc/test/remote_channel_impl_for_test.h

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/test/proxy_main_for_test.cc ('k') | cc/test/remote_channel_impl_for_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CC_TEST_REMOTE_CHANNEL_IMPL_FOR_TEST_H_ 5 #ifndef CC_TEST_REMOTE_CHANNEL_IMPL_FOR_TEST_H_
6 #define CC_TEST_REMOTE_CHANNEL_IMPL_FOR_TEST_H_ 6 #define CC_TEST_REMOTE_CHANNEL_IMPL_FOR_TEST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/test/proxy_impl_for_test.h" 9 #include "cc/test/proxy_impl_for_test.h"
10 #include "cc/test/test_hooks.h" 10 #include "cc/test/test_hooks.h"
11 #include "cc/trees/remote_channel_impl.h" 11 #include "cc/trees/remote_channel_impl.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class RemoteChannelImplForTest : public RemoteChannelImpl { 15 class RemoteChannelImplForTest : public RemoteChannelImpl {
16 public: 16 public:
17 static scoped_ptr<RemoteChannelImplForTest> Create( 17 static std::unique_ptr<RemoteChannelImplForTest> Create(
18 TestHooks* test_hooks, 18 TestHooks* test_hooks,
19 LayerTreeHost* layer_tree_host, 19 LayerTreeHost* layer_tree_host,
20 RemoteProtoChannel* remote_proto_channel, 20 RemoteProtoChannel* remote_proto_channel,
21 TaskRunnerProvider* task_runner_provider); 21 TaskRunnerProvider* task_runner_provider);
22 22
23 ProxyImplForTest* proxy_impl_for_test() const { return proxy_impl_for_test_; } 23 ProxyImplForTest* proxy_impl_for_test() const { return proxy_impl_for_test_; }
24 24
25 private: 25 private:
26 RemoteChannelImplForTest(TestHooks* test_hooks, 26 RemoteChannelImplForTest(TestHooks* test_hooks,
27 LayerTreeHost* layer_tree_host, 27 LayerTreeHost* layer_tree_host,
28 RemoteProtoChannel* remote_proto_channel, 28 RemoteProtoChannel* remote_proto_channel,
29 TaskRunnerProvider* task_runner_provider); 29 TaskRunnerProvider* task_runner_provider);
30 30
31 scoped_ptr<ProxyImpl> CreateProxyImpl( 31 std::unique_ptr<ProxyImpl> CreateProxyImpl(
32 ChannelImpl* channel_impl, 32 ChannelImpl* channel_impl,
33 LayerTreeHost* layer_tree_host, 33 LayerTreeHost* layer_tree_host,
34 TaskRunnerProvider* task_runner_provider, 34 TaskRunnerProvider* task_runner_provider,
35 scoped_ptr<BeginFrameSource> external_begin_frame_source) override; 35 std::unique_ptr<BeginFrameSource> external_begin_frame_source) override;
36 36
37 TestHooks* test_hooks_; 37 TestHooks* test_hooks_;
38 ProxyImplForTest* proxy_impl_for_test_; 38 ProxyImplForTest* proxy_impl_for_test_;
39 }; 39 };
40 40
41 } // namespace cc 41 } // namespace cc
42 42
43 #endif // CC_TEST_REMOTE_CHANNEL_IMPL_FOR_TEST_H_ 43 #endif // CC_TEST_REMOTE_CHANNEL_IMPL_FOR_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/proxy_main_for_test.cc ('k') | cc/test/remote_channel_impl_for_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698