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

Unified Diff: content/browser/renderer_host/input/touch_emulator_unittest.cc

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Fix nits Created 3 years, 11 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/input/touch_emulator_unittest.cc
diff --git a/content/browser/renderer_host/input/touch_emulator_unittest.cc b/content/browser/renderer_host/input/touch_emulator_unittest.cc
index 96e87682c7ea8521ca0fc2252718df4c0c152294..fbd17c7ece5e46986eff4cf8882ba74069207bfa 100644
--- a/content/browser/renderer_host/input/touch_emulator_unittest.cc
+++ b/content/browser/renderer_host/input/touch_emulator_unittest.cc
@@ -56,19 +56,19 @@ class TouchEmulatorTest : public testing::Test,
void ForwardEmulatedGestureEvent(
const blink::WebGestureEvent& event) override {
- forwarded_events_.push_back(event.type);
+ forwarded_events_.push_back(event.type());
}
void ForwardEmulatedTouchEvent(const blink::WebTouchEvent& event) override {
- forwarded_events_.push_back(event.type);
+ forwarded_events_.push_back(event.type());
EXPECT_EQ(1U, event.touchesLength);
EXPECT_EQ(last_mouse_x_, event.touches[0].position.x);
EXPECT_EQ(last_mouse_y_, event.touches[0].position.y);
const int all_buttons = WebInputEvent::LeftButtonDown |
WebInputEvent::MiddleButtonDown | WebInputEvent::RightButtonDown;
- EXPECT_EQ(0, event.modifiers & all_buttons);
+ EXPECT_EQ(0, event.modifiers() & all_buttons);
WebInputEvent::DispatchType expected_dispatch_type =
- event.type == WebInputEvent::TouchCancel
+ event.type() == WebInputEvent::TouchCancel
? WebInputEvent::EventNonBlocking
: WebInputEvent::Blocking;
EXPECT_EQ(expected_dispatch_type, event.dispatchType);
« no previous file with comments | « content/browser/renderer_host/input/touch_emulator.cc ('k') | content/browser/renderer_host/input/touch_event_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698