| Index: cc/debug/micro_benchmark_controller_unittest.cc
|
| diff --git a/cc/debug/micro_benchmark_controller_unittest.cc b/cc/debug/micro_benchmark_controller_unittest.cc
|
| index e5a716fd59066b06555a3b25158e05f8651da90b..4a6ce7e50ee057dfc27df2f391f18046bff68aa9 100644
|
| --- a/cc/debug/micro_benchmark_controller_unittest.cc
|
| +++ b/cc/debug/micro_benchmark_controller_unittest.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/callback.h"
|
| #include "base/memory/ptr_util.h"
|
| #include "base/run_loop.h"
|
| +#include "cc/animation/animation_host.h"
|
| #include "cc/debug/micro_benchmark.h"
|
| #include "cc/layers/layer.h"
|
| #include "cc/test/fake_impl_task_runner_provider.h"
|
| @@ -29,8 +30,9 @@ class MicroBenchmarkControllerTest : public testing::Test {
|
| layer_tree_host_impl_ = base::MakeUnique<FakeLayerTreeHostImpl>(
|
| impl_task_runner_provider_.get(), &task_graph_runner_);
|
|
|
| - layer_tree_host_ = FakeLayerTreeHost::Create(&layer_tree_host_client_,
|
| - &task_graph_runner_);
|
| + animation_host_ = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
|
| + layer_tree_host_ = FakeLayerTreeHost::Create(
|
| + &layer_tree_host_client_, &task_graph_runner_, animation_host_.get());
|
| layer_tree_host_->SetRootLayer(Layer::Create());
|
| layer_tree_host_->InitializeForTesting(
|
| TaskRunnerProvider::Create(nullptr, nullptr),
|
| @@ -41,10 +43,12 @@ class MicroBenchmarkControllerTest : public testing::Test {
|
| layer_tree_host_impl_ = nullptr;
|
| layer_tree_host_ = nullptr;
|
| impl_task_runner_provider_ = nullptr;
|
| + animation_host_ = nullptr;
|
| }
|
|
|
| FakeLayerTreeHostClient layer_tree_host_client_;
|
| TestTaskGraphRunner task_graph_runner_;
|
| + std::unique_ptr<AnimationHost> animation_host_;
|
| std::unique_ptr<FakeLayerTreeHost> layer_tree_host_;
|
| std::unique_ptr<FakeLayerTreeHostImpl> layer_tree_host_impl_;
|
| std::unique_ptr<FakeImplTaskRunnerProvider> impl_task_runner_provider_;
|
|
|