~loic.molinari/qtmir/multi-bufferstream-support-fixes

« back to all changes in this revision

Viewing changes to tests/mirserver/QtEventFeeder/qteventfeeder_test.cpp

  • Committer: CI Train Bot
  • Author(s): Cemil Azizoglu
  • Date: 2015-09-23 15:17:10 UTC
  • mfrom: (377.1.5 qtmir)
  • Revision ID: ci-train-bot@canonical.com-20150923151710-0mwrkvqe0f25sdn9
Port gl_bind_to_texture to the new TextureSource interface.
Update for Mir 0.16 release.
Approved by: Alan Griffiths

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
                                                              Contains(AllOf(HasId(0),
118
118
                                                                             IsPressed()))),_)).Times(1);
119
119
 
120
 
    auto ev1 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(123), 0);
 
120
    auto ev1 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(123), 0 /* mac */, 0);
121
121
    mev::add_touch(*ev1, 0 /* touch ID */, mir_touch_action_down, mir_touch_tooltype_unknown,
122
122
                   10, 10, 10 /* x, y, pressure */,
123
123
                   1, 1, 10 /* touch major, minor, size */);
142
142
                                               ),_)).Times(1);
143
143
    }
144
144
 
145
 
    auto ev2 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(125), 0);
 
145
    auto ev2 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(125), 0 /* mac */, 0);
146
146
    mev::add_touch(*ev2, 1 /* touch ID */, mir_touch_action_down, mir_touch_tooltype_unknown,
147
147
                   20, 20, 10 /* x, y, pressure*/,
148
148
                   1, 1, 10 /* touch major, minor, size */);
156
156
 
157
157
    setIrrelevantMockWindowSystemExpectations();
158
158
 
159
 
    auto ev1 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(123), 0);
 
159
    auto ev1 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(123), 0 /* mac */, 0);
160
160
    mev::add_touch(*ev1, 0 /* touch ID */, mir_touch_action_down, mir_touch_tooltype_unknown,
161
161
                   10, 10, 10 /* x, y, pressure*/,
162
162
                   1, 1, 10 /* touch major, minor, size */);
172
172
 
173
173
    setIrrelevantMockWindowSystemExpectations();
174
174
 
175
 
    auto ev2 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(124), 0);
 
175
    auto ev2 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(124), 0 /* mac */, 0);
176
176
    mev::add_touch(*ev2, 0 /* touch ID */, mir_touch_action_change, mir_touch_tooltype_unknown,
177
177
                   10, 10, 10 /* x, y, pressure*/,
178
178
                   1, 1, 10 /* touch major, minor, size */);
194
194
    setIrrelevantMockWindowSystemExpectations();
195
195
 
196
196
    // touch 0 disappeared and touch 2 got pressed
197
 
    auto ev3 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(125), 0);
 
197
    auto ev3 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(125), 0 /* mac */, 0);
198
198
    mev::add_touch(*ev3, 1 /* touch ID */, mir_touch_action_change, mir_touch_tooltype_unknown,
199
199
                   20, 20, 10 /* x, y, pressure*/,
200
200
                   1, 1, 10 /* touch major, minor, size */);
234
234
                                                              Contains(AllOf(HasId(0),
235
235
                                                                             IsPressed()))),_)).Times(1);
236
236
 
237
 
    auto ev1 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(123), 0);
 
237
    auto ev1 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(123), 0 /* mac */, 0);
238
238
    mev::add_touch(*ev1, /* touch ID */ 0, mir_touch_action_down, mir_touch_tooltype_unknown,
239
239
                   10, 10, 10, 1, 1, 10);
240
240
    qtEventFeeder->dispatch(*ev1);
247
247
                                                              Contains(AllOf(HasId(0), StateIsMoved()))
248
248
                                                             ),_)).Times(1);
249
249
 
250
 
    auto ev2 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(123), 0);
 
250
    auto ev2 = mev::make_event(MirInputDeviceId(), std::chrono::milliseconds(123), 0 /* mac */, 0);
251
251
    mev::add_touch(*ev2, /* touch ID */ 0, mir_touch_action_down, mir_touch_tooltype_unknown,
252
252
                   10, 10, 10, 1, 1, 10);
253
253
    qtEventFeeder->dispatch(*ev2);