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

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

Issue 12330056: Remove the Exit menu item from the Wrench menu in Win/Ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't remove Exit menu item from non win-ash platforms. Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/accelerators/accelerator_table.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/accelerators/accelerator_controller.h" 5 #include "ash/accelerators/accelerator_controller.h"
6 #include "ash/accelerators/accelerator_table.h" 6 #include "ash/accelerators/accelerator_table.h"
7 #include "ash/caps_lock_delegate.h" 7 #include "ash/caps_lock_delegate.h"
8 #include "ash/display/display_manager.h" 8 #include "ash/display/display_manager.h"
9 #include "ash/ime_control_delegate.h" 9 #include "ash/ime_control_delegate.h"
10 #include "ash/screenshot_delegate.h" 10 #include "ash/screenshot_delegate.h"
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 // ToggleDesktopBackgroundMode 849 // ToggleDesktopBackgroundMode
850 EXPECT_TRUE(ProcessWithContext( 850 EXPECT_TRUE(ProcessWithContext(
851 ui::Accelerator(ui::VKEY_B, ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN))); 851 ui::Accelerator(ui::VKEY_B, ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN)));
852 #if !defined(OS_LINUX) 852 #if !defined(OS_LINUX)
853 // ToggleDesktopFullScreen (not implemented yet on Linux) 853 // ToggleDesktopFullScreen (not implemented yet on Linux)
854 EXPECT_TRUE(ProcessWithContext( 854 EXPECT_TRUE(ProcessWithContext(
855 ui::Accelerator(ui::VKEY_F11, ui::EF_CONTROL_DOWN))); 855 ui::Accelerator(ui::VKEY_F11, ui::EF_CONTROL_DOWN)));
856 #endif // OS_LINUX 856 #endif // OS_LINUX
857 #endif // !NDEBUG 857 #endif // !NDEBUG
858 858
859 #if !defined(OS_WIN)
859 // Exit 860 // Exit
860 EXPECT_TRUE(ProcessWithContext( 861 EXPECT_TRUE(ProcessWithContext(
861 ui::Accelerator(ui::VKEY_Q, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN))); 862 ui::Accelerator(ui::VKEY_Q, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN)));
863 #endif
862 864
863 // New tab 865 // New tab
864 EXPECT_TRUE(ProcessWithContext( 866 EXPECT_TRUE(ProcessWithContext(
865 ui::Accelerator(ui::VKEY_T, ui::EF_CONTROL_DOWN))); 867 ui::Accelerator(ui::VKEY_T, ui::EF_CONTROL_DOWN)));
866 868
867 // New incognito window 869 // New incognito window
868 EXPECT_TRUE(ProcessWithContext( 870 EXPECT_TRUE(ProcessWithContext(
869 ui::Accelerator(ui::VKEY_N, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN))); 871 ui::Accelerator(ui::VKEY_N, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN)));
870 872
871 // New window 873 // New window
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 EXPECT_EQ(volume_down, delegate->last_accelerator()); 1242 EXPECT_EQ(volume_down, delegate->last_accelerator());
1241 EXPECT_EQ(0, delegate->handle_volume_up_count()); 1243 EXPECT_EQ(0, delegate->handle_volume_up_count());
1242 EXPECT_TRUE(ProcessWithContext(volume_up)); 1244 EXPECT_TRUE(ProcessWithContext(volume_up));
1243 EXPECT_EQ(1, delegate->handle_volume_up_count()); 1245 EXPECT_EQ(1, delegate->handle_volume_up_count());
1244 EXPECT_EQ(volume_up, delegate->last_accelerator()); 1246 EXPECT_EQ(volume_up, delegate->last_accelerator());
1245 } 1247 }
1246 } 1248 }
1247 #endif 1249 #endif
1248 1250
1249 } // namespace ash 1251 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/accelerators/accelerator_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698