aboutsummaryrefslogtreecommitdiff
path: root/tests/qxmppmessage/tst_qxmppmessage.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-12-26 21:35:16 +0100
committerLinus Jahn <lnj@kaidan.im>2022-12-26 22:00:07 +0100
commit46995fd3fd7da4d1b035f71a1279c041b2871ffd (patch)
tree788517dbefa88fc1680b05a97e84f0e1d7403815 /tests/qxmppmessage/tst_qxmppmessage.cpp
parent71442ab927cd5c1c235528442fe3706f33e7ff6e (diff)
downloadqxmpp-46995fd3fd7da4d1b035f71a1279c041b2871ffd.tar.gz
Disable Qt keywords completely
Previously we had the policy that no qt keywords were allowed in headers that may be included by users. However since there was no automatic test verifying that in some places keywords were still used. This now disables qt keywords completely, also in tests and examples. Qt keywords are in general no good or really good idea as they even conflict with the standard library (`emit` at least). In some cases in the examples I just removed the slot tag if the functions didn't need to be slots (anymore). Closes #503.
Diffstat (limited to 'tests/qxmppmessage/tst_qxmppmessage.cpp')
-rw-r--r--tests/qxmppmessage/tst_qxmppmessage.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/tests/qxmppmessage/tst_qxmppmessage.cpp b/tests/qxmppmessage/tst_qxmppmessage.cpp
index ee964a4c..deca437e 100644
--- a/tests/qxmppmessage/tst_qxmppmessage.cpp
+++ b/tests/qxmppmessage/tst_qxmppmessage.cpp
@@ -22,42 +22,42 @@ class tst_QXmppMessage : public QObject
{
Q_OBJECT
-private slots:
- void testBasic_data();
- void testBasic();
- void testIsXmppStanza();
- void testUnknownXExtension();
- void testMessageAttention();
- void testMessageReceipt();
- void testDelay_data();
- void testDelay();
- void testDelayWithMultipleStamp();
- void testExtendedAddresses();
- void testMucInvitation();
- void testState_data();
- void testState();
- void testXhtml();
- void testSubextensions();
- void testChatMarkers();
- void testPrivateMessage();
- void testOutOfBandUrl();
- void testMessageCorrect();
- void testMessageAttaching();
- void testMix();
- void testEme();
- void testSpoiler();
- void testProcessingHints();
- void testBobData();
- void testFallbackIndication();
- void testStanzaIds();
- void testSlashMe_data();
- void testSlashMe();
- void testMixInvitation();
- void testTrustMessageElement();
- void testReaction();
- void testE2eeFallbackBody();
- void testFileSharing();
- void testEncryptedFileSource();
+private:
+ Q_SLOT void testBasic_data();
+ Q_SLOT void testBasic();
+ Q_SLOT void testIsXmppStanza();
+ Q_SLOT void testUnknownXExtension();
+ Q_SLOT void testMessageAttention();
+ Q_SLOT void testMessageReceipt();
+ Q_SLOT void testDelay_data();
+ Q_SLOT void testDelay();
+ Q_SLOT void testDelayWithMultipleStamp();
+ Q_SLOT void testExtendedAddresses();
+ Q_SLOT void testMucInvitation();
+ Q_SLOT void testState_data();
+ Q_SLOT void testState();
+ Q_SLOT void testXhtml();
+ Q_SLOT void testSubextensions();
+ Q_SLOT void testChatMarkers();
+ Q_SLOT void testPrivateMessage();
+ Q_SLOT void testOutOfBandUrl();
+ Q_SLOT void testMessageCorrect();
+ Q_SLOT void testMessageAttaching();
+ Q_SLOT void testMix();
+ Q_SLOT void testEme();
+ Q_SLOT void testSpoiler();
+ Q_SLOT void testProcessingHints();
+ Q_SLOT void testBobData();
+ Q_SLOT void testFallbackIndication();
+ Q_SLOT void testStanzaIds();
+ Q_SLOT void testSlashMe_data();
+ Q_SLOT void testSlashMe();
+ Q_SLOT void testMixInvitation();
+ Q_SLOT void testTrustMessageElement();
+ Q_SLOT void testReaction();
+ Q_SLOT void testE2eeFallbackBody();
+ Q_SLOT void testFileSharing();
+ Q_SLOT void testEncryptedFileSource();
};
void tst_QXmppMessage::testBasic_data()