aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test3.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test3.c')
-rw-r--r--tests/test3.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/test3.c b/tests/test3.c
new file mode 100644
index 0000000000..a210ea3723
--- /dev/null
+++ b/tests/test3.c
@@ -0,0 +1,28 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+#include "camel.h"
+
+int
+main (int argc, char**argv)
+{
+ GtkType type;
+
+ gtk_init (&argc, &argv);
+ camel_init ();
+
+ printf ("Test 3 : data wrapper repository\n");
+
+ printf ("\nMime type : \"multipart\"\n");
+ type = data_wrapper_get_data_wrapper_type ("multipart");
+ printf ("Type found %s\n", gtk_type_name (type) );
+
+ printf ("\nMime type : \"multipart/alternative\"\n");
+ type = data_wrapper_get_data_wrapper_type ("multipart/alternative");
+ printf ("Type found %s\n", gtk_type_name (type) );
+
+ printf ("\nMime type : \"toto/titi\"\n");
+ type = data_wrapper_get_data_wrapper_type ("toto/titi");
+ printf ("Type found %s\n", gtk_type_name (type) );
+
+ printf ("Test3 finished\n");
+}
+