diff options
author | Liang Qi <liang.qi@digia.com> | 2012-10-04 15:26:19 +0200 |
---|---|---|
committer | Alex <ablasche@gmail.com> | 2012-11-22 21:23:52 +0100 |
commit | f5e86bd2295c29415f4598f2438734786bf72b9f (patch) | |
tree | b0f15729a49bf323ae7d5c8039cd48412ec58c4f /tests | |
parent | f317a1e978a34555a5ab5b1dc4b99b783dfd0c58 (diff) |
Fix QBluetoothDeviceInfo test
Correct the test data, and for the 0-1 bits in address, they are unused
and should be set to 0.
Task-number: QTBUG-25453
Change-Id: I958da212528a0d61c1404f7bb9e6c8ae6c4730de
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp index 4be11373..3cd890e7 100644 --- a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp +++ b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp @@ -161,8 +161,8 @@ void tst_QBluetoothDeviceInfo::tst_construction_data() << QBluetoothDeviceInfo::ServiceClasses(QBluetoothDeviceInfo::NoService) << QBluetoothDeviceInfo::AudioVideoDevice << quint8(QBluetoothDeviceInfo::UncategorizedAudioVideoDevice); - QTest::newRow("0x00044C COD") << QBluetoothAddress("000000000000") << "My Bluetooth Device" - << quint32(0x00044C) + QTest::newRow("0x000448 COD") << QBluetoothAddress("000000000000") << "My Bluetooth Device" + << quint32(0x000448) << QBluetoothDeviceInfo::ServiceClasses(QBluetoothDeviceInfo::NoService) << QBluetoothDeviceInfo::AudioVideoDevice << quint8(QBluetoothDeviceInfo::GamingDevice); @@ -252,7 +252,6 @@ void tst_QBluetoothDeviceInfo::tst_construction() QCOMPARE(deviceInfo.name(), name); QCOMPARE(deviceInfo.serviceClasses(), serviceClasses); QCOMPARE(deviceInfo.majorDeviceClass(), majorDeviceClass); - QEXPECT_FAIL("0x00044C COD", "QTBUG-25453", Abort); QCOMPARE(deviceInfo.minorDeviceClass(), minorDeviceClass); QBluetoothDeviceInfo copyInfo(deviceInfo); @@ -294,7 +293,6 @@ void tst_QBluetoothDeviceInfo::tst_assignment() QCOMPARE(copyInfo.name(), name); QCOMPARE(copyInfo.serviceClasses(), serviceClasses); QCOMPARE(copyInfo.majorDeviceClass(), majorDeviceClass); - QEXPECT_FAIL("0x00044C COD", "QTBUG-25453", Abort); QCOMPARE(copyInfo.minorDeviceClass(), minorDeviceClass); } |