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" | 12 #include "chromeos/ime/extension_ime_util.h" |
13 #include "chromeos/ime/fake_input_method_delegate.h" | 13 #include "chromeos/ime/fake_input_method_delegate.h" |
14 #include "chromeos/ime/input_method_manager.h" | 14 #include "chromeos/ime/input_method_manager.h" |
15 #include "chromeos/ime/input_method_whitelist.h" | 15 #include "chromeos/ime/input_method_whitelist.h" |
16 #include "grit/generated_resources.h" | |
17 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
19 | 18 |
20 using base::ASCIIToUTF16; | 19 using base::ASCIIToUTF16; |
21 | 20 |
22 namespace chromeos { | 21 namespace chromeos { |
23 | 22 |
24 extern const char* kExtensionImePrefix; | 23 extern const char* kExtensionImePrefix; |
25 | 24 |
26 namespace input_method { | 25 namespace input_method { |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 EXPECT_FALSE(display_name.empty()) | 446 EXPECT_FALSE(display_name.empty()) |
448 << "Invalid language code " << language_code; | 447 << "Invalid language code " << language_code; |
449 // On error, GetDisplayNameForLocale() returns the |language_code| as-is. | 448 // On error, GetDisplayNameForLocale() returns the |language_code| as-is. |
450 EXPECT_NE(language_code, base::UTF16ToUTF8(display_name)) | 449 EXPECT_NE(language_code, base::UTF16ToUTF8(display_name)) |
451 << "Invalid language code " << language_code; | 450 << "Invalid language code " << language_code; |
452 } | 451 } |
453 } | 452 } |
454 | 453 |
455 } // namespace input_method | 454 } // namespace input_method |
456 } // namespace chromeos | 455 } // namespace chromeos |
OLD | NEW |