diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-13 15:53:47 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-13 15:53:47 +0800 |
commit | 6f3cc357f582c89cdd43af7fbf5e21350edaa2a6 (patch) | |
tree | b48ad9e58a645e4f582680f18f8eba1595f0e86e /tests/check-empathy-irc-chatroom-manager.c | |
parent | fc8158f824770fc98f8170d686dd1d1f7a896712 (diff) | |
download | gsoc2013-empathy-6f3cc357f582c89cdd43af7fbf5e21350edaa2a6.tar gsoc2013-empathy-6f3cc357f582c89cdd43af7fbf5e21350edaa2a6.tar.gz gsoc2013-empathy-6f3cc357f582c89cdd43af7fbf5e21350edaa2a6.tar.bz2 gsoc2013-empathy-6f3cc357f582c89cdd43af7fbf5e21350edaa2a6.tar.lz gsoc2013-empathy-6f3cc357f582c89cdd43af7fbf5e21350edaa2a6.tar.xz gsoc2013-empathy-6f3cc357f582c89cdd43af7fbf5e21350edaa2a6.tar.zst gsoc2013-empathy-6f3cc357f582c89cdd43af7fbf5e21350edaa2a6.zip |
add a test file for EmpathyChatroomManager
svn path=/trunk/; revision=1543
Diffstat (limited to 'tests/check-empathy-irc-chatroom-manager.c')
-rw-r--r-- | tests/check-empathy-irc-chatroom-manager.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/check-empathy-irc-chatroom-manager.c b/tests/check-empathy-irc-chatroom-manager.c new file mode 100644 index 000000000..0865a5ae0 --- /dev/null +++ b/tests/check-empathy-irc-chatroom-manager.c @@ -0,0 +1,39 @@ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <glib/gstdio.h> + +#include <check.h> +#include "check-helpers.h" +#include "check-libempathy.h" +#include "check-irc-helper.h" + +#include <libempathy/empathy-chatroom-manager.h> + +static gchar * +get_xml_file (const gchar *filename) +{ + return g_build_filename (g_getenv ("EMPATHY_SRCDIR"), "tests", "xml", + filename, NULL); +} + +START_TEST (test_empathy_chatroom_manager_new) +{ + EmpathyChatroomManager *mgr; + gchar *file; + + file = get_xml_file ("chatrooms.xml"); + mgr = empathy_chatroom_manager_new (file); + + g_free (file); + g_object_unref (mgr); +} +END_TEST + +TCase * +make_empathy_chatroom_manager_tcase (void) +{ + TCase *tc = tcase_create ("empathy-irc-chatroom-manager"); + tcase_add_test (tc, test_empathy_chatroom_manager_new); + return tc; +} |