summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2010-07-08 12:43:43 +1000
committerLorn Potter <lorn.potter@nokia.com>2010-07-08 12:43:43 +1000
commitadcea6b276d979bd279dc5de9cf92f7d7786b4e6 (patch)
tree2ea0d1dfdf073f8e1c9903679370104552b7676c /tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
parentab31dad56136456b84fd443549499c72b7242746 (diff)
add 'test' for currentBluetoothPowerState
Diffstat (limited to 'tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp')
-rw-r--r--tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
index 66ab6fb695..92b82fb2eb 100644
--- a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
+++ b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
@@ -76,6 +76,7 @@ private slots:
void tst_currentPowerState();
+ void tst_currentBluetoothPowerState();
// void tst_powerState_data();
// void tst_powerState();
@@ -225,7 +226,12 @@ void tst_QSystemDeviceInfo::tst_currentPowerState()
|| state == QSystemDeviceInfo::WallPowerChargingBattery);
}
-
+void tst_QSystemDeviceInfo::tst_currentBluetoothPowerState()
+{
+ QSystemDeviceInfo di;
+ bool state = di.currentPowerState();
+ QVERIFY(state || !state);
+}
QTEST_MAIN(tst_QSystemDeviceInfo)
#include "tst_qsystemdeviceinfo.moc"