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

Unified Diff: ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc

Issue 2757493002: User orientation lock (Closed)
Patch Set: . Created 3 years, 9 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: ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc
diff --git a/ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc b/ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc
index a902e92167e7ac6825adef902c82ac4d82cee6cc..381632fc67b58315963549b41b9642519e8dcd1a 100644
--- a/ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc
+++ b/ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc
@@ -133,8 +133,9 @@ TEST_F(TrayRotationLockTest, CreateTrayViewDuringMaximizeModeAndRotationLock) {
TearDownViews();
WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
- Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked(
- true);
+ Shell::GetInstance()
+ ->screen_orientation_controller()
+ ->ToggleUserRotationLock();
SetUpForStatusAreaWidget(StatusAreaWidgetTestHelper::GetStatusAreaWidget());
EXPECT_TRUE(tray_view()->visible());
WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
@@ -148,8 +149,9 @@ TEST_F(TrayRotationLockTest, TrayViewVisibilityChangesDuringMaximizeMode) {
ASSERT_FALSE(tray_view()->visible());
WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
- Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked(
- true);
+ Shell::GetInstance()
+ ->screen_orientation_controller()
+ ->ToggleUserRotationLock();
EXPECT_TRUE(tray_view()->visible());
WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
false);
@@ -258,8 +260,9 @@ TEST_F(TrayRotationLockTest, LockUpdatedDuringDesctruction) {
WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
DestroyTrayView();
- Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked(
- true);
+ Shell::GetInstance()
+ ->screen_orientation_controller()
+ ->ToggleUserRotationLock();
WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
false);
}

Powered by Google App Engine
This is Rietveld 408576698