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

Unified Diff: ui/events/event_unittest.cc

Issue 1993383002: Adding Event.Latency.Browser.WheelUI, Passing latency_info to ProcessMouse/MouseWheelEvent functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: ui/events/event_unittest.cc
diff --git a/ui/events/event_unittest.cc b/ui/events/event_unittest.cc
index 505e626d23665a35e0aefcd337dfe68d4e0c818b..73c981f2ada25babfdbf85e5e3a01f960ef1ee4c 100644
--- a/ui/events/event_unittest.cc
+++ b/ui/events/event_unittest.cc
@@ -886,4 +886,19 @@ TEST(EventTest, PointerEventClone) {
}
}
+TEST(EventTest, MouseEventLatencyUIComponentExists) {
+ const gfx::Point origin(0, 0);
+ MouseEvent mouseev(ET_MOUSE_PRESSED, origin, origin, EventTimeForNow(), 0, 0);
+ EXPECT_TRUE(mouseev.latency()->FindLatency(
+ ui::INPUT_EVENT_LATENCY_UI_COMPONENT, 0, nullptr));
+}
+
+TEST(EventTest, MouseWheelEventLatencyUIComponentExists) {
+ const gfx::Point origin(0, 0);
+ MouseWheelEvent mouseWheelev(gfx::Vector2d(), origin, origin,
+ EventTimeForNow(), 0, 0);
+ EXPECT_TRUE(mouseWheelev.latency()->FindLatency(
+ ui::INPUT_EVENT_LATENCY_UI_COMPONENT, 0, nullptr));
+}
+
} // namespace ui
« content/browser/renderer_host/render_widget_host_input_event_router.cc ('K') | « ui/events/event.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698