From 57f1b775197aed1d32e98b0299c0999339a7d5f6 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sun, 2 Feb 2020 18:14:27 +0100 Subject: Run clang-format also on all cpp files --- tests/qxmppmixitem/tst_qxmppmixitem.cpp | 62 +++++++++++++++------------------ 1 file changed, 28 insertions(+), 34 deletions(-) (limited to 'tests/qxmppmixitem/tst_qxmppmixitem.cpp') diff --git a/tests/qxmppmixitem/tst_qxmppmixitem.cpp b/tests/qxmppmixitem/tst_qxmppmixitem.cpp index 2120aa74..bfb4004e 100644 --- a/tests/qxmppmixitem/tst_qxmppmixitem.cpp +++ b/tests/qxmppmixitem/tst_qxmppmixitem.cpp @@ -43,22 +43,21 @@ void tst_QXmppMixItem::testInfo() { const QByteArray xml( "" - "" - "urn:xmpp:mix:core:1" - "" - "" - "Witches Coven" - "" - "" - "A location not far from the blasted heath where the " - "three witches meet" - "" - "" - "greymalkin@shakespeare.example" - "joan@shakespeare.example" - "" - "" - ); + "" + "urn:xmpp:mix:core:1" + "" + "" + "Witches Coven" + "" + "" + "A location not far from the blasted heath where the " + "three witches meet" + "" + "" + "greymalkin@shakespeare.example" + "joan@shakespeare.example" + "" + ""); QXmppMixInfoItem item; parsePacket(item, xml); @@ -88,22 +87,20 @@ void tst_QXmppMixItem::testIsInfoItem() const QByteArray xmlCorrect( "" - "" - "urn:xmpp:mix:core:1" - "" - "" - ); + "" + "urn:xmpp:mix:core:1" + "" + ""); QCOMPARE(doc.setContent(xmlCorrect, true), true); element = doc.documentElement(); QVERIFY(QXmppMixInfoItem::isMixChannelInfo(element)); const QByteArray xmlWrong( "" - "" - "other:namespace" - "" - "" - ); + "" + "other:namespace" + "" + ""); QCOMPARE(doc.setContent(xmlWrong, true), true); element = doc.documentElement(); QVERIFY(!QXmppMixInfoItem::isMixChannelInfo(element)); @@ -113,10 +110,9 @@ void tst_QXmppMixItem::testParticipant() { const QByteArray xml( "" - "hag66@shakespeare.example" - "thirdwitch" - "" - ); + "hag66@shakespeare.example" + "thirdwitch" + ""); QXmppMixParticipantItem item; parsePacket(item, xml); @@ -141,16 +137,14 @@ void tst_QXmppMixItem::testIsParticipantItem() const QByteArray xmlCorrect( "" - "" - ); + ""); QCOMPARE(doc.setContent(xmlCorrect, true), true); element = doc.documentElement(); QVERIFY(QXmppMixParticipantItem::isMixParticipantItem(element)); const QByteArray xmlWrong( "" - "" - ); + ""); QCOMPARE(doc.setContent(xmlWrong, true), true); element = doc.documentElement(); QVERIFY(!QXmppMixParticipantItem::isMixParticipantItem(element)); -- cgit v1.2.3