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

Unified Diff: cc/layers/layer_proto_converter_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/layer.h ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_proto_converter_unittest.cc
diff --git a/cc/layers/layer_proto_converter_unittest.cc b/cc/layers/layer_proto_converter_unittest.cc
index 87a4a30c185a553e384d463ab20c07f9b898ebd4..a4b5686d21b04d92c334dddf6d033c25e398a40d 100644
--- a/cc/layers/layer_proto_converter_unittest.cc
+++ b/cc/layers/layer_proto_converter_unittest.cc
@@ -196,7 +196,7 @@ TEST_F(LayerProtoConverterTest, RecursivePropertiesSerialization) {
proto::LayerUpdate layer_update;
LayerProtoConverter::SerializeLayerProperties(
- layer_src_root->layer_tree_host(), &layer_update);
+ layer_src_root->GetLayerTreeHostForTesting(), &layer_update);
// All flags for pushing properties should have been cleared.
EXPECT_FALSE(
@@ -232,7 +232,7 @@ TEST_F(LayerProtoConverterTest, RecursivePropertiesSerialization) {
dirty_layer_ids.insert(layer_src_d->id());
LayerProtoConverter::SerializeLayerProperties(
- layer_src_root->layer_tree_host(), &layer_update);
+ layer_src_root->GetLayerTreeHostForTesting(), &layer_update);
// All flags for pushing properties should have been cleared.
EXPECT_FALSE(
@@ -283,7 +283,7 @@ TEST_F(LayerProtoConverterTest, RecursivePropertiesSerializationSingleChild) {
proto::LayerUpdate layer_update;
LayerProtoConverter::SerializeLayerProperties(
- layer_src_root->layer_tree_host(), &layer_update);
+ layer_src_root->GetLayerTreeHostForTesting(), &layer_update);
// All layers need to push properties as their layer tree host changed.
ASSERT_EQ(4, layer_update.layers_size());
layer_update.Clear();
@@ -295,7 +295,7 @@ TEST_F(LayerProtoConverterTest, RecursivePropertiesSerializationSingleChild) {
dirty_layer_ids.insert(layer_src_b_mask->id());
LayerProtoConverter::SerializeLayerProperties(
- layer_src_root->layer_tree_host(), &layer_update);
+ layer_src_root->GetLayerTreeHostForTesting(), &layer_update);
// All flags for pushing properties should have been cleared.
EXPECT_FALSE(
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698