gimarshallingtests: Add test helpers for marshaling of object arguments
authorSimon Feltman <sfeltman@src.gnome.org>
Wed, 2 Jan 2013 10:14:08 +0000 (02:14 -0800)
committerSimon Feltman <sfeltman@src.gnome.org>
Thu, 31 Jan 2013 00:39:36 +0000 (16:39 -0800)
commit1fb2d14693fc7ecf74322c7f9ca7ca40907e7649
tree2641a8efe8e94a4728f14e9132ccc6518a65464b
parent7878dd0b7c172c5defdc6e1079b6542b2756e42e
gimarshallingtests: Add test helpers for marshaling of object arguments

Add a number of vfuncs and methods which can be used for testing
marshaling of objects with different combinations of ownership
transference. An important part of these test vfuncs and methods is
they do not pass object returns and arguments through them. Instead
the methods return reference counts and floating attributes. This allows
isolation and ensures any problem with round trip object marshaling
does not obscure what should be tested from the perspective of C as the
caller of a vfunc. Tests and vfuncs can then be written in any language
with gi bindings.

https://bugzilla.gnome.org/show_bug.cgi?id=687522
tests/gimarshallingtests.c
tests/gimarshallingtests.h