[evolution-data-server/openismus-work] client-test-utils.c: Enable revision guards for test cases
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work] client-test-utils.c: Enable revision guards for test cases
- Date: Fri, 7 Dec 2012 07:53:28 +0000 (UTC)
commit ca072ae71f26e2c0bab778faba84db2b6a17a9a1
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Fri Dec 7 16:50:17 2012 +0900
client-test-utils.c: Enable revision guards for test cases
Since the default is now off, this is needed for our test-client-write-write
to pass.
tests/libebook/client/client-test-utils.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tests/libebook/client/client-test-utils.c b/tests/libebook/client/client-test-utils.c
index 578d851..f894895 100644
--- a/tests/libebook/client/client-test-utils.c
+++ b/tests/libebook/client/client-test-utils.c
@@ -339,6 +339,7 @@ register_source_idle (CreateBookData *data)
{
GError *error = NULL;
ESourceBackend *backend;
+ ESourceAddressBookConfig *config;
data->registry = e_source_registry_new_sync (NULL, &error);
if (!data->registry)
@@ -351,6 +352,10 @@ 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);
+
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]