#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "content/common/input/synthetic_pointer_action.h"
#include "base/functional/bind.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "content/common/input/synthetic_gesture.h"
#include "content/common/input/synthetic_gesture_controller.h"
#include "content/common/input/synthetic_gesture_target.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/input/web_input_event.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/point_f.h"
WebInputEvent;
WebTouchEvent;
WebMouseEvent;
WebTouchPoint;
namespace content {
WebTouchPoint::State ToWebTouchPointState(
SyntheticPointerActionParams::PointerActionType action_type) { … }
WebInputEvent::Type ToWebMouseEventType(
SyntheticPointerActionParams::PointerActionType action_type) { … }
WebInputEvent::Type WebTouchPointStateToEventType(
blink::WebTouchPoint::State state) { … }
class MockSyntheticPointerActionTarget : public SyntheticGestureTarget { … };
class MockSyntheticPointerTouchActionTarget
: public MockSyntheticPointerActionTarget { … };
class MockSyntheticPointerMouseActionTarget
: public MockSyntheticPointerActionTarget { … };
class MockSyntheticPointerPenActionTarget
: public MockSyntheticPointerMouseActionTarget { … };
class DummySyntheticGestureControllerDelegate
: public SyntheticGestureController::Delegate { … };
class SyntheticPointerActionTest : public testing::Test { … };
TEST_F(SyntheticPointerActionTest, PointerTouchAction) { … }
TEST_F(SyntheticPointerActionTest, PointerTouchActionsMultiPressRelease) { … }
TEST_F(SyntheticPointerActionTest, PointerTouchActionCancel) { … }
TEST_F(SyntheticPointerActionTest, PointerTouchActionTypeInvalid) { … }
TEST_F(SyntheticPointerActionTest, PointerTouchActionFromDebugger) { … }
TEST_F(SyntheticPointerActionTest, PointerMouseAction) { … }
TEST_F(SyntheticPointerActionTest, PointerMouseActionMultiPress) { … }
TEST_F(SyntheticPointerActionTest, PointerMouseActionWithKey) { … }
TEST_F(SyntheticPointerActionTest, PointerMouseActionWithTime) { … }
TEST_F(SyntheticPointerActionTest, PointerMouseRelease) { … }
TEST_F(SyntheticPointerActionTest, PointerMouseActionTypeInvalid) { … }
TEST_F(SyntheticPointerActionTest, PointerMouseFromDebugger) { … }
TEST_F(SyntheticPointerActionTest, PointerPenAction) { … }
TEST_F(SyntheticPointerActionTest, PointerPenActionFromDebugger) { … }
TEST_F(SyntheticPointerActionTest, EmptyParams) { … }
TEST_F(SyntheticPointerActionTest, UsesCorrectPointerDriver) { … }
TEST_F(SyntheticPointerActionTest, PointerMouseActionIncreaseClickCount) { … }
TEST_F(SyntheticPointerActionTest, PointerMouseActionResetCountOnOtherButton) { … }
TEST_F(SyntheticPointerActionTest, PointerMouseActionResetCountAfterMove) { … }
}