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

Unified Diff: ash/accelerators/accelerator_table_unittest.cc

Issue 2130603002: ash: Explicitly enumerate repeatable accelerators. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/accelerators/accelerator_table.cc ('k') | ash/accelerators/exit_warning_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_table_unittest.cc
diff --git a/ash/accelerators/accelerator_table_unittest.cc b/ash/accelerators/accelerator_table_unittest.cc
index 95329282973e8d5c041b043266eb0615a21dcf56..4bb8c8624530a902a5761675140e2e049e4a0341 100644
--- a/ash/accelerators/accelerator_table_unittest.cc
+++ b/ash/accelerators/accelerator_table_unittest.cc
@@ -66,12 +66,11 @@ TEST(AcceleratorTableTest, CheckDuplicatedActionsAllowedAtModalWindow) {
}
}
-TEST(AcceleratorTableTest, CheckDuplicatedNonrepeatableActions) {
+TEST(AcceleratorTableTest, CheckDuplicatedRepeatableActions) {
std::set<AcceleratorAction> actions;
- for (size_t i = 0; i < kNonrepeatableActionsLength; ++i) {
- EXPECT_TRUE(actions.insert(kNonrepeatableActions[i]).second)
- << "Duplicated action: " << kNonrepeatableActions[i]
- << " at index: " << i;
+ for (size_t i = 0; i < kRepeatableActionsLength; ++i) {
+ EXPECT_TRUE(actions.insert(kRepeatableActions[i]).second)
+ << "Duplicated action: " << kRepeatableActions[i] << " at index: " << i;
}
}
« no previous file with comments | « ash/accelerators/accelerator_table.cc ('k') | ash/accelerators/exit_warning_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698