summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2019-05-20 16:05:14 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2019-07-08 12:12:57 +0200
commit8436fa30af3a74ca6bceefd88915f514ca9749d7 (patch)
tree35111878ed276c7064057082804912c6d9416fb4 /src/network
parent006baa1c6007abc2c11dc20433f6eeef4cb9cfe7 (diff)
Add manual test for QNetwork{Connection|Status}Monitor
Simplistic console application with one test for each of the two classes. Simply tests that we receive the signal when the connection is disrupted in some way. This patch also exports the classes for tests/developer builds so that we can actually link with them. Change-Id: I8066312274350984110c3f3ad3e94854adca7c2a Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/kernel/qnetconmonitor_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/kernel/qnetconmonitor_p.h b/src/network/kernel/qnetconmonitor_p.h
index b26c8e5457..282bac5081 100644
--- a/src/network/kernel/qnetconmonitor_p.h
+++ b/src/network/kernel/qnetconmonitor_p.h
@@ -61,7 +61,7 @@
QT_BEGIN_NAMESPACE
class QNetworkConnectionMonitorPrivate;
-class QNetworkConnectionMonitor : public QObject
+class Q_AUTOTEST_EXPORT QNetworkConnectionMonitor : public QObject
{
Q_OBJECT
@@ -91,7 +91,7 @@ private:
};
class QNetworkStatusMonitorPrivate;
-class QNetworkStatusMonitor : public QObject
+class Q_AUTOTEST_EXPORT QNetworkStatusMonitor : public QObject
{
Q_OBJECT