From ec837633231d0e9c0e70ca3c3d4ad7e1fa548623 Mon Sep 17 00:00:00 2001 From: Fabian Bumberger Date: Wed, 18 Sep 2013 17:23:16 +0200 Subject: Unify QBluetoothSoket, QBluetoothServer and QBluetoothServiceInfo protocol enum Change-Id: I6e66196a599e2cceabc7d93d728ba97361d8999f Reviewed-by: Alex Blasche --- tests/auto/qrfcommserver/tst_qrfcommserver.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/auto/qrfcommserver/tst_qrfcommserver.cpp') 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); -- cgit v1.2.3