| Index: cc/test/remote_channel_impl_for_test.h
|
| diff --git a/cc/test/remote_channel_impl_for_test.h b/cc/test/remote_channel_impl_for_test.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d70975553bfb73625ee23e1ecd77966d4c2af154
|
| --- /dev/null
|
| +++ b/cc/test/remote_channel_impl_for_test.h
|
| @@ -0,0 +1,50 @@
|
| +// 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.
|
| +
|
| +#ifndef CC_TEST_REMOTE_CHANNEL_IMPL_FOR_TEST_H_
|
| +#define CC_TEST_REMOTE_CHANNEL_IMPL_FOR_TEST_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "cc/test/proxy_impl_for_test.h"
|
| +#include "cc/test/test_hooks.h"
|
| +#include "cc/trees/remote_channel_impl.h"
|
| +
|
| +namespace cc {
|
| +
|
| +class RemoteChannelImplForTest : public RemoteChannelImpl {
|
| + public:
|
| + static scoped_ptr<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);
|
| +
|
| + ProxyImplForTest* proxy_impl_for_test() const { return proxy_impl_for_test_; }
|
| +
|
| + using RemoteChannelImpl::MainFrameWillHappenForTesting;
|
| +
|
| + private:
|
| + 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);
|
| +
|
| + scoped_ptr<ProxyImpl> CreateProxyImpl(
|
| + ChannelImpl* channel_impl,
|
| + LayerTreeHost* layer_tree_host,
|
| + TaskRunnerProvider* task_runner_provider,
|
| + scoped_ptr<BeginFrameSource> external_begin_frame_source) override;
|
| +
|
| + TestHooks* test_hooks_;
|
| + ProxyImplForTest* proxy_impl_for_test_;
|
| +};
|
| +
|
| +} // namespace cc
|
| +
|
| +#endif // CC_TEST_REMOTE_CHANNEL_IMPL_FOR_TEST_H_
|
|
|