aboutsummaryrefslogtreecommitdiffstats
path: root/tests/check-empathy-helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check-empathy-helpers.c')
-rw-r--r--tests/check-empathy-helpers.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/check-empathy-helpers.c b/tests/check-empathy-helpers.c
index 0f9678bbd..e67483d0d 100644
--- a/tests/check-empathy-helpers.c
+++ b/tests/check-empathy-helpers.c
@@ -63,6 +63,20 @@ copy_xml_file (const gchar *orig,
g_free (buffer);
}
+McAccount *
+create_test_account (void)
+{
+ McProfile *profile;
+ McAccount *account;
+
+ profile = mc_profile_lookup ("test");
+ account = mc_account_create (profile);
+
+ g_object_unref (profile);
+
+ return account;
+}
+
void
remove_account_from_gconf (McAccount *account)
{