Implement single-file includes for all E-D-S libraries.
[platform/upstream/evolution-data-server.git] / tests / libecal / test-ecal-stress-factory--single-cal.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 #include <stdlib.h>
4 #include <libecal/libecal.h>
5
6 #include "ecal-test-utils.h"
7
8 #define NUM_OPENS 200
9
10 gint
11 main (gint argc,
12       gchar **argv)
13 {
14         gchar *uri = NULL;
15         ECal *cal;
16         gint i;
17
18         g_type_init ();
19
20         cal = ecal_test_utils_cal_new_temp (&uri, E_CAL_SOURCE_TYPE_EVENT);
21         g_object_unref (cal);
22
23         /* FIXME We don't build ECals from URIs anymore. */
24
25 #if 0
26         /* open and close the same calendar repeatedly */
27         for (i = 0; i < NUM_OPENS - 1; i++) {
28                 cal = ecal_test_utils_cal_new_from_uri (uri,
29                                 E_CAL_SOURCE_TYPE_EVENT);
30                 ecal_test_utils_cal_open (cal, FALSE);
31                 g_object_unref (cal);
32         }
33
34         cal = ecal_test_utils_cal_new_from_uri (uri, E_CAL_SOURCE_TYPE_EVENT);
35 #endif
36
37         g_free (uri);
38
39         return 0;
40 }