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

Unified Diff: cc/trees/layer_tree_host_unittest_remote_server.cc

Issue 2317753002: cc: Abstract the LayerTreeHost. (Closed)
Patch Set: Rebase Created 4 years, 3 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
« no previous file with comments | « cc/trees/layer_tree_host_unittest_proxy.cc ('k') | cc/trees/layer_tree_host_unittest_scroll.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_remote_server.cc
diff --git a/cc/trees/layer_tree_host_unittest_remote_server.cc b/cc/trees/layer_tree_host_unittest_remote_server.cc
index 5f5eca8dcf76f9ce95850e609a711f9b00c2a8f9..21058e53f5c0dfae7246a0365605710e95986d1d 100644
--- a/cc/trees/layer_tree_host_unittest_remote_server.cc
+++ b/cc/trees/layer_tree_host_unittest_remote_server.cc
@@ -69,7 +69,7 @@ class LayerTreeHostTestRemoteServer : public testing::Test,
int calls_received_;
TestTaskGraphRunner task_graph_runner_;
LayerTreeSettings settings_;
- std::unique_ptr<LayerTreeHost> layer_tree_host_;
+ std::unique_ptr<LayerTreeHostInterface> layer_tree_host_;
RemoteProtoChannel::ProtoReceiver* receiver_;
std::unique_ptr<FakeImageSerializationProcessor>
image_serialization_processor_;
@@ -95,7 +95,9 @@ TEST_F(LayerTreeHostTestRemoteServerBeginMainFrame, BeginMainFrameNotAborted) {
begin_frame_state.reset(new BeginMainFrameAndCommitState());
begin_frame_state->scroll_info.reset(new ScrollAndScaleSet());
- static_cast<ProxyMain*>(layer_tree_host_->proxy())
+ LayerTreeHost* layer_tree_host =
+ static_cast<LayerTreeHost*>(layer_tree_host_.get());
+ static_cast<ProxyMain*>(layer_tree_host->proxy())
->BeginMainFrame(std::move(begin_frame_state));
EXPECT_EQ(calls_received_, 1);
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest_proxy.cc ('k') | cc/trees/layer_tree_host_unittest_scroll.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698