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 <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
11 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "ui/base/ime/chromeos/extension_ime_util.h" | 16 #include "ui/base/ime/chromeos/extension_ime_util.h" |
14 #include "ui/base/ime/chromeos/fake_input_method_delegate.h" | 17 #include "ui/base/ime/chromeos/fake_input_method_delegate.h" |
15 #include "ui/base/ime/chromeos/input_method_manager.h" | 18 #include "ui/base/ime/chromeos/input_method_manager.h" |
16 #include "ui/base/ime/chromeos/input_method_whitelist.h" | 19 #include "ui/base/ime/chromeos/input_method_whitelist.h" |
17 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
18 | 21 |
19 using base::ASCIIToUTF16; | 22 using base::ASCIIToUTF16; |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 EXPECT_EQ("xkb:us::eng", extension_ime_util::GetComponentIDByInputMethodID( | 527 EXPECT_EQ("xkb:us::eng", extension_ime_util::GetComponentIDByInputMethodID( |
525 input_method_ids[0])); | 528 input_method_ids[0])); |
526 EXPECT_EQ("xkb:ru::rus", extension_ime_util::GetComponentIDByInputMethodID( | 529 EXPECT_EQ("xkb:ru::rus", extension_ime_util::GetComponentIDByInputMethodID( |
527 input_method_ids[1])); | 530 input_method_ids[1])); |
528 EXPECT_EQ("xkb:us::eng", extension_ime_util::GetComponentIDByInputMethodID( | 531 EXPECT_EQ("xkb:us::eng", extension_ime_util::GetComponentIDByInputMethodID( |
529 login_input_method_ids[0])); | 532 login_input_method_ids[0])); |
530 } | 533 } |
531 | 534 |
532 } // namespace input_method | 535 } // namespace input_method |
533 } // namespace chromeos | 536 } // namespace chromeos |
OLD | NEW |