Update tests for low-dpi single-device-pixel moves

A corresponding CL went into the gestures library to handle
single-device-pixel moves on low CPI mice better. These are the test
changes.

We change the Apple Magic Mouse to report the new motion.

Also, we don't have a non-touch low-CPI mouse here, so we cheat and
make a test for the Logitech T620 that has a fake low CPI (100) and we
test that the proper motion comes out for a one-pixel move.

BUG=chromium:412864
TEST=these are the tests

Change-Id: I2d134933cd743a2ba14fd5289dab0ff0d6f48b24
Reviewed-on: https://chromium-review.googlesource.com/217502
Reviewed-by: Charles Mooney <charliemooney@chromium.org>
Tested-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Andrew de los Reyes <adlr@chromium.org>
diff --git a/tests/logitech-t620/low_dpi_move.log b/tests/logitech-t620/low_dpi_move.log
new file mode 100644
index 0000000..0026110
--- /dev/null
+++ b/tests/logitech-t620/low_dpi_move.log
@@ -0,0 +1,82 @@
+# device: Logitech Unifying Device. Wireless PID:4027
+# bit: 1F 00 12 00 00 00 00 00
+# key: FE FF FF FF FF FF FF FF FF FF EF FF DF FF BE FE FF 57 40 C1 7A 20 9F FF 07 00 00 00 00 00 01 00 00 00 FF FF 00 00 00 00 20 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+# rel: 03 00 00 00 00 00 00 00
+# abs: 03 00 00 00 00 80 60 06
+# led: 1F 00 00 00 00 00 00 00
+# prp: 00 00 00 00 00 00 00 00
+# absinfo: 0 0 1080 0 0 19
+# absinfo: 1 0 1353 0 0 19
+# absinfo: 47 0 15 0 0 0
+# absinfo: 53 0 1080 0 0 19
+# absinfo: 54 0 1353 0 0 19
+# absinfo: 57 0 65535 0 0 0
+# absinfo: 58 0 255 0 0 0
+E: 987.859512 0003 002f 0
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 1
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 2
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 3
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 4
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 5
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 6
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 7
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 8
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 9
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 10
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 11
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 12
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 13
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 14
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 15
+E: 987.859512 0003 0039 -1
+E: 987.859512 0003 002f 0
+E: 987.859512 0000 0000 0
+E: 990.329858 0002 0000 1
+E: 990.329858 0000 0000 0
+E: 990.330358 0003 002f 0
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 1
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 2
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 3
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 4
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 5
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 6
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 7
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 8
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 9
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 10
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 11
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 12
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 13
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 14
+E: 990.330358 0003 0039 -1
+E: 990.330358 0003 002f 15
+E: 990.330358 0003 0039 -1
diff --git a/tests/logitech-t620/low_dpi_move.props b/tests/logitech-t620/low_dpi_move.props
new file mode 100644
index 0000000..641fc6f
--- /dev/null
+++ b/tests/logitech-t620/low_dpi_move.props
@@ -0,0 +1 @@
+{"gestures": {"Scroll Sensitivity": 3, "Pointer Sensitivity": 3, "Mouse CPI": 100}}
\ No newline at end of file
diff --git a/tests/logitech-t620/low_dpi_move.py b/tests/logitech-t620/low_dpi_move.py
new file mode 100644
index 0000000..25f36e9
--- /dev/null
+++ b/tests/logitech-t620/low_dpi_move.py
@@ -0,0 +1,18 @@
+
+# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+from fuzzy_check import FuzzyCheck
+from validators import *
+
+# originally generated gestures:
+# Motion d=0.6991 x=0.6991 y=0 r=1.11e-16 s=0.566
+
+def Validate(raw, events, gestures):
+  fuzzy = FuzzyCheck()
+  fuzzy.expected = [
+    MotionValidator("== 0.833333 ~ 0.001"),
+  ]
+  fuzzy.unexpected = [
+  ]
+  return fuzzy.Check(gestures)
diff --git a/tests/magicmouse/accel_new.py b/tests/magicmouse/accel_new.py
index 24d980f..1f656f9 100644
--- a/tests/magicmouse/accel_new.py
+++ b/tests/magicmouse/accel_new.py
@@ -10,7 +10,7 @@
 def Validate(raw, events, gestures):
   fuzzy = FuzzyCheck()
   fuzzy.expected = [
-    MotionValidator("== 1182 ~ 10"),
+    MotionValidator("== 1161 ~ 10"),
   ]
   fuzzy.unexpected = [
   ]