diff --git a/tests/qxmpppubsubmanager/tst_qxmpppubsubmanager.cpp b/tests/qxmpppubsubmanager/tst_qxmpppubsubmanager.cpp index f7f57f9d1..8cc636f4f 100644 --- a/tests/qxmpppubsubmanager/tst_qxmpppubsubmanager.cpp +++ b/tests/qxmpppubsubmanager/tst_qxmpppubsubmanager.cpp @@ -25,8 +25,8 @@ using PSManager = QXmppPubSubManager; using Affiliation = QXmppPubSubAffiliation; using AffiliationType = QXmppPubSubAffiliation::Affiliation; -const char *ns_pubsub = "http://jabber.org/protocol/pubsub"; -const char *ns_pubsub_auto_create = "http://jabber.org/protocol/pubsub#auto-create"; +const char *XMLNS_PUBSUB = "http://jabber.org/protocol/pubsub"; +const char *XMLNS_PUBSUB_AUTO_CREATE = "http://jabber.org/protocol/pubsub#auto-create"; class TestEventManager : public QXmppClientExtension, public QXmppPubSubEventHandler { @@ -148,7 +148,7 @@ void tst_QXmppPubSubManager::testRequestFeatures() "")); auto features = expectFutureVariant>(future); - QCOMPARE(features, (QVector { ns_pubsub, ns_pubsub_auto_create })); + QCOMPARE(features, (QVector { XMLNS_PUBSUB, XMLNS_PUBSUB_AUTO_CREATE })); future = psManager->requestFeatures("juliet@capulet.lit"); test.expect(QStringLiteral("" @@ -162,7 +162,7 @@ void tst_QXmppPubSubManager::testRequestFeatures() "")); features = expectFutureVariant>(future); - QCOMPARE(features, (QVector { ns_pubsub, ns_pubsub_auto_create })); + QCOMPARE(features, (QVector { XMLNS_PUBSUB, XMLNS_PUBSUB_AUTO_CREATE })); future = psManager->requestFeatures("juliet@capulet.lit", QXmppPubSubManager::PubSub); test.expect(QStringLiteral("" @@ -189,7 +189,7 @@ void tst_QXmppPubSubManager::testRequestFeatures() "")); features = expectFutureVariant>(future); - QCOMPARE(features, (QVector { ns_pubsub, ns_pubsub_auto_create })); + QCOMPARE(features, (QVector { XMLNS_PUBSUB, XMLNS_PUBSUB_AUTO_CREATE })); future = psManager->requestFeatures("pubsub.shakespeare.lit", QXmppPubSubManager::Pep); test.expect(QStringLiteral("" @@ -216,7 +216,7 @@ void tst_QXmppPubSubManager::testRequestFeatures() "")); features = expectFutureVariant>(future); - QCOMPARE(features, (QVector { ns_pubsub, ns_pubsub_auto_create })); + QCOMPARE(features, (QVector { XMLNS_PUBSUB, XMLNS_PUBSUB_AUTO_CREATE })); } void tst_QXmppPubSubManager::testRequestPepFeatures() @@ -236,7 +236,7 @@ void tst_QXmppPubSubManager::testRequestPepFeatures() "")); auto features = expectFutureVariant>(future); - QCOMPARE(features, (QVector { ns_pubsub, ns_pubsub_auto_create })); + QCOMPARE(features, (QVector { XMLNS_PUBSUB, XMLNS_PUBSUB_AUTO_CREATE })); } void tst_QXmppPubSubManager::testFetchNodes()