diff options
| author | Linus Jahn <lnj@kaidan.im> | 2021-07-23 21:00:05 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2021-08-01 17:30:45 +0200 |
| commit | 6b9e2c85f144a44a2b5b664ee6772ec09e1ccc60 (patch) | |
| tree | 3f80c76a1511f2c7f057725f685ec7a72d35edd7 /tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp | |
| parent | 6766329e35adb6803d8dc1bb92e0b6d243dad466 (diff) | |
| download | qxmpp-6b9e2c85f144a44a2b5b664ee6772ec09e1ccc60.tar.gz | |
tests: TestClient: Add both QString & QByteArray packet injection
Diffstat (limited to 'tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp')
| -rw-r--r-- | tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp b/tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp index 43dfd836..676b000c 100644 --- a/tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp +++ b/tests/qxmppdiscoverymanager/tst_qxmppdiscoverymanager.cpp @@ -40,7 +40,7 @@ void tst_QXmppDiscoveryManager::testInfo() auto future = discoManager->requestDiscoInfo("user@example.org"); test.expect("<iq id='qxmpp1' to='user@example.org' type='get'><query xmlns='http://jabber.org/protocol/disco#info'/></iq>"); - test.inject(R"( + test.inject<QString>(R"( <iq id='qxmpp1' from='user@example.org' type='result'> <query xmlns='http://jabber.org/protocol/disco#info'> <identity category='pubsub' type='service'/> @@ -64,7 +64,7 @@ void tst_QXmppDiscoveryManager::testItems() auto future = discoManager->requestDiscoItems("user@example.org"); test.expect("<iq id='qxmpp1' to='user@example.org' type='get'><query xmlns='http://jabber.org/protocol/disco#items'/></iq>"); qDebug() << "Moin"; - test.inject(R"( + test.inject<QString>(R"( <iq type='result' from='user@example.org' id='qxmpp1'> |
