Chromium Code Reviews| 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 |