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

Unified Diff: views/view_unittest.cc

Issue 6300001: Clang: enable -Wbool-conversions and -Wunused-variables on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, undo indent Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « o3d/utils/cross/string_reader_test.cc ('k') | webkit/glue/cpp_variant_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view_unittest.cc
diff --git a/views/view_unittest.cc b/views/view_unittest.cc
index eb0ec47e3c2c5d73c4cdef36e6c08a780764940f..cf6fd887d2860792061d5ff66d4c8d4b17cbe973 100644
--- a/views/view_unittest.cc
+++ b/views/view_unittest.cc
@@ -776,11 +776,11 @@ TEST_F(ViewTest, HitTestMasks) {
gfx::Point v2_origin = v2_bounds.origin();
// Test HitTest
- EXPECT_EQ(true, v1->HitTest(ConvertPointToView(v1, v1_centerpoint)));
- EXPECT_EQ(true, v2->HitTest(ConvertPointToView(v2, v2_centerpoint)));
+ EXPECT_TRUE(v1->HitTest(ConvertPointToView(v1, v1_centerpoint)));
+ EXPECT_TRUE(v2->HitTest(ConvertPointToView(v2, v2_centerpoint)));
- EXPECT_EQ(true, v1->HitTest(ConvertPointToView(v1, v1_origin)));
- EXPECT_EQ(false, v2->HitTest(ConvertPointToView(v2, v2_origin)));
+ EXPECT_TRUE(v1->HitTest(ConvertPointToView(v1, v1_origin)));
+ EXPECT_FALSE(v2->HitTest(ConvertPointToView(v2, v2_origin)));
// Test GetViewForPoint
EXPECT_EQ(v1, root_view->GetViewForPoint(v1_centerpoint));
« no previous file with comments | « o3d/utils/cross/string_reader_test.cc ('k') | webkit/glue/cpp_variant_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698