aboutsummaryrefslogtreecommitdiff
path: root/tests/TestClient.h
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2021-07-23 21:00:05 +0200
committerLinus Jahn <lnj@kaidan.im>2021-08-01 17:30:45 +0200
commit6b9e2c85f144a44a2b5b664ee6772ec09e1ccc60 (patch)
tree3f80c76a1511f2c7f057725f685ec7a72d35edd7 /tests/TestClient.h
parent6766329e35adb6803d8dc1bb92e0b6d243dad466 (diff)
downloadqxmpp-6b9e2c85f144a44a2b5b664ee6772ec09e1ccc60.tar.gz
tests: TestClient: Add both QString & QByteArray packet injection
Diffstat (limited to 'tests/TestClient.h')
-rw-r--r--tests/TestClient.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/TestClient.h b/tests/TestClient.h
index d11e1398..2dda4055 100644
--- a/tests/TestClient.h
+++ b/tests/TestClient.h
@@ -54,7 +54,8 @@ public:
{
}
- void inject(const QByteArray &xml)
+ template<typename String>
+ void inject(const String &xml)
{
d->stream->handleIqResponse(xmlToDom(xml));
QCoreApplication::processEvents();