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

Unified Diff: cc/layers/ui_resource_layer_unittest.cc

Issue 2331983002: cc: Make LayerTreeHost a protected Layer member. (Closed)
Patch Set: settings Created 4 years, 3 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/scrollbar_layer_unittest.cc ('k') | cc/test/fake_layer_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/ui_resource_layer_unittest.cc
diff --git a/cc/layers/ui_resource_layer_unittest.cc b/cc/layers/ui_resource_layer_unittest.cc
index c5fc041a9318d635bc1c6064aa989ce99b3d9d89..15b25b5706edbffee7b854b770c03b0afdbfdf66 100644
--- a/cc/layers/ui_resource_layer_unittest.cc
+++ b/cc/layers/ui_resource_layer_unittest.cc
@@ -71,7 +71,7 @@ TEST_F(UIResourceLayerTest, SetBitmap) {
layer_tree_host_->SetRootLayer(test_layer);
Mock::VerifyAndClearExpectations(layer_tree_host_.get());
- EXPECT_EQ(test_layer->layer_tree_host(), layer_tree_host_.get());
+ EXPECT_EQ(test_layer->GetLayerTreeHostForTesting(), layer_tree_host_.get());
test_layer->SavePaintProperties();
test_layer->Update();
@@ -95,7 +95,7 @@ TEST_F(UIResourceLayerTest, SetUIResourceId) {
layer_tree_host_->SetRootLayer(test_layer);
Mock::VerifyAndClearExpectations(layer_tree_host_.get());
- EXPECT_EQ(test_layer->layer_tree_host(), layer_tree_host_.get());
+ EXPECT_EQ(test_layer->GetLayerTreeHostForTesting(), layer_tree_host_.get());
test_layer->SavePaintProperties();
test_layer->Update();
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/test/fake_layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698