aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/global.h
Commit message (Collapse)AuthorAgeFilesLines
* Test for bug 464 - "Can't create target lang package and namespace with the ↵Hugo Parente Lima2012-03-081-0/+1
| | | | same name"
* Added tests for conversion operator that returns a constant reference type.Marcelo Lira2012-03-081-0/+1
| | | | | | | This is related to bug #716: http://bugs.pyside.org/show_bug.cgi?id=716 Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added unit tests to simulate the QPainter::drawText overloads.Marcelo Lira2012-03-081-0/+1
| | | | The classes Rect and RectF were added to help with the imitation.
* Tests for reverse operatorsLauro Neto2012-03-081-0/+1
| | | | | | | | | | | CPython calls nb_and with swapped arguments for reverse operators. This tests checks if the reverse operator raises NotImplementedError instead of TypeError when there isn't a valid reverse operator. Raising TypeError would cause the operator to fail.
* Added test to assert the precedence of enum arguments over int implicit ↵Marcelo Lira2012-03-081-0/+1
| | | | | | | | | | | | | conversions. This test is inspired by bug #511 [1], and it checks the precedence of an enum argument over a class that can be implicitly built from an integer. [1] http://bugs.openbossa.org/show_bug.cgi?id=511 Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fix bug#495 - "Broken rich compare operators if they use an object-type as ↵Hugo Parente Lima2012-03-081-0/+1
| | | | parameter"
* Added support for promoting enums from removed namespaces to upper scope.Marcelo Lira2012-03-081-0/+1
| | | | | | | | | | Classes in namespaces marked not to be generated are always moved to upper scopes, the current modification add this same behaviour to enums. Tests were also added. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added tests to check the release of ownership of objects returned from Python.Marcelo Lira2012-03-081-0/+1
| | | | | | | | | | | The ObjectModel test class was introduced to check if the transference of ownership of objects returned from Python to C++ through a virtual method is working properly. Also updated the other test that uses the ObjectView class. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#513 - "Hardcoded bool return type for operator overloads"Hugo Parente Lima2012-03-081-0/+1
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Test case for proper generation of constructor altered by conversion-rule tag.Marcelo Lira2012-03-081-0/+1
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#411 - "Incorrect return statement generated in a function that ↵Hugo Parente Lima2012-03-081-0/+1
| | | | | | | returns a reference" Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Added test for overload decisor handling container dependencies.Marcelo Lira2012-03-081-0/+1
| | | | | | | | | | | | | | | Explaining with an example. Consider a function called "function" with two signatures accepting a list of Point and a list of PointF, respectively. Consider also that Point is implicitly convertible to PointF. void function(list<Point>&) void function(list<PointF>&) A list of Point should be checked before a list of PointF. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Created unit test for unknown class holder.renatofilho2012-03-081-0/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Unit test to target conversion.renatofilho2012-03-081-0/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix code generation for modified constructors.Luciano Wolf2012-03-081-0/+1
| | | | | Reviewers: Renato Araújo <renato.filho@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Impleted auto code for classes derived from list container.Renato Filho2010-08-301-0/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Created unit test to operator().Renato Filho2010-08-111-0/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Merge remote branch 'luck/fixprivctor'Luciano Wolf2010-04-231-0/+1
|\
| * Support to "only private constructor available" case.Luciano Wolf2010-04-211-0/+1
| |
* | Add test for classes and inner classes inside namespaces.Hugo Parente Lima2010-04-221-1/+0
|/
* Adds tests for a class without implicit conversions being extended in ↵Marcelo Lira2010-03-021-0/+1
| | | | | | | | | | | another module. One value type class, called NoImplicitConversion, without implicit conversions of any kind is declared in the first library, libsample. In the other library, libother, ExtendsNoImplicitConversion defines a conversion operator to turn itself into a NoImplicitConversion class. The unit tests tries to pass an ExtendsNoImplicitConversion object where a NoImplicitConversion is expected.
* Adds tests for reference counting in model/view style relationships.Marcelo Lira2010-02-101-0/+1
|
* Adds support for void pointer conversions.Marcelo Lira2010-01-281-0/+1
| | | | | | | | | A new converter specialization was added to deal with 'void*' conversions. In the case of C++ generating a unknown void pointer a BaseWrapper is used to hold the said pointer. There is a new test for this situation. Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Adding new tests related to threads/GIL lockingLauro Neto2010-01-151-0/+1
| | | | | | | | | | | | | | | - Event loop - calling virtual methods from C++ - Event loop with thread - calling virtuals from C++ along with accessing the binding from another python thread - Thread locking - blocker C++ method that is unlocked from another python thread For these tests, a new ObjectType subclass was added, Bucket, which is just a container for the producer/consumer tests and has the lock/unlock method. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Adds StrList test to check classes that inherit from containers.Marcelo Lira2009-12-071-0/+1
| | | | | | | StrList class inherits from std::list<Str> and expand it with a couple of methods. The added tests perform many different comparisons using other StrList objects, Python sequences of Str objects, and Python sequences of Python strings.
* Added tests for something like QLayout.Hugo Lima2009-11-301-0/+1
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Renaming -> KinderGarten to BlackBoxLuciano Wolf2009-11-271-1/+1
|
* Added tests for the validity of Python wrappers used as method arguments.Marcelo Lira2009-11-261-0/+1
| | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Adding test case for sorting overload dataLauro Neto2009-11-251-0/+1
|
* Added an PyObject* specialization to the Conversion template toMarcelo Lira2009-11-241-0/+1
| | | | | | | avoid problems when converting PyObjects to C++. Tests where also added for this. Reviewed by Lauro Neto <lauro.neto@openbossa.org>
* Added tests for classes with virtual and non-virtual protected methods,Marcelo Lira2009-11-241-0/+1
| | | | | | for virtual protected destructors, and for non-virtual protected methods modified with signature removal, add-function and code injection. Also improved the tests for non-protected virtual destructors.
* added initial work for more complete code injection testsMarcelo Lira2009-11-131-0/+1
|
* Adding test case for add-function with const char*Lauro Neto2009-11-091-0/+1
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* added a new test called Time with a set of constructor and methodMarcelo Lira2009-11-061-0/+1
| | | | | signatures to test the overload decisor on more situations; also a clarifying comment was added to the Point class
* * added the ObjectType example which adds some cases similar toMarcelo Lira2009-11-031-0/+1
| | | | | | | | | | those on Qt's QObject (object name, parent and children list), although no ownership test was added yet. * added method Abstract::getObjectId(Abstract*) as a case of an argument that should be converted to an abstract type. * added ListUser::multiplyPointList(std::list<Point*>&, double), which tests the conversion from a Python list of Point wrappers to a C++ list whose items will be altered.
* added the Str class to libsample and test cases that check the __str__Marcelo Lira2009-10-301-10/+12
| | | | | | | implementation and a method that receives a C++ class reference through a Python type implictly convertible to said C++ class Reviewed by Hugo Lima <hugo.lima@openbossa.org>
* added test cases for C++ operator<< method (Python's __lshift__);Marcelo Lira2009-10-271-0/+1
| | | | also fixed some grammar on overload_test.py
* added more test cases to check overload decisor behaviorMarcelo Lira2009-10-271-0/+1
|
* added the SimpleFile class to the sample library to check how aMarcelo Lira2009-10-201-0/+1
| | | | | | | | method returning a boolean value that indicates success/failure on a IO operation could be modified to express the any occurring problems as Python exceptions (in this case IOError); the generator was changed to return a 'None' value for Python callers on methods that had it's return value removed
* Create multiple heritance tests.Renato Araujo Oliveira Filho2009-09-101-0/+1
|
* Changed generator to convert the method call results on wrapped methodsMarcelo Lira2009-09-011-0/+1
| | | | | | | | | | | | | | | | at each possible call, instead of receiving the return value in the C++ type and converting it later. Having the result value as a PyObject pointer avoids the problem of declaring the return value variable with a class that do not have a simple constructor. Example: "Foo resultValue;" is a problem when the only constructor for "Foo" is "Foo(int)". The above described problem is made worse with the addition of OddBool and OddBoolUser cases to the sample library. OddBool is registered as a primitive (and convertible) type, registered this way it is only available as a TypeEntry and a suitable constructor cannot possibly be found. This is different from Value and Object types for they become AbstractMetaClass objects and all constructor signatures can be queried.
* Added an example of a class with a private destructor.Hugo Lima2009-09-011-0/+1
|
* Added a corner case to broke Shiboken tests >:-)Hugo Lima2009-08-311-1/+1
| | | | | Shiboken generates wrong C++ code when exists a function/method that returns a type without a default constructor.
* updated sample library with VirtualMethods class which containsMarcelo Lira2009-08-271-0/+1
| | | | | | | a case of a virtual method that is reimplemented in Python and checked in the unit test Reference class and unit tests with cases of virtual methods that receive C++ references
* added mapping example to test lib as well as unit testsMarcelo Lira2009-08-251-0/+1
|
* The End Is the Beginning Is the EndMarcelo Lira2009-08-171-0/+14