diff options
author | kh1 <karsten.heimrich@digia.com> | 2014-06-19 13:10:57 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2014-06-23 15:08:05 +0200 |
commit | aca0e939b35053db96391629783d991a2e930b4f (patch) | |
tree | 8cdd3fa796a43ac76887952b12dcee11873ff9a7 /tests | |
parent | b3f0887216226dd641e4297ac660f49a5e97c57d (diff) |
Initialize both client and server with default values.
Change-Id: I51934b0de77b1062153f5f60be44d4bcf4be5ee5
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/installer/clientserver/tst_clientserver.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/auto/installer/clientserver/tst_clientserver.cpp b/tests/auto/installer/clientserver/tst_clientserver.cpp index e2c1d3ece..8cddb771c 100644 --- a/tests/auto/installer/clientserver/tst_clientserver.cpp +++ b/tests/auto/installer/clientserver/tst_clientserver.cpp @@ -39,6 +39,7 @@ ** **************************************************************************/ +#include <protocol.h> #include <qprocesswrapper.h> #include <qsettingswrapper.h> #include <remoteclient.h> @@ -62,7 +63,7 @@ private slots: void testServerConnection() { RemoteServer server; - server.init(39999, QHostAddress::LocalHost, RemoteServer::Debug); + server.init(39999, QHostAddress::LocalHost, Protocol::Mode::Debug); server.start(); QTcpSocket socket; @@ -73,18 +74,18 @@ private slots: void testClientConnection() { RemoteServer server; - server.init(39999, QHostAddress::LocalHost, RemoteServer::Debug); + server.init(39999, QHostAddress::LocalHost, Protocol::Mode::Debug); server.start(); QTcpSocket socket; - RemoteClient::instance().init(39999, QHostAddress::LocalHost, RemoteClient::Debug); + RemoteClient::instance().init(39999, QHostAddress::LocalHost, Protocol::Mode::Debug); QVERIFY2(RemoteClient::instance().connect(&socket), "Could not connect to server."); } void testQSettingsWrapper() { RemoteServer server; - server.init(39999, QHostAddress::LocalHost, RemoteServer::Debug); + server.init(39999, QHostAddress::LocalHost, Protocol::Mode::Debug); server.start(); QSettingsWrapper wrapper("digia", "clientserver"); @@ -200,7 +201,7 @@ private slots: void testQProcessWrapper() { RemoteServer server; - server.init(39999, QHostAddress::LocalHost, RemoteServer::Debug); + server.init(39999, QHostAddress::LocalHost, Protocol::Mode::Debug); server.start(); { @@ -297,7 +298,7 @@ private slots: void testRemoteFileEngine() { RemoteServer server; - server.init(39999, QHostAddress::LocalHost, RemoteServer::Debug); + server.init(39999, QHostAddress::LocalHost, Protocol::Mode::Debug); server.start(); QString filename; |