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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc

Issue 2721613003: [LayoutNG] Move remaining ng_units structs to their own files (Closed)
Patch Set: Don't export NGBoxStrut for now Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "core/layout/ng/ng_constraint_space_builder.h" 5 #include "core/layout/ng/ng_constraint_space_builder.h"
6 #include "core/layout/ng/ng_units.h"
7 6
8 #include "core/layout/LayoutTestHelper.h" 7 #include "core/layout/LayoutTestHelper.h"
9 8
10 namespace blink { 9 namespace blink {
11 namespace { 10 namespace {
12 11
13 class NGConstraintSpaceBuilderTest { 12 class NGConstraintSpaceBuilderTest {
14 public: 13 public:
15 NGConstraintSpaceBuilderTest() { 14 NGConstraintSpaceBuilderTest() {
16 RuntimeEnabledFeatures::setLayoutNGEnabled(true); 15 RuntimeEnabledFeatures::setLayoutNGEnabled(true);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 NGConstraintSpace* space = 63 NGConstraintSpace* space =
65 vertical_builder.ToConstraintSpace(kHorizontalTopBottom); 64 vertical_builder.ToConstraintSpace(kHorizontalTopBottom);
66 65
67 EXPECT_EQ(space->AvailableSize().inline_size, icb_size.width); 66 EXPECT_EQ(space->AvailableSize().inline_size, icb_size.width);
68 EXPECT_EQ(space->PercentageResolutionSize().inline_size, icb_size.width); 67 EXPECT_EQ(space->PercentageResolutionSize().inline_size, icb_size.width);
69 }; 68 };
70 69
71 } // namespace 70 } // namespace
72 71
73 } // namespace blink 72 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698