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

Unified Diff: cc/layers/layer_utils_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_list_iterator_unittest.cc ('k') | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_utils_unittest.cc
diff --git a/cc/layers/layer_utils_unittest.cc b/cc/layers/layer_utils_unittest.cc
index dc6d4aea4625cd99e7c95833a08b772c438041fe..8f38564746f1f34366fbb3bc703538845b0d4254 100644
--- a/cc/layers/layer_utils_unittest.cc
+++ b/cc/layers/layer_utils_unittest.cc
@@ -59,16 +59,19 @@ class LayerUtilsGetAnimationBoundsTest : public testing::Test {
std::unique_ptr<LayerImpl> root =
LayerImpl::Create(host_impl->active_tree(), 1);
LayerImpl* root_ptr = root.get();
- root->AddChild(LayerImpl::Create(host_impl->active_tree(), 2));
- root->test_properties()->children[0]->AddChild(
+ root->test_properties()->AddChild(
+ LayerImpl::Create(host_impl->active_tree(), 2));
+ root->test_properties()->children[0]->test_properties()->AddChild(
LayerImpl::Create(host_impl->active_tree(), 3));
- root->AddChild(LayerImpl::Create(host_impl->active_tree(), 4));
- root->test_properties()->children[1]->AddChild(
+ root->test_properties()->AddChild(
+ LayerImpl::Create(host_impl->active_tree(), 4));
+ root->test_properties()->children[1]->test_properties()->AddChild(
LayerImpl::Create(host_impl->active_tree(), 5));
root->test_properties()
->children[1]
->test_properties()
->children[0]
+ ->test_properties()
->AddChild(LayerImpl::Create(host_impl->active_tree(), 6));
root->test_properties()
->children[1]
@@ -76,6 +79,7 @@ class LayerUtilsGetAnimationBoundsTest : public testing::Test {
->children[0]
->test_properties()
->children[0]
+ ->test_properties()
->AddChild(LayerImpl::Create(host_impl->active_tree(), 7));
host_impl->active_tree()->SetRootLayer(std::move(root));
return root_ptr;
« no previous file with comments | « cc/layers/layer_list_iterator_unittest.cc ('k') | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698