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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac_unittest.mm

Issue 2394593002: revert "SourceEventType added to LatencyInfo." (Closed)
Patch Set: Created 4 years, 2 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: content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm b/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
index 152ecba43e069782ac0f65d69090d49814f9f22b..f0fccad7008880041e529a279d22fbad89a9b11c 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
@@ -903,32 +903,6 @@ TEST_F(RenderWidgetHostViewMacTest, LastWheelEventLatencyInfoExists) {
host->ShutdownAndDestroyWidget(true);
}
-TEST_F(RenderWidgetHostViewMacTest, SourceEventTypeExistsInLatencyInfo) {
- // Initialize the view associated with a MockRenderWidgetHostImpl, rather than
- // the MockRenderProcessHost that is set up by the test harness which mocks
- // out |OnMessageReceived()|.
- TestBrowserContext browser_context;
- MockRenderProcessHost* process_host =
- new MockRenderProcessHost(&browser_context);
- process_host->Init();
- MockRenderWidgetHostDelegate delegate;
- int32_t routing_id = process_host->GetNextRoutingID();
- MockRenderWidgetHostImpl* host =
- new MockRenderWidgetHostImpl(&delegate, process_host, routing_id);
- RenderWidgetHostViewMac* view = new RenderWidgetHostViewMac(host, false);
- process_host->sink().ClearMessages();
-
- // Send a wheel event for scrolling by 3 lines.
- // Verifies that SourceEventType exists in forwarded LatencyInfo object.
- NSEvent* wheelEvent = MockScrollWheelEventWithPhase(@selector(phaseBegan), 3);
- [view->cocoa_view() scrollWheel:wheelEvent];
- ASSERT_TRUE(host->lastWheelEventLatencyInfo.source_event_type() ==
- ui::SourceEventType::WHEEL);
-
- // Clean up.
- host->ShutdownAndDestroyWidget(true);
-}
-
TEST_F(RenderWidgetHostViewMacTest, ScrollWheelEndEventDelivery) {
// Initialize the view associated with a MockRenderWidgetHostImpl, rather than
// the MockRenderProcessHost that is set up by the test harness which mocks
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698