g_free (file);
g_object_unref (mgr);
- remove_account_from_gconf (account);
- mc_account_delete (account);
- g_object_unref (account);
+ destroy_test_account (account);
}
END_TEST
chatroom = empathy_chatroom_new (account);
fail_if (chatroom == NULL);
- /* destroy the account as we don't have to add it to the accounts
- * configuration */
- /* FIXME: the account is not really removed */
- mc_account_delete (account);
- g_object_unref (account);
-
return chatroom;
}
fail_if (auto_connect);
fail_if (favorite);
+ destroy_test_account (empathy_chatroom_get_account (chatroom));
g_object_unref (chatroom);
}
END_TEST
fail_if (auto_connect);
fail_if (favorite);
+ destroy_test_account (empathy_chatroom_get_account (chatroom));
g_object_unref (chatroom);
}
END_TEST
}
void
-remove_account_from_gconf (McAccount *account)
+destroy_test_account (McAccount *account)
{
GConfClient *client;
gchar *path;
g_object_unref (client);
g_free (path);
+
+ mc_account_delete (account);
+ g_object_unref (account);
}
gchar * get_xml_file (const gchar *filename);
gchar * get_user_xml_file (const gchar *filename);
void copy_xml_file (const gchar *orig, const gchar *dest);
-void remove_account_from_gconf (McAccount *account);
McAccount * create_test_account (void);
+void destroy_test_account (McAccount *account);
#endif /* #ifndef __CHECK_EMPATHY_HELPERS_H__ */