2
* Copyright (C) 2014 Canonical, Ltd.
2
* Copyright (C) 2014-2015 Canonical, Ltd.
4
4
* This program is free software: you can redistribute it and/or modify it under
5
5
* the terms of the GNU Lesser General Public License version 3, as published by
191
193
ASSERT_TRUE(Mock::VerifyAndClearExpectations(mockWindowSystem));
194
TEST_F(QtEventFeederTest, IgnoreHovering)
196
setIrrelevantMockWindowSystemExpectations();
197
EXPECT_CALL(*mockWindowSystem, handleTouchEvent(_,_,_,_)).Times(0);
200
mirEvent.type = mir_event_type_motion;
201
mirEvent.motion.pointer_count = 1;
202
mirEvent.motion.pointer_coordinates[0].id = 0;
203
mirEvent.motion.pointer_coordinates[0].x = 10;
204
mirEvent.motion.pointer_coordinates[0].y = 10;
205
mirEvent.motion.pointer_coordinates[0].touch_major = 1;
206
mirEvent.motion.pointer_coordinates[0].touch_minor = 1;
207
mirEvent.motion.pointer_coordinates[0].pressure = 10;
208
mirEvent.motion.action = mir_motion_action_hover_enter;
209
mirEvent.motion.event_time = 123 * 1000000;
211
qtEventFeeder->dispatch(mirEvent);
213
mirEvent.motion.pointer_coordinates[0].x = 20;
214
mirEvent.motion.pointer_coordinates[0].y = 20;
215
mirEvent.motion.action = mir_motion_action_hover_move;
216
mirEvent.motion.event_time = 125 * 1000000;
218
qtEventFeeder->dispatch(mirEvent);
220
mirEvent.motion.action = mir_motion_action_hover_exit;
221
mirEvent.motion.event_time = 127 * 1000000;
223
qtEventFeeder->dispatch(mirEvent);