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

Unified Diff: cc/test/layer_tree_json_parser_unittest.cc

Issue 2100353002: cc: DCHECK that the OutputSurface was released in ~LayerTreeHostImpl(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: released-outputsurface: rebase Created 4 years, 6 months 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/test/layer_tree_json_parser_unittest.cc
diff --git a/cc/test/layer_tree_json_parser_unittest.cc b/cc/test/layer_tree_json_parser_unittest.cc
index 28b8fc69d3d6ff650cde6939d1065d59a51930f0..3f734e504028f788d0b0ed8e63f5b661c6131455 100644
--- a/cc/test/layer_tree_json_parser_unittest.cc
+++ b/cc/test/layer_tree_json_parser_unittest.cc
@@ -86,6 +86,7 @@ TEST_F(LayerTreeJsonParserSanityCheck, Basic) {
parent->test_properties()->AddChild(std::move(child));
root_impl->test_properties()->AddChild(std::move(parent));
tree->SetRootLayer(std::move(root_impl));
+ tree->BuildLayerListForTesting();
std::string json = host_impl.LayerTreeAsJson();
scoped_refptr<Layer> root = ParseTreeFromJson(json, NULL);
@@ -115,6 +116,7 @@ TEST_F(LayerTreeJsonParserSanityCheck, EventHandlerRegions) {
root_impl->test_properties()->AddChild(std::move(touch_layer));
tree->SetRootLayer(std::move(root_impl));
+ tree->BuildLayerListForTesting();
std::string json = host_impl.LayerTreeAsJson();
scoped_refptr<Layer> root = ParseTreeFromJson(json, NULL);

Powered by Google App Engine
This is Rietveld 408576698