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..cbeaca4d34291e87d2d3cc293c989cd412a23db4 |
--- /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 NG Layout Algorithms unit test classes. |
ikilpatrick
2017/03/09 22:00:51
s/NG Layout/LayoutNG
Gleb Lanbin
2017/03/09 22:26:45
Done.
|
+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 |