I#27 - [IMAPx] Ignore DavMail's CR/LF in BODYSTRUCTURE response
[evolution-data-server.git] / tests / libedata-cal / test-cal-cache-utils.h
blobd3616fc1e7f0f9dfa463e7d0f93a3d2640fc9f42
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * Copyright (C) 2017 Red Hat, Inc. (www.redhat.com)
5 * This library is free software: you can redistribute it and/or modify it
6 * under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation.
9 * This library is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
12 * for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef TEST_CACHE_UTILS_H
19 #define TEST_CACHE_UTILS_H
21 #include <libedata-cal/libedata-cal.h>
23 G_BEGIN_DECLS
25 typedef enum {
26 TCU_LOAD_COMPONENT_SET_NONE,
27 TCU_LOAD_COMPONENT_SET_EVENTS,
28 TCU_LOAD_COMPONENT_SET_TASKS
29 } TCULoadComponentSet;
31 typedef struct {
32 ECalCache *cal_cache;
33 } TCUFixture;
35 typedef struct {
36 TCULoadComponentSet load_set;
37 } TCUClosure;
39 void tcu_fixture_setup (TCUFixture *fixture,
40 gconstpointer user_data);
41 void tcu_fixture_teardown (TCUFixture *fixture,
42 gconstpointer user_data);
44 gchar * tcu_new_icalstring_from_test_case (const gchar *case_name);
45 ECalComponent * tcu_new_component_from_test_case (const gchar *case_name);
46 void tcu_add_component_from_test_case (TCUFixture *fixture,
47 const gchar *case_name,
48 ECalComponent **out_component);
50 G_END_DECLS
52 #endif /* TEST_CACHE_UTILS_H */