summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlowenergycontroller
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-07-18 13:44:09 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-07-23 11:01:47 +0200
commitd5731113e912e0df17f19fcdb12b4b6b68256220 (patch)
tree543c437f8ba375175631a05488e3e2cbd2fe2482 /tests/auto/qlowenergycontroller
parent3956cae8adc2cb7f8f883e52a7f19e4f5b9fea29 (diff)
Remove old GATT API
The subsequent patches will rename QLowEnergyControllerNew to QLowEnergyController and fix up the documentation fragments which still point to the old API. Change-Id: I084e6b1a85a17f424702018f3ad7047bda35d46a Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'tests/auto/qlowenergycontroller')
-rw-r--r--tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
index 8a4c5af7..3d501351 100644
--- a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
+++ b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
@@ -191,7 +191,6 @@ void tst_QLowEnergyController::tst_verifyAllServices()
info.serviceUuid().toString().toLatin1());
}
- QVERIFY(info.characteristics().isEmpty());
QCOMPARE(remoteDevice, info.device().address());
}
}
@@ -1351,7 +1350,7 @@ void tst_QLowEnergyController::verifyServiceProperties(
// value different in other revisions and test may fail
QCOMPARE(chars[0].handle(), QLowEnergyHandle(0x82));
QCOMPARE(chars[0].properties(),
- (QLowEnergyCharacteristic::Notify|QLowEnergyCharacteristic::Write|QLowEnergyCharacteristicInfo::WriteNoResponse));
+ (QLowEnergyCharacteristic::Notify|QLowEnergyCharacteristic::Write|QLowEnergyCharacteristic::WriteNoResponse));
QCOMPARE(chars[0].value(), QByteArray(""));
QVERIFY(chars[0].isValid());
QVERIFY(info->contains(chars[0]));
@@ -1385,7 +1384,7 @@ void tst_QLowEnergyController::verifyServiceProperties(
// value different in other revisions and test may fail
QCOMPARE(chars[1].handle(), QLowEnergyHandle(0x86));
QCOMPARE(chars[1].properties(),
- (QLowEnergyCharacteristic::Notify|QLowEnergyCharacteristic::Write|QLowEnergyCharacteristicInfo::WriteNoResponse));
+ (QLowEnergyCharacteristic::Notify|QLowEnergyCharacteristic::Write|QLowEnergyCharacteristic::WriteNoResponse));
QCOMPARE(chars[1].value(), QByteArray(""));
QVERIFY(chars[1].isValid());
QVERIFY(info->contains(chars[1]));