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

Unified Diff: cc/trees/layer_tree_host_unittest_remote_server.cc

Issue 2340143002: cc: Rename LayerTreeHost to LayerTreeHostInProcess. (Closed)
Patch Set: comment fix 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_interface.h ('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 3aa30522cd98ca13914fd57d19a4b076f47f1ccf..8a41fb9c2dbeaa177b0ab01d32ce6338f128d695 100644
--- a/cc/trees/layer_tree_host_unittest_remote_server.cc
+++ b/cc/trees/layer_tree_host_unittest_remote_server.cc
@@ -9,8 +9,8 @@
#include "cc/animation/animation_host.h"
#include "cc/test/fake_image_serialization_processor.h"
#include "cc/test/test_task_graph_runner.h"
-#include "cc/trees/layer_tree_host.h"
#include "cc/trees/layer_tree_host_client.h"
+#include "cc/trees/layer_tree_host_in_process.h"
#include "cc/trees/proxy_common.h"
#include "cc/trees/proxy_main.h"
#include "cc/trees/remote_proto_channel.h"
@@ -27,7 +27,7 @@ class LayerTreeHostTestRemoteServer : public testing::Test,
: calls_received_(0),
image_serialization_processor_(
base::WrapUnique(new FakeImageSerializationProcessor)) {
- LayerTreeHost::InitParams params;
+ LayerTreeHostInProcess::InitParams params;
params.client = this;
params.task_graph_runner = &task_graph_runner_;
params.settings = &settings_;
@@ -35,7 +35,8 @@ class LayerTreeHostTestRemoteServer : public testing::Test,
params.image_serialization_processor = image_serialization_processor_.get();
params.animation_host =
AnimationHost::CreateForTesting(ThreadInstance::MAIN);
- layer_tree_host_ = LayerTreeHost::CreateRemoteServer(this, &params);
+ layer_tree_host_ =
+ LayerTreeHostInProcess::CreateRemoteServer(this, &params);
}
~LayerTreeHostTestRemoteServer() override {}
@@ -69,7 +70,7 @@ class LayerTreeHostTestRemoteServer : public testing::Test,
int calls_received_;
TestTaskGraphRunner task_graph_runner_;
LayerTreeSettings settings_;
- std::unique_ptr<LayerTreeHostInterface> layer_tree_host_;
+ std::unique_ptr<LayerTreeHostInProcess> layer_tree_host_;
RemoteProtoChannel::ProtoReceiver* receiver_;
std::unique_ptr<FakeImageSerializationProcessor>
image_serialization_processor_;
@@ -95,9 +96,7 @@ TEST_F(LayerTreeHostTestRemoteServerBeginMainFrame, BeginMainFrameNotAborted) {
begin_frame_state.reset(new BeginMainFrameAndCommitState());
begin_frame_state->scroll_info.reset(new ScrollAndScaleSet());
- LayerTreeHost* layer_tree_host =
- static_cast<LayerTreeHost*>(layer_tree_host_.get());
- static_cast<ProxyMain*>(layer_tree_host->proxy())
+ 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_interface.h ('k') | cc/trees/layer_tree_host_unittest_scroll.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698