Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: ash/system/web_notification/web_notification_tray_unittest.cc

Issue 2100453002: Remove unnecessary mocking of TickClock for events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@614409-confirm-timestamp-timebase
Patch Set: Fix touch_unittests Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/exo/touch_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « no previous file | components/exo/touch_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698