aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-05-06 16:38:47 +0200
committerLinus Jahn <lnj@kaidan.im>2022-08-14 17:32:53 +0200
commitb6d341f649dd12cd884d43fc6d21dfa8f1bdac95 (patch)
treed9321abdf97c0fff647b8bdc9ecb2ce4dcf9fda6 /tests
parentc89d39d66affd6a1c2a299ca424deaf88ea17ba9 (diff)
downloadqxmpp-b6d341f649dd12cd884d43fc6d21dfa8f1bdac95.tar.gz
Message: Add isCarbonForwarded attribute
It's now also possible to see which messages were carbon forwarded when using the CarbonManagerV2.
Diffstat (limited to 'tests')
-rw-r--r--tests/qxmppcarbonmanager/tst_qxmppcarbonmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/qxmppcarbonmanager/tst_qxmppcarbonmanager.cpp b/tests/qxmppcarbonmanager/tst_qxmppcarbonmanager.cpp
index 5db736f3..c167586a 100644
--- a/tests/qxmppcarbonmanager/tst_qxmppcarbonmanager.cpp
+++ b/tests/qxmppcarbonmanager/tst_qxmppcarbonmanager.cpp
@@ -28,6 +28,7 @@ void compareMessages(const QXmppMessage &lhs, const QXmppMessage &rhs)
QCOMPARE(lhs.thread(), rhs.thread());
QCOMPARE(lhs.stamp(), rhs.stamp());
QCOMPARE(lhs.type(), rhs.type());
+ QCOMPARE(lhs.isCarbonForwarded(), rhs.isCarbonForwarded());
}
class QXmppCarbonTestHelper : public QObject
@@ -243,6 +244,7 @@ void tst_QXmppCarbonManager::testHandleStanza()
if (!forwardedxml.isEmpty()) {
parsePacket(expectedMessage, forwardedxml);
}
+ expectedMessage.setCarbonForwarded(true);
{
m_helper.m_expectedMessage = expectedMessage;