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" |
6 | 7 |
7 #include "core/layout/LayoutTestHelper.h" | 8 #include "core/layout/LayoutTestHelper.h" |
8 | 9 |
9 namespace blink { | 10 namespace blink { |
10 namespace { | 11 namespace { |
11 | 12 |
12 class NGConstraintSpaceBuilderTest { | 13 class NGConstraintSpaceBuilderTest { |
13 public: | 14 public: |
14 NGConstraintSpaceBuilderTest() { | 15 NGConstraintSpaceBuilderTest() { |
15 RuntimeEnabledFeatures::setLayoutNGEnabled(true); | 16 RuntimeEnabledFeatures::setLayoutNGEnabled(true); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 NGConstraintSpace* space = | 64 NGConstraintSpace* space = |
64 vertical_builder.ToConstraintSpace(kHorizontalTopBottom); | 65 vertical_builder.ToConstraintSpace(kHorizontalTopBottom); |
65 | 66 |
66 EXPECT_EQ(space->AvailableSize().inline_size, icb_size.width); | 67 EXPECT_EQ(space->AvailableSize().inline_size, icb_size.width); |
67 EXPECT_EQ(space->PercentageResolutionSize().inline_size, icb_size.width); | 68 EXPECT_EQ(space->PercentageResolutionSize().inline_size, icb_size.width); |
68 }; | 69 }; |
69 | 70 |
70 } // namespace | 71 } // namespace |
71 | 72 |
72 } // namespace blink | 73 } // namespace blink |
OLD | NEW |