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

Unified Diff: cc/blink/web_layer_impl_fixed_bounds_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/blimp/layer_tree_host_remote_unittest.cc ('k') | cc/debug/micro_benchmark_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_layer_impl_fixed_bounds_unittest.cc
diff --git a/cc/blink/web_layer_impl_fixed_bounds_unittest.cc b/cc/blink/web_layer_impl_fixed_bounds_unittest.cc
index 9dc0cbad6d841816f0dcd5f44c8f675b90967b68..cb4e20ac4e475cf18787af1a540f989e81704091 100644
--- a/cc/blink/web_layer_impl_fixed_bounds_unittest.cc
+++ b/cc/blink/web_layer_impl_fixed_bounds_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <vector>
+#include "cc/animation/animation_host.h"
#include "cc/blink/web_layer_impl_fixed_bounds.h"
#include "cc/layers/picture_image_layer.h"
#include "cc/test/fake_layer_tree_host.h"
@@ -103,10 +104,13 @@ void CompareFixedBoundsLayerAndNormalLayer(const WebFloatPoint& anchor_point,
normal_layer.setPosition(position);
root_layer.addChild(&normal_layer);
+ auto animation_host =
+ cc::AnimationHost::CreateForTesting(cc::ThreadInstance::MAIN);
+
cc::FakeLayerTreeHostClient client;
cc::TestTaskGraphRunner task_graph_runner;
- std::unique_ptr<cc::FakeLayerTreeHost> host =
- cc::FakeLayerTreeHost::Create(&client, &task_graph_runner);
+ std::unique_ptr<cc::FakeLayerTreeHost> host = cc::FakeLayerTreeHost::Create(
+ &client, &task_graph_runner, animation_host.get());
host->SetRootLayer(root_layer.layer());
{
« no previous file with comments | « cc/blimp/layer_tree_host_remote_unittest.cc ('k') | cc/debug/micro_benchmark_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698