Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5475)

Unified Diff: chrome/browser/ui/exclusive_access/fullscreen_controller_test.cc

Issue 1570443008: Fix FullscreenController tests with simplified-fullscreen-ui flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: FullscreenControllerInteractiveTest: Further fixes for ChromeOS-only tests. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/exclusive_access/fullscreen_controller_test.cc
diff --git a/chrome/browser/ui/exclusive_access/fullscreen_controller_test.cc b/chrome/browser/ui/exclusive_access/fullscreen_controller_test.cc
index 1cf46886aefd97e3f293d3ec9f203da1d57c0cee..edc6c0b8c503d1e40ab0ccd41c0046e87f7caa89 100644
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller_test.cc
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller_test.cc
@@ -25,8 +25,12 @@ void FullscreenControllerTest::RequestToLockMouse(
bool user_gesture,
bool last_unlocked_by_target) {
WebContents* tab = browser()->tab_strip_model()->GetActiveWebContents();
+ MouseLockController* mouse_lock_controller =
+ GetExclusiveAccessManager()->mouse_lock_controller();
+ mouse_lock_controller->set_fake_mouse_lock_for_test(true);
browser()->RequestToLockMouse(tab, user_gesture,
last_unlocked_by_target);
+ mouse_lock_controller->set_fake_mouse_lock_for_test(false);
}
FullscreenController* FullscreenControllerTest::GetFullscreenController() {

Powered by Google App Engine
This is Rietveld 408576698