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

Unified Diff: cc/test/layer_tree_json_parser_unittest.cc

Issue 2084233002: cc: Move LayerImpl::AddChild and RemoveChild to LayerImplTestProperties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « cc/test/layer_test_common.h ('k') | cc/test/test_layer_tree_host_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c209943ea3b0f20720d4e8e2886881a472632250..e814f418cc04ce6e9f4dedc410a557f93f9cfc8b 100644
--- a/cc/test/layer_tree_json_parser_unittest.cc
+++ b/cc/test/layer_tree_json_parser_unittest.cc
@@ -83,8 +83,8 @@ TEST_F(LayerTreeJsonParserSanityCheck, Basic) {
parent->SetPosition(gfx::PointF(25.f, 25.f));
- parent->AddChild(std::move(child));
- root_impl->AddChild(std::move(parent));
+ parent->test_properties()->AddChild(std::move(child));
+ root_impl->test_properties()->AddChild(std::move(parent));
tree->SetRootLayer(std::move(root_impl));
std::string json = host_impl.LayerTreeAsJson();
@@ -112,7 +112,7 @@ TEST_F(LayerTreeJsonParserSanityCheck, EventHandlerRegions) {
touch_region.Union(gfx::Rect(40, 10, 20, 20));
touch_layer->SetTouchEventHandlerRegion(touch_region);
- root_impl->AddChild(std::move(touch_layer));
+ root_impl->test_properties()->AddChild(std::move(touch_layer));
tree->SetRootLayer(std::move(root_impl));
std::string json = host_impl.LayerTreeAsJson();
« no previous file with comments | « cc/test/layer_test_common.h ('k') | cc/test/test_layer_tree_host_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698