diff options
author | kranthi <kranthi.kumar-kuntala@nokia.com> | 2011-02-18 10:17:39 +0200 |
---|---|---|
committer | kranthi <kranthi.kumar-kuntala@nokia.com> | 2011-02-18 10:39:38 +0200 |
commit | 212d69f174ca87431e22876cd1ee2bd5644965f6 (patch) | |
tree | 2b1b3192a4cda1946d7a31e12ee52f27296690b0 /tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp | |
parent | 362011b3b75e4d7fff232e7ff3acf6a1fd658c4d (diff) |
Thermal State and Changes example and auto tests added
Diffstat (limited to 'tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp')
-rw-r--r-- | tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp index 3df723a078..a61a6899c6 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; |