#include "ui/events/ozone/evdev/input_injector_evdev.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/types/cxx23_to_underlying.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/ozone/device/device_manager.h"
#include "ui/events/ozone/evdev/event_converter_test_util.h"
#include "ui/events/ozone/evdev/event_factory_evdev.h"
#include "ui/events/ozone/evdev/testing/fake_cursor_delegate_evdev.h"
#include "ui/events/ozone/events_ozone.h"
#include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h"
namespace ui {
AllOf;
InSequence;
Property;
class EventObserver { … };
MATCHER_P4(MatchesMouseEvent, type, button, x, y, "") { … }
class InputInjectorEvdevTest : public testing::Test { … };
InputInjectorEvdevTest::InputInjectorEvdevTest()
: … { … }
void InputInjectorEvdevTest::SimulateMouseClick(int x,
int y,
EventFlags button,
int count) { … }
void InputInjectorEvdevTest::ExpectClick(int x, int y, int button, int count) { … }
TEST_F(InputInjectorEvdevTest, LeftClick) { … }
TEST_F(InputInjectorEvdevTest, RightClick) { … }
TEST_F(InputInjectorEvdevTest, MiddleClick) { … }
TEST_F(InputInjectorEvdevTest, DoubleClick) { … }
TEST_F(InputInjectorEvdevTest, MouseMoved) { … }
TEST_F(InputInjectorEvdevTest, MouseDragged) { … }
TEST_F(InputInjectorEvdevTest, MouseWheel) { … }
}