Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(779)

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_util_unittest.cc

Issue 10399046: Remove virtual keyboard support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final rebase Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/chromeos/input_method/input_method_manager.h" 11 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
12 #include "chrome/browser/chromeos/input_method/input_method_whitelist.h" 12 #include "chrome/browser/chromeos/input_method/input_method_whitelist.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 16
17 #if defined(USE_VIRTUAL_KEYBOARD)
18 // Since USE_VIRTUAL_KEYBOARD build only supports a few keyboard layouts, we
19 // skip the tests for now.
20 #define TestGetFirstLoginInputMethodIds_Dvorak_And_Ja \
21 DISABLED_TestGetFirstLoginInputMethodIds_Dvorak_And_Ja
22 #define TestGetFirstLoginInputMethodIds_JP_And_Ja \
23 DISABLED_TestGetFirstLoginInputMethodIds_JP_And_Ja
24 #define TestGetFirstLoginInputMethodIds_Us_And_Ru \
25 DISABLED_TestGetFirstLoginInputMethodIds_Us_And_Ru
26 #define TestGetInputMethodDescriptorFromXkbId \
27 DISABLED_TestGetInputMethodDescriptorFromXkbId
28 #define TestGetKeyboardLayoutName DISABLED_TestGetKeyboardLayoutName
29 #define TestGetLanguageCodesFromInputMethodIds \
30 DISABLED_TestGetLanguageCodesFromInputMethodIds
31 #endif // USE_VIRTUAL_KEYBOARD
32
33 namespace chromeos { 17 namespace chromeos {
34 18
35 extern const char* kExtensionImePrefix; 19 extern const char* kExtensionImePrefix;
36 20
37 namespace input_method { 21 namespace input_method {
38 22
39 namespace { 23 namespace {
40 24
41 class TestableInputMethodUtil : public InputMethodUtil { 25 class TestableInputMethodUtil : public InputMethodUtil {
42 public: 26 public:
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 EXPECT_FALSE(display_name.empty()) 521 EXPECT_FALSE(display_name.empty())
538 << "Invalid language code " << language_code; 522 << "Invalid language code " << language_code;
539 // On error, GetDisplayNameForLocale() returns the |language_code| as-is. 523 // On error, GetDisplayNameForLocale() returns the |language_code| as-is.
540 EXPECT_NE(language_code, UTF16ToUTF8(display_name)) 524 EXPECT_NE(language_code, UTF16ToUTF8(display_name))
541 << "Invalid language code " << language_code; 525 << "Invalid language code " << language_code;
542 } 526 }
543 } 527 }
544 528
545 } // namespace input_method 529 } // namespace input_method
546 } // namespace chromeos 530 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698