summaryrefslogtreecommitdiff
path: root/test/eventcomm-test.c
AgeCommit message (Collapse)Author
2012-02-10Allocate SynapticsPrivate.comm->hwStateChase Douglas
This is needed for when SynapticsHwState can't be allocated on the stack. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-10Transition eventcomm-test to new SynapticsHwState instantiation schemeChase Douglas
Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-10Allocate proto data in eventcomm-testChase Douglas
Provide a helper function for allocating proto data and use it in eventcomm-test. This ensures a null pointer for priv->proto_data is not dereferenced. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-04-04test: add another test to ensure HW state changes on known values only.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-04-04test: Add some tests for HW state changes.Peter Hutterer
Includes basic finger counting test, some button tests and axis tests. These tests simply check that the HW state changes reflect the events pumped in. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-04-04Add basic framework for unit-testing.Peter Hutterer
Also adds a bunch of fake symbols so we can link. Note that any of these symbols will return false, 0 or whatever the zero value for the symbol is. Care must be taken when writing test that this doesn't screw up the test. Tests are always built but only run on make check. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>