[evolution-data-server/openismus-work-master: 6/8] test-server-utils: Updated to use new apis for opening books and calendars
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work-master: 6/8] test-server-utils: Updated to use new apis for opening books and calendars
- Date: Thu, 14 Feb 2013 16:08:35 +0000 (UTC)
commit b8864aae27033e80ec8d1aea8559733a593c352a
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Thu Feb 14 21:55:13 2013 +0900
test-server-utils: Updated to use new apis for opening books and calendars
I.e. now using e_book_client_connect_sync() & e_cal_client_connect_sync()
tests/test-server-utils/e-test-server-utils.c | 20 +++++++-------------
1 files changed, 7 insertions(+), 13 deletions(-)
---
diff --git a/tests/test-server-utils/e-test-server-utils.c b/tests/test-server-utils/e-test-server-utils.c
index 4371afc..9a2d706 100644
--- a/tests/test-server-utils/e-test-server-utils.c
+++ b/tests/test-server-utils/e-test-server-utils.c
@@ -115,18 +115,15 @@ e_test_server_utils_source_added (ESourceRegistry *registry,
return;
if (g_getenv ("DEBUG_DIRECT") != NULL)
- pair->fixture->service.book_client =
- e_book_client_new_direct (pair->fixture->registry, source, &error);
+ pair->fixture->service.book_client = (EBookClient *)
+ e_book_client_connect_direct_sync (pair->fixture->registry, source, NULL,
&error);
else
- pair->fixture->service.book_client =
- e_book_client_new (source, &error);
+ pair->fixture->service.book_client = (EBookClient *)
+ e_book_client_connect_sync (source, NULL, &error);
if (!pair->fixture->service.book_client)
g_error ("Unable to create the test book: %s", error->message);
- if (!e_client_open_sync (E_CLIENT (pair->fixture->service.book_client), FALSE, NULL, &error))
- g_error ("Unable to open book client: %s", error->message);
-
break;
case E_TEST_SERVER_DEPRECATED_ADDRESS_BOOK:
@@ -146,15 +143,12 @@ e_test_server_utils_source_added (ESourceRegistry *registry,
if (g_strcmp0 (e_source_get_uid (source), CALENDAR_SOURCE_UID) != 0)
return;
- pair->fixture->service.calendar_client = e_cal_client_new (source,
- pair->closure->calendar_source_type,
- &error);
+ pair->fixture->service.calendar_client = (ECalClient *)
+ e_cal_client_connect_sync (source,
+ pair->closure->calendar_source_type, NULL, &error);
if (!pair->fixture->service.calendar_client)
g_error ("Unable to create the test calendar: %s", error->message);
- if (!e_client_open_sync (E_CLIENT (pair->fixture->service.calendar_client), FALSE, NULL,
&error))
- g_error ("Unable to open calendar client: %s", error->message);
-
break;
case E_TEST_SERVER_DEPRECATED_CALENDAR:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]