OLD | NEW |
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 Loading... |
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 |
OLD | NEW |