summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-18 16:58:48 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-18 16:58:48 +0200
commitaf930df8b120052a6ee4f88d95af189224350aa2 (patch)
tree64d177bd5974f3b5e4550844a59664d8967befdf
parentdd4f878f12d29032c01150e76d247cabc39ed8a6 (diff)
downloadupower-af930df8b120052a6ee4f88d95af189224350aa2.tar.gz
linux: Add new definitions
Proxy paths, and enumeration from the current API.
-rwxr-xr-xsrc/linux/integration-test8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/linux/integration-test b/src/linux/integration-test
index c004740..096e6d7 100755
--- a/src/linux/integration-test
+++ b/src/linux/integration-test
@@ -39,6 +39,8 @@ except ImportError:
sys.exit(0)
UP = 'org.freedesktop.UPower'
+UP_DEVICE = 'org.freedesktop.UPower.Device'
+UP_DISPLAY_OBJECT_PATH = '/org/freedesktop/UPower/devices/DisplayDevice'
(UP_DEVICE_STATE_UNKNOWN,
UP_DEVICE_STATE_CHARGING,
@@ -46,6 +48,12 @@ UP = 'org.freedesktop.UPower'
UP_DEVICE_STATE_EMPTY,
UP_DEVICE_STATE_FULLY_CHARGED) = (0, 1, 2, 3, 4)
+(UP_DEVICE_LEVEL_UNKNOWN,
+ UP_DEVICE_LEVEL_NONE,
+ UP_DEVICE_LEVEL_DISCHARGING,
+ UP_DEVICE_LEVEL_LOW,
+ UP_DEVICE_LEVEL_CRITICAL,
+ UP_DEVICE_LEVEL_ACTION) = (0, 1, 2, 3, 4, 5)
class Tests(unittest.TestCase):
@classmethod