summaryrefslogtreecommitdiffstats
path: root/tests/auto/qnetworkreply
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2010-02-15 13:22:59 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2010-02-16 09:26:46 (GMT)
commit435fa2dbc44868f6ac81956be82631a2040ed1cc (patch)
treed55bc6485394354611119adf6b54ce98388c423a /tests/auto/qnetworkreply
parent20c00cc256c4c588fdf137de13bdc83d4eb3cc8f (diff)
downloadQt-435fa2dbc44868f6ac81956be82631a2040ed1cc.zip
Qt-435fa2dbc44868f6ac81956be82631a2040ed1cc.tar.gz
Qt-435fa2dbc44868f6ac81956be82631a2040ed1cc.tar.bz2
QNAM HTTP: Unify socket EOF handling a bit
Reviewed-by: Peter Hartmann
Diffstat (limited to 'tests/auto/qnetworkreply')
-rw-r--r--tests/auto/qnetworkreply/tst_qnetworkreply.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qnetworkreply/tst_qnetworkreply.cpp b/tests/auto/qnetworkreply/tst_qnetworkreply.cpp
index eec4797..5fecc86 100644
--- a/tests/auto/qnetworkreply/tst_qnetworkreply.cpp
+++ b/tests/auto/qnetworkreply/tst_qnetworkreply.cpp
@@ -2034,6 +2034,11 @@ void tst_QNetworkReply::ioGetFromHttpBrokenServer_data()
QTest::newRow("invalid-version+disconnect") << QByteArray("HTTP/123 200 ") << true;
QTest::newRow("invalid-version2+disconnect") << QByteArray("HTTP/a.\033 200 ") << true;
QTest::newRow("invalid-reply-code+disconnect") << QByteArray("HTTP/1.0 fuu ") << true;
+
+ QTest::newRow("immediate disconnect") << QByteArray("") << true;
+ QTest::newRow("justHalfStatus+disconnect") << QByteArray("HTTP/1.1") << true;
+ QTest::newRow("justStatus+disconnect") << QByteArray("HTTP/1.1 200 OK\r\n") << true;
+ QTest::newRow("justStatusAndHalfHeaders+disconnect") << QByteArray("HTTP/1.1 200 OK\r\nContent-L") << true;
}
void tst_QNetworkReply::ioGetFromHttpBrokenServer()