aboutsummaryrefslogtreecommitdiff
path: root/tests/test-notify.cc
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-05-05 23:38:21 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-05-05 23:38:21 +0200
commit08039f0bfcd35efca2a075bbf49fe3e45d89d5bf (patch)
tree62152c893faf4b24a6925fdebe2a9b40f2bfe1fd /tests/test-notify.cc
parente62300da9bf1eedbbdb1579f75b0d75d351e6950 (diff)
parent8f7c0cdbfd3ac5166a9628f917a0184fe5a44628 (diff)
downloadayatana-indicator-power-08039f0bfcd35efca2a075bbf49fe3e45d89d5bf.tar.gz
ayatana-indicator-power-08039f0bfcd35efca2a075bbf49fe3e45d89d5bf.tar.bz2
ayatana-indicator-power-08039f0bfcd35efca2a075bbf49fe3e45d89d5bf.zip
Merge branch 'tari01-pr/adapt-to-level-ido'
Attributes GH PR #76: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/76
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,