[telepathy-gabble/master] Test for SetRemoteCodecs etc. for all streams
Will Thompson
will.thompson at collabora.co.uk
Wed Sep 2 10:51:27 PDT 2009
This catches a bug in our Google Talk interop, where we ignored either
the audio or video codecs in their session accept.
---
tests/twisted/jingle/initial-audio-video.py | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/jingle/initial-audio-video.py b/tests/twisted/jingle/initial-audio-video.py
index 73c17b3..4c31a46 100644
--- a/tests/twisted/jingle/initial-audio-video.py
+++ b/tests/twisted/jingle/initial-audio-video.py
@@ -4,9 +4,12 @@ exposing the initial contents of incoming calls as values of InitialAudio and
InitialVideo
"""
+import operator
+
from servicetest import (
assertContains, assertEquals, assertLength,
wrap_channel, EventPattern, call_async, make_channel_proxy,
+ tp_path_prefix,
)
from jingletest2 import JingleTest2, test_all_dialects
@@ -131,6 +134,17 @@ def check_iav(jt, q, conn, bus, stream, remote_handle, initial_audio,
predicate=jt.jp.action_predicate('session-initiate'))
jt.parse_session_initiate (e.query)
+ jt.accept()
+
+ events = reduce(operator.concat,
+ [ [ EventPattern('dbus-signal', signal='SetRemoteCodecs',
+ path=p[len(tp_path_prefix):]),
+ EventPattern('dbus-signal', signal='SetStreamPlaying',
+ path=p[len(tp_path_prefix):]),
+ ] for p in stream_handler_paths
+ ], [])
+ q.expect_many(*events)
+
chan.Close()
def incoming(jp, q, bus, conn, stream):
--
1.5.6.5
More information about the telepathy-commits
mailing list