aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-12-17 12:31:57 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-08 18:30:04 +0100
commitcd920da7e3d049dcc6867e0816db8ec66d4f52db (patch)
tree3295270fdbb01da55f6187ca85d7db1fb6658f3e /tests
parent3aec729d05cd2ecccb7e911f657744076ec79c54 (diff)
downloadayatana-indicator-datetime-cd920da7e3d049dcc6867e0816db8ec66d4f52db.tar.gz
ayatana-indicator-datetime-cd920da7e3d049dcc6867e0816db8ec66d4f52db.tar.bz2
ayatana-indicator-datetime-cd920da7e3d049dcc6867e0816db8ec66d4f52db.zip
Remove unused print-to.h
Diffstat (limited to 'tests')
-rw-r--r--tests/print-to.h89
-rw-r--r--tests/test-eds-ics-all-day-events.cpp1
-rw-r--r--tests/test-eds-ics-missing-trigger.cpp1
-rw-r--r--tests/test-eds-ics-non-attending-alarms.cpp3
-rw-r--r--tests/test-eds-ics-nonrepeating-events.cpp1
-rw-r--r--tests/test-eds-ics-repeating-events-with-individual-change.cpp3
-rw-r--r--tests/test-eds-ics-repeating-events.cpp1
-rw-r--r--tests/test-eds-ics-repeating-valarms.cpp1
-rw-r--r--tests/test-eds-ics-tzids-2.cpp1
-rw-r--r--tests/test-eds-ics-tzids-utc.cpp3
-rw-r--r--tests/test-eds-ics-tzids.cpp1
-rw-r--r--tests/test-menu-appointments.cpp1
12 files changed, 6 insertions, 100 deletions
diff --git a/tests/print-to.h b/tests/print-to.h
deleted file mode 100644
index 7cd6c2a..0000000
--- a/tests/print-to.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright 2015 Canonical Ltd.
- * Copyright 2021 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
- * by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranties of
- * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- * Authors:
- * Charles Kerr <charles.kerr@canonical.com>
- * Robert Tari <robert@tari.in>
- */
-
-#ifndef INDICATOR_DATETIME_TESTS_PRINT_TO
-#define INDICATOR_DATETIME_TESTS_PRINT_TO
-
-#include <algorithm>
-#include <vector>
-
-#include <datetime/appointment.h>
-
-namespace ayatana {
-namespace indicator {
-namespace datetime {
-
-/***
-**** PrintTo() functions for GTest to represent objects as strings
-***/
-
-void
-PrintTo(const DateTime& datetime, std::ostream* os)
-{
- *os << "{time:'" << datetime.format("%F %T %z") << '}';
-}
-
-void
-PrintTo(const Alarm& alarm, std::ostream* os)
-{
- *os << '{';
- *os << "{text:" << alarm.text << '}';
- PrintTo(alarm.time, os);
- *os << '}';
-}
-
-void
-PrintTo(const Appointment& appointment, std::ostream* os)
-{
- *os << '{';
-
- *os << "{uid:'" << appointment.uid << "'}"
- << "{color:'" << appointment.color << "'}"
- << "{summary:'" << appointment.summary << "'}";
-
- *os << "{begin:";
- PrintTo(appointment.begin, os);
- *os << '}';
-
- *os << "{end:";
- PrintTo(appointment.end, os);
- *os << '}';
-
- for(const auto& alarm : appointment.alarms)
- PrintTo(alarm, os);
-
- *os << '}';
-}
-
-void
-PrintTo(const std::vector<Appointment>& appointments, std::ostream* os)
-{
- *os << '{';
- for (const auto& appointment : appointments)
- PrintTo(appointment, os);
- *os << '}';
-}
-
-} // namespace datetime
-} // namespace indicator
-} // namespace ayatana
-
-#endif
diff --git a/tests/test-eds-ics-all-day-events.cpp b/tests/test-eds-ics-all-day-events.cpp
index 5d7cdc6..93bc9e3 100644
--- a/tests/test-eds-ics-all-day-events.cpp
+++ b/tests/test-eds-ics-all-day-events.cpp
@@ -30,7 +30,6 @@
#include <gtest/gtest.h>
#include "glib-fixture.h"
-#include "print-to.h"
#include "timezone-mock.h"
#include "wakeup-timer-mock.h"
diff --git a/tests/test-eds-ics-missing-trigger.cpp b/tests/test-eds-ics-missing-trigger.cpp
index 3eeb919..61271e6 100644
--- a/tests/test-eds-ics-missing-trigger.cpp
+++ b/tests/test-eds-ics-missing-trigger.cpp
@@ -30,7 +30,6 @@
#include <gtest/gtest.h>
#include "glib-fixture.h"
-#include "print-to.h"
#include "timezone-mock.h"
#include "wakeup-timer-mock.h"
diff --git a/tests/test-eds-ics-non-attending-alarms.cpp b/tests/test-eds-ics-non-attending-alarms.cpp
index bfa3ac3..ca1c8ed 100644
--- a/tests/test-eds-ics-non-attending-alarms.cpp
+++ b/tests/test-eds-ics-non-attending-alarms.cpp
@@ -1,5 +1,6 @@
/*
* Copyright 2015 Canonical Ltd.
+ * Copyright 2021 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 <algorithm>
@@ -28,7 +30,6 @@
#include <gtest/gtest.h>
#include "glib-fixture.h"
-#include "print-to.h"
#include "timezone-mock.h"
#include "wakeup-timer-mock.h"
diff --git a/tests/test-eds-ics-nonrepeating-events.cpp b/tests/test-eds-ics-nonrepeating-events.cpp
index 8aa2b82..25bbed4 100644
--- a/tests/test-eds-ics-nonrepeating-events.cpp
+++ b/tests/test-eds-ics-nonrepeating-events.cpp
@@ -30,7 +30,6 @@
#include <gtest/gtest.h>
#include "glib-fixture.h"
-#include "print-to.h"
#include "timezone-mock.h"
#include "wakeup-timer-mock.h"
diff --git a/tests/test-eds-ics-repeating-events-with-individual-change.cpp b/tests/test-eds-ics-repeating-events-with-individual-change.cpp
index a4a85c0..c63cafc 100644
--- a/tests/test-eds-ics-repeating-events-with-individual-change.cpp
+++ b/tests/test-eds-ics-repeating-events-with-individual-change.cpp
@@ -1,5 +1,6 @@
/*
* Copyright 2016 Canonical Ltd.
+ * Copyright 2021 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:
* Renato Araujo Oliveira Filho <renato.filho@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#include <algorithm>
@@ -28,7 +30,6 @@
#include <gtest/gtest.h>
#include "glib-fixture.h"
-#include "print-to.h"
#include "timezone-mock.h"
#include "wakeup-timer-mock.h"
diff --git a/tests/test-eds-ics-repeating-events.cpp b/tests/test-eds-ics-repeating-events.cpp
index 4125623..d33c339 100644
--- a/tests/test-eds-ics-repeating-events.cpp
+++ b/tests/test-eds-ics-repeating-events.cpp
@@ -30,7 +30,6 @@
#include <gtest/gtest.h>
#include "glib-fixture.h"
-#include "print-to.h"
#include "timezone-mock.h"
#include "wakeup-timer-mock.h"
diff --git a/tests/test-eds-ics-repeating-valarms.cpp b/tests/test-eds-ics-repeating-valarms.cpp
index 1584983..ba44662 100644
--- a/tests/test-eds-ics-repeating-valarms.cpp
+++ b/tests/test-eds-ics-repeating-valarms.cpp
@@ -30,7 +30,6 @@
#include <gtest/gtest.h>
#include "glib-fixture.h"
-#include "print-to.h"
#include "timezone-mock.h"
#include "wakeup-timer-mock.h"
diff --git a/tests/test-eds-ics-tzids-2.cpp b/tests/test-eds-ics-tzids-2.cpp
index a1d2f5a..608b80a 100644
--- a/tests/test-eds-ics-tzids-2.cpp
+++ b/tests/test-eds-ics-tzids-2.cpp
@@ -30,7 +30,6 @@
#include <gtest/gtest.h>
#include "glib-fixture.h"
-#include "print-to.h"
#include "timezone-mock.h"
#include "wakeup-timer-mock.h"
diff --git a/tests/test-eds-ics-tzids-utc.cpp b/tests/test-eds-ics-tzids-utc.cpp
index f79bf3e..06aac71 100644
--- a/tests/test-eds-ics-tzids-utc.cpp
+++ b/tests/test-eds-ics-tzids-utc.cpp
@@ -1,5 +1,6 @@
/*
* Copyright 2015 Canonical Ltd.
+ * Copyright 2021 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 <algorithm>
@@ -28,7 +30,6 @@
#include <gtest/gtest.h>
#include "glib-fixture.h"
-#include "print-to.h"
#include "timezone-mock.h"
#include "wakeup-timer-mock.h"
diff --git a/tests/test-eds-ics-tzids.cpp b/tests/test-eds-ics-tzids.cpp
index 11d44b7..8f6f76b 100644
--- a/tests/test-eds-ics-tzids.cpp
+++ b/tests/test-eds-ics-tzids.cpp
@@ -30,7 +30,6 @@
#include <gtest/gtest.h>
#include "glib-fixture.h"
-#include "print-to.h"
#include "timezone-mock.h"
#include "wakeup-timer-mock.h"
diff --git a/tests/test-menu-appointments.cpp b/tests/test-menu-appointments.cpp
index 4d15b9f..60086b8 100644
--- a/tests/test-menu-appointments.cpp
+++ b/tests/test-menu-appointments.cpp
@@ -20,7 +20,6 @@
*/
#include "glib-fixture.h"
-#include "print-to.h"
#include <datetime/appointment.h>
#include <datetime/menu.h>