Index: ash/system/web_notification/web_notification_tray_unittest.cc |
diff --git a/ash/system/web_notification/web_notification_tray_unittest.cc b/ash/system/web_notification/web_notification_tray_unittest.cc |
index 34bfb66a4aa18e2934d57922d733c65c83068a7f..5523bb34f2cad2968ed3d8aaf70b5ae2d11cf45e 100644 |
--- a/ash/system/web_notification/web_notification_tray_unittest.cc |
+++ b/ash/system/web_notification/web_notification_tray_unittest.cc |
@@ -27,6 +27,7 @@ |
#include "base/strings/utf_string_conversions.h" |
#include "ui/display/display.h" |
#include "ui/display/screen.h" |
+#include "ui/events/base_event_utils.h" |
#include "ui/events/event.h" |
#include "ui/events/test/event_generator.h" |
#include "ui/gfx/geometry/point.h" |
@@ -488,7 +489,7 @@ TEST_F(WebNotificationTrayTest, TouchFeedback) { |
gfx::Point center_point = tray->GetBoundsInScreen().CenterPoint(); |
ui::TouchEvent press(ui::ET_TOUCH_PRESSED, center_point, touch_id, |
- generator.Now()); |
+ ui::EventTimeForNow()); |
generator.Dispatch(&press); |
EXPECT_TRUE(tray->draw_background_as_active()); |
@@ -518,7 +519,7 @@ TEST_F(WebNotificationTrayTest, TouchFeedbackCancellation) { |
gfx::Point center_point = bounds.CenterPoint(); |
ui::TouchEvent press(ui::ET_TOUCH_PRESSED, center_point, touch_id, |
- generator.Now()); |
+ ui::EventTimeForNow()); |
generator.Dispatch(&press); |
EXPECT_TRUE(tray->draw_background_as_active()); |