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

Side by Side Diff: ash/ime/input_method_menu_item_unittest.cc

Issue 150203015: Split out InputMethodMenuManager from InputMethodManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « ash/ime/input_method_menu_item.cc ('k') | ash/ime/input_method_menu_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 "ash/ime/input_method_menu_item.h"
6
7 #include "base/logging.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9
10 namespace ash {
11 namespace ime {
12
13 TEST(InputMethodMenuItemTest, TestOperatorEqual) {
14 InputMethodMenuItem empty;
15 InputMethodMenuItem reference("key", "label", true, true);
16
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);
21
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);
29 }
30
31 } // namespace ime
32 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ime/input_method_menu_item.cc ('k') | ash/ime/input_method_menu_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698