summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp')
-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();