summaryrefslogtreecommitdiff
path: root/src/sensor_jump_filter_interpreter_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sensor_jump_filter_interpreter_unittest.cc')
-rw-r--r--src/sensor_jump_filter_interpreter_unittest.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/sensor_jump_filter_interpreter_unittest.cc b/src/sensor_jump_filter_interpreter_unittest.cc
index 3caf3c4..64a13e5 100644
--- a/src/sensor_jump_filter_interpreter_unittest.cc
+++ b/src/sensor_jump_filter_interpreter_unittest.cc
@@ -59,15 +59,15 @@ TEST(SensorJumpFilterInterpreterTest, SimpleTest) {
interpreter.enabled_.val_ = 1;
HardwareProperties hwprops = {
- 0, 0, 100, 100, // left, top, right, bottom
- 1, 1, // x res (pixels/mm), y res (pixels/mm)
- 1, 1, // scrn DPI X, Y
- -1, // orientation minimum
- 2, // orientation maximum
- 5, 5, // max fingers, max_touch
- 0, 0, 1, // t5r2, semi, button pad
- 0, 0, // has wheel, vertical wheel is high resolution
- 0, // haptic pad
+ .right = 100, .bottom = 100,
+ .res_x = 1, .res_y = 1,
+ .screen_x_dpi = 0, .screen_y_dpi = 0,
+ .orientation_minimum = -1,
+ .orientation_maximum = 2,
+ .max_finger_cnt = 5, .max_touch_cnt = 5,
+ .supports_t5r2 = 0, .support_semi_mt = 0, .is_button_pad = 1,
+ .has_wheel = 0, .wheel_is_hi_res = 0,
+ .is_haptic_pad = 0,
};
TestInterpreterWrapper wrapper(&interpreter, &hwprops);
@@ -122,15 +122,15 @@ TEST(SensorJumpFilterInterpreterTest, ActualLogTest) {
interpreter.enabled_.val_ = 1;
HardwareProperties hwprops = {
- 0, 0, 106.666672, 68, // left, top, right, bottom
- 1, 1, // x res (pixels/mm), y res (pixels/mm)
- 25.4, 25.4, // scrn DPI X, Y
- -1, // orientation minimum
- 2, // orientation maximum
- 15, 5, // max fingers, max_touch,
- 0, 0, 1, // t5r2, semi, button pad
- 0, 0, // has wheel, vertical wheel is high resolution
- 0, // haptic pad
+ .right = 106.666672, .bottom = 68,
+ .res_x = 1, .res_y = 1,
+ .screen_x_dpi = 0, .screen_y_dpi = 0,
+ .orientation_minimum = -1,
+ .orientation_maximum = 2,
+ .max_finger_cnt = 15, .max_touch_cnt = 5,
+ .supports_t5r2 = 0, .support_semi_mt = 0, .is_button_pad = 1,
+ .has_wheel = 0, .wheel_is_hi_res = 0,
+ .is_haptic_pad = 0,
};
TestInterpreterWrapper wrapper(&interpreter, &hwprops);