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

Unified Diff: content/browser/renderer_host/render_widget_host_unittest.cc

Issue 2756893002: Add Keyboard Latency UMA Metrics. (Closed)
Patch Set: Fix test issue Created 3 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
Index: content/browser/renderer_host/render_widget_host_unittest.cc
diff --git a/content/browser/renderer_host/render_widget_host_unittest.cc b/content/browser/renderer_host/render_widget_host_unittest.cc
index e3f26fe1e41b502f06c0cded5b2277831d8e2674..881882c34b25030eeae8f1085a51d73c53fedc1b 100644
--- a/content/browser/renderer_host/render_widget_host_unittest.cc
+++ b/content/browser/renderer_host/render_widget_host_unittest.cc
@@ -570,7 +570,7 @@ class RenderWidgetHostTest : public testing::Test {
void SimulateKeyboardEvent(WebInputEvent::Type type, int modifiers) {
NativeWebKeyboardEvent native_event(type, modifiers,
GetNextSimulatedEventTimeSeconds());
- host_->ForwardKeyboardEvent(native_event);
+ host_->ForwardKeyboardEventWithLatencyInfo(native_event, ui::LatencyInfo());
}
void SimulateKeyboardEventWithCommands(WebInputEvent::Type type) {
@@ -578,7 +578,8 @@ class RenderWidgetHostTest : public testing::Test {
GetNextSimulatedEventTimeSeconds());
EditCommands commands;
commands.emplace_back("name", "value");
- host_->ForwardKeyboardEventWithCommands(native_event, &commands, nullptr);
+ host_->ForwardKeyboardEventWithCommands(native_event, ui::LatencyInfo(),
+ &commands, nullptr);
}
void SimulateMouseEvent(WebInputEvent::Type type) {

Powered by Google App Engine
This is Rietveld 408576698