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

Unified Diff: ui/events/ozone/evdev/touch_noise/touch_noise_finder_unittest.cc

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « ui/events/ozone/evdev/touch_noise/touch_noise_finder.cc ('k') | ui/events/test/event_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/touch_noise/touch_noise_finder_unittest.cc
diff --git a/ui/events/ozone/evdev/touch_noise/touch_noise_finder_unittest.cc b/ui/events/ozone/evdev/touch_noise/touch_noise_finder_unittest.cc
index bee8b9ebf3e6d8e6f2c87a7789e872efdcb95a92..6d6eb6325f68c9068d3fa5dacd084c2988c24b79 100644
--- a/ui/events/ozone/evdev/touch_noise/touch_noise_finder_unittest.cc
+++ b/ui/events/ozone/evdev/touch_noise/touch_noise_finder_unittest.cc
@@ -48,8 +48,8 @@ class TouchNoiseFinderTest : public testing::Test {
touches.push_back(touch);
if (i == count - 1 || entry.time_ms != entries[i + 1].time_ms) {
- touch_noise_finder_->HandleTouches(
- touches, base::TimeDelta::FromMilliseconds(entry.time_ms));
+ touch_noise_finder_->HandleTouches(touches, base::TimeTicks() +
+ base::TimeDelta::FromMilliseconds(entry.time_ms));
for (size_t j = 0; j < touches.size(); ++j) {
bool expect_noise = entries[j + start_index].expect_noise;
« no previous file with comments | « ui/events/ozone/evdev/touch_noise/touch_noise_finder.cc ('k') | ui/events/test/event_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698