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

Unified Diff: cc/trees/tree_synchronizer_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/trees/occlusion_tracker_unittest.cc ('k') | chrome/VERSION » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/tree_synchronizer_unittest.cc
diff --git a/cc/trees/tree_synchronizer_unittest.cc b/cc/trees/tree_synchronizer_unittest.cc
index 1f1105621fb4e62dd8ec08ea74d0ceba0e3325da..682ce60d673ddbbe6c7e8dfb5b6ad9dfdbdff74b 100644
--- a/cc/trees/tree_synchronizer_unittest.cc
+++ b/cc/trees/tree_synchronizer_unittest.cc
@@ -13,6 +13,7 @@
#include "base/format_macros.h"
#include "base/memory/ptr_util.h"
#include "base/strings/stringprintf.h"
+#include "cc/animation/animation_host.h"
#include "cc/layers/layer.h"
#include "cc/layers/layer_impl.h"
#include "cc/test/animation_test_common.h"
@@ -127,7 +128,10 @@ void ExpectTreesAreIdentical(Layer* root_layer,
class TreeSynchronizerTest : public testing::Test {
protected:
TreeSynchronizerTest()
- : host_(FakeLayerTreeHost::Create(&client_, &task_graph_runner_)) {}
+ : animation_host_(AnimationHost::CreateForTesting(ThreadInstance::MAIN)),
+ host_(FakeLayerTreeHost::Create(&client_,
+ &task_graph_runner_,
+ animation_host_.get())) {}
bool is_equal(ScrollTree::ScrollOffsetMap map,
ScrollTree::ScrollOffsetMap other) {
@@ -150,6 +154,7 @@ class TreeSynchronizerTest : public testing::Test {
FakeLayerTreeHostClient client_;
StubLayerTreeHostSingleThreadClient single_thread_client_;
TestTaskGraphRunner task_graph_runner_;
+ std::unique_ptr<AnimationHost> animation_host_;
std::unique_ptr<FakeLayerTreeHost> host_;
};
« no previous file with comments | « cc/trees/occlusion_tracker_unittest.cc ('k') | chrome/VERSION » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698