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

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

Issue 2723023003: Revert of [LayoutNG] Move remaining ng_units structs to their own files (Closed)
Patch Set: 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"
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698