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

Unified Diff: cc/trees/layer_tree_host_unittest_remote_server.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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/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 6eecc3b666ba838c4e37148da2cfe3f753476281..9c0c4f1b4b78ecc69c90e4ad1a3d328ad1702603 100644
--- a/cc/trees/layer_tree_host_unittest_remote_server.cc
+++ b/cc/trees/layer_tree_host_unittest_remote_server.cc
@@ -27,19 +27,22 @@ class LayerTreeHostTestRemoteServer : public testing::Test,
: calls_received_(0),
image_serialization_processor_(
base::WrapUnique(new FakeImageSerializationProcessor)) {
+ animation_host_ = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
+
LayerTreeHostInProcess::InitParams params;
params.client = this;
params.task_graph_runner = &task_graph_runner_;
params.settings = &settings_;
params.main_task_runner = base::ThreadTaskRunnerHandle::Get();
params.image_serialization_processor = image_serialization_processor_.get();
- params.animation_host =
- AnimationHost::CreateForTesting(ThreadInstance::MAIN);
+ params.mutator_host = animation_host_.get();
layer_tree_host_ =
LayerTreeHostInProcess::CreateRemoteServer(this, &params);
}
- ~LayerTreeHostTestRemoteServer() override {}
+ ~LayerTreeHostTestRemoteServer() override {
+ animation_host_->SetMutatorHostClient(nullptr);
+ }
// LayerTreeHostClient implementation
void WillBeginMainFrame() override {}
@@ -70,6 +73,7 @@ class LayerTreeHostTestRemoteServer : public testing::Test,
int calls_received_;
TestTaskGraphRunner task_graph_runner_;
LayerTreeSettings settings_;
+ std::unique_ptr<AnimationHost> animation_host_;
std::unique_ptr<LayerTreeHostInProcess> layer_tree_host_;
RemoteProtoChannel::ProtoReceiver* receiver_;
std::unique_ptr<FakeImageSerializationProcessor>
« no previous file with comments | « cc/trees/layer_tree_host_unittest_record_gpu_histogram.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