test: pass an enum for the axis instead of uint

Let's pretend that makes it type-safe.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2014-11-06 14:30:21 +10:00
parent 15527c73bd
commit ba30abff77
2 changed files with 6 additions and 2 deletions

View file

@ -1090,7 +1090,9 @@ litest_assert_button_event(struct libinput *li, unsigned int button,
libinput_event_destroy(event);
}
void litest_assert_scroll(struct libinput *li, unsigned int axis, int dir)
void litest_assert_scroll(struct libinput *li,
enum libinput_pointer_axis axis,
int dir)
{
struct libinput_event *event, *next_event;
struct libinput_event_pointer *ptrev;

View file

@ -150,7 +150,9 @@ void litest_assert_empty_queue(struct libinput *li);
void litest_assert_button_event(struct libinput *li,
unsigned int button,
enum libinput_button_state state);
void litest_assert_scroll(struct libinput *li, unsigned int axis, int dir);
void litest_assert_scroll(struct libinput *li,
enum libinput_pointer_axis axis,
int dir);
struct libevdev_uinput * litest_create_uinput_device(const char *name,
struct input_id *id,