summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-06-17 16:55:08 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-06-17 17:25:20 +0200
commit19714b30f9dff135f4b831895ce2ac518554e2c6 (patch)
treed4f5fbe1217ff167d3468f3d44f7d6267cf07f05 /tests
parent50e7588d6d2b4a21b2c4aebc0417b5cfcd8a9c03 (diff)
Push improved API.
QLowEnergyService represents each single service on the remote BTLE device. QLowEnergyControllerNew acts as factory for QLowEnergyService instances. Change-Id: I07c6bfae6d14b73a80e8314f6e8471285fccf069 Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
index 2c26ffe8..e0328c56 100644
--- a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
+++ b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
@@ -811,8 +811,12 @@ void tst_QLowEnergyController::tst_connectNew()
info.serviceUuid().toString().toLatin1());
}
- foreach (const QBluetoothUuid &uuid, control.services())
+ foreach (const QSharedPointer<QLowEnergyService> &entry, control.services()) {
+ const QBluetoothUuid &uuid = entry.data()->serviceUuid();
QVERIFY2(listing.contains(uuid), uuid.toString().toLatin1());
+ QCOMPARE(entry.data()->type(), QLowEnergyService::PrimaryService);
+ QCOMPARE(entry.data()->state(), QLowEnergyService::DiscoveryRequired);
+ }
// Finish off
control.disconnectFromDevice();