diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2011-04-07 14:45:27 +1000 |
---|---|---|
committer | Lorn Potter <lorn.potter@nokia.com> | 2011-04-07 14:45:27 +1000 |
commit | c391fcbbf04e9d9589d2d39315ee20f0ee7bdde2 (patch) | |
tree | 9c77b31fe9b16ba24bfe11ca7e3c8f387e77a087 /tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp | |
parent | 22fc06bdff7b264a5df8c199526bfcc4a69c02bf (diff) | |
parent | eaaecd4f09caf89fa02ec0003bde6b25b9adf4a3 (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.cpp | 15 |
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()); } |