summaryrefslogtreecommitdiffstats
path: root/tests/manual/socketengine
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-09-27 19:53:01 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-29 06:41:42 +0200
commit95cebd34ebc5b4d39b11dc91610309a35e488663 (patch)
tree90ceffef5acea093dd2b8f8f7e8c30593023b85a /tests/manual/socketengine
parentab061e3e436fab35eac8666f3e950e98f66c4d3e (diff)
Remove Symbian-specific code from tests.
Symbian is not a supported platform for Qt5, so this code is no longer required. Change-Id: I1172e6a42d518490e63e9599bf10579df08259aa Reviewed-on: http://codereview.qt-project.org/5657 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/manual/socketengine')
-rw-r--r--tests/manual/socketengine/main.cpp34
-rw-r--r--tests/manual/socketengine/socketengine.pro2
2 files changed, 0 insertions, 36 deletions
diff --git a/tests/manual/socketengine/main.cpp b/tests/manual/socketengine/main.cpp
index 8406a129e2..36c233a5c9 100644
--- a/tests/manual/socketengine/main.cpp
+++ b/tests/manual/socketengine/main.cpp
@@ -63,36 +63,6 @@ int main(int argc, char**argv)
{
QCoreApplication app(argc, argv);
-#ifdef Q_OS_SYMBIAN
- QNetworkConfigurationManager configurationManager;
- QNetworkConfiguration configuration = configurationManager.defaultConfiguration();
- if (!configuration.isValid()) {
- qDebug() << "Got an invalid session configuration";
- exit(1);
- }
-
- qDebug() << "Opening session...";
- QNetworkSession *session = new QNetworkSession(configuration);
-
- // Does not work:
-// session->open();
-// session->waitForOpened();
-
- // works:
- QEventLoop loop;
- QObject::connect(session, SIGNAL(opened()), &loop, SLOT(quit()), Qt::QueuedConnection);
- QMetaObject::invokeMethod(session, "open", Qt::QueuedConnection);
- loop.exec();
-
-
- if (session->isOpen()) {
- qDebug() << "session opened";
- } else {
- qDebug() << "session could not be opened -" << session->errorString();
- exit(1);
- }
-#endif
-
// create it
QAbstractSocketEngine *socketEngine =
QAbstractSocketEngine::createSocketEngine(QAbstractSocket::TcpSocket, QNetworkProxy(QNetworkProxy::NoProxy), 0);
@@ -131,11 +101,7 @@ int main(int argc, char**argv)
bzero(buf, bufsize);
ret = socketEngine->read(buf, available);
if (ret > 0) {
-#ifdef Q_OS_SYMBIAN
- qDebug() << buf; //printf goes only to screen, this goes to remote debug channel
-#else
printf("%s", buf);
-#endif
} else {
// some failure when reading
exit(1);
diff --git a/tests/manual/socketengine/socketengine.pro b/tests/manual/socketengine/socketengine.pro
index 76a40be8e3..96d00555e4 100644
--- a/tests/manual/socketengine/socketengine.pro
+++ b/tests/manual/socketengine/socketengine.pro
@@ -9,7 +9,5 @@ QT += network
CONFIG += release
-symbian: TARGET.CAPABILITY = NetworkServices
-
# Input
SOURCES += main.cpp