#include <linux/input.h>
#include <wayland-server.h>
#include <memory>
#include "base/memory/raw_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/test_mock_time_task_runner.h"
#include "base/timer/timer.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/devices/device_data_manager.h"
#include "ui/events/event.h"
#include "ui/ozone/platform/wayland/host/wayland_seat.h"
#include "ui/ozone/platform/wayland/test/mock_surface.h"
#include "ui/ozone/platform/wayland/test/test_keyboard.h"
#include "ui/ozone/platform/wayland/test/test_wayland_server_thread.h"
#include "ui/ozone/platform/wayland/test/wayland_test.h"
#if BUILDFLAG(USE_XKBCOMMON)
#include "base/memory/free_deleter.h"
#include "base/memory/platform_shared_memory_region.h"
#include "base/memory/shared_memory_mapping.h"
#include "base/memory/unsafe_shared_memory_region.h"
#include "ui/events/keycodes/scoped_xkb.h"
#endif
_;
Mock;
NotNull;
Values;
namespace ui {
class WaylandKeyboardTest : public WaylandTestSimple { … };
ACTION_P(CloneEvent, ptr) { … }
ACTION_P(AppendEvent, ptr) { … }
ACTION_P(AppendEventAndQuitLoop, ptr, event_count, closure) { … }
TEST_F(WaylandKeyboardTest, Keypress) { … }
TEST_F(WaylandKeyboardTest, ControlShiftModifiers) { … }
#if BUILDFLAG(USE_XKBCOMMON)
TEST_F(WaylandKeyboardTest, CapsLockModifier) { … }
#endif
TEST_F(WaylandKeyboardTest, EventAutoRepeat) { … }
TEST_F(WaylandKeyboardTest, NoEventAutoRepeatOnLeave) { … }
TEST_F(WaylandKeyboardTest, NoEventAutoRepeatForModifiers) { … }
}