csharp: Fix wrapping of private classes
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Tue, 24 Sep 2019 14:36:34 +0000 (11:36 -0300)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 24 Sep 2019 21:50:43 +0000 (06:50 +0900)
commited266a831abb05b584fe47710a5c75b3a807707d
tree2bf7afef4667f59997b3fa6deed0ac569c0e5c7c
parent8c3a3c690564e8424f7d451e97278b18883d9b43
csharp: Fix wrapping of private classes

Summary:
Sometimes, valid Eo objects of private classes can be returned from
methods. Currently we try to wrap in a minimal `Efl.Object` instance,
but as it is an abstract class, we can't instantiate directly.

This commits adds a dummy `Efl.ObjectRealized` to be instantiated when
wrapping such classes alongside a test case.

Fixes: T8258

Reviewers: felipealmeida, brunobelo, segfaultxavi, Jaehyun_Cho

Reviewed By: brunobelo

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10101
src/bindings/mono/eo_mono/EoWrapper.cs
src/bindings/mono/eo_mono/iwrapper.cs
src/tests/efl_mono/Eo.cs
src/tests/efl_mono/dummy_hidden_object.c [new file with mode: 0644]
src/tests/efl_mono/dummy_hidden_object.eo [new file with mode: 0644]
src/tests/efl_mono/dummy_test_object.c
src/tests/efl_mono/dummy_test_object.eo
src/tests/efl_mono/libefl_mono_native_test.h
src/tests/efl_mono/meson.build