aboutsummaryrefslogtreecommitdiffstats
path: root/tests/check-empathy-chatroom-manager.c
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-10-13 15:53:53 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-10-13 15:53:53 +0800
commit58e296be8233777444ca729d3a1f16ff4230b33e (patch)
tree1bd9113fd6b50c49d46871e423abf38e6b3896cf /tests/check-empathy-chatroom-manager.c
parent41a47822d966e14ce52e9914389c1f93d8d8ed11 (diff)
downloadgsoc2013-empathy-58e296be8233777444ca729d3a1f16ff4230b33e.tar
gsoc2013-empathy-58e296be8233777444ca729d3a1f16ff4230b33e.tar.gz
gsoc2013-empathy-58e296be8233777444ca729d3a1f16ff4230b33e.tar.bz2
gsoc2013-empathy-58e296be8233777444ca729d3a1f16ff4230b33e.tar.lz
gsoc2013-empathy-58e296be8233777444ca729d3a1f16ff4230b33e.tar.xz
gsoc2013-empathy-58e296be8233777444ca729d3a1f16ff4230b33e.tar.zst
gsoc2013-empathy-58e296be8233777444ca729d3a1f16ff4230b33e.zip
rename check-empathy-irc-chatroom-manager.c to check-empathy-chatroom-manager.c
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1545 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'tests/check-empathy-chatroom-manager.c')
-rw-r--r--tests/check-empathy-chatroom-manager.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/check-empathy-chatroom-manager.c b/tests/check-empathy-chatroom-manager.c
new file mode 100644
index 000000000..1f5daaf16
--- /dev/null
+++ b/tests/check-empathy-chatroom-manager.c
@@ -0,0 +1,38 @@
+#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 <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-chatroom-manager");
+ tcase_add_test (tc, test_empathy_chatroom_manager_new);
+ return tc;
+}