summaryrefslogtreecommitdiffstats
path: root/tests/auto/qnetworkreply
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge remote branch 'earth/master' into symbian-socket-engineShane Kearns2011-03-254-29/+527
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/network/access/qhttpnetworkconnectionchannel.cpp src/network/socket/qlocalsocket.cpp src/s60installs/bwins/QtCoreu.def src/s60installs/bwins/QtGuiu.def src/s60installs/bwins/QtTestu.def src/s60installs/eabi/QtCoreu.def src/s60installs/eabi/QtGuiu.def
| * | | network API: add support for HTTP multipart messagesPeter Hartmann2011-03-224-0/+343
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds two new classes, QHttpPart and QHttpMultiPart, and two new overloads to QNetworkAccessManager: post(const QNetworkRequest &request, QHttpMultiPart *multiPart) and put(const QNetworkRequest &request, QHttpMultiPart *multiPart). With those classes, it is possible to do a HTTP POST with a multipart message in a memory-saving way: The data from the parts is not copied when read from a file or another QIODevice. Reviewed-by: Markus Goetz Task-number: QTBUG-6222
| * | | QNAM HTTP: Fix bug with explicitly zero-length compressed responses.Andreas Kling2011-03-221-0/+21
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | In the case of a response with e.g content-encoding "gzip" and content-length "0", the HTTP backend would incorrectly fall back to the "unspecified length" code path and wait for readyRead() forever. Task-number: QTBUG-18232 Reviewed-by: Markus Goetz
| * | Merge branch 4.7 into qt-master-from-4.7Qt Continuous Integration System2011-03-181-21/+146
| |\ \ | | |/
| | * Fix accidental population of the disk cache with partial contentSimon Hausmann2011-03-171-0/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since the disk cache does not support partial content, we should not try to store it in the cache altogether. Done-with: Jocelyn Turcotte Reviewed-by: Markus Goetz Reviewed-by: Peter Hartmann
| | * Fix disk cache interaction for range retrieval HTTP requests.Simon Hausmann2011-03-171-21/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The disk cache API does not currently support retrieving partial content, it can only serve entire files. Therefore we disable the use of the cache for these kinds of requests, as indicated by the presence of the Range header field. Done-with: Jocelyn Turcotte Reviewed-by: Markus Goetz Reviewed-by: Peter Hartmann
| * | Merge remote-tracking branch 'origin/4.7' into HEADThiago Macieira2011-03-161-7/+17
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure mkspecs/symbian-gcce/qmake.conf qmake/generators/metamakefile.cpp qmake/generators/win32/mingw_make.cpp src/corelib/global/global.pri src/corelib/global/qglobal.h src/opengl/qgl.cpp src/opengl/qwindowsurface_gl.cpp src/plugins/platforms/wayland/qwaylandbuffer.h tests/auto/qnetworkreply/tst_qnetworkreply.cpp tools/designer/src/components/formeditor/qdesigner_resource.cpp
| | * QNAM HTTP: error() in case connection is closed unexpectedlyMarkus Goetz2011-03-141-7/+17
| | | | | | | | | | | | | | | | | | Task-number: QT-4658 Task-number: QT-3494 Reviewed-by: Peter Hartmann
| * | tst_qnetworkreply: fix MiniHttpServer crashMartin Petersson2011-03-101-1/+0
| | | | | | | | | | | | Reviewed-by: Markus Goetz
* | | tst_qnetworkreply: Use proper Content-TypeMarkus Goetz2011-03-231-3/+16
| | | | | | | | | | | | Reviewed-by: Peter Hartmann
* | | Fix bugs in tst_qnetworkreplyShane Kearns2011-03-231-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It used a unix way to delete local servers. Changed this to the cross platform QLocalServer::removeServer API It reported XPASS on symbian due to SRCDIR being a relative path not absolute. (added a check for this, as SRCDIR could be relative on windows) Also fixed a couple of compiler warnings Reviewed-by: Martin Petersson
* | | tst_QNetworkReply::ioGetFromBuiltinHttp issuesShane Kearns2011-03-151-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | The https:limited subtest was too slow and didn't fail in the expected place (it was expected to be too fast) Both limited test cases timed out when debug enabled in the socket engine, so the timeout is increased from 11->30 seconds Reviewed-by: Markus Goetz
* | | Move some network tests from gui.pro to network.proShane Kearns2011-03-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These network tests have no dependency on the QtGui dll, so I have moved them to the network autotest group. In some cases this was not stated in the tests' .pro files. The gui autotest group still has a network test (qtcpsocket), but this has a dependency on QtGui for one test case (which uses QMessageBox) Reviewed-by: Markus Goetz
* | | Merge branch 'symbian-socket-engine' of ↵Shane Kearns2011-03-082-12/+67
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | scm.dev.troll.no:qt/qt-symbian-network into symbian-socket-engine Conflicts: src/network/access/qnetworkaccessmanager.cpp tests/auto/qsslsocket/tst_qsslsocket.cpp
| * | Merge remote branch 'qt/master' into symbian-socket-engineShane Kearns2011-02-072-12/+24
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/network/access/qnetworkaccessmanager.cpp src/network/bearer/qnetworksession.cpp src/network/kernel/qnetworkproxy_symbian.cpp src/network/socket/qnativesocketengine_unix.cpp tests/auto/platformsocketengine/tst_platformsocketengine.cpp
| * | | Fix some qnetworkreply test cases for symbianShane Kearns2011-01-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The unreachable IP test needs a longer timeout than on desktops. The manual construction of a file:// URL was incorrect in the case where SRCDIR is "." - this is changed to the recommended QUrl::fromLocalFile API. Reviewed-by: Markus Goetz
| * | | qnetworkreply test stability on symbianShane Kearns2011-01-251-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The first few tests could randomly timeout due to delays in starting the WLAN connection. This is addressed by opening the default bearer in initTestCase, and closing it in cleanupTestCase. This will keep the connection active for the duration of the test, instead of activating/deactivating continuously. The first SSL test could randomly timeout due to the delay in fetching the CA certificates from the system (which can be very slow on some phones / SIM cards). This is addressed by preloading them in initTestCase - all the tests will then get system SSL certs from the cache. Reviewed-by: Markus Goetz
| * | | Fix crashes in httpProxyCommandsSynchronous test caseShane Kearns2011-01-211-9/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to a race condition, the test could fail before its QThread had even started, resulting in a crash during thread startup. This is addressed using a semaphore to synchronise startup & ensure the sub thread is running before continuing the test. Additionally, if the test failed the QThread would be destroyed while still running, which according to the documentation will cause crashes. This is addressed using QScopedPointer to clean up when the test exits early due to failure. Reviewed-by: Markus Goetz
| * | | Test case fixes for QNetworkReplyShane Kearns2011-01-172-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Increase maximum heap, as FTP large file test was running out 2. Add an additional QVERIFY so that a test fails instead of suffering an assertion failure in case no data is received. Reviewed-by: Markus Goetz
* | | | tst_qnetworkreply: fix the MiniHttpServer.Martin Petersson2011-02-241-1/+5
| | | | | | | | | | | | | | | | Reviewed-by: Markus Goetz
* | | | tst_qnetworkreply: getErrors() only ignore warning for the specific testMartin Petersson2011-02-241-1/+6
| | | | | | | | | | | | | | | | Reviewed-by: Markus Goetz
* | | | tst_qnetworkreply: small improvementsMartin Petersson2011-02-241-10/+15
| | | | | | | | | | | | | | | | Reviewed-by: Markus Goetz
* | | | tst_qnetworkreply: Add a test for broken gzip encodingMarkus Goetz2011-02-241-0/+27
| | | |
* | | | tst_qnetworkreply: Skip known to be broken setReadBufferSize testingMarkus Goetz2011-02-211-2/+4
| | | | | | | | | | | | | | | | Reviewed-by: Martin Petersson
* | | | QNAM HTTP: Define SynchronousRequestAttribute instead of enum hackMarkus Goetz2011-02-211-15/+13
| | | | | | | | | | | | | | | | Reviewed-by: Peter Hartmann
* | | | tst_qnetworkreply: Fixes for building without SSL supportMarkus Goetz2011-02-211-0/+6
| | | |
* | | | tst_qnetworkreply: Use proper test server hostnameMarkus Goetz2011-02-071-1/+1
| | | | | | | | | | | | | | | | Reviewed-by: Martin Petersson
* | | | tst_qnetworkreply: Some additionsMarkus Goetz2011-02-041-1/+15
| | | |
* | | | tst_qnetworkreply: Relax a conditionMarkus Goetz2011-02-041-10/+6
| |/ / |/| | | | | | | | | | | With the different buffers in Qt and the OS, we relax a condition for now.
* | | Merge branch 4.7 into qt-master-from-4.7Qt Continuous Integration System2011-01-261-10/+20
|\ \ \ | | |/ | |/|
| * | add autotest for digest authenticationPeter Hartmann2011-01-251-10/+20
| | | | | | | | | | | | | | | Reviewed-by: Markus Goetz Task-number: QTBUG-15070
* | | Merge remote branch 'origin/4.7' into qt-master-from-4.7Olivier Goffart2011-01-172-2/+4
|\ \ \ | |/ / | | / | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: examples/webkit/imageanalyzer/imageanalyzer.h examples/webkit/imageanalyzer/mainwindow.h mkspecs/unsupported/qws/linux-x86-openkode-g++/qplatformdefs.h src/corelib/io/qfsfileengine_iterator_unix.cpp src/corelib/io/qfsfileengine_iterator_win.cpp src/corelib/kernel/qcoreapplication.cpp src/network/access/qnetworkaccessdatabackend.cpp src/plugins/bearer/connman/qconnmanservice_linux.cpp src/plugins/platforms/openvglite/qwindowsurface_vglite.h src/s60installs/bwins/QtCoreu.def src/s60installs/eabi/QtCoreu.def src/s60installs/s60installs.pro tools/assistant/tools/assistant/helpviewer_qwv.h tools/qdoc3/test/qt-html-templates.qdocconf
| * Update copyright year to 2011.Jason McDonald2011-01-102-2/+2
| | | | | | | | Reviewed-by: Trust Me
| * tst_qnetworkreply: Add EXPECT_FAIL for ioGetFromBuiltinHttpMarkus Goetz2011-01-071-0/+2
| | | | | | | | Reviewed-by: Peter Hartmann
| * Revert "Fix QNetworkReply autotest cases for QT-3494"Markus Goetz2011-01-071-13/+9
| | | | | | | | | | We don't think this is the right fix. This reverts commit 5d18d393808d7a4be56eb00ab9f1e9cda9e211c9.
| * Fix QNetworkReply autotest cases for QT-3494Ville Pernu2010-12-311-9/+13
| | | | | | | | | | | | | | | | | | These fixes add a new QTest columns to cases tst_QNetworkReply:: ioGetFromHttpStatus100_data and tst_QNetworkReply::ioGetFromHttpNoHeaders. Each test row now has an expected error message per input data string. Task-Number: QT-3494 Reviewed-By: Perttu Pohjonen
| * Fix compilation of qnetworkreply test with namespaces.Olivier Goffart2010-12-091-2/+2
| |
* | Fix compilation of qnetworkreply test with namespaces.Olivier Goffart2010-12-101-2/+2
| | | | | | | | (cherry picked from commit e195adf461ae81f1fedd75cc8907f823edd1f8f7)
* | Merge remote branch 'origin/4.7' into qt-master-from-4.7Olivier Goffart2010-12-061-16/+490
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: configure qmake/generators/win32/msbuild_objectmodel.cpp src/gui/image/qpnghandler.cpp src/network/access/qnetworkaccessdatabackend.cpp src/opengl/qgl_x11egl.cpp tests/auto/qnetworkreply/tst_qnetworkreply.cpp
| * QNetworkReply autotest: fix possible crashPeter Hartmann2010-11-261-0/+1
| | | | | | | | | | | | ... by waiting for the thread to finish. Reviewed-by: Markus Goetz
| * QNetworkAccessManager: enable synchronous HTTP callsPeter Hartmann2010-11-231-17/+489
| | | | | | | | | | | | | | | | | | | | | | | | | | To enable synchronous calls, an attribute in the QNetworkRequest has to be set. If set, when QNetworkAccessManager::get() (and post(), put()) returns, the reply is finished and all data has been read in case of success. This feature is semi-public for now (usable, but not documented). To enable this, an attribute in the QNetworkRequest must be set. If this attribute is set, we open a new connection to the server with only one channel and call the channels' sockets' waitFor* methods. Reviewed-by: Markus Goetz
* | Merge remote branch 'origin/4.7' into qt-master-from-4.7Olivier Goffart2010-11-191-17/+39
|\ \ | |/ | | | | | | | | | | | | | | | | | | Conflicts: qmake/generators/win32/msbuild_objectmodel.cpp src/gui/kernel/qgesturemanager.cpp tools/qdoc3/test/qt-build-docs.qdocconf tools/qdoc3/test/qt.qdocconf Changes in qmake/generators/win32/msvc_objectmodel.cpp come from commit 4ba3dadcae97bfde6216c32cfa339f8f0e0253c7
| * tst_qnetworkreply: Fix ugly testMarkus Goetz2010-11-171-17/+17
| | | | | | | | | | | | | | | | | | Properly use the event loop. Signals have to be connected directly after using the get() method of QNetworkAccessManager. Else they might have already been emitted while the event loop was spinning. Reviewed-by: Peter Hartmann
| * QNAM HTTP: Ignore double content-length headersMarkus Goetz2010-11-131-0/+22
| | | | | | | | | | Task-number: QTBUG-15311 Reviewed-by: ogoffart
* | Merge branch 4.7 into qt-master-from-4.7Qt Continuous Integration System2010-11-061-0/+81
|\ \ | |/
| * tst_qnetworkreply: New HTTP test with AuthenticationReuseAttributeMarkus Goetz2010-11-051-0/+29
| |
| * tst_qnetworkreply: One more HTTP test using setReadBufferSize()Markus Goetz2010-11-051-0/+52
| | | | | | | | Task-number: QTBUG-13431
* | Merge remote branch 'origin/4.7' into qt-master-from-4.7Olivier Goffart2010-11-051-4/+5
|\ \ | |/ | | | | | | | | Conflicts: mkspecs/features/symbian/symbian_building.prf src/network/access/qhttpnetworkconnectionchannel.cpp
| * QNAM HTTP: Download last chunk properly when readBufferSize() limitedMarkus Goetz2010-11-041-4/+5
| | | | | | | | | | | | Task-number: QTBUG-13431 Task-number: QTBUG-6276 Reviewed-by: ogoffart
* | Merge branch 4.7 into qt-master-from-4.7Qt Continuous Integration System2010-11-041-0/+32
|\ \ | |/