#include "ui/events/ozone/evdev/event_converter_test_util.h"
#include "base/memory/raw_ptr.h"
#include <stdint.h>
#include "ui/events/devices/keyboard_device.h"
#include "ui/events/devices/touchpad_device.h"
#include "ui/events/ozone/device/device_manager.h"
#include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h"
#include "ui/events/ozone/evdev/event_factory_evdev.h"
#include "ui/events/platform/platform_event_dispatcher.h"
namespace ui {
namespace {
class TestDeviceManager : public ui::DeviceManager { … };
class TestDeviceEventDispatcherEvdev : public DeviceEventDispatcherEvdev { … };
class TestEventFactoryEvdev : public EventFactoryEvdev { … };
}
std::unique_ptr<DeviceEventDispatcherEvdev>
CreateDeviceEventDispatcherEvdevForTest(EventFactoryEvdev* event_factory) { … }
std::unique_ptr<DeviceManager> CreateDeviceManagerForTest() { … }
std::unique_ptr<EventFactoryEvdev> CreateEventFactoryEvdevForTest(
CursorDelegateEvdev* cursor,
DeviceManager* device_manager,
KeyboardLayoutEngine* keyboard_layout_engine,
const EventDispatchCallback& callback) { … }
}