1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
4
#include <libebook/e-book.h>
6
#include "ebook-test-utils.h"
9
main (gint argc, gchar **argv)
15
EContact *contact_final;
23
book = ebook_test_utils_book_new_temp (NULL);
24
ebook_test_utils_book_open (book, FALSE);
29
uid = ebook_test_utils_book_add_contact_from_test_case_verify (book, "simple-1", &contact_final);
31
test_print ("successfully added and retrieved contact '%s'\n", uid);
32
g_object_unref (contact_final);
34
ebook_test_utils_book_remove (book);
39
book = ebook_test_utils_book_new_temp (NULL);
40
ebook_test_utils_book_open (book, FALSE);
41
vcard = ebook_test_utils_new_vcard_from_test_case ("simple-1");
42
contact = e_contact_new_from_vcard (vcard);
44
loop = g_main_loop_new (NULL, TRUE);
45
ebook_test_utils_book_async_add_contact (book, contact,
46
ebook_test_utils_callback_quit, loop);
49
g_main_loop_run (loop);
51
ebook_test_utils_book_remove (book);