| Index: cc/test/remote_channel_impl_for_test.cc
|
| diff --git a/cc/test/remote_channel_impl_for_test.cc b/cc/test/remote_channel_impl_for_test.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e662291caf66e8936765e246978030c73068f3fa
|
| --- /dev/null
|
| +++ b/cc/test/remote_channel_impl_for_test.cc
|
| @@ -0,0 +1,49 @@
|
| +// Copyright 2015 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 "cc/test/remote_channel_impl_for_test.h"
|
| +
|
| +#include "cc/test/proxy_impl_for_test.h"
|
| +
|
| +namespace cc {
|
| +
|
| +scoped_ptr<RemoteChannelImplForTest> RemoteChannelImplForTest::Create(
|
| + TestHooks* test_hooks,
|
| + RemoteChannelHost* remote_channel_host,
|
| + TaskGraphRunner* task_graph_runner,
|
| + const LayerTreeSettings& settings,
|
| + scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
|
| + scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner) {
|
| + return make_scoped_ptr(new RemoteChannelImplForTest(
|
| + test_hooks, remote_channel_host, task_graph_runner, settings,
|
| + main_task_runner, impl_task_runner));
|
| +}
|
| +
|
| +RemoteChannelImplForTest::RemoteChannelImplForTest(
|
| + TestHooks* test_hooks,
|
| + RemoteChannelHost* remote_channel_host,
|
| + TaskGraphRunner* task_graph_runner,
|
| + const LayerTreeSettings& settings,
|
| + scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
|
| + scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner)
|
| + : RemoteChannelImpl(remote_channel_host,
|
| + task_graph_runner,
|
| + settings,
|
| + main_task_runner,
|
| + impl_task_runner),
|
| + test_hooks_(test_hooks) {}
|
| +
|
| +scoped_ptr<ProxyImpl> RemoteChannelImplForTest::CreateProxyImpl(
|
| + ChannelImpl* channel_impl,
|
| + LayerTreeHost* layer_tree_host,
|
| + TaskRunnerProvider* task_runner_provider,
|
| + scoped_ptr<BeginFrameSource> external_begin_frame_source) {
|
| + scoped_ptr<ProxyImplForTest> proxy_impl = ProxyImplForTest::Create(
|
| + test_hooks_, channel_impl, layer_tree_host, task_runner_provider,
|
| + std::move(external_begin_frame_source));
|
| + proxy_impl_for_test_ = proxy_impl.get();
|
| + return std::move(proxy_impl);
|
| +}
|
| +
|
| +} // namespace cc
|
|
|