aboutsummaryrefslogtreecommitdiff
path: root/tests/test-notify.cc
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2023-04-05 13:25:10 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-05-05 23:37:05 +0200
commit906c021e2ebd927b512c9d52c03c17e70c01f065 (patch)
tree7c7449e858ce4a0426a1b2be7270913f5d3b6ae2 /tests/test-notify.cc
parenteeea7eab9aa5877f8e00cf3993ed088abd498427 (diff)
downloadayatana-indicator-power-906c021e2ebd927b512c9d52c03c17e70c01f065.tar.gz
ayatana-indicator-power-906c021e2ebd927b512c9d52c03c17e70c01f065.tar.bz2
ayatana-indicator-power-906c021e2ebd927b512c9d52c03c17e70c01f065.zip
Use the device model name in the menu
Diffstat (limited to 'tests/test-notify.cc')
-rw-r--r--tests/test-notify.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test-notify.cc b/tests/test-notify.cc
index 815b5d7..12a80fb 100644
--- a/tests/test-notify.cc
+++ b/tests/test-notify.cc
@@ -1,6 +1,6 @@
/*
* Copyright 2014-2016 Canonical Ltd.
- * Copyright 2021-2022 Robert Tari
+ * Copyright 2021-2023 Robert Tari
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
@@ -236,6 +236,7 @@ TEST_F(NotifyFixture, PercentageToLevel)
{
auto battery = indicator_power_device_new ("/object/path",
UP_DEVICE_KIND_BATTERY,
+ "Some Model",
50.0,
UP_DEVICE_STATE_DISCHARGING,
30,
@@ -315,6 +316,7 @@ TEST_F(NotifyFixture, LevelsDuringBatteryDrain)
{
auto battery = indicator_power_device_new ("/object/path",
UP_DEVICE_KIND_BATTERY,
+ "Some Model",
50.0,
UP_DEVICE_STATE_DISCHARGING,
30,
@@ -388,6 +390,7 @@ TEST_F(NotifyFixture, EventsThatChangeNotifications)
auto battery = indicator_power_device_new ("/object/path",
UP_DEVICE_KIND_BATTERY,
+ "Some Model",
percent_low + 1.0,
UP_DEVICE_STATE_DISCHARGING,
30,