diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2013-09-18 17:23:16 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-20 10:09:12 +0200 |
commit | ec837633231d0e9c0e70ca3c3d4ad7e1fa548623 (patch) | |
tree | a33aa929e47e94fd6d91db9d047285818ee993a5 /tests/auto/qrfcommserver/tst_qrfcommserver.cpp | |
parent | 4a8fe389db0212eb6f85a49612ceddd56dd1aaf4 (diff) |
Unify QBluetoothSoket, QBluetoothServer and QBluetoothServiceInfo protocol enum
Change-Id: I6e66196a599e2cceabc7d93d728ba97361d8999f
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'tests/auto/qrfcommserver/tst_qrfcommserver.cpp')
-rw-r--r-- | tests/auto/qrfcommserver/tst_qrfcommserver.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qrfcommserver/tst_qrfcommserver.cpp b/tests/auto/qrfcommserver/tst_qrfcommserver.cpp index 3620600e..d8324c33 100644 --- a/tests/auto/qrfcommserver/tst_qrfcommserver.cpp +++ b/tests/auto/qrfcommserver/tst_qrfcommserver.cpp @@ -118,7 +118,7 @@ void tst_QRfcommServer::initTestCase() void tst_QRfcommServer::tst_construction() { { - QBluetoothServer server(QBluetoothServer::RfcommServer); + QBluetoothServer server(QBluetoothServiceInfo::RfcommProtocol); QVERIFY(!server.isListening()); QCOMPARE(server.maxPendingConnections(), 1); @@ -146,7 +146,7 @@ void tst_QRfcommServer::tst_listen() QFETCH(quint16, port); { - QBluetoothServer server(QBluetoothServer::RfcommServer); + QBluetoothServer server(QBluetoothServiceInfo::RfcommProtocol); qDebug() << "tst_listen() address=" << address.toString() << "port=" << port; bool result = server.listen(address, port); QTest::qWait(1000); @@ -193,7 +193,7 @@ void tst_QRfcommServer::tst_pendingConnections() { QFETCH(int, maxConnections); - QBluetoothServer server(QBluetoothServer::RfcommServer); + QBluetoothServer server(QBluetoothServiceInfo::RfcommProtocol); QBluetoothLocalDevice localDev; QBluetoothAddress address = localDev.address(); @@ -258,7 +258,7 @@ void tst_QRfcommServer::tst_receive() { QFETCH(QByteArray, expected); - QBluetoothServer server(QBluetoothServer::RfcommServer); + QBluetoothServer server(QBluetoothServiceInfo::RfcommProtocol); QBluetoothLocalDevice localDev; QBluetoothAddress address = localDev.address(); @@ -302,7 +302,7 @@ void tst_QRfcommServer::tst_receive() void tst_QRfcommServer::tst_secureFlags() { - QBluetoothServer server(QBluetoothServer::RfcommServer); + QBluetoothServer server(QBluetoothServiceInfo::RfcommProtocol); server.setSecurityFlags(QBluetooth::NoSecurity); QCOMPARE(server.securityFlags(), QBluetooth::NoSecurity); |