Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Adds Overflow check to integer types conversions. | Marcelo Lira | 2009-12-07 | 3 | -0/+58 |
| | | | | | | Unit tests were added also. Reviewed by Hugo Lima <hugo.lima@openbossa.org> | ||||
* | Added unit test for Python class inheriting from a C++ class with multiple ↵ | Marcelo Lira | 2009-12-05 | 1 | -0/+41 |
| | | | | inheritance. | ||||
* | Remove multiple_derived from the test blacklist. | Hugo Lima | 2009-12-04 | 1 | -1/+1 |
| | |||||
* | Extended implicit conversion test with a case that uses a reference to an ↵ | Marcelo Lira | 2009-12-02 | 2 | -2/+10 |
| | | | | | | ObjectType. Reviewed by Lauro Neto <lauro.neto@openbossa.org> | ||||
* | Expanded protected method tests with cases of reimplemented grand parent and ↵ | Marcelo Lira | 2009-12-02 | 4 | -3/+94 |
| | | | | grand grand parent methods. | ||||
* | Expanded virtual methods tests with a case of reimplementation of a grand ↵ | Marcelo Lira | 2009-12-02 | 4 | -4/+61 |
| | | | | parent method. | ||||
* | Add test black list. | Hugo Lima | 2009-12-02 | 1 | -4/+10 |
| | | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org> | ||||
* | Removed all undue usage of lambda with assertRaises on unit tests. | Marcelo Lira | 2009-12-01 | 8 | -15/+15 |
| | | | | Reviewed by Lauro Neto <lauro.neto@openbossa.org> | ||||
* | Do not try to write the C++ version of an argument when the argument type is a | Hugo Lima | 2009-12-01 | 1 | -2/+2 |
| | | | | custom type. | ||||
* | Improved tests for the QLayout-like ObjectTypeLayout. | Marcelo Lira | 2009-12-01 | 3 | -6/+129 |
| | | | | | | | | In the new test case an ObjectType uses a layout that contains another layout, both created in C++, and then get deleted. Custom code was used to achieve the correct parentship handling Reviewed by Hugo Lima <hugo.lima@openbossa.org> | ||||
* | Fixed inverted parentship semantics. | Marcelo Lira | 2009-12-01 | 1 | -4/+7 |
| | | | | | | | The parentship was expressed inverted in the type system and was working because the generator implementation was also screwed. Reviewed by Hugo Lima <hugo.lima@openbossa.org> | ||||
* | Updated ObjectType and ObjectTypeLayout to resemble the Qt's QLayout class. | Marcelo Lira | 2009-12-01 | 6 | -14/+217 |
| | | | | Also added more test cases that use ObjectTypeLayout. | ||||
* | Added tests for object reparenting. | Marcelo Lira | 2009-12-01 | 1 | -0/+115 |
| | |||||
* | Fix some ownership tests. | Luciano Wolf | 2009-12-01 | 2 | -18/+5 |
| | | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org> | ||||
* | Implement 'child return' examples and support. | Luciano Wolf | 2009-11-30 | 4 | -0/+131 |
| | |||||
* | Added tests for something like QLayout. | Hugo Lima | 2009-11-30 | 9 | -1/+191 |
| | | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org> | ||||
* | Add the generator flag "enable-parent-ctor-heuristic". | Hugo Lima | 2009-11-30 | 2 | -6/+1 |
| | | | | | When enabled, this heuristic will check every constructor for an argument named "parent", if the argument is a pointer, then it'll be the parent of this object. | ||||
* | Added method to take care of the details of ownership transfer to C++. | Marcelo Lira | 2009-11-30 | 2 | -0/+65 |
| | | | | | | | | | | | | | | | | | | | Simple ownership transference, i.e. without parenting, is now performed by the new BindingManager::transferOwnershipToCpp method. It remove the parent of the transfered object and proceeds transfer or invalidation if needed. The generated code for simple ownership transfer from Python to C++ now reflects this change. Fixed the method BlackBox::keepObjectType that steals an ObjectType ownership to C++ to remove it from its parent also. The BlackBox class does not take care of the stolen object as a proper parent would, but its destructor deletes the object, so the "unparenting" is needed to avoid freeing the same memory twice. Created an unit test that adds children to a parent ObjectType and then steal the children to C++ with BlackBox.keepObjectType. Reviewed by Hugo Lima <hugo.lima@openbossa.org> | ||||
* | Fixed some typos in tests' comments. | Marcelo Lira | 2009-11-30 | 2 | -2/+2 |
| | |||||
* | Wrapper invalidation method recursively updates children objects status. | Marcelo Lira | 2009-11-30 | 1 | -3/+12 |
| | | | | | | | | | | | BindingManager::invalidateWrapper checks if the object to be invalidated carries any children objects and recursively invalidates them. Shiboken::destroyParentInfo function was refactored to call the new recursive wrapper invalidator and then call a helper function that only destroy the parent information. The invalidate parent test was updated. | ||||
* | Some fixing and refactoring for the ObjectType test class. | Marcelo Lira | 2009-11-30 | 2 | -32/+35 |
| | |||||
* | Fix objects/points methods to return a list + fix example using them. | Luciano Wolf | 2009-11-27 | 3 | -9/+34 |
| | | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org> | ||||
* | Use map instead of list inside BlackBox class. | Luciano Wolf | 2009-11-27 | 3 | -43/+52 |
| | | | | | | Now keepObjectType/keepPoint and retrieveObjectType/retrievePoint uses a ticket to get the object from a map. It's a way better than lists. | ||||
* | Fix identation of generated code for C++ wrapper destructor. | Marcelo Lira | 2009-11-27 | 1 | -1/+1 |
| | | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> | ||||
* | Add test for delete child in python | Lauro Neto | 2009-11-27 | 2 | -0/+51 |
| | | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org> | ||||
* | Adding test for deleting parent | Lauro Neto | 2009-11-27 | 1 | -3/+7 |
| | |||||
* | Add invalidate parent test | Lauro Neto | 2009-11-27 | 1 | -0/+49 |
| | | | | Using BlackBox to invalidate the parent | ||||
* | Add test for deleting child in cpp | Lauro Neto | 2009-11-27 | 1 | -0/+49 |
| | |||||
* | Add removeChild and killChild to ObjectType test | Lauro Neto | 2009-11-27 | 2 | -7/+27 |
| | |||||
* | Add parent tags for ObjectType class. | Hugo Lima | 2009-11-27 | 1 | -0/+10 |
| | |||||
* | Small fixes for parent/child unit tests | Hugo Lima | 2009-11-27 | 1 | -9/+3 |
| | |||||
* | Adding test for deleting parent | Lauro Neto | 2009-11-27 | 1 | -0/+79 |
| | |||||
* | Test ownership transfer from Python to C++ | Luciano Wolf | 2009-11-27 | 4 | -3/+10 |
| | | | | | | | | | There are 3 tests to be implemented in order to check the correctness. - 1. Correct the assert function inside kindergarten example to raise an exception [done]; - 2. Use "create" method to return a C++ created instance and use it to test ownership [done]; - 3. Use e.g.: "Point" class as a value-type to test "invalidate non-polymorphic". Reviewed by Marcelo Lira <marcelo.lira@openbossa.org> | ||||
* | Improving ownership transference tests. | Luciano Wolf | 2009-11-27 | 2 | -16/+87 |
| | |||||
* | Renaming -> KinderGarten to BlackBox | Luciano Wolf | 2009-11-27 | 6 | -31/+86 |
| | |||||
* | Added tests for the validity of Python wrappers used as method arguments. | Marcelo Lira | 2009-11-26 | 7 | -2/+229 |
| | | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> | ||||
* | Python arguments are now checked for Python wrapper validity. | Marcelo Lira | 2009-11-26 | 2 | -19/+67 |
| | | | | | | | | | | If the expected argument type has implicit conversions the type of the Python object is also checked. The invalidate-after-use test was moved from the ObjectType test to its own test file. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> | ||||
* | Fixed visibility for multiple derived test classes. | Marcelo Lira | 2009-11-25 | 1 | -9/+9 |
| | | | | Reviewed by Hugo Lima <hugo.lima@openbossa.org> | ||||
* | Merged with multipleinheritance branch | Marcelo Lira | 2009-11-25 | 5 | -84/+301 |
|\ | |||||
| * | Added new cases to multiple inheritance tests. | Marcelo Lira | 2009-11-18 | 2 | -12/+90 |
| | | |||||
| * | improved multiple inheritance tests with a myriad of new cases | Marcelo Lira | 2009-11-18 | 5 | -81/+220 |
| | | |||||
* | | Add overload dependency on PyObject | Lauro Neto | 2009-11-25 | 2 | -1/+13 |
| | | | | | | | | | | | | PyObject_Check should be the last one in the overload type check Reviewed by Marcelo Lira <marcelo.lira@openbossa.org> | ||||
* | | Adding test case for sorting overload data | Lauro Neto | 2009-11-25 | 7 | -0/+189 |
| | | |||||
* | | Added an PyObject* specialization to the Conversion template to | Marcelo Lira | 2009-11-24 | 5 | -0/+124 |
| | | | | | | | | | | | | | | avoid problems when converting PyObjects to C++. Tests where also added for this. Reviewed by Lauro Neto <lauro.neto@openbossa.org> | ||||
* | | Updated libsample classes that are missing the LIBSAMPLE_API macro. | Marcelo Lira | 2009-11-24 | 4 | -6/+10 |
| | | |||||
* | | Added tests for classes with virtual and non-virtual protected methods, | Marcelo Lira | 2009-11-24 | 10 | -3/+335 |
| | | | | | | | | | | | | 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 unit test for virtual destructor. | Marcelo Lira | 2009-11-24 | 5 | -0/+65 |
| | | |||||
* | | Added visibility rules to libsample. | Hugo Lima | 2009-11-23 | 28 | -72/+168 |
| | | |||||
* | | Uses __FUNCTION__ instead of __PRETTY_FUNCTION__, which is a GCC extension. | Hugo Lima | 2009-11-23 | 6 | -28/+3 |
| | | |||||
* | | Removed the use of fileno from the SimpleFile test, since it is Linux specific. | Marcelo Lira | 2009-11-23 | 2 | -9/+0 |
| | |