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

Unified Diff: chrome/common/extensions/extension_commands_unittest.cc

Issue 10399085: accelerators: Remove deprecated Accelerator ctor that takes booleans. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix aura_shell_unittests Created 8 years, 7 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 | « chrome/browser/ui/views/task_manager_view.cc ('k') | ui/base/accelerators/accelerator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_commands_unittest.cc
diff --git a/chrome/common/extensions/extension_commands_unittest.cc b/chrome/common/extensions/extension_commands_unittest.cc
index 61b408acac67568fd86cd142433604ab6f6c1617..1a32ebe8de09a4b9c8fa06f8e6b7837a9cc13c82 100644
--- a/chrome/common/extensions/extension_commands_unittest.cc
+++ b/chrome/common/extensions/extension_commands_unittest.cc
@@ -135,15 +135,20 @@ TEST(ExtensionCommandsTest, ExtensionCommandParsingFallback) {
EXPECT_STREQ(command_name.c_str(), command.command_name().c_str());
#if defined(OS_WIN)
- ui::Accelerator accelerator(ui::VKEY_W, true, true, false);
+ ui::Accelerator accelerator(ui::VKEY_W,
+ ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN);
#elif defined(OS_MACOSX)
- ui::Accelerator accelerator(ui::VKEY_M, true, true, false);
+ ui::Accelerator accelerator(ui::VKEY_M,
+ ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN);
#elif defined(OS_CHROMEOS)
- ui::Accelerator accelerator(ui::VKEY_C, true, true, false);
+ ui::Accelerator accelerator(ui::VKEY_C,
+ ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN);
#elif defined(OS_LINUX)
- ui::Accelerator accelerator(ui::VKEY_L, true, true, false);
+ ui::Accelerator accelerator(ui::VKEY_L,
+ ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN);
#else
- ui::Accelerator accelerator(ui::VKEY_D, true, true, false);
+ ui::Accelerator accelerator(ui::VKEY_D,
+ ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN);
#endif
EXPECT_EQ(accelerator, command.accelerator());
« no previous file with comments | « chrome/browser/ui/views/task_manager_view.cc ('k') | ui/base/accelerators/accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698