aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test-device.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-device.cc b/tests/test-device.cc
index 3b3ff73..1233133 100644
--- a/tests/test-device.cc
+++ b/tests/test-device.cc
@@ -440,6 +440,14 @@ TEST_F(DeviceTest, Labels)
NULL);
check_strings (device, "(not present)", "Battery (not present)", "Battery (not present)");
+ /* power line */
+ g_object_set (o, INDICATOR_POWER_DEVICE_KIND, UP_DEVICE_KIND_LINE_POWER,
+ INDICATOR_POWER_DEVICE_STATE, UP_DEVICE_STATE_UNKNOWN,
+ INDICATOR_POWER_DEVICE_PERCENTAGE, 0.0,
+ INDICATOR_POWER_DEVICE_TIME, guint64(0),
+ NULL);
+ check_strings (device, "AC Adapter", "AC Adapter", "AC Adapter");
+
/* cleanup */
g_object_unref(o);
g_setenv ("LANG", real_lang, TRUE);