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

Side by Side Diff: ash/mus/accelerators/accelerator_controller_unittest.cc

Issue 2501123002: Disable the old lock-screen shortcut (Closed)
Patch Set: Fix MUS test Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/accelerators/accelerator_controller.h" 5 #include "ash/common/accelerators/accelerator_controller.h"
6 6
7 #include "ash/common/accelerators/accelerator_table.h" 7 #include "ash/common/accelerators/accelerator_table.h"
8 #include "ash/common/accessibility_delegate.h" 8 #include "ash/common/accessibility_delegate.h"
9 #include "ash/common/accessibility_types.h" 9 #include "ash/common/accessibility_types.h"
10 #include "ash/common/ime_control_delegate.h" 10 #include "ash/common/ime_control_delegate.h"
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 909
910 #if defined(OS_CHROMEOS) 910 #if defined(OS_CHROMEOS)
911 // Open file manager 911 // Open file manager
912 EXPECT_TRUE(ProcessInController( 912 EXPECT_TRUE(ProcessInController(
913 ui::Accelerator(ui::VKEY_M, ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN))); 913 ui::Accelerator(ui::VKEY_M, ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN)));
914 914
915 // Lock screen 915 // Lock screen
916 // NOTE: Accelerators that do not work on the lock screen need to be 916 // NOTE: Accelerators that do not work on the lock screen need to be
917 // tested before the sequence below is invoked because it causes a side 917 // tested before the sequence below is invoked because it causes a side
918 // effect of locking the screen. 918 // effect of locking the screen.
919 EXPECT_TRUE(ProcessInController( 919 EXPECT_TRUE(
920 ui::Accelerator(ui::VKEY_L, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN))); 920 ProcessInController(ui::Accelerator(ui::VKEY_L, ui::EF_COMMAND_DOWN)));
921 #endif 921 #endif
922 } 922 }
923 923
924 // TODO: fails in mash, http://crbug.com/632180. 924 // TODO: fails in mash, http://crbug.com/632180.
925 TEST_F(AcceleratorControllerTest, DISABLED_GlobalAcceleratorsToggleAppList) { 925 TEST_F(AcceleratorControllerTest, DISABLED_GlobalAcceleratorsToggleAppList) {
926 AccessibilityDelegate* delegate = WmShell::Get()->accessibility_delegate(); 926 AccessibilityDelegate* delegate = WmShell::Get()->accessibility_delegate();
927 EXPECT_FALSE(WmShell::Get()->GetAppListTargetVisibility()); 927 EXPECT_FALSE(WmShell::Get()->GetAppListTargetVisibility());
928 928
929 // The press event should not open the AppList, the release should instead. 929 // The press event should not open the AppList, the release should instead.
930 EXPECT_FALSE( 930 EXPECT_FALSE(
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 EXPECT_TRUE(IsMessageCenterEmpty()); 1402 EXPECT_TRUE(IsMessageCenterEmpty());
1403 1403
1404 // If the action is LOCK_SCREEN, we must reset the state by unlocking the 1404 // If the action is LOCK_SCREEN, we must reset the state by unlocking the
1405 // screen before we proceed testing the rest of accelerators. 1405 // screen before we proceed testing the rest of accelerators.
1406 ResetStateIfNeeded(); 1406 ResetStateIfNeeded();
1407 } 1407 }
1408 } 1408 }
1409 #endif // defined(OS_CHROMEOS) 1409 #endif // defined(OS_CHROMEOS)
1410 1410
1411 } // namespace ash 1411 } // namespace ash
OLDNEW
« ash/common/accelerators/accelerator_table.cc ('K') | « ash/common/accelerators/accelerator_table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698