aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelvin Keskin <melvo@olomono.de>2022-09-30 19:42:39 +0200
committerLinus Jahn <lnj@kaidan.im>2022-10-01 14:55:40 +0200
commitd757ce3bf70058a7b4a0570b6b440de30b692b21 (patch)
tree59c4efd6e9ffac4eaebb22689f7e7840d2fbd5b6
parent977501afcbabb79d2677bff823ae33e2af8a8cd3 (diff)
downloadqxmpp-d757ce3bf70058a7b4a0570b6b440de30b692b21.tar.gz
tests: JingleIq: Improve testing RTP Feedback Negotiation
-rw-r--r--tests/qxmppjingleiq/tst_qxmppjingleiq.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/qxmppjingleiq/tst_qxmppjingleiq.cpp b/tests/qxmppjingleiq/tst_qxmppjingleiq.cpp
index 7982c93e..b245a21d 100644
--- a/tests/qxmppjingleiq/tst_qxmppjingleiq.cpp
+++ b/tests/qxmppjingleiq/tst_qxmppjingleiq.cpp
@@ -142,6 +142,9 @@ void tst_QXmppJingleIq::testRtpFeedbackProperty()
property2.setType(QStringLiteral("nack"));
property2.setSubtype(QStringLiteral("sli"));
+ QCOMPARE(property1.type(), QStringLiteral("nack"));
+ QCOMPARE(property1.subtype(), QStringLiteral("sli"));
+
serializePacket(property2, xml);
}
@@ -175,7 +178,6 @@ void tst_QXmppJingleIq::testRtpFeedbackPropertyWithParameters()
property2.setParameters({ parameter1, parameter2 });
- QCOMPARE(property2.type(), QStringLiteral("test-type"));
QCOMPARE(property2.parameters().size(), 2);
QCOMPARE(property2.parameters().at(0).name(), QStringLiteral("test-name-1"));
QCOMPARE(property2.parameters().at(1).name(), QStringLiteral("test-name-2"));
@@ -221,6 +223,8 @@ void tst_QXmppJingleIq::testRtpFeedbackInterval()
QXmppJingleRtpFeedbackInterval interval2;
interval2.setValue(100);
+ QCOMPARE(interval1.value(), uint64_t(100));
+
serializePacket(interval2, xml);
}