OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/layers/layer_proto_converter.h" | 5 #include "cc/layers/layer_proto_converter.h" |
6 | 6 |
7 #include "cc/layers/layer.h" | 7 #include "cc/layers/layer.h" |
| 8 #include "cc/layers/layer_settings.h" |
8 #include "cc/proto/layer.pb.h" | 9 #include "cc/proto/layer.pb.h" |
9 #include "cc/trees/layer_tree_settings.h" | 10 #include "cc/trees/layer_tree_settings.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
11 | 12 |
12 namespace cc { | 13 namespace cc { |
13 | 14 |
14 TEST(LayerProtoConverterTest, TestKeepingRoot) { | 15 TEST(LayerProtoConverterTest, TestKeepingRoot) { |
15 /* Test deserialization of a tree that looks like: | 16 /* Test deserialization of a tree that looks like: |
16 root | 17 root |
17 / \ | 18 / \ |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 EXPECT_FALSE(a->descendant_needs_push_properties()); | 302 EXPECT_FALSE(a->descendant_needs_push_properties()); |
302 | 303 |
303 EXPECT_FALSE(b->needs_push_properties()); | 304 EXPECT_FALSE(b->needs_push_properties()); |
304 EXPECT_TRUE(b->descendant_needs_push_properties()); | 305 EXPECT_TRUE(b->descendant_needs_push_properties()); |
305 | 306 |
306 EXPECT_TRUE(c->needs_push_properties()); | 307 EXPECT_TRUE(c->needs_push_properties()); |
307 EXPECT_FALSE(c->descendant_needs_push_properties()); | 308 EXPECT_FALSE(c->descendant_needs_push_properties()); |
308 } | 309 } |
309 | 310 |
310 } // namespace cc | 311 } // namespace cc |
OLD | NEW |