| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/input_method/input_method_util.h" | 5 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "chromeos/ime/extension_ime_util.h" |
| 13 #include "chromeos/ime/fake_input_method_delegate.h" |
| 14 #include "chromeos/ime/input_method_manager.h" |
| 15 #include "chromeos/ime/input_method_whitelist.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "ui/base/ime/chromeos/extension_ime_util.h" | |
| 14 #include "ui/base/ime/chromeos/fake_input_method_delegate.h" | |
| 15 #include "ui/base/ime/chromeos/input_method_manager.h" | |
| 16 #include "ui/base/ime/chromeos/input_method_whitelist.h" | |
| 17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 18 | 18 |
| 19 using base::ASCIIToUTF16; | 19 using base::ASCIIToUTF16; |
| 20 | 20 |
| 21 namespace chromeos { | 21 namespace chromeos { |
| 22 | 22 |
| 23 extern const char* kExtensionImePrefix; | 23 extern const char* kExtensionImePrefix; |
| 24 | 24 |
| 25 namespace input_method { | 25 namespace input_method { |
| 26 | 26 |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 EXPECT_EQ("xkb:us::eng", extension_ime_util::GetComponentIDByInputMethodID( | 494 EXPECT_EQ("xkb:us::eng", extension_ime_util::GetComponentIDByInputMethodID( |
| 495 input_method_ids[0])); | 495 input_method_ids[0])); |
| 496 EXPECT_EQ("xkb:ru::rus", extension_ime_util::GetComponentIDByInputMethodID( | 496 EXPECT_EQ("xkb:ru::rus", extension_ime_util::GetComponentIDByInputMethodID( |
| 497 input_method_ids[1])); | 497 input_method_ids[1])); |
| 498 EXPECT_EQ("xkb:us::eng", extension_ime_util::GetComponentIDByInputMethodID( | 498 EXPECT_EQ("xkb:us::eng", extension_ime_util::GetComponentIDByInputMethodID( |
| 499 login_input_method_ids[0])); | 499 login_input_method_ids[0])); |
| 500 } | 500 } |
| 501 | 501 |
| 502 } // namespace input_method | 502 } // namespace input_method |
| 503 } // namespace chromeos | 503 } // namespace chromeos |
| OLD | NEW |