aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2019-10-20 16:53:00 +0200
committerLNJ <lnj@kaidan.im>2019-10-21 15:39:33 +0200
commit4af8f27d6bcbb44d349f4637d4653ac6ca3de09c (patch)
treedd7e842ec7dc8f2ab3c39b8a2ff573f67728f7bd /tests
parent99e39f422a27bd24d1d39a86137438d31f4ec01e (diff)
downloadqxmpp-4af8f27d6bcbb44d349f4637d4653ac6ca3de09c.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/qxmpprosteriq/tst_qxmpprosteriq.cpp42
1 files changed, 0 insertions, 42 deletions
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(
- "<iq from=\"juliet@example.com/balcony\" "
- "type=\"get\">"
- "<query xmlns=\"jabber:iq:roster\">"
- "<annotate xmlns=\"urn:xmpp:mix:roster:0\"/>"
- "</query>"
- "</iq>"
- );
-
- 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(
- "<item jid=\"balcony@example.net\">"
- "<channel xmlns=\"urn:xmpp:mix:roster:0\" participant-id=\"123456\"/>"
- "</item>"
- );
-
- 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"