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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_property_unittest.cc

Issue 11416261: Clean Up: remove unused variable selection_item_id (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « chrome/browser/chromeos/input_method/input_method_property.cc ('k') | no next file » | 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 "chrome/browser/chromeos/input_method/input_method_property.h" 6 #include "chrome/browser/chromeos/input_method/input_method_property.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 TEST(InputMethodPropertyTest, TestOperatorEqual) { 12 TEST(InputMethodPropertyTest, TestOperatorEqual) {
13 InputMethodProperty empty; 13 InputMethodProperty empty;
14 InputMethodProperty reference("key", "label", true, true, 1); 14 InputMethodProperty reference("key", "label", true, true);
15 15
16 InputMethodProperty p1("X", "label", true, true, 1); 16 InputMethodProperty p1("X", "label", true, true);
17 InputMethodProperty p2("key", "X", true, true, 1); 17 InputMethodProperty p2("key", "X", true, true);
18 InputMethodProperty p3("key", "label", false, true, 1); 18 InputMethodProperty p3("key", "label", false, true);
19 InputMethodProperty p4("key", "label", true, false, 1); 19 InputMethodProperty p4("key", "label", true, false);
20 InputMethodProperty p5("key", "label", true, true, 0);
21 20
22 EXPECT_EQ(empty, empty); 21 EXPECT_EQ(empty, empty);
23 EXPECT_EQ(reference, reference); 22 EXPECT_EQ(reference, reference);
24 EXPECT_NE(reference, empty); 23 EXPECT_NE(reference, empty);
25 EXPECT_NE(reference, p1); 24 EXPECT_NE(reference, p1);
26 EXPECT_NE(reference, p2); 25 EXPECT_NE(reference, p2);
27 EXPECT_NE(reference, p3); 26 EXPECT_NE(reference, p3);
28 EXPECT_NE(reference, p4); 27 EXPECT_NE(reference, p4);
29 EXPECT_NE(reference, p5);
30 } 28 }
31 29
32 } // namespace input_method 30 } // namespace input_method
33 } // namespace chromeos 31 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method_property.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698