diff options
| author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-15 06:45:53 +0000 |
|---|---|---|
| committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-15 06:45:53 +0000 |
| commit | dc7b094a338c6c521f918f478e993f0f74bbea0d (patch) | |
| tree | 14b873b4d90182e0a01dec280ae76b0d54e96235 /chrome/browser/ui/webui/options/language_options_handler_unittest.cc | |
| parent | c033c4d76336017a17a77ae6100941761ae64693 (diff) | |
| download | chromium_src-dc7b094a338c6c521f918f478e993f0f74bbea0d.zip chromium_src-dc7b094a338c6c521f918f478e993f0f74bbea0d.tar.gz chromium_src-dc7b094a338c6c521f918f478e993f0f74bbea0d.tar.bz2 | |
Remove use of libcros from InputMethodLibrary.
BUG=chromium-os:16238
TEST==confirm that input methods work as before on the netbook. Also confirm that the chrome builds and works on the desktop as before.
Review URL: http://codereview.chromium.org/7003086
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/options/language_options_handler_unittest.cc')
| -rw-r--r-- | chrome/browser/ui/webui/options/language_options_handler_unittest.cc | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/chrome/browser/ui/webui/options/language_options_handler_unittest.cc b/chrome/browser/ui/webui/options/language_options_handler_unittest.cc index d7a9d7c..c426911 100644 --- a/chrome/browser/ui/webui/options/language_options_handler_unittest.cc +++ b/chrome/browser/ui/webui/options/language_options_handler_unittest.cc @@ -17,20 +17,21 @@ #endif // defined(OS_CHROMEOS) #if defined(OS_CHROMEOS) -static chromeos::InputMethodDescriptors CreateInputMethodDescriptors() { - chromeos::InputMethodDescriptors descriptors; + +using chromeos::input_method::InputMethodDescriptor; +using chromeos::input_method::InputMethodDescriptors; + +static InputMethodDescriptors CreateInputMethodDescriptors() { + InputMethodDescriptors descriptors; descriptors.push_back( - chromeos::InputMethodDescriptor("xkb:us::eng", "USA", - "us", "us", "eng")); + InputMethodDescriptor("xkb:us::eng", "USA", "us", "us", "eng")); descriptors.push_back( - chromeos::InputMethodDescriptor("xkb:fr::fra", "France", - "fr", "fr", "fra")); + InputMethodDescriptor("xkb:fr::fra", "France", "fr", "fr", "fra")); descriptors.push_back( - chromeos::InputMethodDescriptor("xkb:be::fra", "Belgium", - "be", "be", "fr")); + InputMethodDescriptor("xkb:be::fra", "Belgium", "be", "be", "fr")); descriptors.push_back( - chromeos::InputMethodDescriptor("mozc", "Mozc (US keyboard layout)", - "us", "us", "ja")); + InputMethodDescriptor("mozc", "Mozc (US keyboard layout)", + "us", "us", "ja")); return descriptors; } @@ -44,7 +45,7 @@ TEST(LanguageOptionsHandlerTest, GetInputMethodList) { chromeos::CrosLibrary::Get()->GetTestApi()->SetInputMethodLibrary(NULL, false); - chromeos::InputMethodDescriptors descriptors = CreateInputMethodDescriptors(); + InputMethodDescriptors descriptors = CreateInputMethodDescriptors(); scoped_ptr<ListValue> list( chromeos::CrosLanguageOptionsHandler::GetInputMethodList(descriptors)); ASSERT_EQ(4U, list->GetSize()); @@ -98,7 +99,7 @@ TEST(LanguageOptionsHandlerTest, GetInputMethodList) { } TEST(LanguageOptionsHandlerTest, GetLanguageList) { - chromeos::InputMethodDescriptors descriptors = CreateInputMethodDescriptors(); + InputMethodDescriptors descriptors = CreateInputMethodDescriptors(); scoped_ptr<ListValue> list( chromeos::CrosLanguageOptionsHandler::GetLanguageList(descriptors)); ASSERT_EQ(7U, list->GetSize()); |
