diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-03-23 10:18:25 +0000 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-07-17 16:39:42 +0200 |
commit | 1fd537d7582178114005cd3e3c0b90d4db7719cd (patch) | |
tree | 91712333d18e4ee7a9c2d983a9f76703657d8105 /tubes/qa/test_manager.cxx | |
parent | 0338b92fd4feccbae6d7a4f0a5046ad149fac387 (diff) |
WIP
Diffstat (limited to 'tubes/qa/test_manager.cxx')
-rw-r--r-- | tubes/qa/test_manager.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tubes/qa/test_manager.cxx b/tubes/qa/test_manager.cxx index 31148efe5f13..4e588adcf926 100644 --- a/tubes/qa/test_manager.cxx +++ b/tubes/qa/test_manager.cxx @@ -168,14 +168,14 @@ void TestTeleTubes::spinMainLoop() void TestTeleTubes::testContactList() { - ContactList cl; - cl.prepare( TeleTestTubes_ContactListPrepared, this ); - spinMainLoop(); + CPPUNIT_ASSERT( mpManager1); + CPPUNIT_ASSERT( mpManager1->getAccountManagerStatus() == TeleManager::AMS_PREPARED); + + ContactList *cl = mpManager1->getContactList(); - /* Okay, now everything's prepared, we can get contacts synchronously. */ AccountContactPairV pairs; - pairs = cl.getContacts(); + pairs = cl->getContacts(); guint i; /* FIXME: this is racy, because we can't be 100% sure that MC has finished |