| 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
|
|
|