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

Unified Diff: cc/layers/layer_impl_unittest.cc

Issue 1437413002: cc: Remove ScopedPtrVector and cc::remove_if. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/layer_lists.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl_unittest.cc
diff --git a/cc/layers/layer_impl_unittest.cc b/cc/layers/layer_impl_unittest.cc
index 8b93be375c16532d04bc5807721ba95e96643259..65691b4aa5e18d127c8d7117193b7e8b54fc8a02 100644
--- a/cc/layers/layer_impl_unittest.cc
+++ b/cc/layers/layer_impl_unittest.cc
@@ -116,9 +116,9 @@ TEST(LayerImplTest, VerifyLayerChangesAreTrackedProperly) {
clip_children->insert(root);
root->AddChild(LayerImpl::Create(host_impl.active_tree(), 7));
- LayerImpl* child = root->children()[0];
+ LayerImpl* child = root->children()[0].get();
child->AddChild(LayerImpl::Create(host_impl.active_tree(), 8));
- LayerImpl* grand_child = child->children()[0];
+ LayerImpl* grand_child = child->children()[0].get();
root->SetScrollClipLayer(root_clip->id());
@@ -451,7 +451,7 @@ class LayerImplScrollTest : public testing::Test {
}
LayerImpl* layer() {
- return host_impl_.active_tree()->root_layer()->children()[0];
+ return host_impl_.active_tree()->root_layer()->children()[0].get();
}
LayerTreeHostImpl& host_impl() { return host_impl_; }
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/layer_lists.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698