[Telepathy-commits] [telepathy-gabble/master] use SupportedCodecs signal in jingle tests

Senko Rasic senko.rasic at collabora.co.uk
Tue Dec 2 04:34:12 PST 2008


---
 tests/twisted/jingle/test-content-complex.py   |    3 +++
 tests/twisted/jingle/test-dialects-incoming.py |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/jingle/test-content-complex.py b/tests/twisted/jingle/test-content-complex.py
index 5195f8f..e35d342 100644
--- a/tests/twisted/jingle/test-content-complex.py
+++ b/tests/twisted/jingle/test-content-complex.py
@@ -98,6 +98,9 @@ def worker(jp, q, bus, conn, stream):
     # stream.send(gabbletest.make_result_iq(stream, e.stanza))
     stream.send(jp.xml(jp.ResultIq('test at localhost', e.stanza, [])))
 
+    # S-E reports codec intersection, after which gabble can send acceptance
+    stream_handler.SupportedCodecs(jt2.get_audio_codecs_dbus())
+
     # Second one is session-accept
     e = q.expect('stream-iq')
     assert jp.match_jingle_action(e.query, 'session-accept')
diff --git a/tests/twisted/jingle/test-dialects-incoming.py b/tests/twisted/jingle/test-dialects-incoming.py
index 40823a8..8c95d90 100644
--- a/tests/twisted/jingle/test-dialects-incoming.py
+++ b/tests/twisted/jingle/test-dialects-incoming.py
@@ -86,6 +86,9 @@ def worker(jp, q, bus, conn, stream):
     # stream.send(gabbletest.make_result_iq(stream, e.stanza))
     stream.send(jp.xml(jp.ResultIq('test at localhost', e.stanza, [])))
 
+    # Set codec intersection so gabble can accept the session
+    stream_handler.SupportedCodecs(jt2.get_audio_codecs_dbus())
+
     # Second one is session-accept
     e = q.expect('stream-iq')
     assert jp.match_jingle_action(e.query, 'session-accept')
-- 
1.5.6.5




More information about the Telepathy-commits mailing list