#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
#define N_CONTACTS 5
#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
#define N_CONTACTS 6
#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure_sync = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_async = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
static void
test_add_contact_sync (ETestServerFixture *fixture,
g_test_add (
"/EBookClient/AddContact/Sync",
ETestServerFixture,
- &book_closure,
+ &book_closure_sync,
e_test_server_utils_setup,
test_add_contact_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/AddContact/Async",
ETestServerFixture,
- &book_closure,
+ &book_closure_async,
e_test_server_utils_setup,
test_add_contact_async,
e_test_server_utils_teardown);
#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
-static ETestServerClosure direct_book_closure = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure_sync = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_async = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
+static ETestServerClosure book_closure_direct_sync = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_direct_async = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
static void
test_get_contact_uids_sync (ETestServerFixture *fixture,
g_test_add (
"/EBookClient/GetContactUids/Sync",
ETestServerFixture,
- &book_closure,
+ &book_closure_sync,
e_test_server_utils_setup,
test_get_contact_uids_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/GetContactUids/Async",
ETestServerFixture,
- &book_closure,
+ &book_closure_async,
e_test_server_utils_setup,
test_get_contact_uids_async,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/DirectAccess/GetContactUids/Sync",
ETestServerFixture,
- &direct_book_closure,
+ &book_closure_direct_sync,
e_test_server_utils_setup,
test_get_contact_uids_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/DirectAccess/GetContactUids/Async",
ETestServerFixture,
- &direct_book_closure,
+ &book_closure_direct_async,
e_test_server_utils_setup,
test_get_contact_uids_async,
e_test_server_utils_teardown);
#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
-static ETestServerClosure direct_book_closure = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure_sync = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_async = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
+static ETestServerClosure book_closure_direct_sync = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_direct_async = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
static void
test_get_contact_sync (ETestServerFixture *fixture,
g_test_add (
"/EBookClient/GetContact/Sync",
ETestServerFixture,
- &book_closure,
+ &book_closure_sync,
e_test_server_utils_setup,
test_get_contact_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/GetContact/Async",
ETestServerFixture,
- &book_closure,
+ &book_closure_async,
e_test_server_utils_setup,
test_get_contact_async,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/DirectAccess/GetContact/Sync",
ETestServerFixture,
- &direct_book_closure,
+ &book_closure_direct_sync,
e_test_server_utils_setup,
test_get_contact_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/DirectAccess/GetContact/Async",
ETestServerFixture,
- &direct_book_closure,
+ &book_closure_direct_async,
e_test_server_utils_setup,
test_get_contact_async,
e_test_server_utils_teardown);
#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
-static ETestServerClosure direct_book_closure = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure_sync = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_async = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
+static ETestServerClosure book_closure_direct_sync = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_direct_async = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
static void
objects_added (EBookClientView *view,
g_test_add (
"/EBookClient/GetBookClientView/Sync",
ETestServerFixture,
- &book_closure,
+ &book_closure_sync,
e_test_server_utils_setup,
test_get_view_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/GetBookClientView/Async",
ETestServerFixture,
- &book_closure,
+ &book_closure_async,
e_test_server_utils_setup,
test_get_view_async,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/DirectAccess/GetBookClientView/Sync",
ETestServerFixture,
- &direct_book_closure,
+ &book_closure_direct_sync,
e_test_server_utils_setup,
test_get_view_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/DirectAccess/GetBookClientView/Async",
ETestServerFixture,
- &direct_book_closure,
+ &book_closure_direct_async,
e_test_server_utils_setup,
test_get_view_async,
e_test_server_utils_teardown);
#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure_sync = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_async = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
#define EMAIL_ADD "foo@bar.com"
g_test_add (
"/EBookClient/ModifyContact/Sync",
ETestServerFixture,
- &book_closure,
+ &book_closure_sync,
e_test_server_utils_setup,
test_modify_contact_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/ModifyContact/Async",
ETestServerFixture,
- &book_closure,
+ &book_closure_async,
e_test_server_utils_setup,
test_modify_contact_async,
e_test_server_utils_teardown);
#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure_sync = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_async = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
/* asynchronous callback with a main-loop running */
static void
g_test_add (
"/EBookClient/Refresh/Sync",
ETestServerFixture,
- &book_closure,
+ &book_closure_sync,
e_test_server_utils_setup,
test_refresh_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/Refresh/Async",
ETestServerFixture,
- &book_closure,
+ &book_closure_async,
e_test_server_utils_setup,
test_refresh_async,
e_test_server_utils_teardown);
#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure_sync = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_async = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
static void
test_remove_contact_by_uid_sync (ETestServerFixture *fixture,
g_test_add (
"/EBookClient/RemoveContactByUid/Sync",
ETestServerFixture,
- &book_closure,
+ &book_closure_sync,
e_test_server_utils_setup,
test_remove_contact_by_uid_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/RemoveContactByUid/Async",
ETestServerFixture,
- &book_closure,
+ &book_closure_async,
e_test_server_utils_setup,
test_remove_contact_by_uid_async,
e_test_server_utils_teardown);
#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
-static ETestServerClosure direct_book_closure = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure_sync = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_async = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
+static ETestServerClosure book_closure_direct_sync = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_direct_async = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
static void
check_removed_contact (EBookClient *book_client,
g_test_add (
"/EBookClient/RemoveContact/Sync",
ETestServerFixture,
- &book_closure,
+ &book_closure_sync,
e_test_server_utils_setup,
test_remove_contact_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/RemoveContact/Async",
ETestServerFixture,
- &book_closure,
+ &book_closure_async,
e_test_server_utils_setup,
test_remove_contact_async,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/DirectAccess/RemoveContact/Sync",
ETestServerFixture,
- &direct_book_closure,
+ &book_closure_direct_sync,
e_test_server_utils_setup,
test_remove_contact_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/DirectAccess/RemoveContact/Async",
ETestServerFixture,
- &direct_book_closure,
+ &book_closure_direct_async,
e_test_server_utils_setup,
test_remove_contact_async,
e_test_server_utils_teardown);
#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure_sync = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_async = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
static void
check_removed (EBookClient *book_client,
g_test_add (
"/EBookClient/RemoveContacts/Sync",
ETestServerFixture,
- &book_closure,
+ &book_closure_sync,
e_test_server_utils_setup,
test_remove_contacts_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/RemoveContacts/Async",
ETestServerFixture,
- &book_closure,
+ &book_closure_async,
e_test_server_utils_setup,
test_remove_contacts_async,
e_test_server_utils_teardown);
#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure_sync = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_async = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
#define N_TEST_CONTACTS 4
g_test_add (
"/EBookClient/RevisionView/Sync",
ETestServerFixture,
- &book_closure,
+ &book_closure_sync,
e_test_server_utils_setup,
test_revision_view_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/RevisionView/Async",
ETestServerFixture,
- &book_closure,
+ &book_closure_async,
e_test_server_utils_setup,
test_revision_view_async,
e_test_server_utils_teardown);
#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
-static ETestServerClosure direct_book_closure = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure_sync = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_async = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
+static ETestServerClosure book_closure_direct_sync = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_direct_async = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
#define NOTIFICATION_WAIT 2000
g_test_add (
"/EBookClient/SuppressNotifications/Sync",
ETestServerFixture,
- &book_closure,
+ &book_closure_sync,
e_test_server_utils_setup,
test_suppress_notifications_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/SuppressNotifications/Async",
ETestServerFixture,
- &book_closure,
+ &book_closure_async,
e_test_server_utils_setup,
test_suppress_notifications_async,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/DirectAccess/SuppressNotifications/Sync",
ETestServerFixture,
- &direct_book_closure,
+ &book_closure_direct_sync,
e_test_server_utils_setup,
test_suppress_notifications_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/DirectAccess/SuppressNotifications/Async",
ETestServerFixture,
- &direct_book_closure,
+ &book_closure_direct_async,
e_test_server_utils_setup,
test_suppress_notifications_async,
e_test_server_utils_teardown);
gboolean uids_only;
} UIDOnlyClosure;
-static UIDOnlyClosure book_closure_all_data = { { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 }, FALSE };
-static UIDOnlyClosure book_closure_uids_only = { { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 }, TRUE };
+static UIDOnlyClosure book_closure_all_data_sync = { { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE }, FALSE };
+static UIDOnlyClosure book_closure_all_data_async = { { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE }, FALSE };
+static UIDOnlyClosure book_closure_uids_only_sync = { { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE }, TRUE };
+static UIDOnlyClosure book_closure_uids_only_async = { { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE }, TRUE };
#define N_TEST_CONTACTS 4
g_test_add (
"/EBookClient/UidOnlyView/Sync/AllData",
ETestServerFixture,
- &book_closure_all_data,
+ &book_closure_all_data_sync,
e_test_server_utils_setup,
test_get_view_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/UidOnlyView/Sync/UidsOnly",
ETestServerFixture,
- &book_closure_uids_only,
+ &book_closure_uids_only_sync,
e_test_server_utils_setup,
test_get_view_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/UidOnlyView/Async/AllData",
ETestServerFixture,
- &book_closure_all_data,
+ &book_closure_all_data_async,
e_test_server_utils_setup,
test_get_view_async,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/UidOnlyView/Async/UidsOnly",
ETestServerFixture,
- &book_closure_uids_only,
+ &book_closure_uids_only_async,
e_test_server_utils_setup,
test_get_view_async,
e_test_server_utils_teardown);
#include "client-test-utils.h"
#include "e-test-server-utils.h"
-static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
-static ETestServerClosure direct_book_closure = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0 };
+static ETestServerClosure book_closure_sync = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_async = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
+static ETestServerClosure book_closure_direct_sync = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0, FALSE, NULL, FALSE };
+static ETestServerClosure book_closure_direct_async = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0, FALSE, NULL, TRUE };
#define N_THREADS 5
#define N_CONTACTS 5
g_test_add (
"/EBookClient/ConcurrentViews/Sync",
ETestServerFixture,
- &book_closure,
+ &book_closure_sync,
e_test_server_utils_setup,
test_concurrent_views_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/ConcurrentViews/Async",
ETestServerFixture,
- &book_closure,
+ &book_closure_async,
e_test_server_utils_setup,
test_concurrent_views_async,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/DirectAccess/ConcurrentViews/Sync",
ETestServerFixture,
- &direct_book_closure,
+ &book_closure_direct_sync,
e_test_server_utils_setup,
test_concurrent_views_sync,
e_test_server_utils_teardown);
g_test_add (
"/EBookClient/DirectAccess/ConcurrentViews/Async",
ETestServerFixture,
- &direct_book_closure,
+ &book_closure_direct_async,
e_test_server_utils_setup,
test_concurrent_views_async,
e_test_server_utils_teardown);