#include "base/functional/bind.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/test/test_mock_time_task_runner.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/exclusive_access/exclusive_access_context.h"
#include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h"
#include "chrome/browser/ui/exclusive_access/exclusive_access_test.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/input/native_web_keyboard_event.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/url_constants.h"
#include "content/public/test/browser_test.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "ui/events/event.h"
#include "ui/events/event_constants.h"
#include "ui/events/keycodes/keyboard_codes.h"
WebContents;
PAGE_TRANSITION_TYPED;
PointerLockControllerTest;
IN_PROC_BROWSER_TEST_F(PointerLockControllerTest, PointerLockOnFileURL) { … }
IN_PROC_BROWSER_TEST_F(PointerLockControllerTest,
PointerLockBubbleHideCallbackReject) { … }
IN_PROC_BROWSER_TEST_F(PointerLockControllerTest,
PointerLockBubbleHideCallbackSilentLock) { … }
IN_PROC_BROWSER_TEST_F(PointerLockControllerTest,
PointerLockBubbleHideCallbackUnlock) { … }
IN_PROC_BROWSER_TEST_F(PointerLockControllerTest,
PointerLockBubbleHideCallbackLockThenFullscreen) { … }
IN_PROC_BROWSER_TEST_F(PointerLockControllerTest,
PointerLockBubbleHideCallbackTimeout) { … }
#if BUILDFLAG(IS_CHROMEOS) && defined(ADDRESS_SANITIZER)
#define MAYBE_FastPointerLockUnlockRelock …
#else
#define MAYBE_FastPointerLockUnlockRelock …
#endif
IN_PROC_BROWSER_TEST_F(PointerLockControllerTest,
MAYBE_FastPointerLockUnlockRelock) { … }
#if BUILDFLAG(IS_CHROMEOS) && defined(ADDRESS_SANITIZER)
#define MAYBE_SlowPointerLockUnlockRelock …
#else
#define MAYBE_SlowPointerLockUnlockRelock …
#endif
IN_PROC_BROWSER_TEST_F(PointerLockControllerTest,
MAYBE_SlowPointerLockUnlockRelock) { … }
IN_PROC_BROWSER_TEST_F(PointerLockControllerTest,
RepeatedPointerLockAfterEscapeKey) { … }
IN_PROC_BROWSER_TEST_F(PointerLockControllerTest,
PointerLockAfterKeyboardLock) { … }
IN_PROC_BROWSER_TEST_F(PointerLockControllerTest,
PointerLockAfterKeyboardLockWithEscLocked) { … }