]> git.0d.be Git - empathy.git/commitdiff
rename check-empathy-irc-chatroom-manager.c to check-empathy-chatroom-manager.c
authorXavier Claessens <xclaesse@src.gnome.org>
Mon, 13 Oct 2008 07:53:53 +0000 (07:53 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 13 Oct 2008 07:53:53 +0000 (07:53 +0000)
svn path=/trunk/; revision=1545

tests/Makefile.am
tests/check-empathy-chatroom-manager.c [new file with mode: 0644]
tests/check-empathy-irc-chatroom-manager.c [deleted file]

index e921019598718a24d09181ffdffb5503707bee3a..6134aa142cab65dbd10faa12c52d230e28f1ceed 100644 (file)
@@ -39,7 +39,7 @@ check_main_SOURCES =                             \
     check-empathy-irc-network.c                  \
     check-empathy-irc-network-manager.c          \
     check-empathy-chatroom.c                     \
-    check-empathy-irc-chatroom-manager.c
+    check-empathy-chatroom-manager.c
 
 check_main_LDADD = \
     @CHECK_LIBS@ \
diff --git a/tests/check-empathy-chatroom-manager.c b/tests/check-empathy-chatroom-manager.c
new file mode 100644 (file)
index 0000000..1f5daaf
--- /dev/null
@@ -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;
+}
diff --git a/tests/check-empathy-irc-chatroom-manager.c b/tests/check-empathy-irc-chatroom-manager.c
deleted file mode 100644 (file)
index 0865a5a..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#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;
-}