summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-06-18 13:40:00 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-06-19 11:11:33 +0200
commitfd8a98a49b4fd8dfd0f10eae00f8abfe275826a2 (patch)
treeff430287468afb7fa7a545d1241c6b6a6a22a094 /tests
parent243db8a80ff4cfeba5eda13f900fd11e1144e367 (diff)
Unify the shared data types between controller and service class
This reduces the overhead and simplifies the data structures Change-Id: Iddf184a6d3de5ac253c889f2223a09f2fe08ce15 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
index 6d45bfda..a1dfc6c2 100644
--- a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
+++ b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
@@ -816,10 +816,10 @@ void tst_QLowEnergyController::tst_connectNew()
savedReferences = control.services();
foreach (const QSharedPointer<QLowEnergyService> &entry, savedReferences) {
- const QBluetoothUuid &uuid = entry.data()->serviceUuid();
+ const QBluetoothUuid &uuid = entry->serviceUuid();
QVERIFY2(listing.contains(uuid), uuid.toString().toLatin1());
- QCOMPARE(entry.data()->type(), QLowEnergyService::PrimaryService);
- QCOMPARE(entry.data()->state(), QLowEnergyService::DiscoveryRequired);
+ QCOMPARE(entry->type(), QLowEnergyService::PrimaryService);
+ QCOMPARE(entry->state(), QLowEnergyService::DiscoveryRequired);
}
}
@@ -836,8 +836,8 @@ void tst_QLowEnergyController::tst_connectNew()
// after disconnect all service references must be invalid
foreach (const QSharedPointer<QLowEnergyService> &entry, savedReferences) {
- const QBluetoothUuid &uuid = entry.data()->serviceUuid();
- QVERIFY2(entry.data()->state() == QLowEnergyService::InvalidService,
+ const QBluetoothUuid &uuid = entry->serviceUuid();
+ QVERIFY2(entry->state() == QLowEnergyService::InvalidService,
uuid.toString().toLatin1());
}
}