| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "base/logging.h" | |
| 6 #include "chrome/browser/chromeos/input_method/input_method_descriptor.h" | |
| 7 #include "testing/gtest/include/gtest/gtest.h" | |
| 8 | |
| 9 namespace chromeos { | |
| 10 namespace input_method { | |
| 11 | |
| 12 namespace { | |
| 13 | |
| 14 const char kFallbackLayout[] = "us"; | |
| 15 | |
| 16 class InputMethodDescriptorTest : public testing::Test { | |
| 17 public: | |
| 18 InputMethodDescriptorTest() { | |
| 19 } | |
| 20 | |
| 21 protected: | |
| 22 InputMethodDescriptor GetDescById(const std::string& id) { | |
| 23 return InputMethodDescriptor(id, | |
| 24 "", // name | |
| 25 "us", | |
| 26 "language_code", | |
| 27 false); | |
| 28 } | |
| 29 }; | |
| 30 | |
| 31 } // namespace | |
| 32 | |
| 33 TEST_F(InputMethodDescriptorTest, TestOperatorEqual) { | |
| 34 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:fr::fra"), GetDescById("xkb:us::eng")); | |
| 37 } | |
| 38 | |
| 39 } // namespace input_method | |
| 40 } // namespace chromeos | |
| OLD | NEW |