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

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

Issue 10092006: Add Reset() to IBusController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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 717888e0e9fcb106063eb652246e2b7cffa6fd17..c985e2ca6a9ff5c9862ba1afb6ac457298a0e86e 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
@@ -890,5 +890,19 @@ TEST_F(InputMethodManagerImplTest, TestAddExtensionInputThenLockScreen) {
manager_->RemoveObserver(&observer);
}
+TEST_F(InputMethodManagerImplTest, TestReset) {
+ manager_->SetState(InputMethodManager::STATE_BROWSER_SCREEN);
+ std::vector<std::string> ids;
+ ids.push_back("xkb:us::eng");
+ ids.push_back("mozc");
+ EXPECT_TRUE(manager_->EnableInputMethods(ids));
+ EXPECT_EQ(2U, manager_->GetNumActiveInputMethods());
+ EXPECT_EQ(1, controller_->reset_count_);
+ manager_->ChangeInputMethod("mozc");
+ EXPECT_EQ(1, controller_->reset_count_);
+ manager_->ChangeInputMethod("xkb:us::eng");
+ EXPECT_EQ(2, controller_->reset_count_);
+}
+
} // namespace input_method
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698