diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2013-01-31 18:13:12 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-08 11:17:53 +0100 |
commit | 27cc67b75373905931448c3228e20a6c8d0797e6 (patch) | |
tree | 094faff84d478c3d74764e3b87e26d4843bbeca2 /tests/auto/qsensor/tst_qsensor.cpp | |
parent | 2dba878107fbe290782af720981ce28ec3723e7a (diff) |
Add a QAmbientTemperatureSensor class.
Port the Blackberry backend to use it.
Change-Id: I6d4395f5ab9e0ce3fb6f76c47282929103929557
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
Diffstat (limited to 'tests/auto/qsensor/tst_qsensor.cpp')
-rw-r--r-- | tests/auto/qsensor/tst_qsensor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qsensor/tst_qsensor.cpp b/tests/auto/qsensor/tst_qsensor.cpp index 232590c7..a410f711 100644 --- a/tests/auto/qsensor/tst_qsensor.cpp +++ b/tests/auto/qsensor/tst_qsensor.cpp @@ -855,6 +855,10 @@ private slots: QCOMPARE(reading->lightLevel(), QAmbientLightReading::Twilight); }) + TEST_SENSORINTERFACE(QAmbientTemperatureSensor, QAmbientTemperatureReading, { + QCOMPARE(reading->temperature(), 30.0); + }) + TEST_SENSORINTERFACE(QCompass, QCompassReading, { QCOMPARE(reading->azimuth(), 1.0); QCOMPARE(reading->calibrationLevel(), 1.0); |