19 #ifndef MIR_TEST_EVENT_MATCHERS_H_
20 #define MIR_TEST_EVENT_MATCHERS_H_
24 #include <androidfw/Input.h>
26 #include <gmock/gmock.h>
38 return arg.key.key_code == key;
51 if (arg.motion.button_state == 0)
65 auto coords = &arg.motion.pointer_coordinates[0];
66 return (coords->x ==
dx) && (coords->y ==
dy);
73 auto surface_ev = arg.surface;
74 if (surface_ev.attrib != attrib)
76 if (surface_ev.value != value)
84 #endif // MIR_TEST_EVENT_MATCHERS_H_
MATCHER_P2(ButtonDownEvent, x, y,"")
Definition: client_event_matchers.h:66
Definition: dimensions.h:35
MATCHER(KeyDownEvent,"")
Definition: client_event_matchers.h:31
Definition: dimensions.h:35
MATCHER_P(KeyOfSymbol, keysym,"")
Definition: client_event_matchers.h:40