~brandontschaefer/mir/first-round-deprecation

« back to all changes in this revision

Viewing changes to tests/acceptance-tests/test_client_cookie.cpp

  • Committer: Brandon Schaefer
  • Date: 2016-12-13 17:59:30 UTC
  • mfrom: (3787.1.93 development-branch)
  • Revision ID: brandon.schaefer@canonical.com-20161213175930-j9o7qn0b11n3kzlm
* Merge trunk, fix conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
 
180
180
TEST_F(ClientCookies, pointer_motion_events_do_not_have_cookies)
181
181
{
182
 
    // with movement generates 2 events
183
182
    fake_pointer->emit_event(mis::a_pointer_event().with_movement(1, 1));
184
183
 
185
 
    int events = 2;
 
184
    size_t events = 1;
186
185
    if (wait_for_n_events(events, this))
187
186
    {
188
187
        std::lock_guard<std::mutex> lk(mutex);
219
218
        .at_position({1, 1})
220
219
        );
221
220
 
222
 
    int events = 1;
 
221
    size_t events = 1;
223
222
    if (wait_for_n_events(events, this))
224
223
    {
225
224
        std::lock_guard<std::mutex> lk(mutex);
226
225
        EXPECT_GE(event_count, events);
227
 
        EXPECT_EQ(out_cookies.size(), 1);
 
226
        EXPECT_EQ(out_cookies.size(), 1u);
228
227
    }
229
228
}