aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/efl_mono/libefl_mono_native_test.c
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-01-15 01:27:09 -0200
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-01-16 15:05:09 -0200
commit6e3768b2b63f812082148f45ad2de7b1bb9bf7ba (patch)
treedd83bd809b3ac51b7a5f6bc2cf3ac404dd9090f5 /src/tests/efl_mono/libefl_mono_native_test.c
parentefl_ui_focus_manager_root_focus: Remove extra blank lines (diff)
downloadefl-6e3768b2b63f812082148f45ad2de7b1bb9bf7ba.tar.gz
efl-mono: test on inout RwSlice.
Diffstat (limited to 'src/tests/efl_mono/libefl_mono_native_test.c')
-rw-r--r--src/tests/efl_mono/libefl_mono_native_test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/efl_mono/libefl_mono_native_test.c b/src/tests/efl_mono/libefl_mono_native_test.c
index 576690bb86..fc4e3cbae6 100644
--- a/src/tests/efl_mono/libefl_mono_native_test.c
+++ b/src/tests/efl_mono/libefl_mono_native_test.c
@@ -331,6 +331,14 @@ Eina_Bool _dummy_test_object_eina_rw_slice_out(EINA_UNUSED Eo *obj, EINA_UNUSED
return EINA_TRUE;
}
+Eina_Bool _dummy_test_object_eina_rw_slice_inout(EINA_UNUSED Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd, Eina_Rw_Slice *slice)
+{
+ if (!slice) return EINA_FALSE;
+ for (size_t i = 0; i < slice->len; i++)
+ slice->bytes[i] += (uint8_t)i;
+ return EINA_TRUE;
+}
+
Eina_Slice _dummy_test_object_eina_slice_return(EINA_UNUSED Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd)
{
Eina_Slice slc = EINA_SLICE_ARRAY(base_seq);