OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "core/layout/LayoutTestHelper.h" |
| 6 |
| 7 #include "core/dom/Element.h" |
| 8 #include "core/layout/ng/ng_constraint_space.h" |
| 9 #include "core/layout/ng/ng_physical_box_fragment.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 // Base class for all LayoutNG Algorithms unit test classes. |
| 15 typedef bool TestParamLayoutNG; |
| 16 class NGBaseLayoutAlgorithmTest |
| 17 : public ::testing::WithParamInterface<TestParamLayoutNG>, |
| 18 public RenderingTest { |
| 19 public: |
| 20 NGBaseLayoutAlgorithmTest(); |
| 21 ~NGBaseLayoutAlgorithmTest(); |
| 22 |
| 23 protected: |
| 24 void SetUp() override; |
| 25 |
| 26 std::pair<RefPtr<NGPhysicalBoxFragment>, RefPtr<NGConstraintSpace>> |
| 27 RunBlockLayoutAlgorithmForElement(Element* element); |
| 28 }; |
| 29 |
| 30 } // namespace blink |
OLD | NEW |