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

Side by Side Diff: chrome/browser/chromeos/status/input_method_menu_unittest.cc

Issue 7138001: Rename an engine name of the handwriting IME to 'zinnia-japanese'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/status/input_method_menu.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/status/input_method_menu.h" 5 #include "chrome/browser/chromeos/status/input_method_menu.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/chromeos/cros/cros_library.h" 8 #include "chrome/browser/chromeos/cros/cros_library.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 InputMethodDescriptor desc("mozc", "Mozc", "us", "us", "ja"); 67 InputMethodDescriptor desc("mozc", "Mozc", "us", "us", "ja");
68 EXPECT_EQ(UTF8ToWide("\xe3\x81\x82"), 68 EXPECT_EQ(UTF8ToWide("\xe3\x81\x82"),
69 InputMethodMenu::GetTextForIndicator(desc)); 69 InputMethodMenu::GetTextForIndicator(desc));
70 } 70 }
71 { 71 {
72 InputMethodDescriptor desc("mozc-jp", "Mozc", "jp", "jp", "ja"); 72 InputMethodDescriptor desc("mozc-jp", "Mozc", "jp", "jp", "ja");
73 EXPECT_EQ(UTF8ToWide("\xe3\x81\x82"), 73 EXPECT_EQ(UTF8ToWide("\xe3\x81\x82"),
74 InputMethodMenu::GetTextForIndicator(desc)); 74 InputMethodMenu::GetTextForIndicator(desc));
75 } 75 }
76 { 76 {
77 InputMethodDescriptor desc("ibus-zinnia-japanese", "Zinnia", 77 InputMethodDescriptor desc("zinnia-japanese", "Zinnia", "us", "us", "ja");
78 "us", "us", "ja");
79 EXPECT_EQ(UTF8ToWide("\xe6\x89\x8b"), 78 EXPECT_EQ(UTF8ToWide("\xe6\x89\x8b"),
80 InputMethodMenu::GetTextForIndicator(desc)); 79 InputMethodMenu::GetTextForIndicator(desc));
81 } 80 }
82 { 81 {
83 InputMethodDescriptor desc("pinyin", "Pinyin", "us", "us", "zh-CN"); 82 InputMethodDescriptor desc("pinyin", "Pinyin", "us", "us", "zh-CN");
84 EXPECT_EQ(UTF8ToWide("\xe6\x8b\xbc"), 83 EXPECT_EQ(UTF8ToWide("\xe6\x8b\xbc"),
85 InputMethodMenu::GetTextForIndicator(desc)); 84 InputMethodMenu::GetTextForIndicator(desc));
86 } 85 }
87 { 86 {
88 InputMethodDescriptor desc("mozc-chewing", "Chewing", "us", "us", "zh-TW"); 87 InputMethodDescriptor desc("mozc-chewing", "Chewing", "us", "us", "zh-TW");
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 InputMethodDescriptor desc("invalid-id", "unregistered string", 194 InputMethodDescriptor desc("invalid-id", "unregistered string",
196 "us", "us", "xx"); 195 "us", "us", "xx");
197 // You can safely ignore the "Resouce ID is not found for: unregistered 196 // You can safely ignore the "Resouce ID is not found for: unregistered
198 // string" error. 197 // string" error.
199 EXPECT_EQ(L"unregistered string", 198 EXPECT_EQ(L"unregistered string",
200 InputMethodMenu::GetTextForMenu(desc)); 199 InputMethodMenu::GetTextForMenu(desc));
201 } 200 }
202 } 201 }
203 202
204 } // namespace chromeos 203 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/input_method_menu.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698