#include "components/input/touch_action_filter.h"
#include "components/input/event_with_latency_info.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/input/synthetic_web_input_event_builders.h"
#include "third_party/blink/public/common/input/web_input_event.h"
#include "third_party/blink/public/mojom/input/input_event_result.mojom-shared.h"
#include "ui/events/blink/blink_features.h"
SyntheticWebGestureEventBuilder;
WebGestureEvent;
WebInputEvent;
namespace input {
namespace {
const blink::WebGestureDevice kSourceDevice = …;
}
class TouchActionFilterTest : public testing::Test { … };
TEST_F(TouchActionFilterTest, SimpleFilter) { … }
TEST_F(TouchActionFilterTest, PanLeft) { … }
TEST_F(TouchActionFilterTest, PanRight) { … }
TEST_F(TouchActionFilterTest, PanX) { … }
TEST_F(TouchActionFilterTest, PanUp) { … }
TEST_F(TouchActionFilterTest, PanDown) { … }
TEST_F(TouchActionFilterTest, PanY) { … }
TEST_F(TouchActionFilterTest, PanXY) { … }
TEST_F(TouchActionFilterTest, BitMath) { … }
TEST_F(TouchActionFilterTest, MultiTouch) { … }
class TouchActionFilterPinchTest : public testing::Test { … };
TEST_F(TouchActionFilterPinchTest, Pinch) { … }
TEST_F(TouchActionFilterPinchTest, ForceEnableZoom) { … }
TEST_F(TouchActionFilterTest, DoubleTapWithTouchActionAuto) { … }
TEST_F(TouchActionFilterTest, DoubleTap) { … }
TEST_F(TouchActionFilterTest, SingleTapWithTouchActionAuto) { … }
TEST_F(TouchActionFilterTest, SingleTap) { … }
TEST_F(TouchActionFilterTest, TouchActionResetsOnResetTouchAction) { … }
TEST_F(TouchActionFilterTest, TouchActionResetMidSequence) { … }
TEST_F(TouchActionFilterTest, TouchActionNotResetWithinGestureSequence) { … }
TEST_F(TouchActionFilterTest, OnHasTouchEventHandlersReceivedDuringTap) { … }
TEST_F(TouchActionFilterTest, OnHasTouchEventHandlersReceivedDuringDoubleTap) { … }
TEST_F(TouchActionFilterTest, OnHasTouchEventHandlersReceivedDuringScroll) { … }
TEST_F(TouchActionFilterTest,
OnHasTouchEventHandlersReceivedAfterLongTapOrTwoFingerTap) { … }
TEST_F(TouchActionFilterTest, OnHasTouchEventHandlersReceivedAfterTouchStart) { … }
TEST_F(TouchActionFilterTest, ResetTouchActionWithActiveTouch) { … }
TEST_F(TouchActionFilterTest, GestureArrivesBeforeHasHandlerSet) { … }
TEST_F(TouchActionFilterTest,
PinchGesturesAllowedByCompositorAllowedTouchAction) { … }
TEST_F(TouchActionFilterTest, FilterWithCompositorAllowedListedTouchAction) { … }
TEST_F(TouchActionFilterTest, CompositorAllowedTouchActionResetToAuto) { … }
TEST_F(TouchActionFilterTest, CompositorAllowedTouchActionAutoNoHasHandlers) { … }
TEST_F(TouchActionFilterTest, ResetBeforeHasHandlerSet) { … }
TEST_F(TouchActionFilterTest,
CompositorAllowedTouchActionNotResetAtGestureScrollEnd) { … }
TEST_F(TouchActionFilterTest, ScrollBeginWithoutTapDown) { … }
TEST_F(TouchActionFilterTest, TapDownWithZeroNumOfActiveTouches) { … }
TEST_F(TouchActionFilterTest, PinchZoomStartsWithOneFingerPanDisallowed) { … }
TEST_F(TouchActionFilterTest, ScrollBeginWithoutTapDownWithKnownTouchAction) { … }
TEST_F(TouchActionFilterTest, TouchpadScroll) { … }
}