Index: ash/accelerators/accelerator_table_unittest.cc |
diff --git a/ash/accelerators/accelerator_table_unittest.cc b/ash/accelerators/accelerator_table_unittest.cc |
index 9be3906f914f45ff59fb26229e8ce30a7240a2bc..730d63392577820178741b63300dbfeeab94776e 100644 |
--- a/ash/accelerators/accelerator_table_unittest.cc |
+++ b/ash/accelerators/accelerator_table_unittest.cc |
@@ -38,11 +38,15 @@ TEST(AcceleratorTableTest, CheckDuplicatedAccelerators) { |
} |
} |
-TEST(AcceleratorTableTest, CheckDuplicatedActionsAllowedAtLoginScreen) { |
+TEST(AcceleratorTableTest, CheckDuplicatedActionsAllowedAtLoginOrLockScreen) { |
std::set<AcceleratorAction> actions; |
- for (size_t i = 0; i < kActionsAllowedAtLoginScreenLength; ++i) { |
- EXPECT_TRUE(actions.insert(kActionsAllowedAtLoginScreen[i]).second) |
- << "Duplicated action: " << kActionsAllowedAtLoginScreen[i]; |
+ for (size_t i = 0; i < kActionsAllowedAtLoginOrLockScreenLength; ++i) { |
+ EXPECT_TRUE(actions.insert(kActionsAllowedAtLoginOrLockScreen[i]).second) |
+ << "Duplicated action: " << kActionsAllowedAtLoginOrLockScreen[i]; |
+ } |
+ for (size_t i = 0; i < kActionsAllowedAtLockScreenLength; ++i) { |
+ EXPECT_TRUE(actions.insert(kActionsAllowedAtLockScreen[i]).second) |
+ << "Duplicated action: " << kActionsAllowedAtLockScreen[i]; |
} |
} |