Home | History | Annotate | Download | only in ime
      1 // Copyright 2013 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 "chromeos/ime/input_method_property.h"
      7 #include "testing/gtest/include/gtest/gtest.h"
      8 
      9 namespace chromeos {
     10 namespace input_method {
     11 
     12 TEST(InputMethodPropertyTest, TestOperatorEqual) {
     13   InputMethodProperty empty;
     14   InputMethodProperty reference("key", "label", true, true);
     15 
     16   InputMethodProperty p1("X", "label", true, true);
     17   InputMethodProperty p2("key", "X", true, true);
     18   InputMethodProperty p3("key", "label", false, true);
     19   InputMethodProperty p4("key", "label", true, false);
     20 
     21   EXPECT_EQ(empty, empty);
     22   EXPECT_EQ(reference, reference);
     23   EXPECT_NE(reference, empty);
     24   EXPECT_NE(reference, p1);
     25   EXPECT_NE(reference, p2);
     26   EXPECT_NE(reference, p3);
     27   EXPECT_NE(reference, p4);
     28 }
     29 
     30 }  // namespace input_method
     31 }  // namespace chromeos
     32