From 44cbba5d6538b998b5b5fbb4264d78ab135f669f Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 27 Aug 2015 16:08:07 +0200 Subject: add method to parse SDP to QXmppJingleIq::Content --- tests/qxmppjingleiq/tst_qxmppjingleiq.cpp | 105 ++++++++++++++++++++++++------ 1 file changed, 84 insertions(+), 21 deletions(-) (limited to 'tests') diff --git a/tests/qxmppjingleiq/tst_qxmppjingleiq.cpp b/tests/qxmppjingleiq/tst_qxmppjingleiq.cpp index f73f32e2..ad20e083 100644 --- a/tests/qxmppjingleiq/tst_qxmppjingleiq.cpp +++ b/tests/qxmppjingleiq/tst_qxmppjingleiq.cpp @@ -32,6 +32,7 @@ class tst_QXmppJingleIq : public QObject private slots: void testCandidate(); void testRtpSession(); + void testRtpSessionSdp(); void testSession(); void testTerminate(); void testAudioPayloadType(); @@ -69,24 +70,6 @@ void tst_QXmppJingleIq::testCandidate() void tst_QXmppJingleIq::testRtpSession() { - const QString sdp( - "v=0\r\n" - "o=- NTPSTAMP NTPSTAMP IN IP4 0.0.0.0\r\n" - "s=-\r\n" - "t=0 0\r\n" - "m=audio 8998 RTP/AVP 96 97 18 0 103 98\r\n" - "c=IN IP4 10.0.1.1\r\n" - "a=rtpmap:96 speex/16000\r\n" - "a=rtpmap:97 speex/8000\r\n" - "a=rtpmap:18 G729/0\r\n" - "a=rtpmap:0 PCMU/0\r\n" - "a=rtpmap:103 L16/16000/2\r\n" - "a=rtpmap:98 x-ISAC/8000\r\n" - "a=candidate:1 1 udp 2130706431 10.0.1.1 8998 typ host generation 0\r\n" - "a=candidate:2 1 udp 1694498815 192.0.2.3 45664 typ host generation 0\r\n" - "a=ice-ufrag:8hhy\r\n" - "a=ice-pwd:asd88fgpdd777uzjYhagZg\r\n"); - const QByteArray xml( "