diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2019-04-17 09:25:57 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2019-05-07 12:24:47 +0000 |
commit | 76b6b0544fa71372e98a76a96a9f9b300bb67b7e (patch) | |
tree | f5436dea7dcaa91a537dcbdc01e50863de6878fd /tests/auto/qbluetoothdeviceinfo | |
parent | 23ab3c692c9be5e086f1c0f0ce615480a41eccb6 (diff) | |
download | qtconnectivity-76b6b0544fa71372e98a76a96a9f9b300bb67b7e.tar.gz |
Remove usage of deprecated QBluetoothServiceInfo::DataComplete
The related functions were deprecated by fac56a229b45395488f3e41bf178361c72b3ee1e.
Change-Id: Ia94b1824bb6ea7d1a8e3bb8eb5e82074e9facb7a
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests/auto/qbluetoothdeviceinfo')
-rw-r--r-- | tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp index 6636f0cd..d8c80291 100644 --- a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp +++ b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp @@ -447,21 +447,15 @@ void tst_QBluetoothDeviceInfo::tst_serviceUuids() QBluetoothDeviceInfo deviceInfo; QBluetoothDeviceInfo copyInfo = deviceInfo; - QList<QBluetoothUuid> servicesList; + QVector<QBluetoothUuid> servicesList; servicesList.append(QBluetoothUuid::L2cap); servicesList.append(QBluetoothUuid::Rfcomm); QVERIFY(servicesList.count() > 0); - deviceInfo.setServiceUuids(servicesList.toVector()); + deviceInfo.setServiceUuids(servicesList); QVERIFY(deviceInfo.serviceUuids().count() > 0); deviceInfo.setServiceUuids(QVector<QBluetoothUuid>()); QCOMPARE(deviceInfo.serviceUuids().count(), 0); - - deviceInfo.setServiceUuids(servicesList, QBluetoothDeviceInfo::DataComplete); - QVERIFY(deviceInfo.serviceUuids().count() > 0); - QVERIFY(deviceInfo != copyInfo); - - QVERIFY(deviceInfo.serviceUuidsCompleteness() == QBluetoothDeviceInfo::DataComplete); } void tst_QBluetoothDeviceInfo::tst_cached() |