[telepathy-gabble/master] Test calling CodecsUpdated before SupportedCodecs
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Mon May 11 09:45:13 PDT 2009
Older gabble versions were triggered into sending description-info before
accepting a call if CodecsUpdated was called before SupportedCodecs
---
tests/twisted/jingle/test-description-info.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/jingle/test-description-info.py b/tests/twisted/jingle/test-description-info.py
index 853dffa..82a817d 100644
--- a/tests/twisted/jingle/test-description-info.py
+++ b/tests/twisted/jingle/test-description-info.py
@@ -95,6 +95,15 @@ def test(q, bus, conn, stream, send_early_description_info=False):
stream_handler.Ready(local_codecs_dbus)
stream_handler.StreamState(cs.MEDIA_STREAM_STATE_CONNECTED)
+ stream_handler.CodecsUpdated(local_codecs_dbus)
+
+ local_codecs = [('GSM', 3, 8000, {}),
+ ('PCMA', 8, 8000, {'gstreamer':'rock on'}),
+ ('PCMU', 0, 8000, {}) ]
+ local_codecs_dbus = jt2.dbusify_codecs_with_params(local_codecs)
+ stream_handler.CodecsUpdated(local_codecs_dbus)
+
+
# First IQ is transport-info; also, we expect to be told what codecs the
# other end wants.
e, src = q.expect_many(
--
1.5.6.5
More information about the telepathy-commits
mailing list