summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-08-27 13:36:13 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-09-02 20:18:26 +0200
commit2da622742aaf2566edea43b541180a7fb23cb899 (patch)
tree7f632bc65937326f7dd2d81e3efe6a5fdefda1ec /tests
parent4ab9c732a466dc793e5ec162a928d4350a29281c (diff)
Rename descriptorChanged() to descriptorWritten()
This is the part of a change to be able to distinguish characteristic write confirmations from characteristic change notifications. Since descriptors cannot receive notifications they won't have a changed() signal and all existing descriptorChanged() signals become descriptorWritten() signals. The changed() signal is emitted when a value notification is received from the device. The written() signal is emitted when a write request from the API user was successful. Change-Id: Ief2491ead4723eaa1bca65a09a09c34458f33630 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
index b282e943..a6d216aa 100644
--- a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
+++ b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
@@ -1754,7 +1754,7 @@ void tst_QLowEnergyController::tst_writeDescriptor()
// 3. Test writing to descriptor -> activate notifications
QSignalSpy descChangedSpy(service,
- SIGNAL(descriptorChanged(QLowEnergyDescriptor,QByteArray)));
+ SIGNAL(descriptorWritten(QLowEnergyDescriptor,QByteArray)));
QSignalSpy charChangedSpy(service,
SIGNAL(characteristicChanged(QLowEnergyCharacteristic,QByteArray)));
@@ -1962,7 +1962,7 @@ void tst_QLowEnergyController::tst_writeDescriptorNoResponse()
// 3. Enable notifications
QSignalSpy descChangedSpy(service,
- SIGNAL(descriptorChanged(QLowEnergyDescriptor,QByteArray)));
+ SIGNAL(descriptorWritten(QLowEnergyDescriptor,QByteArray)));
QSignalSpy charChangedSpy(service,
SIGNAL(characteristicChanged(QLowEnergyCharacteristic,QByteArray)));
if (notification.value() != QByteArray::fromHex("0100")) {