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

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

Issue 1707943002: Add SyntheticPointerActionParams used in Chromedriver extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use get functions in the IPC message Created 4 years, 10 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/synthetic_gesture_controller_unittest.cc
diff --git a/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc b/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc
index 9369bfdfdc8c35149c6fdf55a9932e8e7d86eee9..1ce6db1c920f74b26822eb9b490ad45a6811b830 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc
+++ b/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc
@@ -1474,8 +1474,9 @@ TEST_F(SyntheticGestureControllerTest, PointerTouchAction) {
gfx::PointF position(54, 89);
scoped_ptr<SyntheticPointerAction> gesture(new SyntheticPointerAction(
- SyntheticGestureParams::TOUCH_INPUT, SyntheticGesture::PRESS,
- &synthetic_pointer, position));
+ SyntheticGestureParams::TOUCH_INPUT,
+ SyntheticGestureParams::PointerActionType::PRESS, &synthetic_pointer,
+ position));
QueueSyntheticGesture(std::move(gesture));
FlushInputUntilComplete();
@@ -1487,9 +1488,10 @@ TEST_F(SyntheticGestureControllerTest, PointerTouchAction) {
ASSERT_EQ(pointer_touch_target->touch_length(), 1U);
position.SetPoint(79, 132);
- gesture.reset(new SyntheticPointerAction(SyntheticGestureParams::TOUCH_INPUT,
- SyntheticGesture::PRESS,
- &synthetic_pointer, position));
+ gesture.reset(new SyntheticPointerAction(
+ SyntheticGestureParams::TOUCH_INPUT,
+ SyntheticGestureParams::PointerActionType::PRESS, &synthetic_pointer,
+ position));
QueueSyntheticGesture(std::move(gesture));
FlushInputUntilComplete();
@@ -1504,8 +1506,9 @@ TEST_F(SyntheticGestureControllerTest, PointerTouchAction) {
int index = 1;
position.SetPoint(133, 156);
gesture.reset(new SyntheticPointerAction(
- SyntheticGestureParams::TOUCH_INPUT, SyntheticGesture::MOVE,
- &synthetic_pointer, position, index));
+ SyntheticGestureParams::TOUCH_INPUT,
+ SyntheticGestureParams::PointerActionType::MOVE, &synthetic_pointer,
+ position, index));
QueueSyntheticGesture(std::move(gesture));
FlushInputUntilComplete();
@@ -1517,8 +1520,9 @@ TEST_F(SyntheticGestureControllerTest, PointerTouchAction) {
ASSERT_EQ(pointer_touch_target->touch_length(), 2U);
gesture.reset(new SyntheticPointerAction(
- SyntheticGestureParams::TOUCH_INPUT, SyntheticGesture::RELEASE,
- &synthetic_pointer, position, index));
+ SyntheticGestureParams::TOUCH_INPUT,
+ SyntheticGestureParams::PointerActionType::RELEASE, &synthetic_pointer,
+ position, index));
QueueSyntheticGesture(std::move(gesture));
FlushInputUntilComplete();

Powered by Google App Engine
This is Rietveld 408576698