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/util.h | |
| parent | 6766329e35adb6803d8dc1bb92e0b6d243dad466 (diff) | |
| download | qxmpp-6b9e2c85f144a44a2b5b664ee6772ec09e1ccc60.tar.gz | |
tests: TestClient: Add both QString & QByteArray packet injection
Diffstat (limited to 'tests/util.h')
| -rw-r--r-- | tests/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/util.h b/tests/util.h index dc36e7af..035c8293 100644 --- a/tests/util.h +++ b/tests/util.h @@ -38,7 +38,8 @@ if (!QTest::qVerify(statement, #statement, description, __FILE__, __LINE__)) \ return {}; -inline QDomElement xmlToDom(const QByteArray &xml) +template<typename String> +inline QDomElement xmlToDom(const String &xml) { QDomDocument doc; QVERIFY_RV(doc.setContent(xml, true), "XML is not valid"); |
