summaryrefslogtreecommitdiff
path: root/test/lib/testassert.h
diff options
context:
space:
mode:
authorBo Yang <struggleyb.nku@gmail.com>2009-08-11 11:17:23 +0000
committerBo Yang <struggleyb.nku@gmail.com>2009-08-11 11:17:23 +0000
commit399da01ae4eb5c5e3e9349bacc2063c946c3d4a1 (patch)
tree433c8bcde94fc7a6e6f2e5cbf23842a84db98146 /test/lib/testassert.h
parenteec057c7437e19b59ca1e698ce548cb56ce37240 (diff)
downloadlibdom-399da01ae4eb5c5e3e9349bacc2063c946c3d4a1.tar.gz
libdom-399da01ae4eb5c5e3e9349bacc2063c946c3d4a1.tar.bz2
Merge the branches/struggleyb/libdom-remain back to trunk.
svn path=/trunk/dom/; revision=9191
Diffstat (limited to 'test/lib/testassert.h')
-rw-r--r--test/lib/testassert.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/test/lib/testassert.h b/test/lib/testassert.h
deleted file mode 100644
index 85472ce..0000000
--- a/test/lib/testassert.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * 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 testassert_h_
-#define testassert_h_
-
-#include "comparators.h"
-#include "list.h"
-
-/* Redefine assert, so we can simply use the standard assert mechanism
- * within testcases and exit with the right output for the testrunner
- * to do the right thing. */
-void __assert2(const char *expr, const char *function,
- const char *file, int line);
-
-#define assert(expr) \
- ((void) ((expr) || (__assert2 (#expr, __func__, __FILE__, __LINE__), 0)))
-
-void assert_equals_collection(struct list* expected, struct list* actual,
- comparator comparator);
-
-void assert_equals(void* expected, void* actual, comparator comparator);
-
-void assert_same(void* expected, void* actual, comparator comparator);
-
-void assert_uri_equals(char* scheme, char* path, char* host, char* file,
- char* name, char* query, char* fragment, bool isAbsolute,
- char* actual);
-
-#endif