Roll src/third_party/WebKit 06cb9e9:a978ee5 (svn 202558:202559)
[chromium-blink-merge.git] / ui / chromeos / ime / input_method_menu_item_unittest.cc
blobf5b8b758791c439277531c50529d0e595affcc2f
1 // Copyright 2014 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.
5 #include "ui/chromeos/ime/input_method_menu_item.h"
7 #include "base/logging.h"
8 #include "testing/gtest/include/gtest/gtest.h"
10 namespace ui {
11 namespace ime {
13 TEST(InputMethodMenuItemTest, TestOperatorEqual) {
14 InputMethodMenuItem empty;
15 InputMethodMenuItem reference("key", "label", true, true);
17 InputMethodMenuItem p1("X", "label", true, true);
18 InputMethodMenuItem p2("key", "X", true, true);
19 InputMethodMenuItem p3("key", "label", false, true);
20 InputMethodMenuItem p4("key", "label", true, false);
22 EXPECT_EQ(empty, empty);
23 EXPECT_EQ(reference, reference);
24 EXPECT_NE(reference, empty);
25 EXPECT_NE(reference, p1);
26 EXPECT_NE(reference, p2);
27 EXPECT_NE(reference, p3);
28 EXPECT_NE(reference, p4);
31 } // namespace ime
32 } // namespace ui