| Index: content/public/test/browser_test_utils.cc
|
| diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
|
| index fa2c79996dbd61094cd2eb298758820931e46628..5beaa363675cf20374b662621f684746ce971859 100644
|
| --- a/content/public/test/browser_test_utils.cc
|
| +++ b/content/public/test/browser_test_utils.cc
|
| @@ -266,12 +266,13 @@ void SimulateTapAt(WebContents* web_contents, const gfx::Point& point) {
|
| ui::GestureConfiguration::
|
| max_touch_down_duration_in_seconds_for_click());
|
| SyntheticWebTouchEvent touch;
|
| - touch.timeStampSeconds = 0;
|
| + // Set the timestamp to the base::TimeDelta representing the current time.
|
| + touch.SetTimestamp(base::TimeTicks::Now() - base::TimeTicks());
|
| touch.PressPoint(point.x(), point.y());
|
| RenderWidgetHostImpl* widget_host =
|
| RenderWidgetHostImpl::From(web_contents->GetRenderViewHost());
|
| widget_host->ForwardTouchEvent(touch);
|
| - touch.timeStampSeconds = kTapDurationSeconds;
|
| + touch.timeStampSeconds += kTapDurationSeconds;
|
| touch.ReleasePoint(0);
|
| widget_host->ForwardTouchEvent(touch);
|
| }
|
|
|