aboutsummaryrefslogtreecommitdiff
path: root/tests/test-device.cc
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-09-02 00:36:40 +0200
committerRobert Tari <robert@tari.in>2022-09-02 00:36:40 +0200
commit16cae61bfbd85da42bec9fa46e3579064680f8fe (patch)
tree0f079bc87c7d04479399f30861da2018d062476b /tests/test-device.cc
parentdabd41daf08b9f287834586acb2b04cd126e65ba (diff)
parentde773702ca0cd0a37eed54fefd6128a63a22bfe9 (diff)
downloadayatana-indicator-power-16cae61bfbd85da42bec9fa46e3579064680f8fe.tar.gz
ayatana-indicator-power-16cae61bfbd85da42bec9fa46e3579064680f8fe.tar.bz2
ayatana-indicator-power-16cae61bfbd85da42bec9fa46e3579064680f8fe.zip
Merge branch 'sunweaver-pr/tooltip-support'
Attributes GH PR #63: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/63
Diffstat (limited to 'tests/test-device.cc')
-rw-r--r--tests/test-device.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test-device.cc b/tests/test-device.cc
index a948857..474fa36 100644
--- a/tests/test-device.cc
+++ b/tests/test-device.cc
@@ -1,5 +1,6 @@
/*
* Copyright 2012-2016 Canonical Ltd.
+ * Copyright 2022 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
@@ -15,6 +16,7 @@
*
* Authors:
* Charles Kerr <charles.kerr@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#include "device.h"
@@ -22,7 +24,7 @@
#include <gio/gio.h>
#include <gtest/gtest.h>
-
+#include <array>
#include <algorithm>
#include <cmath> // ceil()
#include <string>
@@ -535,7 +537,7 @@ TEST_F(DeviceTest, IconNames)
EXPECT_ICON_NAMES_EQ(expected->str, device);
// if we know the charge level, but not that it’s charging,
- // then we should use the same icons as when it’s discharging.
+ // then we should use the same icons as when it’s discharging.
// https://wiki.ubuntu.com/Power?action=diff&rev2=78&rev1=77
// https://bugs.launchpad.net/ubuntu/+source/indicator-power/+bug/1470080
g_object_set (o, INDICATOR_POWER_DEVICE_STATE, UP_DEVICE_STATE_UNKNOWN,
@@ -949,7 +951,7 @@ TEST_F(DeviceTest, ChoosePrimary)
{ "phone unknown 0m 61% phone01 1" }
}
};
-
+
for(const auto& test : tests)
{
// build the device list