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

Unified Diff: cc/layers/layer_proto_converter_unittest.cc

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: 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
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 a4b5686d21b04d92c334dddf6d033c25e398a40d..6f65d924c89ee229451173cf1225fef06520da16 100644
--- a/cc/layers/layer_proto_converter_unittest.cc
+++ b/cc/layers/layer_proto_converter_unittest.cc
@@ -324,7 +324,7 @@ TEST_F(LayerProtoConverterTest, PictureLayerTypeSerialization) {
PictureLayer::Create(EmptyContentLayerClient::GetInstance());
proto::LayerNode layer_hierarchy;
- LayerProtoConverter::SerializeLayerHierarchy(layer.get(), &layer_hierarchy);
+ layer->ToLayerNodeProto(&layer_hierarchy);
EXPECT_EQ(proto::LayerNode::PICTURE_LAYER, layer_hierarchy.type());
}
@@ -359,7 +359,7 @@ TEST_F(LayerProtoConverterTest, HudLayerTypeSerialization) {
scoped_refptr<HeadsUpDisplayLayer> layer = HeadsUpDisplayLayer::Create();
proto::LayerNode layer_hierarchy;
- LayerProtoConverter::SerializeLayerHierarchy(layer.get(), &layer_hierarchy);
+ layer->ToLayerNodeProto(&layer_hierarchy);
EXPECT_EQ(proto::LayerNode::HEADS_UP_DISPLAY_LAYER, layer_hierarchy.type());
}

Powered by Google App Engine
This is Rietveld 408576698