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

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: 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/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 ee1a05cfe0aa4667ef96e371296b1623d7a53bcd..dcfa447c7167b994e7baad1a2fd569981ec4b307 100644
--- a/content/browser/renderer_host/input/touch_emulator_unittest.cc
+++ b/content/browser/renderer_host/input/touch_emulator_unittest.cc
@@ -55,19 +55,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);

Powered by Google App Engine
This is Rietveld 408576698