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

Unified Diff: ui/aura/window_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, 7 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
Index: ui/aura/window_unittest.cc
diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc
index 3b647b560ef3430e77ab29e01062169e8af0ac5c..b8ec16b0dc4da66987cd80f9804f7e0e53c660a0 100644
--- a/ui/aura/window_unittest.cc
+++ b/ui/aura/window_unittest.cc
@@ -291,7 +291,7 @@ class GestureTrackPositionDelegate : public TestWindowDelegate {
DISALLOW_COPY_AND_ASSIGN(GestureTrackPositionDelegate);
};
-base::TimeDelta getTime() {
+base::TimeTicks getTime() {
return ui::EventTimeForNow();
}
@@ -935,7 +935,7 @@ TEST_F(WindowTest, TouchCaptureDoesntCancelCapturedTouches) {
CaptureWindowDelegateImpl delegate;
std::unique_ptr<Window> window(CreateTestWindowWithDelegate(
&delegate, 0, gfx::Rect(0, 0, 50, 50), root_window()));
- base::TimeDelta time = getTime();
+ base::TimeTicks time = getTime();
const int kTimeDelta = 100;
ui::TouchEvent press(

Powered by Google App Engine
This is Rietveld 408576698