aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/objecttype.cpp
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-12 18:04:01 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-16 18:42:52 -0300
commitf548708c9643481b023763aa25722a5a25a268e1 (patch)
treebeb320a64100129fc5dfe8fea8094c22e31b70f5 /tests/libsample/objecttype.cpp
parent6e6e88c719568af17b0dcbd6584f7f1b6c9acc80 (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.cpp')
-rw-r--r--tests/libsample/objecttype.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/libsample/objecttype.cpp b/tests/libsample/objecttype.cpp
index 4c608037e..d57dbeddd 100644
--- a/tests/libsample/objecttype.cpp
+++ b/tests/libsample/objecttype.cpp
@@ -40,7 +40,7 @@
using namespace std;
-ObjectType::ObjectType(ObjectType* parent) : m_parent(0), m_layout(0)
+ObjectType::ObjectType(ObjectType* parent) : m_parent(0), m_layout(0), m_call_id(-1)
{
setParent(parent);
}
@@ -260,3 +260,18 @@ ObjectType::setObjectNameWithSize(const Str& name, int size)
setObjectNameWithSize("", size, name);
}
+void ObjectType::setObject(ObjectType *)
+{
+ m_call_id = 0;
+}
+
+void ObjectType::setObject(const Null&)
+{
+ m_call_id = 1;
+}
+
+int ObjectType::callId() const
+{
+ return m_call_id;
+}
+