summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2011-04-07 14:45:27 +1000
committerLorn Potter <lorn.potter@nokia.com>2011-04-07 14:45:27 +1000
commitc391fcbbf04e9d9589d2d39315ee20f0ee7bdde2 (patch)
tree9c77b31fe9b16ba24bfe11ca7e3c8f387e77a087 /tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
parent22fc06bdff7b264a5df8c199526bfcc4a69c02bf (diff)
parenteaaecd4f09caf89fa02ec0003bde6b25b9adf4a3 (diff)
Merge branch 'master' into test
Conflicts: configure src/systeminfo/qsystemgeneralinfo.h src/systeminfo/qsystemnetworkinfo.cpp src/systeminfo/qsystemstorageinfo.cpp src/systeminfo/systeminfo.pro
Diffstat (limited to 'tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp')
-rw-r--r--tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
index 6eab9c16b1..5409fb91bd 100644
--- a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
+++ b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
@@ -147,6 +147,8 @@ private slots:
void tst_currentPowerState();
+ void tst_currentThermalState();
+
void tst_currentBluetoothPowerState();
void tst_keyboardType();
@@ -358,6 +360,17 @@ void tst_QSystemDeviceInfo::tst_currentPowerState()
#endif
}
+void tst_QSystemDeviceInfo::tst_currentThermalState()
+{
+ QSystemDeviceInfo di;
+ QSystemDeviceInfo::ThermalState state = di.currentThermalState();
+ QVERIFY( state == QSystemDeviceInfo::UnknownThermal
+ || state == QSystemDeviceInfo::NormalThermal
+ || state == QSystemDeviceInfo::WarningThermal
+ || state == QSystemDeviceInfo::AlertThermal
+ || state == QSystemDeviceInfo::ErrorThermal);
+}
+
void tst_QSystemDeviceInfo::tst_currentBluetoothPowerState()
{
QSystemDeviceInfo di;
@@ -415,7 +428,7 @@ void tst_QSystemDeviceInfo::tst_keypadLightOn()
void tst_QSystemDeviceInfo::tst_uniqueDeviceID()
{
QSystemDeviceInfo di;
- QUuid id = di.uniqueDeviceID();
+ QByteArray id = di.uniqueDeviceID();
QVERIFY(id.isNull()|| !id.isNull());
}