[evolution-data-server/openismus-work] Updating test cases to use ESourceRevisionGuards instead of ESourceAddressBookConfig



commit 3ed62304d2b5e210f20969bed7153b06abde78ae
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Tue Jan 29 16:56:58 2013 +0900

    Updating test cases to use ESourceRevisionGuards instead of ESourceAddressBookConfig

 tests/libebook/client/client-test-utils.c       |    8 ++++----
 tests/libebook/client/test-client-write-write.c |    8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/tests/libebook/client/client-test-utils.c b/tests/libebook/client/client-test-utils.c
index 267534b..172e5c9 100644
--- a/tests/libebook/client/client-test-utils.c
+++ b/tests/libebook/client/client-test-utils.c
@@ -392,7 +392,7 @@ register_source_idle (CreateBookData *data)
 {
 	GError *error = NULL;
 	ESourceBackend  *backend;
-	ESourceAddressBookConfig *config;
+	ESourceRevisionGuards *guards;
 
 	data->registry = e_source_registry_new_sync (NULL, &error);
 	if (!data->registry)
@@ -405,9 +405,9 @@ 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");
 
-	REGISTER_TYPE (E_TYPE_SOURCE_ADDRESS_BOOK_CONFIG);
-	config = e_source_get_extension (data->scratch, E_SOURCE_EXTENSION_ADDRESS_BOOK_CONFIG);
-	e_source_address_book_config_set_revision_guards_enabled (config, TRUE);
+	REGISTER_TYPE (E_TYPE_SOURCE_REVISION_GUARDS);
+	guards = e_source_get_extension (data->scratch, E_SOURCE_EXTENSION_REVISION_GUARDS);
+	e_source_revision_guards_set_enabled (guards, TRUE);
 
 	if (data->on_setup)
 		data->on_setup (data->scratch);
diff --git a/tests/libebook/client/test-client-write-write.c b/tests/libebook/client/test-client-write-write.c
index e361be5..2ec6d5a 100644
--- a/tests/libebook/client/test-client-write-write.c
+++ b/tests/libebook/client/test-client-write-write.c
@@ -18,11 +18,11 @@ static void
 setup_custom_book (ESource            *scratch,
 		   ETestServerClosure *closure)
 {
-	ESourceAddressBookConfig *config;
+	ESourceRevisionGuards *guards;
 
-	g_type_class_unref (g_type_class_ref (E_TYPE_SOURCE_ADDRESS_BOOK_CONFIG));
-	config = e_source_get_extension (scratch, E_SOURCE_EXTENSION_ADDRESS_BOOK_CONFIG);
-	e_source_address_book_config_set_revision_guards_enabled (config, TRUE);
+	g_type_class_unref (g_type_class_ref (E_TYPE_SOURCE_REVISION_GUARDS));
+	guards = e_source_get_extension (scratch, E_SOURCE_EXTENSION_REVISION_GUARDS);
+	e_source_revision_guards_set_enabled (guards, TRUE);
 }
 
 



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