summaryrefslogtreecommitdiffstats
path: root/tests/auto/platformsocketengine
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2010-12-10 15:18:24 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2010-12-10 15:18:24 (GMT)
commit4d86bacafad3b12ca01c20988bf578cde7bf3dae (patch)
treeaef233a4d486d8611cf12c82f77081ca110e9401 /tests/auto/platformsocketengine
parentcb7a89049f1e41edf02aaab56a00cef8c6005eba (diff)
downloadQt-4d86bacafad3b12ca01c20988bf578cde7bf3dae.zip
Qt-4d86bacafad3b12ca01c20988bf578cde7bf3dae.tar.gz
Qt-4d86bacafad3b12ca01c20988bf578cde7bf3dae.tar.bz2
Platform socket engine test fixes & update TODOs
Reviewed-by: Markus Goetz
Diffstat (limited to 'tests/auto/platformsocketengine')
-rw-r--r--tests/auto/platformsocketengine/tst_platformsocketengine.cpp25
1 files changed, 19 insertions, 6 deletions
diff --git a/tests/auto/platformsocketengine/tst_platformsocketengine.cpp b/tests/auto/platformsocketengine/tst_platformsocketengine.cpp
index a7b4235..2fb3724 100644
--- a/tests/auto/platformsocketengine/tst_platformsocketengine.cpp
+++ b/tests/auto/platformsocketengine/tst_platformsocketengine.cpp
@@ -213,9 +213,6 @@ void tst_PlatformSocketEngine::simpleConnectToIMAP()
//---------------------------------------------------------------------------
void tst_PlatformSocketEngine::udpLoopbackTest()
{
-#ifdef SYMBIAN_WINSOCK_CONNECTIVITY
- QSKIP("Not working on Emulator without WinPCAP", SkipAll);
-#endif
PLATFORMSOCKETENGINE udpSocket;
// Initialize device #1
@@ -264,9 +261,6 @@ void tst_PlatformSocketEngine::udpLoopbackTest()
//---------------------------------------------------------------------------
void tst_PlatformSocketEngine::udpIPv6LoopbackTest()
{
-#if defined(Q_OS_SYMBIAN)
- QSKIP("Symbian: IPv6 is not yet supported", SkipAll);
-#endif
PLATFORMSOCKETENGINE udpSocket;
// Initialize device #1
@@ -695,7 +689,18 @@ void tst_PlatformSocketEngine::receiveUrgentData()
// The server sends an urgent message
msg = 'Q';
+#if defined(Q_OS_SYMBIAN)
+ RSocket sock;
+ QVERIFY(QSymbianSocketManager::instance().lookupSocket(socketDescriptor, sock));
+ TRequestStatus stat;
+ TSockXfrLength len;
+ sock.Send(TPtrC8((TUint8*)&msg,1), KSockWriteUrgent, stat, len);
+ User::WaitForRequest(stat);
+ QVERIFY(stat == KErrNone);
+ QCOMPARE(len(), 1);
+#else
QCOMPARE(int(::send(socketDescriptor, &msg, sizeof(msg), MSG_OOB)), 1);
+#endif
// The client receives the urgent message
QVERIFY(client.waitForRead());
@@ -708,7 +713,15 @@ void tst_PlatformSocketEngine::receiveUrgentData()
// The client sends an urgent message
msg = 'T';
int clientDescriptor = client.socketDescriptor();
+#if defined(Q_OS_SYMBIAN)
+ QVERIFY(QSymbianSocketManager::instance().lookupSocket(clientDescriptor, sock));
+ sock.Send(TPtrC8((TUint8*)&msg,1), KSockWriteUrgent, stat, len);
+ User::WaitForRequest(stat);
+ QVERIFY(stat == KErrNone);
+ QCOMPARE(len(), 1);
+#else
QCOMPARE(int(::send(clientDescriptor, &msg, sizeof(msg), MSG_OOB)), 1);
+#endif
// The server receives the urgent message
QVERIFY(serverSocket.waitForRead());