From af930df8b120052a6ee4f88d95af189224350aa2 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 18 Oct 2013 16:58:48 +0200 Subject: linux: Add new definitions Proxy paths, and enumeration from the current API. --- src/linux/integration-test | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.1