diff options
| author | Melvin Keskin <melvo@olomono.de> | 2022-09-21 14:14:43 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-09-25 14:14:26 +0200 |
| commit | f762f730b5adf769a55434e7786b56f3d092b662 (patch) | |
| tree | cde1b296b312140d23ca4e96bc6a7f4a95006ffa /tests | |
| parent | 3bd90b240c2692f6654fb0967556caeacf478f5a (diff) | |
| download | qxmpp-f762f730b5adf769a55434e7786b56f3d092b662.tar.gz | |
Implement XEP-0167: Jingle RTP Sessions multiplexing
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/qxmppjingleiq/tst_qxmppjingleiq.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/qxmppjingleiq/tst_qxmppjingleiq.cpp b/tests/qxmppjingleiq/tst_qxmppjingleiq.cpp index 4f207ca2..8f2e5ab0 100644 --- a/tests/qxmppjingleiq/tst_qxmppjingleiq.cpp +++ b/tests/qxmppjingleiq/tst_qxmppjingleiq.cpp @@ -60,6 +60,7 @@ void tst_QXmppJingleIq::testContent() const QByteArray xml( "<content creator=\"initiator\" name=\"voice\">" "<description xmlns=\"urn:xmpp:jingle:apps:rtp:1\" media=\"audio\">" + "<rtcp-mux/>" "<payload-type id=\"96\"/>" "<payload-type id=\"97\"/>" "</description>" @@ -88,6 +89,7 @@ void tst_QXmppJingleIq::testContent() QVERIFY(content1.name().isEmpty()); QVERIFY(content1.descriptionMedia().isEmpty()); QCOMPARE(content1.descriptionSsrc(), quint32(0)); + QVERIFY(!content1.isRtpMultiplexingSupported()); QCOMPARE(content1.payloadTypes().size(), 0); QVERIFY(content1.transportUser().isEmpty()); QVERIFY(content1.transportPassword().isEmpty()); @@ -98,6 +100,7 @@ void tst_QXmppJingleIq::testContent() QCOMPARE(content1.name(), QStringLiteral("voice")); QCOMPARE(content1.descriptionMedia(), QStringLiteral("audio")); QCOMPARE(content1.descriptionSsrc(), quint32(0)); + QVERIFY(content1.isRtpMultiplexingSupported()); QCOMPARE(content1.payloadTypes().size(), 2); QCOMPARE(content1.payloadTypes().at(0).id(), quint8(96)); QCOMPARE(content1.payloadTypes().at(1).id(), quint8(97)); @@ -113,6 +116,7 @@ void tst_QXmppJingleIq::testContent() content2.setName(QStringLiteral("voice")); content2.setDescriptionMedia(QStringLiteral("audio")); content2.setDescriptionSsrc(quint32(0)); + content2.setRtpMultiplexingSupported(true); QXmppJinglePayloadType payloadType1; payloadType1.setId(quint8(96)); content2.setPayloadTypes({ payloadType1 }); @@ -132,6 +136,7 @@ void tst_QXmppJingleIq::testContent() QCOMPARE(content2.name(), QStringLiteral("voice")); QCOMPARE(content2.descriptionMedia(), QStringLiteral("audio")); QCOMPARE(content2.descriptionSsrc(), quint32(0)); + QVERIFY(content2.isRtpMultiplexingSupported()); QCOMPARE(content2.payloadTypes().size(), 2); QCOMPARE(content2.payloadTypes().at(0).id(), quint8(96)); QCOMPARE(content2.payloadTypes().at(1).id(), quint8(97)); |
