summaryrefslogtreecommitdiff
path: root/test/lib/testobject.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-09-22 13:32:42 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-09-22 13:32:42 +0000
commit316300e38a70897e33879df500509fe4aa76dc7e (patch)
tree66b241e6ef7384e9bed2b57b11c5d8f075601b12 /test/lib/testobject.h
parent5a191b39cb8872c19f39634c8a85a4fe85dacac3 (diff)
downloadlibdom-316300e38a70897e33879df500509fe4aa76dc7e.tar.gz
libdom-316300e38a70897e33879df500509fe4aa76dc7e.tar.bz2
Create a library of utility functions for the testsuite to use
Make test/binding.c include stdio.h itself rather than relying on other things to include it. svn path=/trunk/dom/; revision=3568
Diffstat (limited to 'test/lib/testobject.h')
-rw-r--r--test/lib/testobject.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/lib/testobject.h b/test/lib/testobject.h
new file mode 100644
index 0000000..c72b39f
--- /dev/null
+++ b/test/lib/testobject.h
@@ -0,0 +1,22 @@
+/*
+ * This file is part of libdom test suite.
+ * Licensed under the MIT License,
+ * http://www.opensource.org/licenses/mit-license.php
+ * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
+ */
+
+#ifndef testobject_h_
+#define testobject_h_
+
+#include <stdbool.h>
+
+struct TestObject;
+typedef struct TestObject TestObject;
+
+TestObject *test_object_create(int argc, char **argv,
+ const char *uri, bool will_be_modified);
+struct dom_document *test_object_get_doc(TestObject *obj);
+const char *test_object_get_mimetype(TestObject *obj);
+
+#endif
+