--- a/contacts_plat/presence_cache_api/tsrc/mt_preseceqt/entitytests.cpp Thu Sep 09 16:37:32 2010 +0300
+++ b/contacts_plat/presence_cache_api/tsrc/mt_preseceqt/entitytests.cpp Tue Sep 21 17:07:25 2010 +0300
@@ -262,8 +262,9 @@
QVERIFY((qtKeyList.count() )== (cnt - 1 ) );
}
+ //Change the identity of one buddy
+
-
delete buddy;
delete buddy2;
@@ -305,9 +306,11 @@
connect(iReader, SIGNAL(signalPresenceRead(bool , QList<PrcPresenceBuddyInfoQt*> )),
this, SLOT( handlePresenceReadInClient(bool,QList<PrcPresenceBuddyInfoQt*>)));
QString testBuddyID = "sip:tester1@test.com";
+ QString testBuddyID2 = "xzsip:abctese@tt.com";
iNotificationReceived = false;
//Subscribe
subscribeBuddy(testBuddyID);
+ subscribeBuddy(testBuddyID2); //subscribe also to some dummy buddya
//Now save and check if notification is received
iMapDataForAsyncTest.clear();
iMapDataForAsyncTest.insert(K_Buddy,testBuddyID);
@@ -319,7 +322,7 @@
saveBuddy(iMapDataForAsyncTest);
QTest::qWait(waitTime);
QVERIFY(true == iNotificationReceived);
-
+ unSubscribeBuddy(testBuddyID2);
}
// Subscribe , save, and Unsubscribe ,save