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

Unified Diff: cc/test/proxy_main_for_test.h

Issue 2158973002: cc: Clean up LayerTreeTest and TestHooks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: proxy-impls: android-build Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: cc/test/proxy_main_for_test.h
diff --git a/cc/test/proxy_main_for_test.h b/cc/test/proxy_main_for_test.h
deleted file mode 100644
index ef354e357d82bc7a4101678bf5199c74b9299f06..0000000000000000000000000000000000000000
--- a/cc/test/proxy_main_for_test.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// 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_PROXY_MAIN_FOR_TEST_H_
-#define CC_TEST_PROXY_MAIN_FOR_TEST_H_
-
-#include "base/macros.h"
-#include "cc/test/test_hooks.h"
-#include "cc/trees/proxy_main.h"
-
-namespace cc {
-class ThreadedChannelForTest;
-
-// Creates a ProxyMain that notifies the supplied |test_hooks| of various
-// actions.
-class ProxyMainForTest : public ProxyMain {
- public:
- static std::unique_ptr<ProxyMainForTest> CreateThreaded(
- TestHooks* test_hooks,
- LayerTreeHost* host,
- TaskRunnerProvider* task_runner_provider);
-
- static std::unique_ptr<ProxyMainForTest> CreateRemote(
- TestHooks* test_hooks,
- RemoteProtoChannel* remote_proto_channel,
- LayerTreeHost* host,
- TaskRunnerProvider* task_runner_provider);
-
- ~ProxyMainForTest() override;
-
- ProxyMainForTest(TestHooks* test_hooks,
- LayerTreeHost* host,
- TaskRunnerProvider* task_runner_provider);
-
- ThreadedChannelForTest* threaded_channel_for_test() const {
- return threaded_channel_for_test_;
- }
-
- void SetNeedsUpdateLayers() override;
- void DidCompleteSwapBuffers() override;
- void SetRendererCapabilities(
- const RendererCapabilities& capabilities) override;
- void BeginMainFrameNotExpectedSoon() override;
- void DidCommitAndDrawFrame() override;
- void SetAnimationEvents(std::unique_ptr<AnimationEvents> events) override;
- void DidLoseOutputSurface() override;
- void RequestNewOutputSurface() override;
- void DidInitializeOutputSurface(
- bool success,
- const RendererCapabilities& capabilities) override;
- void DidCompletePageScaleAnimation() override;
- void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState>
- begin_main_frame_state) override;
-
- TestHooks* test_hooks_;
- ThreadedChannelForTest* threaded_channel_for_test_;
-};
-
-} // namespace cc
-
-#endif // CC_TEST_PROXY_MAIN_FOR_TEST_H_

Powered by Google App Engine
This is Rietveld 408576698