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

Unified Diff: ui/events/event_unittest.cc

Issue 2021193002: Properly initial a MSG struct in EventTest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: copy + pasting is hard Created 4 years, 7 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: ui/events/event_unittest.cc
diff --git a/ui/events/event_unittest.cc b/ui/events/event_unittest.cc
index dfc363ed5525442156946cf000d9416e703535ff..d4d7b7bad7828334a11eddbd9494d73492d40e27 100644
--- a/ui/events/event_unittest.cc
+++ b/ui/events/event_unittest.cc
@@ -920,8 +920,7 @@ TEST(EventTest, EventLatencyOSTouchHistograms) {
TEST(EventTest, EventLatencyOSMouseWheelHistogram) {
#if defined(OS_WIN)
base::HistogramTester histogram_tester;
- MSG event;
- event.message = WM_MOUSEWHEEL;
+ MSG event = { nullptr, WM_MOUSEWHEEL, 0, 0 };
MouseWheelEvent mouseWheelEvent(event);
histogram_tester.ExpectTotalCount("Event.Latency.OS.MOUSE_WHEEL", 1);
#elif defined(USE_X11)
« 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