#define TZID_NEW "XYZ"
#define TZNAME_NEW "Ex Wye Zee"
-static ETestServerClosure cal_closure =
- { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS };
+static ETestServerClosure cal_closure_sync =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, FALSE };
+static ETestServerClosure cal_closure_async =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, TRUE };
static void
test_add_timezone_sync (ETestServerFixture *fixture,
g_test_add (
"/ECalClient/AddTimezone/Sync",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_sync,
e_test_server_utils_setup,
test_add_timezone_sync,
e_test_server_utils_teardown);
g_test_add (
"/ECalClient/AddTimezone/Async",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_async,
e_test_server_utils_setup,
test_add_timezone_async,
e_test_server_utils_teardown);
#include "e-test-server-utils.h"
-static ETestServerClosure cal_closure =
- { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS };
+static ETestServerClosure cal_closure_sync =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, FALSE };
+static ETestServerClosure cal_closure_async =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, TRUE };
static void
test_icalcomps (icalcomponent *icalcomp1,
g_test_add (
"/ECalClient/CreateObject/Sync",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_sync,
e_test_server_utils_setup,
test_create_object_sync,
e_test_server_utils_teardown);
g_test_add (
"/ECalClient/CreateObject/Async",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_async,
e_test_server_utils_setup,
test_create_object_async,
e_test_server_utils_teardown);
#define ATTACH2 "file:///tmp/file2"
#define ATTACH3 "file:///tmp/dir/fileěščřžýáíé3"
-static ETestServerClosure cal_closure =
- { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS };
+static ETestServerClosure cal_closure_sync =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, FALSE };
+static ETestServerClosure cal_closure_async =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, TRUE };
static void
add_attach (icalcomponent *icalcomp,
g_test_add (
"/ECalClient/GetAttachmentUris/Sync",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_sync,
e_test_server_utils_setup,
test_get_attachment_uris_sync,
e_test_server_utils_teardown);
g_test_add (
"/ECalClient/GetAttachmentUris/Async",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_async,
e_test_server_utils_setup,
test_get_attachment_uris_async,
e_test_server_utils_teardown);
#define EVENT_SUMMARY "Creation of new test event"
#define EVENT_QUERY "(contains? \"summary\" \"" EVENT_SUMMARY "\")"
-static ETestServerClosure cal_closure =
- { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS };
+static ETestServerClosure cal_closure_sync =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, FALSE };
+static ETestServerClosure cal_closure_async =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, TRUE };
static void
setup_cal (ECalClient *cal_client)
g_test_add (
"/ECalClient/GetObjectList/Sync",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_sync,
e_test_server_utils_setup,
test_get_object_list_sync,
e_test_server_utils_teardown);
g_test_add (
"/ECalClient/GetObjectList/Async",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_async,
e_test_server_utils_setup,
test_get_object_list_async,
e_test_server_utils_teardown);
#include "e-test-server-utils.h"
-static ETestServerClosure cal_closure =
- { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS };
+static ETestServerClosure cal_closure_sync =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, FALSE };
+static ETestServerClosure cal_closure_async =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, TRUE };
typedef enum {
SUBTEST_OBJECTS_ADDED,
g_test_add (
"/ECalClient/GetView/Sync",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_sync,
e_test_server_utils_setup,
test_get_view_sync,
e_test_server_utils_teardown);
g_test_add (
"/ECalClient/GetView/Async",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_async,
e_test_server_utils_setup,
test_get_view_async,
e_test_server_utils_teardown);
#include "e-test-server-utils.h"
-static ETestServerClosure cal_closure =
- { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS };
+static ETestServerClosure cal_closure_sync =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, FALSE };
+static ETestServerClosure cal_closure_async =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, TRUE };
#define EVENT_SUMMARY "Creation of new test event"
g_test_add (
"/ECalClient/ModifyObject/Sync",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_sync,
e_test_server_utils_setup,
test_modify_object_sync,
e_test_server_utils_teardown);
g_test_add (
"/ECalClient/ModifyObject/Async",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_async,
e_test_server_utils_setup,
test_modify_object_async,
e_test_server_utils_teardown);
#include "e-test-server-utils.h"
-static ETestServerClosure cal_closure =
- { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS };
+static ETestServerClosure cal_closure_sync =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, FALSE };
+static ETestServerClosure cal_closure_async =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, TRUE };
static icalcomponent *
create_object (void)
g_test_add (
"/ECalClient/ReceiveObjects/Sync",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_sync,
e_test_server_utils_setup,
test_receive_objects_sync,
e_test_server_utils_teardown);
g_test_add (
"/ECalClient/ReceiveObjects/Async",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_async,
e_test_server_utils_setup,
test_receive_objects_async,
e_test_server_utils_teardown);
#include "e-test-server-utils.h"
-static ETestServerClosure cal_closure =
- { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS };
+static ETestServerClosure cal_closure_sync =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, FALSE };
+static ETestServerClosure cal_closure_async =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, TRUE };
static void
setup_cal (ECalClient *cal_client)
g_test_add (
"/ECalClient/Refresh/Sync",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_sync,
e_test_server_utils_setup,
test_refresh_sync,
e_test_server_utils_teardown);
g_test_add (
"/ECalClient/Refresh/Async",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_async,
e_test_server_utils_setup,
test_refresh_async,
e_test_server_utils_teardown);
#include "e-test-server-utils.h"
-static ETestServerClosure cal_closure =
- { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS };
+static ETestServerClosure cal_closure_sync =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, FALSE };
+static ETestServerClosure cal_closure_async =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, TRUE };
static gchar *
create_object (ECalClient *cal_client)
g_test_add (
"/ECalClient/RemoveObject/Sync",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_sync,
e_test_server_utils_setup,
test_remove_object_sync,
e_test_server_utils_teardown);
g_test_add (
"/ECalClient/RemoveObject/Async",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_async,
e_test_server_utils_setup,
test_remove_object_async,
e_test_server_utils_teardown);
g_test_add (
"/ECalClient/RemoveObject/EmptyUid",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_sync,
e_test_server_utils_setup,
test_remove_object_empty_uid,
e_test_server_utils_teardown);
#include "e-test-server-utils.h"
-static ETestServerClosure cal_closure =
- { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS };
+static ETestServerClosure cal_closure_sync =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, FALSE };
+static ETestServerClosure cal_closure_async =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, TRUE };
typedef enum {
SUBTEST_OBJECTS_ADDED,
g_test_add (
"/ECalClient/GetRevisionView/Sync",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_sync,
e_test_server_utils_setup,
test_get_revision_view_sync,
e_test_server_utils_teardown);
g_test_add (
"/ECalClient/GetRevisionView/Async",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_async,
e_test_server_utils_setup,
test_get_revision_view_async,
e_test_server_utils_teardown);
#include "e-test-server-utils.h"
-static ETestServerClosure cal_closure =
- { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS };
+static ETestServerClosure cal_closure_sync =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, FALSE };
+static ETestServerClosure cal_closure_async =
+ { E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, FALSE, NULL, TRUE };
static void
print_ecomp (ECalComponent *ecalcomp)
g_test_add (
"/ECalClient/SendObjects/Sync",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_sync,
e_test_server_utils_setup,
test_send_objects_sync,
e_test_server_utils_teardown);
g_test_add (
"/ECalClient/SendObjects/Async",
ETestServerFixture,
- &cal_closure,
+ &cal_closure_async,
e_test_server_utils_setup,
test_send_objects_async,
e_test_server_utils_teardown);