#include "components/input/touchpad_pinch_event_queue.h"
#include <string>
#include "base/functional/bind.h"
#include "components/input/event_with_latency_info.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/input/input_event_result.mojom-shared.h"
#include "ui/gfx/geometry/point_f.h"
#include "ui/latency/latency_info.h"
namespace input {
class MockTouchpadPinchEventQueueClient { … };
class TouchpadPinchEventQueueTest : public testing::TestWithParam<bool>,
public TouchpadPinchEventQueueClient { … };
MATCHER_P(EventHasType,
type,
std::string(negation ? "does not have" : "has") + " type " +
::testing::PrintToString(type)) { … }
MATCHER_P(EventHasPhase,
phase,
std::string(negation ? "does not have" : "has") + " phase " +
::testing::PrintToString(phase)) { … }
MATCHER_P(EventHasScale,
expected_scale,
std::string(negation ? "does not have" : "has") + " scale " +
::testing::PrintToString(expected_scale)) { … }
MATCHER(EventHasCtrlModifier,
std::string(negation ? "does not have" : "has") + " control modifier") { … }
MATCHER(EventIsBlocking,
std::string(negation ? "is not" : "is") + " blocking") { … }
TEST_F(TouchpadPinchEventQueueTest, Basic) { … }
TEST_F(TouchpadPinchEventQueueTest, MouseWheelPhase) { … }
TEST_F(TouchpadPinchEventQueueTest, Consumed) { … }
TEST_F(TouchpadPinchEventQueueTest, ZoomDisabled) { … }
TEST_F(TouchpadPinchEventQueueTest, MultipleSequences) { … }
TEST_F(TouchpadPinchEventQueueTest, MultipleQueuedSequences) { … }
TEST_F(TouchpadPinchEventQueueTest, MultipleUpdatesInSequence) { … }
TEST_F(TouchpadPinchEventQueueTest, MultipleUpdatesCoalesced) { … }
TEST_F(TouchpadPinchEventQueueTest, MultipleCanceledUpdatesInSequence) { … }
TEST_F(TouchpadPinchEventQueueTest, DoubleTap) { … }
TEST_F(TouchpadPinchEventQueueTest, IgnoreNonMatchingEvents) { … }
}