Chromium Code Reviews| 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..a98db4355171349b1b88eb8d8ea9f522ecf37cf2 100644 |
| --- a/content/public/test/browser_test_utils.cc |
| +++ b/content/public/test/browser_test_utils.cc |
| @@ -266,12 +266,12 @@ void SimulateTapAt(WebContents* web_contents, const gfx::Point& point) { |
| ui::GestureConfiguration:: |
| max_touch_down_duration_in_seconds_for_click()); |
| SyntheticWebTouchEvent touch; |
| - touch.timeStampSeconds = 0; |
| + touch.SetTimestamp(base::TimeTicks::Now() - base::TimeTicks()); |
|
Paweł Hajdan Jr.
2014/06/05 10:17:53
nit: Could you add a comment why we do this weird
tdresser
2014/06/05 12:05:08
Done.
|
| 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); |
| } |