diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-03-30 16:37:15 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:15:19 -0300 |
commit | 93787c322144f3c11acf261655b89a25176ce528 (patch) | |
tree | 6ccdfbac04c67e8babed757fa3028f3799fca397 /tests/libsample | |
parent | fecbf726c06d32d0e9c1b180bb79f356ba571540 (diff) |
Added two more unit tests for the overload decisor.
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/overload.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/libsample/overload.h b/tests/libsample/overload.h index 46a578859..3ffd0ac92 100644 --- a/tests/libsample/overload.h +++ b/tests/libsample/overload.h @@ -26,6 +26,7 @@ #include "str.h" #include "size.h" #include "point.h" +#include "polygon.h" #include "libsamplemacros.h" @@ -59,9 +60,16 @@ public: inline int intOverloads(int i, int i2) { return 2; } inline int intOverloads(int i, int removedArg, double d) { return 3; } + inline FunctionEnum intDoubleOverloads(int a0, int a1) const { return Function0; } + inline FunctionEnum intDoubleOverloads(double a0, double a1) const { return Function1; } + void singleOverload(Point* x) {} Point* singleOverload() {return new Point();} + // Similar to QImage::trueMatrix(QMatrix,int,int) and QImage::trueMatrix(QTransform,int,int) + FunctionEnum wrapperIntIntOverloads(const Point& arg0, int arg1, int arg2) { return Function0; } + FunctionEnum wrapperIntIntOverloads(const Polygon& arg0, int arg1, int arg2) { return Function1; } + // Similar to QImage constructor FunctionEnum strBufferOverloads(const Str& arg0, const char* arg1 = 0, bool arg2 = true) { return Function0; } FunctionEnum strBufferOverloads(unsigned char* arg0, int arg1) { return Function1; } |