Chromium Code Reviews| Index: cc/trees/layer_tree_host_unittest_serialization.cc |
| diff --git a/cc/trees/layer_tree_host_unittest_serialization.cc b/cc/trees/layer_tree_host_unittest_serialization.cc |
| index db166edeaff0560968095ad7cf13f3021d04cf26..88615839b98236c508a9ccf29bca7e5a2e4cdc07 100644 |
| --- a/cc/trees/layer_tree_host_unittest_serialization.cc |
| +++ b/cc/trees/layer_tree_host_unittest_serialization.cc |
| @@ -49,6 +49,9 @@ class LayerTreeHostSerializationTest : public testing::Test { |
| void VerifySerializationAndDeserialization() { |
| proto::LayerTreeHost proto; |
| + |
| + std::unordered_set<Layer*> layers_that_should_push_properties_src_ = |
|
ajuma
2016/03/21 13:41:20
Nit: local variable name shouldn't end with an und
jaydasika
2016/03/21 17:32:03
Done.
|
| + layer_tree_host_src_->LayersThatShouldPushProperties(); |
| layer_tree_host_src_->ToProtobufForCommit(&proto); |
| layer_tree_host_dst_->FromProtobufForCommit(proto); |
| @@ -102,6 +105,10 @@ class LayerTreeHostSerializationTest : public testing::Test { |
| EXPECT_EQ(layer_tree_host_src_->id_, layer_tree_host_dst_->id_); |
| EXPECT_EQ(layer_tree_host_src_->next_commit_forces_redraw_, |
| layer_tree_host_dst_->next_commit_forces_redraw_); |
| + for (auto layer : layers_that_should_push_properties_src_) { |
| + EXPECT_TRUE(layer_tree_host_dst_->LayerNeedsPushPropertiesForTesting( |
| + layer_tree_host_dst_->LayerById(layer->id()))); |
| + } |
| if (layer_tree_host_src_->hud_layer_) { |
| EXPECT_EQ(layer_tree_host_src_->hud_layer_->id(), |