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

Unified Diff: cc/layers/layer_proto_converter_unittest.cc

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: test update Created 4 years, 2 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_proto_converter.cc ('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 e6153a7f946c94e056608a0cc3aed58e53ab465d..04ac5da21cc0e38cc355014bf621e4852cc02e70 100644
--- a/cc/layers/layer_proto_converter_unittest.cc
+++ b/cc/layers/layer_proto_converter_unittest.cc
@@ -316,7 +316,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());
}
@@ -351,7 +351,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());
}
« no previous file with comments | « cc/layers/layer_proto_converter.cc ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698