summaryrefslogtreecommitdiffstats
path: root/tests/samplebinding
Commit message (Collapse)AuthorAgeFilesLines
* Test case for proper generation of constructor altered by conversion-rule tag.Marcelo Lira2010-12-064-0/+60
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Merge branch 'fixapi'Hugo Parente Lima2010-11-231-7/+7
|\ | | | | | | | | | | | | | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org> Conflicts: generator/cppgenerator.cpp libshiboken/basewrapper.cpp libshiboken/basewrapper_p.h
| * Namespace Shiboken::Wrapper renamed to Shiboken::Object.Hugo Parente Lima2010-11-231-3/+3
| |
| * namespace Shiboken::BaseType renamed to Shiboken::ObjectType.Hugo Parente Lima2010-11-231-6/+6
| |
* | Created debug function on samle bindings.Renato Araujo Oliveira Filho2010-11-232-5/+29
|/ | | | | | | | This function 'cacheSize()' can be used to check how many objects still registered on BindingManager. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Updated some tests to work with new API.Renato Araujo Oliveira Filho2010-11-192-4/+4
|
* Variable SbkBaseWrapperType_Type renamed to SbkObjectType_TypeHugo Parente Lima2010-11-101-1/+1
|
* SbkBaseWrapper_Type variable renamed to SbkObject_TypeHugo Parente Lima2010-11-101-1/+1
|
* SbkBaseWrapperType and some other functions used by Python C-API moved ↵Hugo Parente Lima2010-11-101-1/+1
| | | | outside C++ namespaces.
* Fix injectcode test to work with the newer version of sequencetoArgcArgv.Hugo Parente Lima2010-10-291-4/+4
|
* Fixed typesystem in function where is necessary thread save option.renatofilho2010-10-281-0/+1
| | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
* Created test for abstract function with not exported type as agument.renatofilho2010-10-181-0/+4
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#411 - "Incorrect return statement generated in a function that ↵Hugo Parente Lima2010-10-183-1/+31
| | | | | | | returns a reference" Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fixed namespace lookup during the class generation.renatofilho2010-10-151-1/+3
| | | | | | | fixes bug #414. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Added test for overload decisor handling container dependencies.Marcelo Lira2010-10-155-3/+101
| | | | | | | | | | | | | | | 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>
* Fix bug#272 - "__del__ never called by python"Hugo Parente Lima2010-10-151-0/+45
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Created unit test for unknown class holder.renatofilho2010-10-155-0/+96
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Inject code for Point.__reduce__0.5.1Lauro Neto2010-10-111-0/+11
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Adding pickling testLauro Neto2010-10-111-0/+21
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Adding deepcopy test.Lauro Neto2010-10-111-0/+12
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Adding value-type copy testLauro Neto2010-10-111-0/+48
|
* Unit test to target conversion.renatofilho2010-10-015-0/+97
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Created unit test to unsafe parent (parent created from c++)renatofilho2010-09-243-2/+61
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Updated type system file for test binding to use nested types.Marcelo Lira2010-09-231-27/+37
| | | | | | | | | | | | | | | | | | Instead of the awkward: <enum-type name="Foo::Bar"/> <value-type name="Foo"/> <value-type name="Foo::Sbrubles"/> We now use the proper: <value-type name="Foo"> <enum-type name="Bar"/> <value-type name="Sbrubles"/> </value-type> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Shiboken generator code moved to the directory generator.Hugo Parente Lima2010-09-201-1/+1
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added tests for anonymous global and class bound enums.Marcelo Lira2010-09-202-0/+14
|
* Fix OverloadData::isSingleArgumentLauro Neto2010-09-201-0/+5
| | | | | | | | | | | | Now returning true *only* when exactly all overloads accept exactly 1 argument. Fixes compilation of QAudioInput and QAudioOutput from QtMultimedia. Both have start() and start(QIODevice*) overloads, and the previous code was generating 'arg' instead of 'pyargs'. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#339 - "RuntimeError when accessing mousepress event object"Hugo Parente Lima2010-09-172-0/+24
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.filho@openbossa.org>
* Fix code generation for modified constructors.Luciano Wolf2010-09-134-0/+57
| | | | | Reviewers: Renato Araújo <renato.filho@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Created cmake option 'ENABLE_VERSION_SUFFIX' to use version on generated ↵0.5.0Renato Filho2010-09-101-3/+1
| | | | | | | files to allow multiples version installed simultaneous. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Avoid call functions when an error occurs on argument conversion.Renato Filho2010-09-031-0/+5
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Impleted auto code for classes derived from list container.Renato Filho2010-08-304-0/+57
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fix the type resolver algorithm.Hugo Parente Lima2010-08-301-0/+13
| | | | | | | | | | | | | | | | | The new algorithm do the following: - Try to use type_info on the object the get the object real name. - Try to find a type resolver with the name returned by type_info. - If a type resolver was found, get the python type. - Else, ask binding manager to resolve the type walking on all possible subclasses found in the inheritance tree. The binding manager has a graph representing the class inheritance tree. Note: This commit break the libshiboken ABI, but not the API. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.araujo@openbossa.org>
* Fix mem leak in shiboken tests.Hugo Parente Lima2010-08-191-5/+16
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Use .pyd to python modules on windows.Renato Filho2010-08-191-0/+3
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* fixed tests exported symbols.Renato Filho2010-08-181-1/+1
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Create unit test to function with ambiguous signature in Python side.Renato Filho2010-08-163-0/+48
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Created unit test to operator().Renato Filho2010-08-113-0/+3
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Modified one more test to use assert_(not a == b) instead of assertNotEqualKalev Lember2010-08-041-1/+1
| | | | | | | | | Similar to 83c272, avoid using assertNotEqual which in Python 2.7 uses the != operator; that operator however is intentionally left undefined in Point class. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org> Reviewed by Renato Araujo <renato.filho@openbossa.org>
* Modified tests using Point and assertNotEqual to use assert_(not a == b).Marcelo Lira2010-08-032-2/+2
| | | | | | | | This is due to Point intentionally not having a != operator and assertNotEqual implementation using the __ne__ operator on Python 2.7. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added custom code to VoidHolder.gimmeMeSomeVoidPointer().Marcelo Lira2010-08-031-1/+11
| | | | | | | | The said method retuns a void pointer never before seen on the Python side. The code injection puts the void pointer in a BaseWrapper object. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added a case for VoidHolder test that uses a native Python object.Marcelo Lira2010-08-031-1/+9
| | | | | The test stores a native Python object as a void pointer in C++ and takes it back.
* Create a new copy from object when convert from PyObject to const ref.Renato Filho2010-07-271-9/+0
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* BindingManager destructor now asserts if the wrapper map is empty.Marcelo Lira2010-07-271-0/+13
| | | | | | | | | | | | | The assertion is only used in debug mode. The duck punching test was altered to avoid failing when run with debug. Check the duck punching test file for a better explanation. Also added a debug helper method "showWrapperMap" to the binding manager, it shows the contents of the C pointer to Python wrapper mapping. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fix char* converterRenato Filho2010-07-272-6/+10
| | | | | | | | Fix tests. Created warnning about return last ref of python object. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed inject code to works on windows.Renato Filho2010-07-191-1/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Use correct python library in debug mode.Renato Filho2010-07-191-1/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed wrong overload decisor generated code.Marcelo Lira2010-07-131-0/+51
| | | | | | | | | The decisor must check for the number of arguments before calling Converter::isConvertible method, to avoid passing NULL pointers to it. Unit tests were added. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fixes bug#253 - "Segmentation Fault when clicked on ListWidget with TableModel"Hugo Parente Lima2010-07-061-0/+42
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Add support for static fields.Hugo Parente Lima2010-07-021-0/+3
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>