chromium/third_party/blink/public/test/frame_widget_test_helper.h

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_PUBLIC_TEST_FRAME_WIDGET_TEST_HELPER_H_
#define THIRD_PARTY_BLINK_PUBLIC_TEST_FRAME_WIDGET_TEST_HELPER_H_

#include "base/functional/callback_forward.h"
#include "third_party/blink/public/platform/web_common.h"
#include "third_party/blink/public/web/web_frame_widget.h"

namespace content {
class EventSender;
class TestRunner;
}  // namespace content

namespace blink {

// This class is used for content/web_test to create a subclass of
// `WebFrameWidgetImpl` that has special test hooks for controlling web tests.
// Since `WebFrameWidgetImpl` is not exported outside blink we need to have
// a special interface that exposes some additional hooks. These special
// hooks are contained on the `FrameWidgetTestHelper` class and the subclass
// implements `WebFrameWidget::GetFrameWidgetTestHelperForTesting()`.
//
// We allow usage of content::EventSender/TestRunner here temporarily while
// these methods are eventually moved into blink. This code is built and
// linked for tests.
class FrameWidgetTestHelper {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_PUBLIC_TEST_FRAME_WIDGET_TEST_HELPER_H_