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

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

Issue 178343005: [IME] migrate the xkb ID to extension based xkb ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 4eed0cb7352423a3aa916eb283a9d743e7204d07..5e5d1939d1ecdf375a3a4dce76fa6e423dd37c84 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
@@ -1209,5 +1209,20 @@ TEST_F(InputMethodManagerImplTest,
EXPECT_EQ(ext_id2, manager_->GetCurrentInputMethod().id());
}
+TEST_F(InputMethodManagerImplTest, MigrateXkbInputMethodTest) {
+ std::vector<std::string> input_method_ids;
+ input_method_ids.push_back("xkb:us::eng");
+ input_method_ids.push_back("xkb:fr::fra");
+ input_method_ids.push_back("_comp_ime_asdf_pinyin");
+
+ manager_->MigrateXkbInputMethods(&input_method_ids);
+
+ ASSERT_EQ(3U, input_method_ids.size());
+
+ for (size_t i = 0; i < input_method_ids.size(); i++) {
+ EXPECT_TRUE(StartsWithASCII("_comp_ime_", input_method_ids[i], true);
Yuki 2014/02/27 02:40:33 This code doesn't seem being able to compile. Did
Shu Chen 2014/02/27 03:12:12 Done. Sorry I didn't run the test.
+ }
+}
+
} // namespace input_method
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698