| Index: chrome/browser/chromeos/input_method/input_method_util_unittest.cc
|
| diff --git a/chrome/browser/chromeos/input_method/input_method_util_unittest.cc b/chrome/browser/chromeos/input_method/input_method_util_unittest.cc
|
| index 2b0f8aa8a395d29b4b260ad46f534def81a45dbd..f23f424d08d5d3440927117b25801bc1ac4d3267 100644
|
| --- a/chrome/browser/chromeos/input_method/input_method_util_unittest.cc
|
| +++ b/chrome/browser/chromeos/input_method/input_method_util_unittest.cc
|
| @@ -143,6 +143,26 @@ TEST_F(InputMethodUtilTest, GetInputMethodShortNameTest) {
|
| }
|
| }
|
|
|
| +TEST_F(InputMethodUtilTest, GetInputMethodMediumNameTest) {
|
| + {
|
| + string16 japanese = UTF8ToUTF16("\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e");
|
| + const char* input_method_id[] =
|
| + { "mozc", "mozc-dv", "mozc-jp", "zinnia-japanese", };
|
| + const int len = ARRAYSIZE_UNSAFE(input_method_id);
|
| + for (int i=0; i<len; ++i) {
|
| + InputMethodDescriptor desc = GetDesc(input_method_id[i], "", "");
|
| + string16 medium_name = util_.GetInputMethodMediumName(desc);
|
| + EXPECT_EQ(japanese,medium_name);
|
| + }
|
| + }
|
| + {
|
| + InputMethodDescriptor desc = GetDesc("xkb:us::eng", "", "");
|
| + string16 medium_name = util_.GetInputMethodMediumName(desc);
|
| + string16 short_name = util_.GetInputMethodShortName(desc);
|
| + EXPECT_EQ(medium_name,short_name);
|
| + }
|
| +}
|
| +
|
| TEST_F(InputMethodUtilTest, GetInputMethodLongNameTest) {
|
| // For most languages input method or keyboard layout name is returned.
|
| // See below for exceptions.
|
|
|