Skip to content

Commit

Permalink
tests: jinglemessageinitm: Fix using QXmppConstants
Browse files Browse the repository at this point in the history
QXmppConstants is private and must not be used in the unit tests. This
fixes e.g. the windows build.
  • Loading branch information
lnjX committed Feb 3, 2024
1 parent 4a9ef27 commit c93e87f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later

#include "QXmppClient.h"
#include "QXmppConstants_p.h"
#include "QXmppJingleMessageInitiationManager.h"
#include "QXmppMessage.h"
#include "QXmppUtils.h"
Expand All @@ -16,6 +15,8 @@ using Jmi = QXmppJingleMessageInitiation;
using JmiType = QXmppJingleMessageInitiationElement::Type;
using Result = QXmppJingleMessageInitiation::Result;

constexpr QStringView ns_jingle_rtp = u"urn:xmpp:jingle:apps:rtp:1";

class tst_QXmppJingleMessageInitiationManager : public QObject
{
Q_OBJECT
Expand Down Expand Up @@ -255,7 +256,7 @@ void tst_QXmppJingleMessageInitiationManager::testPropose()
QXmppJingleDescription description;
description.setMedia(QStringLiteral("audio"));
description.setSsrc(123);
description.setType(ns_jingle_rtp);
description.setType(ns_jingle_rtp.toString());

connect(&m_logger, &QXmppLogger::message, this, [&, jid, description](QXmppLogger::MessageType type, const QString &text) {
if (type == QXmppLogger::SentMessage) {
Expand Down

0 comments on commit c93e87f

Please sign in to comment.