diff options
| author | Melvin Keskin <melvo@olomono.de> | 2022-01-08 08:26:46 +0000 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-01-15 14:04:15 +0100 |
| commit | fd11e024a6079be3e0bc62911b6e3070c7553224 (patch) | |
| tree | 199a3d658bc1641259faffd588534788fadb05dd /tests/qxmpppubsubmanager/tst_qxmpppubsubmanager.cpp | |
| parent | ee1ea9091f128164f91d29d7a3598d792326c1a7 (diff) | |
| download | qxmpp-fd11e024a6079be3e0bc62911b6e3070c7553224.tar.gz | |
Run 'clang-format' on all files
Diffstat (limited to 'tests/qxmpppubsubmanager/tst_qxmpppubsubmanager.cpp')
| -rw-r--r-- | tests/qxmpppubsubmanager/tst_qxmpppubsubmanager.cpp | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/tests/qxmpppubsubmanager/tst_qxmpppubsubmanager.cpp b/tests/qxmpppubsubmanager/tst_qxmpppubsubmanager.cpp index 90893333..1f17d870 100644 --- a/tests/qxmpppubsubmanager/tst_qxmpppubsubmanager.cpp +++ b/tests/qxmpppubsubmanager/tst_qxmpppubsubmanager.cpp @@ -50,7 +50,7 @@ public: struct Client { - Client() {} + Client() { } Client(const QString &jid) { test.configuration().setJid(jid); @@ -100,7 +100,7 @@ void tst_QXmppPubSubManager::testDiscoFeatures() { // so the coverage report is happy: PSManager manager; - QCOMPARE(manager.discoveryFeatures(), QStringList {"http://jabber.org/protocol/pubsub#rsm"}); + QCOMPARE(manager.discoveryFeatures(), QStringList { "http://jabber.org/protocol/pubsub#rsm" }); } void tst_QXmppPubSubManager::testFetchNodes() @@ -904,71 +904,71 @@ void tst_QXmppPubSubManager::testEventNotifications_data() QTest::addColumn<bool>("accepted"); QTest::addRow("default") - << QStringLiteral( - "<message from='pubsub.shakespeare.lit' to='francisco@denmark.lit' id='foo'>" - "<event xmlns='http://jabber.org/protocol/pubsub#event'>" - "<items node='princely_musings'>" - "<item id='ae890ac52d0df67ed7cfdf51b644e901'>" - "<entry xmlns='http://www.w3.org/2005/Atom'>" - "<title>Soliloquy</title>" - "<summary>" - "To be, or not to be: that is the question:" - "Whether 'tis nobler in the mind to suffer" - "The slings and arrows of outrageous fortune," - "Or to take arms against a sea of troubles," - "And by opposing end them?" - "</summary>" - "<link rel='alternate' type='text/html' href='http://denmark.lit/2003/12/13/atom03'/>" - "<id>tag:denmark.lit,2003:entry-32397</id>" - "<published>2003-12-13T18:30:02Z</published>" - "<updated>2003-12-13T18:30:02Z</updated>" - "</entry>" - "</item>" - "</items>" - "</event>" - "</message>") - << true; + << QStringLiteral( + "<message from='pubsub.shakespeare.lit' to='francisco@denmark.lit' id='foo'>" + "<event xmlns='http://jabber.org/protocol/pubsub#event'>" + "<items node='princely_musings'>" + "<item id='ae890ac52d0df67ed7cfdf51b644e901'>" + "<entry xmlns='http://www.w3.org/2005/Atom'>" + "<title>Soliloquy</title>" + "<summary>" + "To be, or not to be: that is the question:" + "Whether 'tis nobler in the mind to suffer" + "The slings and arrows of outrageous fortune," + "Or to take arms against a sea of troubles," + "And by opposing end them?" + "</summary>" + "<link rel='alternate' type='text/html' href='http://denmark.lit/2003/12/13/atom03'/>" + "<id>tag:denmark.lit,2003:entry-32397</id>" + "<published>2003-12-13T18:30:02Z</published>" + "<updated>2003-12-13T18:30:02Z</updated>" + "</entry>" + "</item>" + "</items>" + "</event>" + "</message>") + << true; QTest::addRow("additional-subelement") - << QStringLiteral( - "<message from='pubsub.shakespeare.lit' to='francisco@denmark.lit' id='foo'>" - "<always-store xmlns='hints2'/>" - "<event xmlns='http://jabber.org/protocol/pubsub#event'>" - "<items node='princely_musings'>" - "<item id='ae890ac52d0df67ed7cfdf51b644e901'>" - "<entry xmlns='http://www.w3.org/2005/Atom'>" - "<title>Soliloquy</title>" - "<summary>" - "To be, or not to be: that is the question:" - "Whether 'tis nobler in the mind to suffer" - "The slings and arrows of outrageous fortune," - "Or to take arms against a sea of troubles," - "And by opposing end them?" - "</summary>" - "<link rel='alternate' type='text/html' href='http://denmark.lit/2003/12/13/atom03'/>" - "<id>tag:denmark.lit,2003:entry-32397</id>" - "<published>2003-12-13T18:30:02Z</published>" - "<updated>2003-12-13T18:30:02Z</updated>" - "</entry>" - "</item>" - "</items>" - "</event>" - "</message>") - << true; + << QStringLiteral( + "<message from='pubsub.shakespeare.lit' to='francisco@denmark.lit' id='foo'>" + "<always-store xmlns='hints2'/>" + "<event xmlns='http://jabber.org/protocol/pubsub#event'>" + "<items node='princely_musings'>" + "<item id='ae890ac52d0df67ed7cfdf51b644e901'>" + "<entry xmlns='http://www.w3.org/2005/Atom'>" + "<title>Soliloquy</title>" + "<summary>" + "To be, or not to be: that is the question:" + "Whether 'tis nobler in the mind to suffer" + "The slings and arrows of outrageous fortune," + "Or to take arms against a sea of troubles," + "And by opposing end them?" + "</summary>" + "<link rel='alternate' type='text/html' href='http://denmark.lit/2003/12/13/atom03'/>" + "<id>tag:denmark.lit,2003:entry-32397</id>" + "<published>2003-12-13T18:30:02Z</published>" + "<updated>2003-12-13T18:30:02Z</updated>" + "</entry>" + "</item>" + "</items>" + "</event>" + "</message>") + << true; QTest::addRow("wrong-event-namespace") - << QStringLiteral( - "<message from='pubsub.shakespeare.lit' to='francisco@denmark.lit' id='foo'>" - "<always-store xmlns='hints2'/>" - "<event xmlns='pubsub2#event'>" - "<items node='princely_musings'>" - "<item id='ae890ac52d0df67ed7cfdf51b644e901'>" - "<entry xmlns='http://www.w3.org/2005/Atom'>" - "<title>Soliloquy</title>" - "</entry>" - "</item>" - "</items>" - "</event>" - "</message>") - << false; + << QStringLiteral( + "<message from='pubsub.shakespeare.lit' to='francisco@denmark.lit' id='foo'>" + "<always-store xmlns='hints2'/>" + "<event xmlns='pubsub2#event'>" + "<items node='princely_musings'>" + "<item id='ae890ac52d0df67ed7cfdf51b644e901'>" + "<entry xmlns='http://www.w3.org/2005/Atom'>" + "<title>Soliloquy</title>" + "</entry>" + "</item>" + "</items>" + "</event>" + "</message>") + << false; } void tst_QXmppPubSubManager::testEventNotifications() |
