| Index: ui/views/touchui/touch_selection_controller_impl_unittest.cc
|
| diff --git a/ui/views/touchui/touch_selection_controller_impl_unittest.cc b/ui/views/touchui/touch_selection_controller_impl_unittest.cc
|
| index 213170162b2aa9dcff012bc3903dedda6939dc74..f65d3e834d48e1188e478c5245f0d1fa1d50907a 100644
|
| --- a/ui/views/touchui/touch_selection_controller_impl_unittest.cc
|
| +++ b/ui/views/touchui/touch_selection_controller_impl_unittest.cc
|
| @@ -153,7 +153,7 @@ class TouchSelectionControllerImplTest : public ViewsTestBase {
|
|
|
| gfx::Point grip_location = gfx::Point(handle->size().width() / 2,
|
| handle->size().height() / 2);
|
| - base::TimeDelta time_stamp = base::TimeDelta();
|
| + base::TimeTicks time_stamp = base::TimeTicks();
|
| {
|
| ui::GestureEventDetails details(ui::ET_GESTURE_SCROLL_BEGIN);
|
| ui::GestureEvent scroll_begin(
|
| @@ -289,7 +289,7 @@ TEST_F(TouchSelectionControllerImplTest, SelectionInTextfieldTest) {
|
| // Tap the textfield to invoke touch selection.
|
| ui::GestureEventDetails details(ui::ET_GESTURE_TAP);
|
| details.set_tap_count(1);
|
| - ui::GestureEvent tap(0, 0, 0, base::TimeDelta(), details);
|
| + ui::GestureEvent tap(0, 0, 0, base::TimeTicks(), details);
|
| textfield_->OnGestureEvent(&tap);
|
|
|
| // Test selecting a range.
|
| @@ -322,7 +322,7 @@ TEST_F(TouchSelectionControllerImplTest, SelectionInBidiTextfieldTest) {
|
| // Tap the textfield to invoke touch selection.
|
| ui::GestureEventDetails details(ui::ET_GESTURE_TAP);
|
| details.set_tap_count(1);
|
| - ui::GestureEvent tap(0, 0, 0, base::TimeDelta(), details);
|
| + ui::GestureEvent tap(0, 0, 0, base::TimeTicks(), details);
|
| textfield_->OnGestureEvent(&tap);
|
|
|
| // Test cursor at run boundary and with empty selection.
|
| @@ -374,7 +374,7 @@ TEST_F(TouchSelectionControllerImplTest, SelectRectCallbackTest) {
|
| // Tap the textfield to invoke touch selection.
|
| ui::GestureEventDetails details(ui::ET_GESTURE_TAP);
|
| details.set_tap_count(1);
|
| - ui::GestureEvent tap(0, 0, 0, base::TimeDelta(), details);
|
| + ui::GestureEvent tap(0, 0, 0, base::TimeTicks(), details);
|
| textfield_->OnGestureEvent(&tap);
|
| textfield_->SelectRange(gfx::Range(3, 7));
|
|
|
| @@ -416,7 +416,7 @@ TEST_F(TouchSelectionControllerImplTest, SelectRectInBidiCallbackTest) {
|
| // Tap the textfield to invoke touch selection.
|
| ui::GestureEventDetails details(ui::ET_GESTURE_TAP);
|
| details.set_tap_count(1);
|
| - ui::GestureEvent tap(0, 0, 0, base::TimeDelta(), details);
|
| + ui::GestureEvent tap(0, 0, 0, base::TimeTicks(), details);
|
| textfield_->OnGestureEvent(&tap);
|
|
|
| // Select [c] from left to right.
|
| @@ -549,7 +549,7 @@ TEST_F(TouchSelectionControllerImplTest,
|
| // Tap the textfield to invoke selection.
|
| ui::GestureEventDetails details(ui::ET_GESTURE_TAP);
|
| details.set_tap_count(1);
|
| - ui::GestureEvent tap(0, 0, 0, base::TimeDelta(), details);
|
| + ui::GestureEvent tap(0, 0, 0, base::TimeTicks(), details);
|
| textfield_->OnGestureEvent(&tap);
|
|
|
| // Select some text such that one handle is hidden.
|
| @@ -820,7 +820,7 @@ TEST_F(TouchSelectionControllerImplTest, MouseCaptureChangedEventIgnored) {
|
| StartTouchEditing();
|
| EXPECT_TRUE(GetSelectionController());
|
| ui::MouseEvent capture_changed(ui::ET_MOUSE_CAPTURE_CHANGED, gfx::Point(5, 5),
|
| - gfx::Point(5, 5), base::TimeDelta(), 0, 0);
|
| + gfx::Point(5, 5), base::TimeTicks(), 0, 0);
|
| generator.Dispatch(&capture_changed);
|
| RunPendingMessages();
|
| EXPECT_TRUE(GetSelectionController());
|
|
|