diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-04-27 11:10:28 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-04-28 12:42:08 +0000 |
commit | 934f5c522e5e73c1e8964acd3a9208b7b8606071 (patch) | |
tree | 7360a907be870ece3256aeb2f9419e1ed9127d95 /tests/bttestui | |
parent | 5d0f3f8b1fa24936d8f193b680d7b7ea0237c366 (diff) |
Increase test coverage in bttestui
QBluetoothSocket::connectDevice(QBluetoothServiceInfo, OpenMode)
was not used so far. This call is even more efficient as it can avoid
a complete service discovery. In summary quicker testing can be
achieved.
Change-Id: I6f9ef9eec6b773b9b90bf46e24a07878d81633cd
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'tests/bttestui')
-rw-r--r-- | tests/bttestui/btlocaldevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bttestui/btlocaldevice.cpp b/tests/bttestui/btlocaldevice.cpp index 5fb031fa..eead1e46 100644 --- a/tests/bttestui/btlocaldevice.cpp +++ b/tests/bttestui/btlocaldevice.cpp @@ -416,7 +416,7 @@ void BtLocalDevice::connectToServiceViaSearch() socket->setPreferredSecurityFlags(securityFlags); QBluetoothServiceInfo info = foundTestServers.at(0); - socket->connectToService(info.device().address(), QBluetoothUuid(QString(TEST_SERVICE_UUID))); + socket->connectToService(info); } else { qWarning() << "Perform search for test service before triggering this function"; } |