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

Unified Diff: cc/layers/layer_utils_unittest.cc

Issue 734063004: Update from https://crrev.com/304418 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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_utils.h ('k') | cc/layers/nine_patch_layer_impl.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 1eb1986eacebca5e2c4e193a9e12a918c9c7abaf..5764bc6707defdc8b261383adb3694dee8ca3051 100644
--- a/cc/layers/layer_utils_unittest.cc
+++ b/cc/layers/layer_utils_unittest.cc
@@ -25,7 +25,7 @@ class LayerUtilsGetAnimationBoundsTest : public testing::Test {
public:
LayerUtilsGetAnimationBoundsTest()
: host_impl_(&proxy_, &shared_bitmap_manager_),
- root_(CreateThreeNodeTree(host_impl_)),
+ root_(CreateThreeNodeTree(&host_impl_)),
parent_(root_->children()[0]),
child_(parent_->children()[0]) {}
@@ -35,11 +35,11 @@ class LayerUtilsGetAnimationBoundsTest : public testing::Test {
private:
static scoped_ptr<LayerImpl> CreateThreeNodeTree(
- LayerTreeHostImpl& host_impl) {
- scoped_ptr<LayerImpl> root = LayerImpl::Create(host_impl.active_tree(), 1);
- root->AddChild(LayerImpl::Create(host_impl.active_tree(), 2));
- root->children()[0]
- ->AddChild(LayerImpl::Create(host_impl.active_tree(), 3));
+ LayerTreeHostImpl* host_impl) {
+ scoped_ptr<LayerImpl> root = LayerImpl::Create(host_impl->active_tree(), 1);
+ root->AddChild(LayerImpl::Create(host_impl->active_tree(), 2));
+ root->children()[0]->AddChild(
+ LayerImpl::Create(host_impl->active_tree(), 3));
return root.Pass();
}
« no previous file with comments | « cc/layers/layer_utils.h ('k') | cc/layers/nine_patch_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698