| Index: motion_event_coalescer_test.cc
|
| diff --git a/motion_event_coalescer_test.cc b/motion_event_coalescer_test.cc
|
| index 3cac4355b04871dd1b59b6c4a52c4e95059673d6..91f1d2482b24fd4832de2d74f2e53388cfe152b7 100644
|
| --- a/motion_event_coalescer_test.cc
|
| +++ b/motion_event_coalescer_test.cc
|
| @@ -39,12 +39,12 @@ TEST_F(MotionEventCoalescerTest, InitialValues) {
|
|
|
| // We used to initialize the positions to (0, 0) instead of (-1, -1), so
|
| // we'd incorrectly ignore initial (0, 0) values.
|
| - coalescer.StorePosition(0, 0);
|
| + coalescer.StorePosition(Point(0, 0));
|
| EXPECT_EQ(1, counter.num_calls());
|
| EXPECT_EQ(0, coalescer.x());
|
| EXPECT_EQ(0, coalescer.y());
|
|
|
| - coalescer.StorePosition(200, 300);
|
| + coalescer.StorePosition(Point(200, 300));
|
| EXPECT_EQ(2, counter.num_calls());
|
| EXPECT_EQ(200, coalescer.x());
|
| EXPECT_EQ(300, coalescer.y());
|
| @@ -57,7 +57,7 @@ TEST_F(MotionEventCoalescerTest, InitialValues) {
|
|
|
| // We should still notify if the first values that we receive after
|
| // restarting matched the last ones that we saw before.
|
| - coalescer.StorePosition(200, 300);
|
| + coalescer.StorePosition(Point(200, 300));
|
| EXPECT_EQ(3, counter.num_calls());
|
| EXPECT_EQ(200, coalescer.x());
|
| EXPECT_EQ(300, coalescer.y());
|
|
|