From 6b9e2c85f144a44a2b5b664ee6772ec09e1ccc60 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Fri, 23 Jul 2021 21:00:05 +0200 Subject: tests: TestClient: Add both QString & QByteArray packet injection --- tests/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/util.h') 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 +inline QDomElement xmlToDom(const String &xml) { QDomDocument doc; QVERIFY_RV(doc.setContent(xml, true), "XML is not valid"); -- cgit v1.2.3