Commit ef110c2c authored by robert.bradford's avatar robert.bradford Committed by Commit bot

ozone: Use DeviceCapabilities in TabletEventConverterEvdev unittest

This change enhances the tests for TabletEventConverterEvdev to support
different device characteristics by loading the device properties from a
DeviceCapabilities structure. Unfortunately I no longer have the device
for which the original test was written from so this change switches the
data used over to a different Wacom Tablet.

This work is in preparation for tests for on-screen active stylus
devices which will have different device properties.

The new data highlighted a bug in TabletEventConverterEvdev where we
were failing to zero the initial absolute position.

TEST=events_unittests passes.
BUG=448467
R=spang@chromium.org

Review URL: https://codereview.chromium.org/1155543002

Cr-Commit-Position: refs/heads/master@{#330948}
parent ac173ed0
......@@ -31,6 +31,8 @@ TabletEventConverterEvdev::TabletEventConverterEvdev(
info.product_id()),
cursor_(cursor),
dispatcher_(dispatcher),
y_abs_location_(0),
x_abs_location_(0),
stylus_(0),
abs_value_dirty_(false) {
x_abs_min_ = info.GetAbsMinimum(ABS_X);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment