[Telepathy-commits] [telepathy-qt4/master] streamed-media-chan test: Fixed "no answer test".
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Wed Mar 25 07:09:22 PDT 2009
---
tests/dbus/streamed-media-chan.cpp | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/tests/dbus/streamed-media-chan.cpp b/tests/dbus/streamed-media-chan.cpp
index 39fe98a..d469469 100644
--- a/tests/dbus/streamed-media-chan.cpp
+++ b/tests/dbus/streamed-media-chan.cpp
@@ -555,6 +555,27 @@ void TestStreamedMediaChan::testOutgoingCallNoAnswer()
/* After the initial flurry of D-Bus messages, alice still hasn't answered */
processDBusQueue(mConn);
+
+ QVERIFY(connect(mChan.data(),
+ SIGNAL(groupMembersChanged(
+ const Telepathy::Client::Contacts &,
+ const Telepathy::Client::Contacts &,
+ const Telepathy::Client::Contacts &,
+ const Telepathy::Client::Contacts &,
+ const Telepathy::Client::Channel::GroupMemberChangeDetails &)),
+ SLOT(onGroupMembersChanged(
+ const Telepathy::Client::Contacts &,
+ const Telepathy::Client::Contacts &,
+ const Telepathy::Client::Contacts &,
+ const Telepathy::Client::Contacts &,
+ const Telepathy::Client::Channel::GroupMemberChangeDetails &))));
+ // wait the contact to appear on RP
+ if (mChan->groupRemotePendingContacts().size() == 0) {
+ QCOMPARE(mLoop->exec(), 0);
+ QCOMPARE(mChangedRP.size(), 1);
+ QVERIFY(mChan->groupRemotePendingContacts().contains(otherContact));
+ QCOMPARE(mChan->awaitingRemoteAnswer(), true);
+ }
QCOMPARE(mChan->groupRemotePendingContacts().size(), 1);
/* assume we're never going to get an answer, and hang up */
--
1.5.6.5
More information about the telepathy-commits
mailing list