diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-10-25 09:04:31 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-10-25 09:04:31 +0000 |
commit | 0c4def895208ab6c4f5077da50f2235a8882e840 (patch) | |
tree | 2ca835091f57262e147512e50ac12f9364a6b73f /test | |
parent | 2803afb2bcf521af8963d9b3494c02c9c906d69b (diff) | |
download | libdom-0c4def895208ab6c4f5077da50f2235a8882e840.tar.gz libdom-0c4def895208ab6c4f5077da50f2235a8882e840.tar.bz2 |
allow tests to use the unsigned long type for testing dom_ulong interfaces
Diffstat (limited to 'test')
-rw-r--r-- | test/DOMTSHandler.pm | 3 | ||||
-rw-r--r-- | test/testutils/domtsasserts.c | 7 | ||||
-rw-r--r-- | test/testutils/domtsasserts.h | 1 |
3 files changed, 10 insertions, 1 deletions
diff --git a/test/DOMTSHandler.pm b/test/DOMTSHandler.pm index 55f30bc..09b657e 100644 --- a/test/DOMTSHandler.pm +++ b/test/DOMTSHandler.pm @@ -31,7 +31,7 @@ our %special_type = ( # Some of the type are not defined now! boolean => "bool ", int => "int32_t ", - "unsigned long" => "uint32_t ", + "unsigned long" => "dom_ulong ", DOMString => "dom_string *", List => "list *", Collection => "list *", @@ -101,6 +101,7 @@ our %no_unref = ( "boolean" => 1, "int" => 1, "unsigned int" => 1, + "unsigned long" => 1, "List" => 1, "Collection" => 1, ); diff --git a/test/testutils/domtsasserts.c b/test/testutils/domtsasserts.c index cbb8ed0..85ee969 100644 --- a/test/testutils/domtsasserts.c +++ b/test/testutils/domtsasserts.c @@ -76,6 +76,13 @@ bool is_equals_unsigned_int32_t(uint32_t expected, uint32_t actual, bool dummy) return expected == actual; } +bool is_equals_unsigned_long(dom_ulong expected, dom_ulong actual, bool dummy) +{ + UNUSED(dummy); + + return expected == actual; +} + /** * Test whether two string are equal * diff --git a/test/testutils/domtsasserts.h b/test/testutils/domtsasserts.h index 1a292f7..9091c01 100644 --- a/test/testutils/domtsasserts.h +++ b/test/testutils/domtsasserts.h @@ -35,6 +35,7 @@ bool is_same_unsigned_int32_t(uint32_t excepted, uint32_t actual); bool is_equals_int(int excepted, int actual, bool dummy); bool is_equals_unsigned_int32_t(uint32_t excepted, uint32_t actual, bool dummy); +bool is_equals_unsigned_long(dom_ulong excepted, dom_ulong actual, bool dummy); bool is_equals_bool(bool excepted, bool actual, bool dummy); bool is_equals_string(const char *excepted, dom_string *actual, bool ignoreCase); |