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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_base_layout_algorithm_test.h

Issue 2739683006: Use Opportunity Iterator to position text fragments in NGLineBuilder (Closed)
Patch Set: add font-family 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_base_layout_algorithm_test.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_base_layout_algorithm_test.h b/third_party/WebKit/Source/core/layout/ng/ng_base_layout_algorithm_test.h
new file mode 100644
index 0000000000000000000000000000000000000000..1e007240f8200a7b2b35b7d9d6d8813bdc8a46b8
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/ng/ng_base_layout_algorithm_test.h
@@ -0,0 +1,30 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "core/layout/LayoutTestHelper.h"
+
+#include "core/dom/Element.h"
+#include "core/layout/ng/ng_constraint_space.h"
+#include "core/layout/ng/ng_physical_box_fragment.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace blink {
+
+// Base class for all LayoutNG Algorithms unit test classes.
+typedef bool TestParamLayoutNG;
+class NGBaseLayoutAlgorithmTest
+ : public ::testing::WithParamInterface<TestParamLayoutNG>,
+ public RenderingTest {
+ public:
+ NGBaseLayoutAlgorithmTest();
+ ~NGBaseLayoutAlgorithmTest();
+
+ protected:
+ void SetUp() override;
+
+ std::pair<RefPtr<NGPhysicalBoxFragment>, RefPtr<NGConstraintSpace>>
+ RunBlockLayoutAlgorithmForElement(Element* element);
+};
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698