[telepathy-gabble/master] Add a test for the RemoteCandidatesAdded signal.

Mike Ruprecht mike.ruprecht at collabora.co.uk
Tue Dec 29 05:35:30 PST 2009


Because of fdo bug #25426, adding remote candidates using the GTalk v0.4
doesn't work if Gabble initiated the call. It can't be tested, so just skip
that mode for now.
---
 tests/twisted/jingle/call-basics.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/jingle/call-basics.py b/tests/twisted/jingle/call-basics.py
index f7d7d99..02640f0 100644
--- a/tests/twisted/jingle/call-basics.py
+++ b/tests/twisted/jingle/call-basics.py
@@ -251,6 +251,14 @@ def run_test(jp, q, bus, conn, stream, incoming):
         "StreamState",  dbus_interface=dbus.PROPERTIES_IFACE)
     assertEquals (cs.MEDIA_STREAM_STATE_DISCONNECTED, state)
 
+    if incoming or jp.dialect != 'gtalk-v0.4':
+        jt2.remote_candidates()
+
+        remote_candidates = q.expect ('dbus-signal',
+            signal='RemoteCandidatesAdded', interface=cs.CALL_STREAM_ENDPOINT)
+        assertEquals (jt2.get_call_remote_transports_dbus(),
+            remote_candidates.args[0])
+
     endpoint.SetStreamState (cs.MEDIA_STREAM_STATE_CONNECTED,
         dbus_interface=cs.CALL_STREAM_ENDPOINT)
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list