[evolution-data-server/openismus-work] client-test-utils: Use direct access mode, now without using the extension.



commit 8822d2e355b1e7611a80b7e151d5f506f2f1b8fb
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Thu Nov 22 17:45:34 2012 +0900

    client-test-utils: Use direct access mode, now without using the extension.

 tests/libebook/client/client-test-utils.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/tests/libebook/client/client-test-utils.c b/tests/libebook/client/client-test-utils.c
index 0f81738..fe0204b 100644
--- a/tests/libebook/client/client-test-utils.c
+++ b/tests/libebook/client/client-test-utils.c
@@ -335,8 +335,6 @@ register_source_idle (CreateBookData *data)
 {
 	GError *error = NULL;
 	ESourceBackend  *backend;
-	ESourceDirectAccess *direct;
-	gchar *backend_path;
 
 	data->registry = e_source_registry_new_sync (NULL, &error);
 	if (!data->registry)
@@ -349,14 +347,6 @@ register_source_idle (CreateBookData *data)
 	backend = e_source_get_extension (data->scratch, E_SOURCE_EXTENSION_ADDRESS_BOOK);
 	e_source_backend_set_backend_name (backend, "local");
 
-	/* Configure for direct access */
-	REGISTER_TYPE (E_TYPE_SOURCE_DIRECT_ACCESS);
-	direct = e_source_get_extension (data->scratch, E_SOURCE_EXTENSION_DIRECT_ACCESS);
-	backend_path = g_build_filename (BACKENDDIR, "libebookbackendfile.so", NULL);
-	e_source_direct_access_set_backend_path (direct, backend_path);
-	e_source_direct_access_set_backend_name (direct, "EBookBackendFileFactory");
-	g_free (backend_path);
-
 	if (!e_source_registry_commit_source_sync (data->registry, data->scratch, NULL, &error))
 		g_error ("Unable to add new source to the registry for uid %s: %s", data->uid, error->message);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]