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

Unified Diff: cc/layers/layer_position_constraint_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/layers/layer_perftest.cc ('k') | cc/layers/layer_proto_converter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_position_constraint_unittest.cc
diff --git a/cc/layers/layer_position_constraint_unittest.cc b/cc/layers/layer_position_constraint_unittest.cc
index 842d20b6549eacf08aaa780d02331dffa86ca665..b4bea8e2c44c90c86e9e0a01bfb5c45b3b8a5481 100644
--- a/cc/layers/layer_position_constraint_unittest.cc
+++ b/cc/layers/layer_position_constraint_unittest.cc
@@ -6,6 +6,7 @@
#include <vector>
+#include "cc/animation/animation_host.h"
#include "cc/layers/layer.h"
#include "cc/layers/layer_impl.h"
#include "cc/proto/layer_position_constraint.pb.h"
@@ -61,8 +62,10 @@ void ExecuteCalculateDrawProperties(LayerImpl* root_layer) {
class LayerPositionConstraintTest : public testing::Test {
public:
LayerPositionConstraintTest()
- : layer_tree_host_(
- FakeLayerTreeHost::Create(&fake_client_, &task_graph_runner_)),
+ : animation_host_(AnimationHost::CreateForTesting(ThreadInstance::MAIN)),
+ layer_tree_host_(FakeLayerTreeHost::Create(&fake_client_,
+ &task_graph_runner_,
+ animation_host_.get())),
root_impl_(nullptr),
inner_viewport_container_layer_impl_(nullptr),
scroll_layer_impl_(nullptr),
@@ -170,6 +173,7 @@ class LayerPositionConstraintTest : public testing::Test {
protected:
FakeLayerTreeHostClient fake_client_;
TestTaskGraphRunner task_graph_runner_;
+ std::unique_ptr<AnimationHost> animation_host_;
std::unique_ptr<FakeLayerTreeHost> layer_tree_host_;
scoped_refptr<Layer> root_;
scoped_refptr<Layer> inner_viewport_container_layer_;
« no previous file with comments | « cc/layers/layer_perftest.cc ('k') | cc/layers/layer_proto_converter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698