summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2011-03-24 12:36:26 +1000
committerLorn Potter <lorn.potter@nokia.com>2011-03-24 12:36:26 +1000
commit6650aa3b000ec5e94f77a8c4efd7f4bdddd2ba92 (patch)
tree1993b1364f3d545bba122e6f1e282987126bc046 /tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
parentdf735d734abcd78dd612765e14b9ea319d614cde (diff)
parente8859a04a06ecb8ecad1d6e25268dd5d345dd032 (diff)
Merge branch 'master' into uniqueid
Conflicts: src/systeminfo/linux/qsysteminfo_linux_common.cpp
Diffstat (limited to 'tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp')
-rw-r--r--tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
index 2aa87d45e7..b3947ffcc7 100644
--- a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
+++ b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
@@ -80,6 +80,8 @@ private slots:
void tst_currentPowerState();
+ void tst_currentThermalState();
+
void tst_currentBluetoothPowerState();
void tst_keyboardType();
@@ -241,6 +243,17 @@ void tst_QSystemDeviceInfo::tst_currentPowerState()
|| state == QSystemDeviceInfo::WallPowerChargingBattery);
}
+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;