#include "third_party/blink/renderer/modules/media_controls/media_controls_display_cutout_delegate.h"
#include "third_party/blink/renderer/core/page/page_animator.h"
#include "third_party/blink/public/mojom/page/display_cutout.mojom-blink.h"
#include "third_party/blink/renderer/core/dom/scripted_animation_controller.h"
#include "third_party/blink/renderer/core/events/touch_event.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/viewport_data.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/fullscreen/fullscreen.h"
#include "third_party/blink/renderer/core/html/media/html_video_element.h"
#include "third_party/blink/renderer/core/input/touch.h"
#include "third_party/blink/renderer/core/input/touch_list.h"
#include "third_party/blink/renderer/core/loader/empty_clients.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/modules/media_controls/media_controls_impl.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
namespace blink {
namespace {
class DisplayCutoutMockChromeClient : public EmptyChromeClient { … };
}
class MediaControlsDisplayCutoutDelegateTest
: public PageTestBase,
private ScopedDisplayCutoutAPIForTest,
private ScopedMediaControlsExpandGestureForTest { … };
TEST_F(MediaControlsDisplayCutoutDelegateTest, CombinedGesture) { … }
TEST_F(MediaControlsDisplayCutoutDelegateTest, ContractingGesture) { … }
TEST_F(MediaControlsDisplayCutoutDelegateTest, ContractingGesture_Noop) { … }
TEST_F(MediaControlsDisplayCutoutDelegateTest, ExpandingGesture) { … }
TEST_F(MediaControlsDisplayCutoutDelegateTest, ExpandingGesture_DoubleNoop) { … }
TEST_F(MediaControlsDisplayCutoutDelegateTest, IncompleteGestureClearsState) { … }
TEST_F(MediaControlsDisplayCutoutDelegateTest, MetricsNoop) { … }
TEST_F(MediaControlsDisplayCutoutDelegateTest, NoFullscreen_Noop) { … }
TEST_F(MediaControlsDisplayCutoutDelegateTest, SingleTouchGesture_Noop) { … }
TEST_F(MediaControlsDisplayCutoutDelegateTest, TouchCancelShouldClearState) { … }
TEST_F(MediaControlsDisplayCutoutDelegateTest, TouchEndShouldClearState) { … }
TEST_F(MediaControlsDisplayCutoutDelegateTest, DefaultExpand) { … }
}