tests/discoverer: Add file variations

Enables testing properly the ICS header check which is ignored if
content-type is text/calendar.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/814>
This commit is contained in:
tytan652
2026-08-28 21:51:52 +00:00
committed by Marge Bot
parent d1a400c856
commit fbbf6d854c
4 changed files with 76 additions and 22 deletions
+6 -3
View File
@@ -25,11 +25,14 @@
G_BEGIN_DECLS
#define _GCAL_TEST_SERVER_CALENDAR_BEGIN "BEGIN:VCALENDAR"
#define _GCAL_TEST_SERVER_CALENDAR_END "END:VCALENDAR"
#define GCAL_TEST_SERVER_EMPTY_CALENDAR \
"BEGIN:VCALENDAR\n" \
"END:VCALENDAR"
#define GCAL_TEST_SERVER_EMPTY_CRLF_CALENDAR \
_GCAL_TEST_SERVER_CALENDAR_BEGIN "\r\n" _GCAL_TEST_SERVER_CALENDAR_END
#define GCAL_TEST_SERVER_EMPTY_LF_CALENDAR \
_GCAL_TEST_SERVER_CALENDAR_BEGIN "\n" _GCAL_TEST_SERVER_CALENDAR_END
#define GCAL_TYPE_SIMPLE_SERVER (gcal_simple_server_get_type())
G_DECLARE_FINAL_TYPE (GcalSimpleServer, gcal_simple_server, GCAL, SIMPLE_SERVER, GObject)