Changes: Add unit test to show that fetching works in general.
authorMurray Cumming <murrayc@openismus.com>
Thu, 25 Feb 2010 10:45:36 +0000 (11:45 +0100)
committerMurray Cumming <murrayc@openismus.com>
Thu, 25 Feb 2010 11:13:28 +0000 (12:13 +0100)
commit0eeaa2a55ae0b3b10c97925b4c1fbb0ad51b728f
treef75d1d65bef61b65fdc357de6696a8a7ac8ddffb
parentf40225fa5e79256c6c7fe885545db6e5978c41f0
Changes: Add unit test to show that fetching works in general.

RevBy: people-review
Details:
* tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.[h|cpp|pro]:
Add a test that saves, checks (via fetch), and removes a contact.
It checks that _any_ contact is fetched, not that the specific contact
is fetched, though that can be changed by changing one bool in doNextOperation.

Changing that bool makes this do the same as ut_qtcontacts_add_async(),
but this test case also experiments with a state enum instead of the
nasty callback functions. I have not decided which is best for future unit tests.
tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.cpp [new file with mode: 0644]
tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.h [new file with mode: 0644]
tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.pro [new file with mode: 0644]