summaryrefslogtreecommitdiff
path: root/test/test-misc.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-04-21 16:33:02 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-09-04 12:42:44 +1000
commitaeca8739c7c2e852bc84998ab1f85162d74e9454 (patch)
treee01b40006ed206fe46ea207243c9dc916ff4c44e /test/test-misc.c
parenta3c5f37b28322a22180545b63506522c885c9cac (diff)
test: make the lid action helper function a generic switch action helper
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/test-misc.c')
-rw-r--r--test/test-misc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test-misc.c b/test/test-misc.c
index 2173910b..1b85e9c9 100644
--- a/test/test-misc.c
+++ b/test/test-misc.c
@@ -502,8 +502,12 @@ START_TEST(event_conversion_switch)
struct libinput_event *event;
int sw = 0;
- litest_lid_action(dev, LIBINPUT_SWITCH_STATE_ON);
- litest_lid_action(dev, LIBINPUT_SWITCH_STATE_OFF);
+ litest_switch_action(dev,
+ LIBINPUT_SWITCH_LID,
+ LIBINPUT_SWITCH_STATE_ON);
+ litest_switch_action(dev,
+ LIBINPUT_SWITCH_LID,
+ LIBINPUT_SWITCH_STATE_OFF);
libinput_dispatch(li);
while ((event = libinput_get_event(li))) {