diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-08-12 18:04:01 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-08-16 18:42:52 -0300 |
commit | f548708c9643481b023763aa25722a5a25a268e1 (patch) | |
tree | beb320a64100129fc5dfe8fea8094c22e31b70f5 /tests/libsample/objecttype.h | |
parent | 6e6e88c719568af17b0dcbd6584f7f1b6c9acc80 (diff) |
Create unit test to function with ambiguous signature in Python side.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/libsample/objecttype.h')
-rw-r--r-- | tests/libsample/objecttype.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/libsample/objecttype.h b/tests/libsample/objecttype.h index 18454a121..9c0bb2123 100644 --- a/tests/libsample/objecttype.h +++ b/tests/libsample/objecttype.h @@ -37,6 +37,7 @@ #include <list> #include "str.h" +#include "null.h" #include "libsamplemacros.h" @@ -105,6 +106,11 @@ public: void setObjectNameWithSize(const char*, int size=9, const Str& name = Str("<unknown>")); void setObjectNameWithSize(const Str& name = Str("<unknown>"), int size=9); + //Function used to comfuse the generator when two values accept Null as arg + void setObject(ObjectType *); + void setObject(const Null&); + int callId() const; + private: ObjectType(const ObjectType&); @@ -117,6 +123,10 @@ private: ObjectTypeList m_children; ObjectTypeLayout* m_layout; + + + //used on overload null test + int m_call_id; }; LIBSAMPLE_API unsigned int objectTypeHash(const ObjectType* objectType); |