aboutsummaryrefslogtreecommitdiff
path: root/tests/test-eds-ics-tzids-utc.cpp
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2025-02-06 13:07:38 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-03-12 08:54:20 +0100
commite87e66518761d407e18461dd942e94989bb3b2ac (patch)
treeaffdf4b29be4ed6517b59a3c5d8c4fce675a6d1f /tests/test-eds-ics-tzids-utc.cpp
parentf1f745daecd0912e17f30626309d412ad23cf47e (diff)
downloadayatana-indicator-datetime-e87e66518761d407e18461dd942e94989bb3b2ac.tar.gz
ayatana-indicator-datetime-e87e66518761d407e18461dd942e94989bb3b2ac.tar.bz2
ayatana-indicator-datetime-e87e66518761d407e18461dd942e94989bb3b2ac.zip
Add mkCal backend
Diffstat (limited to 'tests/test-eds-ics-tzids-utc.cpp')
-rw-r--r--tests/test-eds-ics-tzids-utc.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test-eds-ics-tzids-utc.cpp b/tests/test-eds-ics-tzids-utc.cpp
index d88e95d..8226061 100644
--- a/tests/test-eds-ics-tzids-utc.cpp
+++ b/tests/test-eds-ics-tzids-utc.cpp
@@ -1,6 +1,6 @@
/*
* Copyright 2015 Canonical Ltd.
- * Copyright 2021-2024 Robert Tari
+ * Copyright 2021-2025 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
@@ -82,16 +82,26 @@ TEST_F(VAlarmFixture, UTCAppointments)
// what we expect to get...
std::array<Appointment,1> expected_appts1;
auto appt1 = &expected_appts1[0];
+#ifndef LOMIRI_FEATURES_ENABLED
appt1->uid = "20160322T132738Z";
appt1->color = "#becedd";
+#else
+ appt1->uid = "17ea8f73-4965-4a9c-9add-4a026a86ec60";
+ appt1->color = "#0000FF";
+#endif
appt1->summary = "UTC event";
appt1->begin = DateTime{gtz,2016,3,22,15,0,0};
appt1->end = DateTime{gtz,2016,3,22,16,0,0};
std::array<Appointment,1> expected_appts2;
auto appt2 = &expected_appts2[0];
+#ifndef LOMIRI_FEATURES_ENABLED
appt2->uid = "20160322T132738Z";
appt2->color = "#62a0ea";
+#else
+ appt2->uid = "17ea8f73-4965-4a9c-9add-4a026a86ec60";
+ appt2->color = "";
+#endif
appt2->summary = "UTC event";
appt2->begin = DateTime{gtz,2016,3,22,15,0,0};
appt2->end = DateTime{gtz,2016,3,22,16,0,0};