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

Unified Diff: content/browser/site_per_process_browsertest.cc

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Created 4 years 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/site_per_process_browsertest.cc
diff --git a/content/browser/site_per_process_browsertest.cc b/content/browser/site_per_process_browsertest.cc
index 41410983c809987d4fa3d6c645ada3ceea96d3e9..3ef218eae430a8dfca04080ceef3179b50c4fb44 100644
--- a/content/browser/site_per_process_browsertest.cc
+++ b/content/browser/site_per_process_browsertest.cc
@@ -207,7 +207,7 @@ class TestInputEventObserver : public RenderWidgetHost::InputEventObserver {
}
void OnInputEvent(const blink::WebInputEvent& event) override {
- events_received_.push_back(event.type);
+ events_received_.push_back(event.type());
};
private:
@@ -1507,7 +1507,7 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
web_contents()->GetInputEventRouter()->RouteMouseEvent(rwhv_a, &mouse_event,
ui::LatencyInfo());
EXPECT_TRUE(a_frame_monitor.EventWasReceived());
- EXPECT_EQ(a_frame_monitor.event().type, blink::WebInputEvent::MouseMove);
+ EXPECT_EQ(a_frame_monitor.event().type(), blink::WebInputEvent::MouseMove);
a_frame_monitor.ResetEventReceived();
EXPECT_TRUE(b_frame_monitor.EventWasReceived());
b_frame_monitor.ResetEventReceived();
@@ -1521,11 +1521,11 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
web_contents()->GetInputEventRouter()->RouteMouseEvent(rwhv_a, &mouse_event,
ui::LatencyInfo());
EXPECT_TRUE(a_frame_monitor.EventWasReceived());
- EXPECT_EQ(a_frame_monitor.event().type, blink::WebInputEvent::MouseMove);
+ EXPECT_EQ(a_frame_monitor.event().type(), blink::WebInputEvent::MouseMove);
EXPECT_TRUE(b_frame_monitor.EventWasReceived());
- EXPECT_EQ(b_frame_monitor.event().type, blink::WebInputEvent::MouseLeave);
+ EXPECT_EQ(b_frame_monitor.event().type(), blink::WebInputEvent::MouseLeave);
EXPECT_TRUE(c_frame_monitor.EventWasReceived());
- EXPECT_EQ(c_frame_monitor.event().type, blink::WebInputEvent::MouseMove);
+ EXPECT_EQ(c_frame_monitor.event().type(), blink::WebInputEvent::MouseMove);
EXPECT_TRUE(d_frame_monitor.EventWasReceived());
}

Powered by Google App Engine
This is Rietveld 408576698