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

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

Issue 2757493002: User orientation lock (Closed)
Patch Set: rebase again 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
« no previous file with comments | « ash/system/chromeos/rotation/tray_rotation_lock.cc ('k') | ash/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4c7788b8e6ffc870956cc82967e5a9b44533d5b3..1b5cc4c7d4fcd9c1032a105772ce4ed035ccc242 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();
Shell::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());
Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
@@ -148,8 +149,9 @@ TEST_F(TrayRotationLockTest, TrayViewVisibilityChangesDuringMaximizeMode) {
ASSERT_FALSE(tray_view()->visible());
Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
- Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked(
- true);
+ Shell::GetInstance()
+ ->screen_orientation_controller()
+ ->ToggleUserRotationLock();
EXPECT_TRUE(tray_view()->visible());
Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
false);
@@ -258,8 +260,9 @@ TEST_F(TrayRotationLockTest, LockUpdatedDuringDesctruction) {
Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
true);
DestroyTrayView();
- Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked(
- true);
+ Shell::GetInstance()
+ ->screen_orientation_controller()
+ ->ToggleUserRotationLock();
Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
false);
}
« no previous file with comments | « ash/system/chromeos/rotation/tray_rotation_lock.cc ('k') | ash/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698