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

Side by Side Diff: chromeos/ime/input_method_descriptor_unittest.cc

Issue 13459008: Support options page handling into ComponentExtensionManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix constructors. Created 7 years, 8 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
« no previous file with comments | « chromeos/ime/input_method_descriptor.cc ('k') | chromeos/ime/input_method_whitelist.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/logging.h" 5 #include "base/logging.h"
6 #include "chromeos/ime/input_method_descriptor.h" 6 #include "chromeos/ime/input_method_descriptor.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace chromeos { 9 namespace chromeos {
10 namespace input_method { 10 namespace input_method {
11 11
12 namespace { 12 namespace {
13 13
14 const char kFallbackLayout[] = "us"; 14 const char kFallbackLayout[] = "us";
15 15
16 class InputMethodDescriptorTest : public testing::Test { 16 class InputMethodDescriptorTest : public testing::Test {
17 public: 17 public:
18 InputMethodDescriptorTest() { 18 InputMethodDescriptorTest() {
19 } 19 }
20 20
21 protected: 21 protected:
22 InputMethodDescriptor GetDescById(const std::string& id) { 22 InputMethodDescriptor GetDescById(const std::string& id) {
23 return InputMethodDescriptor(id, 23 return InputMethodDescriptor(id,
24 "", // name 24 "", // name
25 "us", 25 "us",
26 "language_code", 26 "language_code",
27 "",
27 false); 28 false);
28 } 29 }
29 }; 30 };
30 31
31 } // namespace 32 } // namespace
32 33
33 TEST_F(InputMethodDescriptorTest, TestOperatorEqual) { 34 TEST_F(InputMethodDescriptorTest, TestOperatorEqual) {
34 EXPECT_EQ(GetDescById("xkb:us::eng"), GetDescById("xkb:us::eng")); 35 EXPECT_EQ(GetDescById("xkb:us::eng"), GetDescById("xkb:us::eng"));
35 EXPECT_NE(GetDescById("xkb:us::eng"), GetDescById("xkb:us:dvorak:eng")); 36 EXPECT_NE(GetDescById("xkb:us::eng"), GetDescById("xkb:us:dvorak:eng"));
36 EXPECT_NE(GetDescById("xkb:fr::fra"), GetDescById("xkb:us::eng")); 37 EXPECT_NE(GetDescById("xkb:fr::fra"), GetDescById("xkb:us::eng"));
37 } 38 }
38 39
39 } // namespace input_method 40 } // namespace input_method
40 } // namespace chromeos 41 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/ime/input_method_descriptor.cc ('k') | chromeos/ime/input_method_whitelist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698