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

Unified Diff: cc/layers/layer_iterator_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/layers/layer_impl_unittest.cc ('k') | cc/layers/layer_list_iterator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_iterator_unittest.cc
diff --git a/cc/layers/layer_iterator_unittest.cc b/cc/layers/layer_iterator_unittest.cc
index 3e8cb0990d5ba4f4ff2b263325663f28c0b48a14..07adda82b429dac7e0cab8925d934ec5a066a294 100644
--- a/cc/layers/layer_iterator_unittest.cc
+++ b/cc/layers/layer_iterator_unittest.cc
@@ -131,10 +131,10 @@ TEST_F(LayerIteratorTest, SimpleTree) {
TestLayerImpl* third_ptr = third.get();
TestLayerImpl* fourth_ptr = fourth.get();
- root_layer->AddChild(std::move(first));
- root_layer->AddChild(std::move(second));
- root_layer->AddChild(std::move(third));
- root_layer->AddChild(std::move(fourth));
+ root_layer->test_properties()->AddChild(std::move(first));
+ root_layer->test_properties()->AddChild(std::move(second));
+ root_layer->test_properties()->AddChild(std::move(third));
+ root_layer->test_properties()->AddChild(std::move(fourth));
host_impl_.active_tree()->SetRootLayer(std::move(root_layer));
@@ -172,14 +172,14 @@ TEST_F(LayerIteratorTest, ComplexTree) {
TestLayerImpl* root221_ptr = root221.get();
TestLayerImpl* root231_ptr = root231.get();
- root22->AddChild(std::move(root221));
- root23->AddChild(std::move(root231));
- root2->AddChild(std::move(root21));
- root2->AddChild(std::move(root22));
- root2->AddChild(std::move(root23));
- root_layer->AddChild(std::move(root1));
- root_layer->AddChild(std::move(root2));
- root_layer->AddChild(std::move(root3));
+ root22->test_properties()->AddChild(std::move(root221));
+ root23->test_properties()->AddChild(std::move(root231));
+ root2->test_properties()->AddChild(std::move(root21));
+ root2->test_properties()->AddChild(std::move(root22));
+ root2->test_properties()->AddChild(std::move(root23));
+ root_layer->test_properties()->AddChild(std::move(root1));
+ root_layer->test_properties()->AddChild(std::move(root2));
+ root_layer->test_properties()->AddChild(std::move(root3));
host_impl_.active_tree()->SetRootLayer(std::move(root_layer));
@@ -224,15 +224,15 @@ TEST_F(LayerIteratorTest, ComplexTreeMultiSurface) {
root22->test_properties()->force_render_surface = true;
root23->test_properties()->force_render_surface = true;
root2->test_properties()->force_render_surface = true;
- root22->AddChild(std::move(root221));
- root23->AddChild(std::move(root231));
+ root22->test_properties()->AddChild(std::move(root221));
+ root23->test_properties()->AddChild(std::move(root231));
root2->SetDrawsContent(false);
- root2->AddChild(std::move(root21));
- root2->AddChild(std::move(root22));
- root2->AddChild(std::move(root23));
- root_layer->AddChild(std::move(root1));
- root_layer->AddChild(std::move(root2));
- root_layer->AddChild(std::move(root3));
+ root2->test_properties()->AddChild(std::move(root21));
+ root2->test_properties()->AddChild(std::move(root22));
+ root2->test_properties()->AddChild(std::move(root23));
+ root_layer->test_properties()->AddChild(std::move(root1));
+ root_layer->test_properties()->AddChild(std::move(root2));
+ root_layer->test_properties()->AddChild(std::move(root3));
host_impl_.active_tree()->SetRootLayer(std::move(root_layer));
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/layers/layer_list_iterator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698