summaryrefslogtreecommitdiffstats
path: root/tests/auto/shared/httpserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/shared/httpserver.h')
-rw-r--r--tests/auto/shared/httpserver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/shared/httpserver.h b/tests/auto/shared/httpserver.h
index 57f824bb5..9764852de 100644
--- a/tests/auto/shared/httpserver.h
+++ b/tests/auto/shared/httpserver.h
@@ -76,6 +76,8 @@ public:
// Full URL for given relative path
Q_INVOKABLE QUrl url(const QString &path = QStringLiteral("/")) const;
+ Q_INVOKABLE void setResourceDirs(const QStringList &dirs) { m_dirs = dirs; }
+
Q_SIGNALS:
// Emitted after a HTTP request has been successfully parsed.
void newRequest(HttpReqRep *reqRep);
@@ -86,6 +88,7 @@ private Q_SLOTS:
private:
QTcpServer *m_tcpServer;
QUrl m_url;
+ QStringList m_dirs;
bool m_error = false;
bool m_expectingError = false;
};