qt6-bb10/tests/auto/network/access/qnetworkreply
Marc Mutz c35eff2ace Add qtest_network.h
... and move toString() implementations there which were repeated in
network tests, or #ifdef'ed in qtest.h.

Since the functions moved from network tests are now in a public header,
had to massage them a bit to pass headersclean:

- replace Q_FOREACH with C++11 range-for
- avoid implicit conversion from QByteArray -> const char* (done by
  re-using toString(QByteArray) instead of calling strdup() manually)

Also made the functions overloads instead of specializations. This
allows to pass the enum by value instead of by const-&.

Like the existing QHostAddress, the newly-added toString() overloads are
marked as \internal. We can decide later whether to turn them into
public API.

Change-Id: I8c23db7a0a6575273567017d42d7b2a957acece8
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
2016-09-29 21:46:19 +00:00
..
certs
echo Updated license headers 2016-01-21 18:55:18 +00:00
test Modularize configure.json/.pri 2016-09-15 08:23:53 +00:00
.gitattributes
.gitignore
BLACKLIST tst_QNetworkReply: Un-blacklist recently fixed test. 2016-05-25 11:12:00 +00:00
bigfile
element.xml qnetworkreplyfileimpl: set attributes if file was sent 2015-05-04 11:20:40 +00:00
empty
image1.jpg
image2.jpg
image3.jpg
index.html
qnetworkreply.pro QtNetwork: Remove Windows CE. 2016-03-29 20:28:18 +00:00
qnetworkreply.qrc
resource
rfc3252.txt
smb-file.txt
tst_qnetworkreply.cpp Add qtest_network.h 2016-09-29 21:46:19 +00:00