[telepathy-gabble/master] Don't use the same codecs for audio and video in tests
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Thu Jun 25 09:59:37 PDT 2009
---
tests/twisted/jingle/initial-audio-video.py | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/tests/twisted/jingle/initial-audio-video.py b/tests/twisted/jingle/initial-audio-video.py
index bd63b5f..9602742 100644
--- a/tests/twisted/jingle/initial-audio-video.py
+++ b/tests/twisted/jingle/initial-audio-video.py
@@ -115,12 +115,15 @@ def check_iav(jt, q, conn, bus, stream, remote_handle, initial_audio,
if initial_video:
assertContains(cs.MEDIA_STREAM_TYPE_VIDEO, stream_handler_types)
- for p in stream_handler_paths:
+ for x in xrange (0, len(stream_handler_paths)):
+ p = stream_handler_paths[x]
+ t = stream_handler_types[x]
sh = make_channel_proxy(conn, p, 'Media.StreamHandler')
sh.NewNativeCandidate("fake", jt.get_remote_transports_dbus())
- # The codecs are wrong for video, but it's just an example. Gabble
- # doesn't care.
- sh.Ready(jt.get_audio_codecs_dbus())
+ if t == cs.MEDIA_STREAM_TYPE_AUDIO:
+ sh.Ready(jt.get_audio_codecs_dbus())
+ else:
+ sh.Ready(jt.get_video_codecs_dbus())
sh.StreamState(cs.MEDIA_STREAM_STATE_CONNECTED)
e = q.expect('stream-iq', predicate=lambda e:
--
1.5.6.5
More information about the telepathy-commits
mailing list