[empathy/mc5] Add a test for the assistant



commit 1b1ba53e2b64a4e5b3f9e27a54b3b863f5be0d4a
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Aug 1 17:33:21 2009 +0200

    Add a test for the assistant

 tests/Makefile.am                      |    2 ++
 tests/test-empathy-account-assistant.c |   25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7f99eaf..eb5dba5 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -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
index 0000000..bdcbe6c
--- /dev/null
+++ b/tests/test-empathy-account-assistant.c
@@ -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;
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]