Coding style and whitespace cleanups.
[platform/upstream/evolution-data-server.git] / tests / libecal / test-ecal-get-default-object.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 #include <stdlib.h>
4 #include <libecal/e-cal.h>
5 #include <libical/ical.h>
6
7 #include "ecal-test-utils.h"
8
9 gint
10 main (gint argc, gchar **argv)
11 {
12         ECal *cal;
13         gchar *uri = NULL;
14         icalcomponent *component;
15         gchar *component_string;
16
17         g_type_init ();
18
19         cal = ecal_test_utils_cal_new_temp (&uri, E_CAL_SOURCE_TYPE_EVENT);
20         ecal_test_utils_cal_open (cal, FALSE);
21
22         component = ecal_test_utils_cal_get_default_object (cal);
23         component_string = icalcomponent_as_ical_string (component);
24         test_print ("default object:\n%s", component_string);
25
26         ecal_test_utils_cal_remove (cal);
27
28         g_free (component_string);
29
30         return 0;
31 }