#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/input/gesture_event_queue.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include <vector>
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "components/input/touchpad_tap_suppression_controller.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"
WebGestureDevice;
WebGestureEvent;
WebInputEvent;
namespace input {
class GestureEventQueueTest : public testing::Test,
public GestureEventQueueClient,
public FlingControllerEventSenderClient,
public FlingControllerSchedulerClient { … };
class GestureEventQueueWithCompositorEventQueueTest
: public GestureEventQueueTest { … };
TEST_F(GestureEventQueueTest, SimpleSyncAck) { … }
TEST_F(GestureEventQueueTest, SyncAckQueuesEvent) { … }
TEST_F(GestureEventQueueTest, DebounceDefersFollowingGestureEvents) { … }
TEST_F(GestureEventQueueTest,
DebounceDoesNotDeferGSEsGeneratedByFlingController) { … }
TEST_F(GestureEventQueueTest, DebounceDefersGSBIfPreviousGSEDeferred) { … }
TEST_F(GestureEventQueueTest, DebounceDefersGSBIfPreviousGSEDropped) { … }
TEST_F(GestureEventQueueTest, DebounceDropsDeferredEvents) { … }
TEST_F(GestureEventQueueTest, TapGetsSuppressedAfterTapDownCancelsFling) { … }
TEST_F(GestureEventQueueWithCompositorEventQueueTest,
PreserveOrderWithOutOfOrderAck) { … }
TEST_F(GestureEventQueueWithCompositorEventQueueTest,
MultipleGesturesInFlight) { … }
}