1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#ifndef CLIENT_TEST_UTILS_H
#define CLIENT_TEST_UTILS_H
#include <libebook/e-book-client.h>
#include <libebook/e-contact.h>
void report_error (const gchar *operation, GError **error);
void print_email (EContact *contact);
EBookClient *open_system_book (gboolean only_if_exists);
void main_initialize (void);
void start_main_loop (GThreadFunc func, gpointer data);
void start_in_thread_with_main_loop (GThreadFunc func, gpointer data);
void start_in_idle_with_main_loop (GThreadFunc func, gpointer data);
void stop_main_loop (gint stop_result);
gint get_main_loop_stop_result (void);
void foreach_configured_source (void (*func) (ESource *source));
gpointer foreach_configured_source_async_start (ESource **source);
gboolean foreach_configured_source_async_next (gpointer *foreach_async_data, ESource **source);
EBookClient *new_temp_client (gchar **uri);
gboolean add_contact_from_test_case_verify (EBookClient *book_client, const gchar *case_name, EContact **contact);
gboolean add_contact_verify (EBookClient *book_client, EContact *contact);
gchar *new_vcard_from_test_case (const gchar *case_name);
#endif /* CLIENT_TEST_UTILS_H */
|