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

Unified Diff: cc/trees/layer_tree_host_unittest_scroll.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
Index: cc/trees/layer_tree_host_unittest_scroll.cc
diff --git a/cc/trees/layer_tree_host_unittest_scroll.cc b/cc/trees/layer_tree_host_unittest_scroll.cc
index e714b2ad0c078253c5bb2a0d54b5d4d4101268eb..473d5285e4342d38cb249793f7ac90161be552bb 100644
--- a/cc/trees/layer_tree_host_unittest_scroll.cc
+++ b/cc/trees/layer_tree_host_unittest_scroll.cc
@@ -1309,12 +1309,14 @@ TEST(LayerTreeHostFlingTest, DidStopFlingingThread) {
StubLayerTreeHostClient layer_tree_host_client;
TestTaskGraphRunner task_graph_runner;
+ auto animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
+
LayerTreeHostInProcess::InitParams params;
params.client = &layer_tree_host_client;
params.task_graph_runner = &task_graph_runner;
params.settings = &settings;
params.main_task_runner = base::ThreadTaskRunnerHandle::Get();
- params.animation_host = AnimationHost::CreateForTesting(ThreadInstance::MAIN);
+ params.mutator_host = animation_host.get();
std::unique_ptr<LayerTreeHostInProcess> layer_tree_host =
LayerTreeHostInProcess::CreateThreaded(impl_thread.task_runner(),
&params);
@@ -1327,7 +1329,11 @@ TEST(LayerTreeHostFlingTest, DidStopFlingingThread) {
base::Unretained(&input_handler_client)));
layer_tree_host->DidStopFlinging();
+
+ animation_host->SetMutatorHostClient(nullptr);
layer_tree_host = nullptr;
+ animation_host = nullptr;
+
impl_thread.Stop();
EXPECT_TRUE(received_stop_flinging);
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest_remote_server.cc ('k') | cc/trees/layer_tree_host_unittest_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698