aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample
Commit message (Collapse)AuthorAgeFilesLines
* Add support for static fields.Hugo Parente Lima2010-07-022-0/+3
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added test for finding type scope in cases involving inheritance.Marcelo Lira2010-06-291-0/+1
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Created unit tests for named arguments.Renato Filho2010-06-172-4/+37
| | | | | Reviewers: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Added test function with an integer argument that have an enum as default value.Marcelo Lira2010-06-152-0/+8
|
* Fix problems on MacOSX due to uninitialized variables and mixing of int, ↵Hugo Parente Lima2010-06-155-22/+20
| | | | | | | uint and ulong variables. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* MSVC complains about the missing operator< in Str when we use it on a std::list.Hugo Parente Lima2010-06-142-0/+6
|
* Added support for protected fields when not using the "protected hack".Marcelo Lira2010-06-031-0/+9
| | | | Tests were also added.
* Fixes code generation for classes with private destructors.Marcelo Lira2010-06-021-0/+3
| | | | | | This fix is specific for the cases when the "protected hack" is turned off. Also added some tests.
* Generator improved to handle protected enums without the protected hack.Marcelo Lira2010-06-021-0/+6
|
* Adds protected enum test cases.Marcelo Lira2010-06-011-0/+14
|
* Fixed declaration of class SimpleFile.Renato Filho2010-05-262-30/+56
| | | | | | | Move FILE member to internal structor to avoid errors on compilation of debian PPC. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* API fixes.Renato Filho2010-05-1812-20/+23
| | | | | | | | | * Export enums without macro * Declare virtual destructor on all classes with virtual functions * Fix extern "C" declaration scope Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Adding test for #212 - Overloads with enumsLauro Neto2010-04-302-0/+10
|
* Merge remote branch 'luck/fixprivctor'Luciano Wolf2010-04-231-0/+61
|\
| * Support to "only private constructor available" case.Luciano Wolf2010-04-211-0/+61
| |
* | Use qualified class name when callign a method like self->ClassName::method().Hugo Parente Lima2010-04-221-0/+10
| | | | | | | | This fix some problems compiling bindings for classes under C++ namespaces.
* | Added support for enums inside classes inside namespaces.Hugo Parente Lima2010-04-221-0/+4
| |
* | Add test for classes and inner classes inside namespaces.Hugo Parente Lima2010-04-221-0/+12
| |
* | Fixed argument policy propagate.Renato Filho2010-04-222-1/+3
|/ | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Better error messages when reimplementing virtual methods.Hugo Parente Lima2010-04-081-0/+6
|
* Do not segfault when a null pointer is passed to Str constructor.Hugo Parente Lima2010-04-051-1/+2
|
* Adds tests to type system modifications regarding reference to pointer type.Marcelo Lira2010-03-222-0/+16
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Adding greedy method to CollectorLauro Neto2010-03-223-0/+13
| | | | | This method will somehow conflict with the external operator in libother OtherObjectType
* Adds a test for a method with modifications and custom conversion rules.Marcelo Lira2010-03-192-0/+11
| | | | | | | | | | | | | 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>
* Allow hash-function tag to be definied in object-types (Fix bug #186).Hugo Lima2010-03-192-0/+7
|
* added support for pure virtual methods returning void ptrsMatti Airas2010-03-173-0/+9
| | | | | | | the return statements now have correct values for pure virtual methods returning void pointers. also added a dummy test for this (can't really test it properly until the semantics of casting the python return value into a void pointer is properly defined -- if ever).
* fixed a typo in the test class nameMatti Airas2010-03-171-2/+2
|
* Merge branch 'master' into extensibleconversionsMarcelo Lira2010-03-043-0/+15
|\ | | | | | | | | | | | | | | | | Conflicts: cppgenerator.cpp libshiboken/basewrapper.cpp Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
| * Use polymorphic-id-expression to discover the correct type of a C++ object.Hugo Lima2010-03-022-0/+6
| |
| * Add test for bug on the current type discovery algorithm.Hugo Lima2010-03-022-0/+9
| |
* | Adds tests for a class without implicit conversions being extended in ↵Marcelo Lira2010-03-021-0/+55
|/ | | | | | | | | | | 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 unit test for implicit conversion defined by a conversion operator.Marcelo Lira2010-03-012-0/+9
| | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Shiboken generator now supports references to pointers as arguments.Marcelo Lira2010-02-261-0/+3
| | | | | | | Two methods with references to object type and value type pointers were added to BlackBox test class just to check the compilation. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Add hash function for Str and proper unit test.Hugo Lima2010-02-232-0/+12
|
* Adds test for C++ 'const char*' argument receiving a Python None as a null ↵Marcelo Lira2010-02-201-0/+3
| | | | | | | pointer. The test function 'countCharacters(const char*)' now returns -1 when receiving a null pointer.
* Added more tests for bugs found in overload resolution.Hugo Lima2010-02-191-0/+4
|
* Adding test for sequenceToIntArrayLauro Neto2010-02-192-0/+13
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Adds tests for reference counting in model/view style relationships.Marcelo Lira2010-02-103-0/+116
|
* Adds tests for classes with public member variables.Marcelo Lira2010-02-102-4/+11
| | | | | Three kinds of types are represented: primitive, value and object types. The unit tests also check for correct reference counting.
* Implement support to conversion rule.Renato Filho2010-02-092-3/+2
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Adds tests for argument removal and type modification for virtual methods.Marcelo Lira2010-02-091-0/+1
| | | | Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Fixes generation of binding reimplementation of modified virtual methods.Marcelo Lira2010-02-091-1/+1
| | | | | Argument removal and type modification no longer affects the generation of virtual method signatures in the binding code.
* Adds test for argument removal plus argument type modification.Marcelo Lira2010-02-082-0/+9
|
* Fixing sort overloadLauro Neto2010-02-081-0/+4
| | | | | | Now sorting OverloadData recursively Reviewer: Renato Filho <renato.filho@openbossa.org>
* Add workaround for hardware bug that causes failures on two "size" tests.Anderson Lizardo2010-02-031-2/+12
| | | | Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fix crash when a virtual function with enum in they arguments is called from ↵Hugo Lima2010-02-012-0/+11
| | | | | | C++ and have an implementation in Python.
* Create test for constructors with implicitly conversion and default args.Renato Filho2010-01-291-4/+7
| | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Add test for an impossible type discovery when the type has virtual functions.Hugo Lima2010-01-282-0/+10
|
* Adds support for void pointer conversions.Marcelo Lira2010-01-281-0/+56
| | | | | | | | | 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>
* Use qualified C++ names on variables inside richComparison functions.Hugo Lima2010-01-261-0/+1
|