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

Unified Diff: ui/views/controls/table/table_view_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/views/controls/menu/menu_runner_impl_cocoa.mm ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/table/table_view_unittest.cc
diff --git a/ui/views/controls/table/table_view_unittest.cc b/ui/views/controls/table/table_view_unittest.cc
index b290c0def29e7ee4b0def66384871e0f41a09f6b..9fb6bb0fc2dbc37511011e00aa633a732b2d8cd7 100644
--- a/ui/views/controls/table/table_view_unittest.cc
+++ b/ui/views/controls/table/table_view_unittest.cc
@@ -211,7 +211,7 @@ class TableViewTest : public testing::Test {
void TapOnRow(int row) {
const int y = row * table_->row_height();
const ui::GestureEventDetails event_details(ui::ET_GESTURE_TAP);
- ui::GestureEvent tap(0, y, 0, base::TimeDelta(), event_details);
+ ui::GestureEvent tap(0, y, 0, base::TimeTicks(), event_details);
table_->OnGestureEvent(&tap);
}
@@ -320,17 +320,11 @@ TEST_F(TableViewTest, ResizeViaGesture) {
EXPECT_NE(0, x);
// Drag the mouse 1 pixel to the left.
ui::GestureEvent scroll_begin(
- x,
- 0,
- 0,
- base::TimeDelta(),
+ x, 0, 0, base::TimeTicks(),
ui::GestureEventDetails(ui::ET_GESTURE_SCROLL_BEGIN));
helper_->header()->OnGestureEvent(&scroll_begin);
ui::GestureEvent scroll_update(
- x - 1,
- 0,
- 0,
- base::TimeDelta(),
+ x - 1, 0, 0, base::TimeTicks(),
ui::GestureEventDetails(ui::ET_GESTURE_SCROLL_UPDATE));
helper_->header()->OnGestureEvent(&scroll_update);
« no previous file with comments | « ui/views/controls/menu/menu_runner_impl_cocoa.mm ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698