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

Unified Diff: cc/debug/micro_benchmark_controller_unittest.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
« no previous file with comments | « cc/blink/web_layer_impl_fixed_bounds_unittest.cc ('k') | cc/input/browser_controls_offset_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « cc/blink/web_layer_impl_fixed_bounds_unittest.cc ('k') | cc/input/browser_controls_offset_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698