aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding
Commit message (Collapse)AuthorAgeFilesLines
* Fix regression with enums.Lauro Neto2012-03-081-0/+6
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Hugo Lima <hugo.lima@openbossa.org>
* Fixed regression that made enums not hashable.Hugo Parente Lima2012-03-081-0/+3
|
* Removes printfs and fixes str test.Marcelo Lira2012-03-081-10/+2
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Removed invalid test.Renato Filho2012-03-082-57/+1
|
* Updated str test to work with both python 2.x and 3.xRenato Filho2012-03-081-4/+4
|
* Fixed tests to work with python3.x and python2.xRenato Filho2012-03-0820-51/+91
|
* Updated enum_test for support py3k.Renato Filho2012-03-081-4/+10
|
* Update string usage to new Shiboken::String API.Renato Filho2012-03-082-34/+57
|
* Fixed duck punch unti test to work with Python3.Hugo Parente Lima2012-03-081-5/+11
|
* Added SBK_PyString_FromCString and SBK_PyString_FromFormat as helper macro ↵Hugo Parente Lima2012-03-081-3/+3
| | | | for Py3k port.
* Port libsample typesystem and glue codes to Python 3.Hugo Parente Lima2012-03-084-38/+49
|
* Revert "Implements PSEP-0106 and fixes bug 902 - "Expose Shiboken ↵Hugo Parente Lima2012-03-081-6/+0
| | | | | | | | functionality through a Python module"." This reverts commit bc8448d7fb91733ff08c2a6a3a878702c14a24e0. The PSEP didn't reach the final version yet, so this commit can't be released.
* Created unit test for cyclic dependency.Renato Filho2012-03-081-0/+104
| | | | | Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Implements PSEP-0106 and fixes bug 902 - "Expose Shiboken functionality ↵Hugo Parente Lima2012-03-081-0/+6
| | | | through a Python module".
* Fixed generator to consider conversion rules for the return type of wrapper ↵Marcelo Lira2012-03-082-0/+100
| | | | | | | | | methods. Tests were added. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Added a test case for a bit-field structure member.Marcelo Lira2012-03-084-101/+19
| | | | Also moved a couple of tests from samplebindings to otherbindings.
* Added a test for an user defined primitive type from a required module.Marcelo Lira2012-03-081-1/+1
| | | | | Also sorted the tests order alphabetically and fixed inject code for SampleNamespaces' passReferenceToObjectType method.
* Added test for typedef of unsigned short.Marcelo Lira2012-03-082-0/+7
|
* Added test for user defined primitive type used as public class field.Marcelo Lira2012-03-081-3/+15
|
* Added test for implicit conversion with user's primitive type.Marcelo Lira2012-03-081-4/+8
|
* Added a method modification test dealing with code injection and user's ↵Marcelo Lira2012-03-082-0/+10
| | | | | | primitive type. The inject code has a %CONVERTTOPYTHON that receives an user's primitive type.
* Implemented unit test for deprecated functions.Renato Filho2012-03-082-0/+50
| | | | | Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Improved the generation of argument conversion in modified functions.Marcelo Lira2012-03-082-1/+20
| | | | | | | | Added the SBK_UNUSED macro to libshiboken to prevent compilation warnings. An unit test was added. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Improved type system converter variable usage in the sample test binding.Marcelo Lira2012-03-081-105/+105
| | | | ShibokenGenerator uses qDeleteAll for the cached meta types.
* Added tests for a class that its only constructor is the copy one.Marcelo Lira2012-03-084-0/+57
| | | | | | | | This simulates a situation found in QtWebKit's QWebDatabase and QWebSecurityOrigin classes. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added tests for classes that are typedefs that implement a template class.Marcelo Lira2012-03-084-0/+86
| | | | This simulates the situation found in Qt's phonon module.
* The type checking now pays attention to the <no-null-pointer/> tag.Marcelo Lira2012-03-082-0/+10
| | | | An unit test was also added for it.
* Added an unit test to check if derived type destructors are freeing memory ↵Marcelo Lira2012-03-081-0/+49
| | | | twice.
* Added a test dealing with a reference to an Object Type passed to Python.Marcelo Lira2012-03-084-0/+48
| | | | | The test is for an Object Type that didn't existed in Python and is passed to it as C++ reference through a virtual method.
* Improved guessCPythonCheckFunction method to produce an AbstractMetaType for ↵Marcelo Lira2012-03-082-7/+27
| | | | | | | | | | known types. This is in opposition of simply returning a string with a custom type check. The details are in the docstring in ShibokenGenerator header. Also added a new modification test and refactored here and there in the sample binding type system.
* Included tests for added function signatures very similar to already ↵Marcelo Lira2012-03-082-1/+76
| | | | | | | | | | | | | | | existing ones. Specifically this causes the situation when there is in C++ a function with an argument that is a reference to a Value Type, and the user adds a very similar function with the same type, but passed as value. Example: C++ : function(const TYPE& a, int b) Added: function(TYPE) The return type of ShibokenGenerator::getArgumentReplacement() method was modified, because the argument object is more useful than its index.
* Added tests for custom conversion and buffer protocol.Marcelo Lira2012-03-086-0/+306
| | | | It it inspired by some of PySide's QByteArray tests.
* Fixed type system variable replacement for arguments removed with conversion ↵Marcelo Lira2012-03-082-37/+39
| | | | | | | | | | rule. Also added an array argument modification test, and moved AutoArrayPointer from libpyside to libshiboken. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added test for removed pointer out argument.Marcelo Lira2012-03-083-2/+43
|
* Improved and fixed the setter and getter writer functions.Marcelo Lira2012-03-081-0/+6
| | | | Also added an unit test to a protected container property.
* Moved many variables names used in generated code to macros.Marcelo Lira2012-03-081-6/+8
| | | | | | | | | | | Also fixed ShibokenGenerator::pythonFunctionWrapperUsesListOfArguments() method to consider call operators. Fixed code snippet variable replacement for when there's only one Python argument in the function. And CppGenerator::writeArgumentsInitializer() was sanitized, with never used code erased. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fixed writeBaseConversion method to handle references to C++ primitives.Marcelo Lira2012-03-082-0/+46
| | | | Added test for a reference to integer as a function argument.
* Added test for a typedef to a primitive numerical type.Marcelo Lira2012-03-083-0/+49
|
* Moved writeMinimalConstructorCallArguments() functionality to Generator Runner.Marcelo Lira2012-03-081-1/+1
| | | | | Updated tests' type systems to reflect the behaviour of Generator::minimalConstructor().
* Moved an enum tag on 'sample' test binding to a better position.Marcelo Lira2012-03-081-1/+1
|
* Fix samplebinding warnings suppresions.Hugo Parente Lima2012-03-081-1/+16
|
* Created unit test for bug #886.Renato Filho2012-03-082-0/+9
| | | | | | | | This test check if a enum inside of a namespace which is not exported to python, work proper. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix refleak during the parent c++ object destruction.Renato Filho2012-03-082-1/+26
| | | | | | | Fixes bug #893. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fixed injected code processing to avoid infinite recursion in virtual method ↵Marcelo Lira2012-03-082-3/+21
| | | | | | calls. Unit tests were also added.
* Created unit test for add function rich-compare function.Renato Filho2012-03-082-0/+49
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Test for bug 464 - "Can't create target lang package and namespace with the ↵Hugo Parente Lima2012-03-083-0/+7
| | | | same name"
* Test for bug 291 - "Generator ignores inject code for rich comparison ↵Hugo Parente Lima2012-03-081-0/+7
| | | | | | | operators." Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Updated necessary unit tests to handle with exceptions.Renato Filho2012-03-082-2/+8
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added Shiboken buffer interface.Hugo Parente Lima2012-03-081-10/+2
| | | | | | | | | | | | | This interface is just a wrapper to the differents API's provided by Python to deal with memory buffers in various versions of Python, so is recommended to use this API to deal with Python memory buffers instead of the CPython API. If you want to have a Python buffer as argument of any function just change the argument type to "PyBuffer" and the generator will handle it right regarding to type checking. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added an unit test that puts an attribute on a Shiboken generated class.Marcelo Lira2012-03-081-0/+47
|