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

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

Issue 2227563003: Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix new instances Created 4 years, 4 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 543cfdc9ae6a3fbcdd3fd2c417c717cee3d51692..c2e16707f9d306ef4a0bc8f65fe4e4fdb2882557 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc
+++ b/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc
@@ -206,14 +206,14 @@ class MockDragMouseTarget : public MockMoveGestureTarget {
ASSERT_TRUE(WebInputEvent::isMouseEventType(event.type));
const WebMouseEvent& mouse_event = static_cast<const WebMouseEvent&>(event);
if (!started_) {
- EXPECT_EQ(mouse_event.button, WebMouseEvent::ButtonLeft);
+ EXPECT_EQ(mouse_event.button, WebMouseEvent::Button::Left);
EXPECT_EQ(mouse_event.clickCount, 1);
EXPECT_EQ(mouse_event.type, WebInputEvent::MouseDown);
start_.SetPoint(mouse_event.x, mouse_event.y);
last_mouse_point_ = start_;
started_ = true;
} else {
- EXPECT_EQ(mouse_event.button, WebMouseEvent::ButtonLeft);
+ EXPECT_EQ(mouse_event.button, WebMouseEvent::Button::Left);
ASSERT_NE(mouse_event.type, WebInputEvent::MouseDown);
gfx::PointF mouse_point(mouse_event.x, mouse_event.y);
@@ -450,7 +450,7 @@ class MockSyntheticTapMouseTarget : public MockSyntheticTapGestureTarget {
switch (state_) {
case NOT_STARTED:
EXPECT_EQ(mouse_event.type, WebInputEvent::MouseDown);
- EXPECT_EQ(mouse_event.button, WebMouseEvent::ButtonLeft);
+ EXPECT_EQ(mouse_event.button, WebMouseEvent::Button::Left);
EXPECT_EQ(mouse_event.clickCount, 1);
position_ = gfx::PointF(mouse_event.x, mouse_event.y);
start_time_ = base::TimeDelta::FromMilliseconds(
@@ -459,7 +459,7 @@ class MockSyntheticTapMouseTarget : public MockSyntheticTapGestureTarget {
break;
case STARTED:
EXPECT_EQ(mouse_event.type, WebInputEvent::MouseUp);
- EXPECT_EQ(mouse_event.button, WebMouseEvent::ButtonLeft);
+ EXPECT_EQ(mouse_event.button, WebMouseEvent::Button::Left);
EXPECT_EQ(mouse_event.clickCount, 1);
EXPECT_EQ(position_, gfx::PointF(mouse_event.x, mouse_event.y));
stop_time_ = base::TimeDelta::FromMilliseconds(
@@ -1474,4 +1474,4 @@ TEST_F(SyntheticGestureControllerTest, TapGestureMouse) {
} // namespace
-} // namespace content
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698