blob: ecd64332d4cc32bc5f8f44f511cdf7f6fd27a83b [file] [log] [blame]
// 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.
#ifndef NGLayoutTest_h
#define NGLayoutTest_h
#include "core/frame/LocalFrameClient.h"
#include "core/layout/LayoutTestHelper.h"
#include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h"
namespace blink {
// The NGLayoutTest is intended to let all NGFooTest classes easiy inherit
// ScopedLayoutNGForTest as well as RenderingTest. The ScopedLayoutNGForTest
// ensures original settings are restored for other tests.
// See http://crbug.com/769541 for more details.
class NGLayoutTest : public RenderingTest, private ScopedLayoutNGForTest {
public:
NGLayoutTest(LocalFrameClient* local_frame_client = nullptr)
: RenderingTest(local_frame_client), ScopedLayoutNGForTest(true) {}
};
} // namespace blink
#endif // NGLayoutTest_h