| Index: ash/wm/custom_frame_view_ash_unittest.cc
|
| diff --git a/ash/wm/custom_frame_view_ash_unittest.cc b/ash/wm/custom_frame_view_ash_unittest.cc
|
| index 5900ae593cba342707e504784386b29b74171eec..f81d2995967182849a743fe3ee7e3949da9e243f 100644
|
| --- a/ash/wm/custom_frame_view_ash_unittest.cc
|
| +++ b/ash/wm/custom_frame_view_ash_unittest.cc
|
| @@ -18,6 +18,7 @@
|
| #include "ui/aura/test/event_generator.h"
|
| #include "ui/aura/root_window.h"
|
| #include "ui/aura/window.h"
|
| +#include "ui/base/events/event_utils.h"
|
| #include "ui/base/gestures/gesture_configuration.h"
|
| #include "ui/views/controls/button/image_button.h"
|
| #include "ui/views/test/test_views_delegate.h"
|
| @@ -474,13 +475,17 @@ TEST_F(CustomFrameViewAshTest, MaximizeTap) {
|
| ui::GestureConfiguration::set_default_radius(0);
|
|
|
| const int kTouchId = 2;
|
| - ui::TouchEvent press(ui::ET_TOUCH_PRESSED, button_pos, kTouchId,
|
| - base::Time::NowFromSystemTime() - base::Time());
|
| + ui::TouchEvent press(ui::ET_TOUCH_PRESSED,
|
| + button_pos,
|
| + kTouchId,
|
| + ui::EventTimeForNow());
|
| root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&press);
|
|
|
| button_pos.Offset(9, 8);
|
| ui::TouchEvent release(
|
| - ui::ET_TOUCH_RELEASED, button_pos, kTouchId,
|
| + ui::ET_TOUCH_RELEASED,
|
| + button_pos,
|
| + kTouchId,
|
| press.time_stamp() + base::TimeDelta::FromMilliseconds(50));
|
| root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&release);
|
|
|
|
|