equal
deleted
inserted
replaced
383 QTest::addColumn<int>("statusCode"); |
383 QTest::addColumn<int>("statusCode"); |
384 QTest::addColumn<QString>("statusString"); |
384 QTest::addColumn<QString>("statusString"); |
385 QTest::addColumn<int>("contentLength"); |
385 QTest::addColumn<int>("contentLength"); |
386 QTest::addColumn<int>("downloadSize"); |
386 QTest::addColumn<int>("downloadSize"); |
387 |
387 |
388 QTest::newRow("success-internal") << "http://" << QtNetworkSettings::serverName() << "/cgi-bin/echo.cgi" << ushort(80) << false << "7 bytes" << 200 << "OK" << 7 << 7; |
388 QTest::newRow("success-internal") << "http://" << QtNetworkSettings::serverName() << "/qtest/cgi-bin/echo.cgi" << ushort(80) << false << "7 bytes" << 200 << "OK" << 7 << 7; |
389 QTest::newRow("failure-internal") << "http://" << QtNetworkSettings::serverName() << "/t" << ushort(80) << false << "Hello World" << 404 << "Not Found" << -1 << 997 + QtNetworkSettings::serverName().size(); |
389 QTest::newRow("failure-internal") << "http://" << QtNetworkSettings::serverName() << "/t" << ushort(80) << false << "Hello World" << 404 << "Not Found" << -1 << 997 + QtNetworkSettings::serverName().size(); |
390 } |
390 } |
391 |
391 |
392 void tst_QHttpNetworkConnection::post() |
392 void tst_QHttpNetworkConnection::post() |
393 { |
393 { |
799 // send 100 requests. apache will usually force-close after 100 requests in a single tcp connection |
799 // send 100 requests. apache will usually force-close after 100 requests in a single tcp connection |
800 QTest::addColumn<int>("requestCount"); |
800 QTest::addColumn<int>("requestCount"); |
801 |
801 |
802 QTest::newRow("6 connections, no pipelining, 100 requests") << quint16(6) << false << 100; |
802 QTest::newRow("6 connections, no pipelining, 100 requests") << quint16(6) << false << 100; |
803 QTest::newRow("1 connection, no pipelining, 100 requests") << quint16(1) << false << 100; |
803 QTest::newRow("1 connection, no pipelining, 100 requests") << quint16(1) << false << 100; |
804 QTest::newRow("6 connections, pipelining allowed, 100 requests") << quint16(2) << true << 100; |
804 QTest::newRow("6 connections, pipelining allowed, 100 requests") << quint16(6) << true << 100; |
805 QTest::newRow("1 connection, pipelining allowed, 100 requests") << quint16(1) << true << 100; |
805 QTest::newRow("1 connection, pipelining allowed, 100 requests") << quint16(1) << true << 100; |
806 } |
806 } |
807 |
807 |
808 void tst_QHttpNetworkConnection::getMultiple() |
808 void tst_QHttpNetworkConnection::getMultiple() |
809 { |
809 { |