summaryrefslogtreecommitdiff
path: root/test/litest.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-08-23 08:11:11 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-08-26 14:12:44 +1000
commita43042425e73f5ce1a546b76b4650d78f43daeb0 (patch)
tree09eaa54567f11265d3531b0a246d89d478135218 /test/litest.h
parentbb93f9fd93748ae88adadd4ead3ce1a2c0b0288d (diff)
test: add a helper function to compare the event type
New error message prints the human-readable event type, not just the enum values. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/litest.h')
-rw-r--r--test/litest.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/litest.h b/test/litest.h
index cdbe1fa..1db7237 100644
--- a/test/litest.h
+++ b/test/litest.h
@@ -529,6 +529,10 @@ void
litest_drain_events(struct libinput *li);
void
+litest_assert_event_type(struct libinput_event *event,
+ enum libinput_event_type want);
+
+void
litest_assert_empty_queue(struct libinput *li);
struct libinput_event_pointer *