[tracker/tracker-0.10] tests/libtracker-extract: Complete tracker-encoding tests



commit f29924a3750c88efa5db04ed1ea28838fed5a6e9
Author: Ivan Frade <ivan frade gmail com>
Date:   Mon Oct 17 15:51:21 2011 +0300

    tests/libtracker-extract: Complete tracker-encoding tests

 tests/libtracker-extract/tracker-encoding-test.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/tests/libtracker-extract/tracker-encoding-test.c b/tests/libtracker-extract/tracker-encoding-test.c
index 4ce49e5..1e2a726 100644
--- a/tests/libtracker-extract/tracker-encoding-test.c
+++ b/tests/libtracker-extract/tracker-encoding-test.c
@@ -53,6 +53,17 @@ test_encoding_guessing ()
 }
 
 
+void
+test_encoding_can_guess ()
+{
+        /* This just duplicates the function code... */
+#if defined (HAVE_ENCA) || defined (HAVE_MEEGOTOUCH)
+        g_assert (tracker_encoding_can_guess ());
+#else
+        g_assert (!tracker_encoding_can_guess ());
+#endif       
+}
+
 int
 main (int argc, char **argv)
 {
@@ -62,6 +73,8 @@ main (int argc, char **argv)
 	tracker_locale_init ();
 	g_test_add_func ("/libtracker-extract/tracker-encoding/encoding_guessing",
 	                 test_encoding_guessing);
+	g_test_add_func ("/libtracker-extract/tracker-encoding/can_guess",
+	                 test_encoding_can_guess);
 	tracker_locale_shutdown ();
 
 	return g_test_run ();



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