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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc

Issue 2723023003: Revert of [LayoutNG] Move remaining ng_units structs to their own files (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc
index 9edbb0edb2b4ff9a0e94125478a76e0c3ebb49d5..6ede938ace0283329e6282f20e186ca7b8049be7 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc
@@ -16,6 +16,7 @@
#include "core/layout/ng/ng_length_utils.h"
#include "core/layout/ng/ng_physical_box_fragment.h"
#include "core/layout/ng/ng_physical_fragment.h"
+#include "core/layout/ng/ng_units.h"
#include "core/style/ComputedStyle.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -94,7 +95,7 @@
toNGPhysicalBoxFragment(result->PhysicalFragment().get()), space);
}
- MinMaxContentSize RunComputeMinAndMax(NGBlockNode* first_child) {
+ MinAndMaxContentSizes RunComputeMinAndMax(NGBlockNode* first_child) {
// The constraint space is not used for min/max computation, but we need
// it to create the algorithm.
NGConstraintSpace* space =
@@ -104,8 +105,8 @@
node->SetFirstChild(first_child);
NGBlockLayoutAlgorithm algorithm(node, space);
- EXPECT_TRUE(algorithm.ComputeMinMaxContentSize().has_value());
- return *algorithm.ComputeMinMaxContentSize();
+ EXPECT_TRUE(algorithm.ComputeMinAndMaxContentSizes().has_value());
+ return *algorithm.ComputeMinAndMaxContentSizes();
}
RefPtr<ComputedStyle> style_;
@@ -1300,7 +1301,7 @@
first_child->SetNextSibling(second_child);
- MinMaxContentSize sizes = RunComputeMinAndMax(first_child);
+ MinAndMaxContentSizes sizes = RunComputeMinAndMax(first_child);
EXPECT_EQ(kWidthChild2, sizes.min_content);
EXPECT_EQ(kWidthChild2, sizes.max_content);
}

Powered by Google App Engine
This is Rietveld 408576698