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

Side by Side Diff: cc/layers/layer_proto_converter_unittest.cc

Issue 1462613002: Move cc::LayerSettings to cc/layers/layer_settings.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cc_perftests Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « cc/layers/layer_proto_converter.cc ('k') | cc/layers/layer_settings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/layers/layer_proto_converter.cc ('k') | cc/layers/layer_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698