aboutsummaryrefslogtreecommitdiff
path: root/tests/test-notify.cc
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-02-01 12:24:34 -0600
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-28 10:17:14 +0200
commit557e10a031b886dc670bdf5918c3984edbace5ac (patch)
treed214fc6b61a7b6d537ed7bb902188554c7f0d23e /tests/test-notify.cc
parentf4d66118c3a845892b32495efec3d6473e17baca (diff)
downloadayatana-indicator-power-557e10a031b886dc670bdf5918c3984edbace5ac.tar.gz
ayatana-indicator-power-557e10a031b886dc670bdf5918c3984edbace5ac.tar.bz2
ayatana-indicator-power-557e10a031b886dc670bdf5918c3984edbace5ac.zip
remove dead code
Diffstat (limited to 'tests/test-notify.cc')
-rw-r--r--tests/test-notify.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/test-notify.cc b/tests/test-notify.cc
index d01ef5f..cd5b6f1 100644
--- a/tests/test-notify.cc
+++ b/tests/test-notify.cc
@@ -166,7 +166,6 @@ protected:
int get_notify_call_count() const
{
- // confirm that we got exactly one call
guint len {0u};
GError* error {nullptr};
dbus_test_dbus_mock_object_get_method_calls(mock, obj, METHOD_NOTIFY, &len, &error);
@@ -444,7 +443,6 @@ TEST_F(NotifyFixture, EventsThatChangeNotifications)
clear_method_calls();
// ...and that the warning is taken down if the battery is plugged back in...
- //last_uri.clear();
changed_params = ChangedParams();
g_object_set (battery, INDICATOR_POWER_DEVICE_STATE, UP_DEVICE_STATE_CHARGING, nullptr);
wait_msec();
@@ -453,7 +451,6 @@ TEST_F(NotifyFixture, EventsThatChangeNotifications)
EXPECT_EQ (0, get_notify_call_count());
// ...and that it comes back if we unplug again...
- //last_uri.clear();
changed_params = ChangedParams();
g_object_set (battery, INDICATOR_POWER_DEVICE_STATE, UP_DEVICE_STATE_DISCHARGING, nullptr);
wait_msec();
@@ -464,7 +461,6 @@ TEST_F(NotifyFixture, EventsThatChangeNotifications)
clear_method_calls();
// ...and that it's taken down if the power level is OK
- //last_uri.clear();
changed_params = ChangedParams();
set_battery_percentage (battery, percent_low+1);
wait_msec();