Chromium Code Reviews| Index: ash/laser/laser_pointer_points_unittest.cc |
| diff --git a/ash/laser/laser_pointer_points_unittest.cc b/ash/laser/laser_pointer_points_unittest.cc |
| index cad8c7e940a24d93d7dc22708b58fa859b4bc0ea..dada633b1a56bffc190bd33de74dc2d57169dd5f 100644 |
| --- a/ash/laser/laser_pointer_points_unittest.cc |
| +++ b/ash/laser/laser_pointer_points_unittest.cc |
| @@ -37,15 +37,15 @@ TEST_F(LaserPointerPointsTest, LaserPointerInternalCollection) { |
| const gfx::PointF bottom(1, 9); |
| const gfx::PointF top_right(30, 0); |
| const gfx::PointF last(2, 2); |
| - points_.AddPoint(left); |
| + points_.AddPoint(left, base::TimeTicks::Now()); |
|
Daniele Castagna
2017/03/15 19:07:28
Should it be a pre-determined TimeTicks instead of
reveman
2017/03/16 12:57:28
Using base::TimeTicks() in latest patch as time do
|
| EXPECT_EQ(gfx::Rect(1, 1, 0, 0), points_.GetBoundingBox()); |
| // Should be the new bottom of the bounding box. |
| - points_.AddPoint(bottom); |
| + points_.AddPoint(bottom, base::TimeTicks::Now()); |
| EXPECT_EQ(gfx::Rect(1, 1, 0, bottom.y() - 1), points_.GetBoundingBox()); |
| // Should be the new top and right of the bounding box. |
| - points_.AddPoint(top_right); |
| + points_.AddPoint(top_right, base::TimeTicks::Now()); |
| EXPECT_EQ(3, points_.GetNumberOfPoints()); |
| EXPECT_FALSE(points_.IsEmpty()); |
| EXPECT_EQ(gfx::Rect(left.x(), top_right.y(), top_right.x() - left.x(), |
| @@ -53,7 +53,7 @@ TEST_F(LaserPointerPointsTest, LaserPointerInternalCollection) { |
| points_.GetBoundingBox()); |
| // Should not expand bounding box. |
| - points_.AddPoint(last); |
| + points_.AddPoint(last, base::TimeTicks::Now()); |
| EXPECT_EQ(gfx::Rect(left.x(), top_right.y(), top_right.x() - left.x(), |
| bottom.y() - top_right.y()), |
| points_.GetBoundingBox()); |
| @@ -64,7 +64,7 @@ TEST_F(LaserPointerPointsTest, LaserPointerInternalCollection) { |
| // Add a new point which will expand the bounding box. |
| gfx::PointF new_left_bottom(0, 40); |
| - points_.AddPoint(new_left_bottom); |
| + points_.AddPoint(new_left_bottom, base::TimeTicks::Now()); |
| EXPECT_EQ(5, points_.GetNumberOfPoints()); |
| EXPECT_EQ(gfx::Rect(new_left_bottom.x(), top_right.y(), |
| top_right.x() - new_left_bottom.x(), |