| 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/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | |
| 13 #include "chromeos/ime/fake_input_method_delegate.h" | 12 #include "chromeos/ime/fake_input_method_delegate.h" |
| 13 #include "chromeos/ime/input_method_manager.h" |
| 14 #include "chromeos/ime/input_method_whitelist.h" | 14 #include "chromeos/ime/input_method_whitelist.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 18 | 18 |
| 19 namespace chromeos { | 19 namespace chromeos { |
| 20 | 20 |
| 21 extern const char* kExtensionImePrefix; | 21 extern const char* kExtensionImePrefix; |
| 22 | 22 |
| 23 namespace input_method { | 23 namespace input_method { |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 EXPECT_FALSE(display_name.empty()) | 510 EXPECT_FALSE(display_name.empty()) |
| 511 << "Invalid language code " << language_code; | 511 << "Invalid language code " << language_code; |
| 512 // On error, GetDisplayNameForLocale() returns the |language_code| as-is. | 512 // On error, GetDisplayNameForLocale() returns the |language_code| as-is. |
| 513 EXPECT_NE(language_code, UTF16ToUTF8(display_name)) | 513 EXPECT_NE(language_code, UTF16ToUTF8(display_name)) |
| 514 << "Invalid language code " << language_code; | 514 << "Invalid language code " << language_code; |
| 515 } | 515 } |
| 516 } | 516 } |
| 517 | 517 |
| 518 } // namespace input_method | 518 } // namespace input_method |
| 519 } // namespace chromeos | 519 } // namespace chromeos |
| OLD | NEW |