test: add litest_push/pop_event_frame() helpers
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 17 Sep 2014 00:07:38 +0000 (10:07 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 23 Sep 2014 04:38:52 +0000 (14:38 +1000)
commit4dce0648f668d416d88a3835c29667cd4fdb5850
tree88a8975879e247cc1cdb548b54ab756793692567
parente4adbff919223861bb2630eb413c1c64d02dfd57
test: add litest_push/pop_event_frame() helpers

For some tests we need to string multiple event sequences together into one
event frame. Use a push/pop frame approach that stops litest from sending any
EV_SYN/SYN_REPORT events, so we can merge two touches together by e.g.

litest_push_event_frame(d);
litest_touch_down(d, 0, 10, 10);
litest_touch_down(d, 1, 20, 50);
litest_pop_event_frame(d);

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
test/litest.c
test/litest.h