diff options
author | Senko Rasic <senko.rasic@collabora.co.uk> | 2010-02-22 09:37:50 +0100 |
---|---|---|
committer | Senko Rasic <senko.rasic@collabora.co.uk> | 2010-02-22 09:40:44 +0100 |
commit | 6735c9737e81b1293a91f408f3118306a04cbfc7 (patch) | |
tree | 9b93dcc4e4aca99c4ed377038d7498c498df31d0 | |
parent | ca98be6ea749fed8a5863073ec8e4e9906a0a94d (diff) |
tests: assert that modifying unsignalled content doesn't result in a crash
-rw-r--r-- | tests/twisted/jingle/test-content-adding-removal.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/twisted/jingle/test-content-adding-removal.py b/tests/twisted/jingle/test-content-adding-removal.py index 12aa4d62d..aee9a1d4c 100644 --- a/tests/twisted/jingle/test-content-adding-removal.py +++ b/tests/twisted/jingle/test-content-adding-removal.py @@ -55,6 +55,12 @@ def test(jp, q, bus, conn, stream, peer_removes_final_content): stream_handler2 = make_channel_proxy(conn, e.args[0], 'Media.StreamHandler') stream_handler2.NewNativeCandidate("fake", jt.get_remote_transports_dbus()) + # Before the CM can initiate session, we modify a stream direction. This + # should result in a no-op since there's no need to inform the peer of + # change. + chan.StreamedMedia.RequestStreamDirection(stream_id2, + cs.MEDIA_STREAM_DIRECTION_RECEIVE) + # We set both streams as ready, which will trigger the session initiate stream_handler.Ready(jt.get_audio_codecs_dbus()) stream_handler.StreamState(cs.MEDIA_STREAM_STATE_CONNECTED) |