vala r2418 - in trunk: . vapi



Author: juergbi
Date: Wed Feb  4 20:05:55 2009
New Revision: 2418
URL: http://svn.gnome.org/viewvc/vala?rev=2418&view=rev

Log:
2009-02-04  JÃrg Billeter  <j bitron ch>

	* vapi/glib-2.0.vapi:

	Add GTestCase and GTestSuite bindings, patch by John Carr,
	fixes bug 570518


Modified:
   trunk/ChangeLog
   trunk/vapi/glib-2.0.vapi

Modified: trunk/vapi/glib-2.0.vapi
==============================================================================
--- trunk/vapi/glib-2.0.vapi	(original)
+++ trunk/vapi/glib-2.0.vapi	Wed Feb  4 20:05:55 2009
@@ -2702,6 +2702,27 @@
 		public static double rand_double_range ();
 	}
 
+	[Compact]
+	[CCode (cname = "GTestCase", ref_function = "", unref_function = "")]
+	public class TestCase {
+		[CCode (cname = "g_test_create_case")]
+		public TestCase (string test_name, size_t data_size, [CCode (delegate_target_pos = 2.9)] TestFunc data_setupvoid, [CCode (delegate_target_pos = 2.9)] TestFunc data_funcvoid, [CCode (delegate_target_pos = 2.9)] TestFunc data_teardownvoid);
+	}
+
+	[Compact]
+	[CCode (cname = "GTestSuite", ref_function = "", unref_function = "")]
+	public class TestSuite {
+		[CCode (cname = "g_test_create_suite")]
+		public TestSuite (string name);
+		[CCode (cname = "g_test_get_root")]
+		public static TestSuite get_root ();
+		[CCode (cname = "g_test_suite_add")]
+		public void add (TestCase test_case);
+		[CCode (cname = "g_test_suite_add_suite")]
+		public void add_suite (TestSuite test_suite);
+	}
+
+	public delegate void TestFunc (void* fixture);
 	public delegate void DataTestFunc ();
 
 	[Flags]



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