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

Unified Diff: components/mus/common/event_param_traits_unittest.cc

Issue 1773813004: Fix flag comparison in event_param_traits_unittest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/common/event_param_traits_unittest.cc
diff --git a/components/mus/common/event_param_traits_unittest.cc b/components/mus/common/event_param_traits_unittest.cc
index 966f9ab5477eff9894a5e04edd56c14166c34fbf..d093ed328b36e64a317f5ae184979ee9a7732f62 100644
--- a/components/mus/common/event_param_traits_unittest.cc
+++ b/components/mus/common/event_param_traits_unittest.cc
@@ -87,8 +87,8 @@ class EventParamTraitsTest : public testing::Test {
break;
case EventType::ET_SCROLL_FLING_START:
case EventType::ET_SCROLL_FLING_CANCEL:
- ASSERT_EQ(!!a->flags() & MouseEventFlags::EF_FROM_TOUCH,
- !!b->flags() & MouseEventFlags::EF_FROM_TOUCH);
+ ASSERT_EQ(a->flags() & MouseEventFlags::EF_FROM_TOUCH,
+ b->flags() & MouseEventFlags::EF_FROM_TOUCH);
if (a->flags() & MouseEventFlags::EF_FROM_TOUCH) {
Compare(CAST_EVENT(GestureEvent, a), CAST_EVENT(GestureEvent, b));
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698