7#include <QtTest/qtest.h>
15#pragma qt_class(QtTestNetwork)
18#include <QtNetwork/QHostAddress>
19#include <QtNetwork/QNetworkCookie>
20#include <QtNetwork/QNetworkReply>
24#pragma qt_no_master_include
34 switch (
addr.protocol()) {
36 return qstrdup(
"<unknown address (parse error)>");
38 return qstrdup(
"QHostAddress::Any");
50 int index =
mo->indexOfEnumerator(
"NetworkError");
68 result +=
"QNetworkCookie(" + cookie.toRawForm() +
"), ";
static constexpr auto IPv4Protocol
static constexpr auto UnknownNetworkLayerProtocol
static constexpr auto AnyIPProtocol
static constexpr auto IPv6Protocol
void chop(qsizetype n)
Removes n bytes from the end of the byte array.
The QHostAddress class provides an IP address.
bool isEmpty() const noexcept
The QNetworkCookie class holds one network cookie.
QByteArray toRawForm(RawForm form=Full) const
Returns the raw form of this QNetworkCookie.
NetworkError
Indicates all possible error conditions found during the processing of the request.
Combined button and popup list for selecting options.
char * toString(const MyPoint &point)
char * toString< QHostAddress >(const QHostAddress &addr)
Q_CORE_EXPORT char * qstrdup(const char *)