From 6efebe555d30170c2ecfc2372113f342c513b0c2 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Fri, 30 Dec 2022 23:35:47 +0100 Subject: Replace QXmpp::SendError with QXmppError everywhere Part of #501. --- tests/qxmppclient/tst_qxmppclient.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/qxmppclient/tst_qxmppclient.cpp b/tests/qxmppclient/tst_qxmppclient.cpp index dc34dc71..d25fdda4 100644 --- a/tests/qxmppclient/tst_qxmppclient.cpp +++ b/tests/qxmppclient/tst_qxmppclient.cpp @@ -99,7 +99,7 @@ public: QFuture encryptMessage(QXmppMessage &&, const std::optional &) override { messageCalled = true; - return makeReadyFuture(QXmpp::SendError { "it's only a test", QXmpp::SendError::EncryptionError }); + return makeReadyFuture(QXmppError { "it's only a test", QXmpp::SendError::EncryptionError }); } QFuture decryptMessage(QXmppMessage &&) override { return {}; }; @@ -107,12 +107,12 @@ public: QFuture encryptIq(QXmppIq &&, const std::optional &) override { iqCalled = true; - return makeReadyFuture(QXmpp::SendError { "it's only a test", QXmpp::SendError::EncryptionError }); + return makeReadyFuture(QXmppError { "it's only a test", QXmpp::SendError::EncryptionError }); } QFuture decryptIq(const QDomElement &) override { - return makeReadyFuture(QXmpp::SendError { "it's only a test", QXmpp::SendError::EncryptionError }); + return makeReadyFuture(QXmppError { "it's only a test", QXmpp::SendError::EncryptionError }); } bool isEncrypted(const QDomElement &) override { return false; }; @@ -129,7 +129,7 @@ void tst_QXmppClient::testE2eeExtension() QVERIFY(encrypter.messageCalled); QVERIFY(!encrypter.iqCalled); QCoreApplication::processEvents(); - expectFutureVariant(result); + expectFutureVariant(result); encrypter.messageCalled = false; result = client.send(QXmppPresence(QXmppPresence::Available)); -- cgit v1.2.3