From 1fd537d7582178114005cd3e3c0b90d4db7719cd Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Fri, 23 Mar 2012 10:18:25 +0000 Subject: WIP --- tubes/qa/test_manager.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tubes/qa/test_manager.cxx') 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 -- cgit v1.2.3