summaryrefslogtreecommitdiff
path: root/src/tests/evas/evas_test_mesh.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-01-25 12:47:38 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-26 11:42:14 +0100
commit956a66c7485264de9cc0b6d88ca8363826ab5091 (patch)
treefa3a1bc92c3e82a4488439dee5e47ac494248314 /src/tests/evas/evas_test_mesh.c
parent015fbac20da75fa944573c8f359b0785c7ffedbd (diff)
evas_canvas3d_mesh: implement get methods for efl.file file and mmap props
also add unit tests for new methods ref T5719 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D7785
Diffstat (limited to '')
-rw-r--r--src/tests/evas/evas_test_mesh.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_mesh.c b/src/tests/evas/evas_test_mesh.c
index 6ac928daab..424b57b724 100644
--- a/src/tests/evas/evas_test_mesh.c
+++ b/src/tests/evas/evas_test_mesh.c
@@ -44,6 +44,9 @@
44 { \ 44 { \
45 int set_ok, save_ok; \ 45 int set_ok, save_ok; \
46 Eina_File *f; \ 46 Eina_File *f; \
47 const Eina_File *f_get = NULL; \
48 const char *filename = NULL; \
49 const char *key = NULL; \
47 mesh = efl_add(EVAS_CANVAS3D_MESH_CLASS, e); \ 50 mesh = efl_add(EVAS_CANVAS3D_MESH_CLASS, e); \
48 mesh2 = efl_add(EVAS_CANVAS3D_MESH_CLASS, e); \ 51 mesh2 = efl_add(EVAS_CANVAS3D_MESH_CLASS, e); \
49 fail_if(mesh == NULL); \ 52 fail_if(mesh == NULL); \
@@ -55,11 +58,17 @@
55 fail_if(!save_ok); \ 58 fail_if(!save_ok); \
56 set_ok = efl_file_set(mesh2, buffer, NULL); \ 59 set_ok = efl_file_set(mesh2, buffer, NULL); \
57 fail_if(!set_ok); \ 60 fail_if(!set_ok); \
61 efl_file_get(mesh2, &filename, &key); \
62 fail_if(!!filename); \
63 fail_if(!!key); \
58 res = _compare_meshes(mesh, mesh2); \ 64 res = _compare_meshes(mesh, mesh2); \
59 fail_if(res == 1); \ 65 fail_if(res == 1); \
60 f = eina_file_open(file->path, 0); \ 66 f = eina_file_open(file->path, 0); \
61 fail_if(!f); \ 67 fail_if(!f); \
62 set_ok = efl_file_mmap_set(mesh, f, NULL); \ 68 set_ok = efl_file_mmap_set(mesh, f, NULL); \
69 efl_file_mmap_get(mesh, &f_get, &key); \
70 fail_if(!!f_get); \
71 fail_if(!!key); \
63 eina_file_close(f); \ 72 eina_file_close(f); \
64 save_ok = efl_file_save(mesh, buffer, NULL, NULL); \ 73 save_ok = efl_file_save(mesh, buffer, NULL, NULL); \
65 fail_if(!set_ok); \ 74 fail_if(!set_ok); \