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

Unified Diff: chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc

Issue 10829065: Remove InputMethodManager::EnableHotkeys() and DisableHotkeys(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc b/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc
index f60b73540684839840756dd4a47900cd28ed1f41..89a1f87bb60f363c7ef81e26171bef8a2d927cb6 100644
--- a/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc
+++ b/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc
@@ -789,23 +789,6 @@ TEST_F(InputMethodManagerImplTest, TestSwitchInputMethodWithKoIme) {
EXPECT_EQ("xkb:kr:kr104:kor", manager_->GetCurrentInputMethod().id());
}
-TEST_F(InputMethodManagerImplTest, TestEnableDisableHotkeys) {
- manager_->EnableLayouts("ja", "xkb:us::eng");
- EXPECT_EQ(2U, manager_->GetNumActiveInputMethods());
- EXPECT_EQ("xkb:us::eng", manager_->GetCurrentInputMethod().id());
- manager_->DisableHotkeys();
- EXPECT_FALSE(manager_->SwitchToNextInputMethod());
- EXPECT_EQ("xkb:us::eng", manager_->GetCurrentInputMethod().id());
- EXPECT_FALSE(manager_->SwitchToPreviousInputMethod());
- EXPECT_EQ("xkb:us::eng", manager_->GetCurrentInputMethod().id());
- EXPECT_FALSE(manager_->SwitchInputMethod(
- ui::Accelerator(ui::VKEY_NONCONVERT, ui::EF_NONE)));
- EXPECT_EQ("xkb:us::eng", manager_->GetCurrentInputMethod().id());
- manager_->EnableHotkeys();
- EXPECT_TRUE(manager_->SwitchToNextInputMethod());
- EXPECT_NE("xkb:us::eng", manager_->GetCurrentInputMethod().id());
-}
-
TEST_F(InputMethodManagerImplTest, TestAddRemoveExtensionInputMethods) {
TestObserver observer;
manager_->AddObserver(&observer);

Powered by Google App Engine
This is Rietveld 408576698