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

Unified Diff: cc/layers/layer_list_iterator_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.cc ('k') | cc/layers/layer_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_list_iterator_unittest.cc
diff --git a/cc/layers/layer_list_iterator_unittest.cc b/cc/layers/layer_list_iterator_unittest.cc
index 048b33abdc5b20279496bc81021bd8eb784f51af..38cedf5c7da50467a5fbec5d5c881e2d35791737 100644
--- a/cc/layers/layer_list_iterator_unittest.cc
+++ b/cc/layers/layer_list_iterator_unittest.cc
@@ -7,6 +7,7 @@
#include <memory>
#include "base/containers/adapters.h"
+#include "cc/animation/animation_host.h"
#include "cc/test/fake_compositor_frame_sink.h"
#include "cc/test/fake_impl_task_runner_provider.h"
#include "cc/test/fake_layer_tree_host.h"
@@ -24,8 +25,9 @@ TEST(LayerListIteratorTest, VerifyTraversalOrder) {
// Unfortunate preamble.
FakeLayerTreeHostClient client;
TestTaskGraphRunner task_graph_runner;
- std::unique_ptr<FakeLayerTreeHost> host_ptr =
- FakeLayerTreeHost::Create(&client, &task_graph_runner);
+ auto animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
+ std::unique_ptr<FakeLayerTreeHost> host_ptr = FakeLayerTreeHost::Create(
+ &client, &task_graph_runner, animation_host.get());
FakeLayerTreeHost* host = host_ptr.get();
// This test constructs the following tree.
@@ -76,8 +78,9 @@ TEST(LayerListIteratorTest, VerifySingleLayer) {
// Unfortunate preamble.
FakeLayerTreeHostClient client;
TestTaskGraphRunner task_graph_runner;
- std::unique_ptr<FakeLayerTreeHost> host_ptr =
- FakeLayerTreeHost::Create(&client, &task_graph_runner);
+ auto animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
+ std::unique_ptr<FakeLayerTreeHost> host_ptr = FakeLayerTreeHost::Create(
+ &client, &task_graph_runner, animation_host.get());
FakeLayerTreeHost* host = host_ptr.get();
// This test constructs a tree consisting of a single layer.
@@ -109,8 +112,9 @@ TEST(LayerListReverseIteratorTest, VerifyTraversalOrder) {
// Unfortunate preamble.
FakeLayerTreeHostClient client;
TestTaskGraphRunner task_graph_runner;
- std::unique_ptr<FakeLayerTreeHost> host_ptr =
- FakeLayerTreeHost::Create(&client, &task_graph_runner);
+ auto animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
+ std::unique_ptr<FakeLayerTreeHost> host_ptr = FakeLayerTreeHost::Create(
+ &client, &task_graph_runner, animation_host.get());
FakeLayerTreeHost* host = host_ptr.get();
// This test constructs the following tree.
@@ -163,8 +167,9 @@ TEST(LayerListReverseIteratorTest, VerifySingleLayer) {
// Unfortunate preamble.
FakeLayerTreeHostClient client;
TestTaskGraphRunner task_graph_runner;
- std::unique_ptr<FakeLayerTreeHost> host_ptr =
- FakeLayerTreeHost::Create(&client, &task_graph_runner);
+ auto animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
+ std::unique_ptr<FakeLayerTreeHost> host_ptr = FakeLayerTreeHost::Create(
+ &client, &task_graph_runner, animation_host.get());
FakeLayerTreeHost* host = host_ptr.get();
// This test constructs a tree consisting of a single layer.
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698