aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/shared/testhttpserver.h
diff options
context:
space:
mode:
authorJonas Gastal <jgastal@gmail.com>2013-02-10 01:31:51 -0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-07 02:14:33 +0200
commit0ba38b84b606c09b803b4645897528cb17b22f93 (patch)
tree0d9516f682bf5f77382eb5913cbb6124fde35033 /tests/auto/shared/testhttpserver.h
parentcd4820fbbe1bd1d8a3ba74fcfc91c4264682b602 (diff)
Make TestHTTPServer header comparison order independent.
The order of headers in an HTTP request is irrelevant and program behavior should not depend on it. Change-Id: I77e1b6265ceed8a38f04e425ba8e6eb70b5227f1 Reviewed-by: Richard J. Moore <rich@kde.org> Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Diffstat (limited to 'tests/auto/shared/testhttpserver.h')
-rw-r--r--tests/auto/shared/testhttpserver.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/shared/testhttpserver.h b/tests/auto/shared/testhttpserver.h
index 15e08afd0c..ce0501f170 100644
--- a/tests/auto/shared/testhttpserver.h
+++ b/tests/auto/shared/testhttpserver.h
@@ -81,7 +81,10 @@ private:
QHash<QTcpSocket *, QByteArray> dataCache;
QList<QPair<QTcpSocket *, QByteArray> > toSend;
- QByteArray waitData;
+ struct WaitData {
+ QList <QByteArray>headers;
+ QByteArray body;
+ } waitData;
QByteArray replyData;
QByteArray bodyData;
bool m_hasFailed;