#include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h"
#include "base/test/task_environment.h"
#include "base/test/test_mock_time_task_runner.h"
#include "chrome/browser/ui/exclusive_access/exclusive_access_context.h"
#include "chrome/browser/ui/exclusive_access/exclusive_access_test.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/input/native_web_keyboard_event.h"
#include "content/public/test/browser_test.h"
#include "ui/events/keycodes/keyboard_codes.h"
#include "url/gurl.h"
ExclusiveAccessManagerTest;
IN_PROC_BROWSER_TEST_F(ExclusiveAccessManagerTest, HandleKeyEvent_NonEscKey) { … }
IN_PROC_BROWSER_TEST_F(ExclusiveAccessManagerTest,
HandleKeyEvent_PointerLocked) { … }
IN_PROC_BROWSER_TEST_F(ExclusiveAccessManagerTest,
HandleKeyEvent_TabFullscreen) { … }
IN_PROC_BROWSER_TEST_F(ExclusiveAccessManagerTest,
HandleKeyEvent_KeyboardLocked) { … }
class ExclusiveAccessManagerPressAndHoldEscTest : public ExclusiveAccessTest { … };
IN_PROC_BROWSER_TEST_F(ExclusiveAccessManagerPressAndHoldEscTest,
HoldTimerStartOnEscKeyPressWithModifiers) { … }
IN_PROC_BROWSER_TEST_F(ExclusiveAccessManagerPressAndHoldEscTest,
HandlePressAndHoldKeyEvent) { … }
#if BUILDFLAG(IS_CHROMEOS)
#define MAYBE_ShowExclusiveAccessBubble …
#else
#define MAYBE_ShowExclusiveAccessBubble …
#endif
IN_PROC_BROWSER_TEST_F(ExclusiveAccessManagerPressAndHoldEscTest,
MAYBE_ShowExclusiveAccessBubble) { … }