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

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: Formatting fix 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
Index: views/view_unittest.cc
diff --git a/views/view_unittest.cc b/views/view_unittest.cc
index 0bd612ff7159ff4c263692ecb46b006bcfa8682b..14d2ed05927e17e8d788581ee9dc64ab7f5178b5 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));

Powered by Google App Engine
This is Rietveld 408576698