aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-09-25 18:55:41 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-10-02 12:39:26 +0200
commit03a692c88fd086d8bb2ad3fa4dbddb898bfd9bff (patch)
treebbad5126993fe4b504170713b255c3e634c45743 /tests/unit
parent0ba06d371cd775ce26806bca958ef1d2b95a12ac (diff)
downloadayatana-indicator-display-03a692c88fd086d8bb2ad3fa4dbddb898bfd9bff.tar.gz
ayatana-indicator-display-03a692c88fd086d8bb2ad3fa4dbddb898bfd9bff.tar.bz2
ayatana-indicator-display-03a692c88fd086d8bb2ad3fa4dbddb898bfd9bff.zip
Fix failing cppcheck
fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/58
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/adbd-client-test.cpp4
-rw-r--r--tests/unit/usb-snap-test.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/unit/adbd-client-test.cpp b/tests/unit/adbd-client-test.cpp
index b9e7a49..8e318d4 100644
--- a/tests/unit/adbd-client-test.cpp
+++ b/tests/unit/adbd-client-test.cpp
@@ -1,5 +1,6 @@
/*
* Copyright 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 <tests/utils/test-dbus-fixture.h>
@@ -56,7 +58,7 @@ TEST_F(AdbdClientFixture, SocketPlumbing)
const std::string expected_pk;
AdbdClient::PKResponse response;
const std::string expected_response;
- } tests[] = {
+ } const tests[] = {
{ "PKHelloWorld", "HelloWorld", AdbdClient::PKResponse::ALLOW, "OK" },
{ "PKHelloWorld", "HelloWorld", AdbdClient::PKResponse::DENY, "NO" },
{ "PKFooBar", "FooBar", AdbdClient::PKResponse::ALLOW, "OK" },
diff --git a/tests/unit/usb-snap-test.cpp b/tests/unit/usb-snap-test.cpp
index 05c797d..80b3929 100644
--- a/tests/unit/usb-snap-test.cpp
+++ b/tests/unit/usb-snap-test.cpp
@@ -1,5 +1,6 @@
/*
* Copyright 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 <tests/utils/qt-fixture.h>
@@ -68,7 +70,7 @@ TEST_F(UsbSnapFixture, TestRoundTrip)
const char* fingerprint;
const char* action_to_invoke;
const AdbdClient::PKResponse expected_response;
- } tests[] = {
+ } const tests[] = {
{ "Fingerprint", "allow", AdbdClient::PKResponse::ALLOW },
{ "Fingerprint", "deny", AdbdClient::PKResponse::DENY }
};