]> git.0d.be Git - empathy.git/commitdiff
Add a test for the assistant
authorCosimo Cecchi <cosimoc@gnome.org>
Sat, 1 Aug 2009 15:33:21 +0000 (17:33 +0200)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sat, 22 Aug 2009 13:13:12 +0000 (14:13 +0100)
tests/Makefile.am
tests/test-empathy-account-assistant.c [new file with mode: 0644]

index 7f99eaf364c01e4411424df32a3fbfa6295f38b3..eb5dba52910c9361cddc6c441a2dbfd30b9750c7 100644 (file)
@@ -25,6 +25,7 @@ LDADD =                                                               \
 noinst_PROGRAMS =                      \
        contact-manager                 \
        empetit                         \
+       test-empathy-account-assistant \
        test-empathy-presence-chooser   \
        test-empathy-status-preset-dialog \
        test-empathy-protocol-chooser
@@ -34,6 +35,7 @@ empetit_SOURCES = empetit.c
 test_empathy_presence_chooser_SOURCES = test-empathy-presence-chooser.c
 test_empathy_status_preset_dialog_SOURCES = test-empathy-status-preset-dialog.c
 test_empathy_protocol_chooser_SOURCES = test-empathy-protocol-chooser.c
+test_empathy_account_assistant_SOURCES = test-empathy-account-assistant.c
 
 check_PROGRAMS = check-main
 TESTS = check-main
diff --git a/tests/test-empathy-account-assistant.c b/tests/test-empathy-account-assistant.c
new file mode 100644 (file)
index 0000000..bdcbe6c
--- /dev/null
@@ -0,0 +1,25 @@
+#include <config.h>
+
+#include <gtk/gtk.h>
+
+#include <libempathy-gtk/empathy-ui-utils.h>
+#include <libempathy-gtk/empathy-account-assistant.h>
+
+int main (int argc, char *argv)
+{
+  GtkWidget *assistant;
+
+  gtk_init (&argc, &argv);
+  empathy_gtk_init ();
+
+  assistant = empathy_account_assistant_new ();
+
+  gtk_widget_show_all (assistant);
+
+  g_signal_connect_swapped (assistant, "destroy",
+      G_CALLBACK (gtk_main_quit), NULL);
+
+  gtk_main ();
+
+  return 0;
+}