From 4af8f27d6bcbb44d349f4637d4653ac6ca3de09c Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sun, 20 Oct 2019 16:53:00 +0200 Subject: Revert "Implement MIX-PAM XEP-0405: Roster IQ extension" This reverts commit 740a085ef7ac707e2cc2217edf02e296c3f7692e. There were talks on the standards mailing list that the XEP will be changed and a private PEP node is used for distributing joined channels. Also no server (that I am aware of) supports the MIX roster extension, so I think it is the best we remove before the next release, so we do not have problems with deprecations and ABI compatibility. --- tests/qxmpprosteriq/tst_qxmpprosteriq.cpp | 42 ------------------------------- 1 file changed, 42 deletions(-) (limited to 'tests') diff --git a/tests/qxmpprosteriq/tst_qxmpprosteriq.cpp b/tests/qxmpprosteriq/tst_qxmpprosteriq.cpp index 33d511b5..f8db1dea 100644 --- a/tests/qxmpprosteriq/tst_qxmpprosteriq.cpp +++ b/tests/qxmpprosteriq/tst_qxmpprosteriq.cpp @@ -34,8 +34,6 @@ private slots: void testItem(); void testVersion_data(); void testVersion(); - void testMixAnnotate(); - void testMixChannel(); }; void tst_QXmppRosterIq::testItem_data() @@ -116,45 +114,5 @@ void tst_QXmppRosterIq::testVersion() serializePacket(iq, xml); } -void tst_QXmppRosterIq::testMixAnnotate() -{ - const QByteArray xml( - "" - "" - "" - "" - "" - ); - - QXmppRosterIq iq; - parsePacket(iq, xml); - QCOMPARE(iq.mixAnnotate(), true); - serializePacket(iq, xml); - - iq.setMixAnnotate(false); - QCOMPARE(iq.mixAnnotate(), false); -} - -void tst_QXmppRosterIq::testMixChannel() -{ - const QByteArray xml( - "" - "" - "" - ); - - QXmppRosterIq::Item item; - parsePacket(item, xml); - QCOMPARE(item.isMixChannel(), true); - QCOMPARE(item.mixParticipantId(), QString("123456")); - serializePacket(item, xml); - - item.setIsMixChannel(false); - QCOMPARE(item.isMixChannel(), false); - item.setMixParticipantId("23a7n"); - QCOMPARE(item.mixParticipantId(), QString("23a7n")); -} - QTEST_MAIN(tst_QXmppRosterIq) #include "tst_qxmpprosteriq.moc" -- cgit v1.2.3