diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-10-16 16:28:27 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@digia.com> | 2014-10-16 16:51:17 +0200 |
commit | 4a6d4e8682384887d1b30b9c3107f47c57d7ee3f (patch) | |
tree | 7a744db6d876ea2b3aa593b4f5277310598ac712 /tests | |
parent | 8b42497996549bccbbaabdf35756e1b8f2e6642b (diff) |
Add QBluetoothDeviceInfo::UnknownCoreConfiguration enum value
The value is needed for platforms which do not provide this type
information. An example are Android versions below 18.
The enum was added in Qt 5.4. Therefore we need to add
the missing \since tag too.
Change-Id: I23582e7500d8da6740b281ba9821d028c4f33e05
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp index ea3c471c..74a27591 100644 --- a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp +++ b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp @@ -250,6 +250,8 @@ void tst_QBluetoothDeviceInfo::tst_construction() QBluetoothDeviceInfo deviceInfo; QVERIFY(!deviceInfo.isValid()); + QVERIFY(deviceInfo.coreConfigurations() + == QBluetoothDeviceInfo::UnknownCoreConfiguration); } { @@ -270,7 +272,7 @@ void tst_QBluetoothDeviceInfo::tst_construction() QCOMPARE(deviceInfo.serviceClasses(), serviceClasses); QCOMPARE(deviceInfo.majorDeviceClass(), majorDeviceClass); QCOMPARE(deviceInfo.minorDeviceClass(), minorDeviceClass); - QCOMPARE(deviceInfo.coreConfigurations(), QBluetoothDeviceInfo::BaseRateCoreConfiguration); + QCOMPARE(deviceInfo.coreConfigurations(), QBluetoothDeviceInfo::UnknownCoreConfiguration); deviceInfo.setCoreConfigurations(coreConfiguration); QCOMPARE(deviceInfo.coreConfigurations(), coreConfiguration); |