aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-03-19 12:04:00 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-03-19 15:57:57 -0300
commitb8de1873b727e57ce627a3826e2fc7c3874a847d (patch)
treebb159f5596227df4fc546bcbafd25b4e3fefa85e /tests/libsample
parent0dad65f437926bb6520e022e533c08381056f890 (diff)
Adds a test for a method with modifications and custom conversion rules.
The test function does nothing in fact, it is there just to cause a situation that could cause a compilation problem if the generator is not working as it should. In other words if it compiles, then it is ok. :) The added method was a dummy clone of a similar QPixmap.loadFromData method signature that prevented QtGui from compiling properly. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org>
Diffstat (limited to 'tests/libsample')
-rw-r--r--tests/libsample/samplenamespace.cpp9
-rw-r--r--tests/libsample/samplenamespace.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/libsample/samplenamespace.cpp b/tests/libsample/samplenamespace.cpp
index c01a41883..86bd3404d 100644
--- a/tests/libsample/samplenamespace.cpp
+++ b/tests/libsample/samplenamespace.cpp
@@ -79,4 +79,13 @@ getNumber(Option opt)
return retval;
}
+void
+doSomethingWithArray(const unsigned char* data, unsigned int size, const char* format)
+{
+ // This function does nothing in fact.
+ // It is here as a dummy copy of QPixmap.loadFromData method
+ // to check compilation issues, i.e. if it compiles, it's ok.
+}
+
} // namespace SampleNamespace
+
diff --git a/tests/libsample/samplenamespace.h b/tests/libsample/samplenamespace.h
index 5d58ac279..7e0ec38cc 100644
--- a/tests/libsample/samplenamespace.h
+++ b/tests/libsample/samplenamespace.h
@@ -66,6 +66,8 @@ LIBSAMPLE_API inline double powerOfTwo(double num) {
return num * num;
}
+LIBSAMPLE_API void doSomethingWithArray(const unsigned char* data, unsigned int size, const char* format = 0);
+
} // namespace SampleNamespace
#endif // SAMPLENAMESPACE_H