~ci-train-bot/history-service/history-service-ubuntu-yakkety-landing-052

« back to all changes in this revision

Viewing changes to tests/daemon/DaemonTest.cpp

Request contact information for all known participants on history-daemon initialization, and use this cached information on the models.
Approved by: Tiago Salem Herrmann, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
    QCOMPARE(threads.count(), 1);
143
143
    History::Thread thread = threads.first();
144
144
    QCOMPARE(thread.participants().count(), 1);
145
 
    QCOMPARE(thread.participants().first(), sender);
 
145
    QCOMPARE(thread.participants().first().identifier(), sender);
146
146
 
147
147
    QTRY_COMPARE(threadsModifiedSpy.count(), 1);
148
148
    threads = threadsModifiedSpy.first().first().value<History::Threads>();
253
253
    QCOMPARE(threads.count(), 1);
254
254
    History::Thread thread = threads.first();
255
255
    QCOMPARE(thread.participants().count(), 1);
256
 
    QCOMPARE(thread.participants().first(), recipient);
 
256
    QCOMPARE(thread.participants().first().identifier(), recipient);
257
257
 
258
258
    QTRY_COMPARE(threadsModifiedSpy.count(), 1);
259
259
    threads = threadsModifiedSpy.first().first().value<History::Threads>();
297
297
    QCOMPARE(threads.count(), 1);
298
298
    History::Thread thread = threads.first();
299
299
    QCOMPARE(thread.participants().count(), 1);
300
 
    QCOMPARE(thread.participants().first(), callerId);
 
300
    QCOMPARE(thread.participants().first().identifier(), callerId);
301
301
 
302
302
    QTRY_COMPARE(threadsModifiedSpy.count(), 1);
303
303
    threads = threadsModifiedSpy.first().first().value<History::Threads>();
358
358
    QCOMPARE(threads.count(), 1);
359
359
    History::Thread thread = threads.first();
360
360
    QCOMPARE(thread.participants().count(), 1);
361
 
    QCOMPARE(thread.participants().first(), phoneNumber);
 
361
    QCOMPARE(thread.participants().first().identifier(), phoneNumber);
362
362
 
363
363
    QTRY_COMPARE(threadsModifiedSpy.count(), 1);
364
364
    threads = threadsModifiedSpy.first().first().value<History::Threads>();