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

Unified Diff: motion_event_coalescer_test.cc

Issue 6902072: wm: Update a lot of code to use structs from geometry.h. (Closed) Base URL: ssh://gitrw.chromium.org:9222/window_manager.git@master
Patch Set: move override-redirect stacking and visibility into Window Created 9 years, 8 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 | « motion_event_coalescer.cc ('k') | panels/panel.h » ('j') | window.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « motion_event_coalescer.cc ('k') | panels/panel.h » ('j') | window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698