summaryrefslogtreecommitdiff
path: root/src/tests/eio
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-03 18:15:57 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-03 18:15:57 -0300
commite79eb53e8d20bdb4838fbb42c9e5b1ee47b7f263 (patch)
tree3b38de336ae0346543b4e5100d83da88720906f1 /src/tests/eio
parent09446ccb90c1f3180e5b2e0a52b3ce2c78c7c140 (diff)
eina: Remove Eina_Promise* parameter in promise callback
Remove not very useful parameter to eina_promise_then callbacks.
Diffstat (limited to 'src/tests/eio')
-rw-r--r--src/tests/eio/eio_model_test_file.c8
-rw-r--r--src/tests/eio/eio_model_test_monitor_add.c4
-rw-r--r--src/tests/eio/eio_test_job.c14
3 files changed, 13 insertions, 13 deletions
diff --git a/src/tests/eio/eio_model_test_file.c b/src/tests/eio/eio_model_test_file.c
index ec9e6a60e3..2c0c712263 100644
--- a/src/tests/eio/eio_model_test_file.c
+++ b/src/tests/eio/eio_model_test_file.c
@@ -58,7 +58,7 @@ static Eina_Bool
58 } 58 }
59 59
60static void 60static void
61promise_then_count(void *data EINA_UNUSED, void *p, Eina_Promise* promise EINA_UNUSED) 61promise_then_count(void *data EINA_UNUSED, void *p)
62{ 62{
63 int *total = p; 63 int *total = p;
64 ck_assert_ptr_ne(total, NULL); 64 ck_assert_ptr_ne(total, NULL);
@@ -67,7 +67,7 @@ promise_then_count(void *data EINA_UNUSED, void *p, Eina_Promise* promise EINA_U
67} 67}
68 68
69static void 69static void
70promise_then_accessor(void *data EINA_UNUSED, void* p, Eina_Promise* promise EINA_UNUSED) 70promise_then_accessor(void *data EINA_UNUSED, void* p)
71{ 71{
72 Eina_Accessor **accessor = (Eina_Accessor**)p; 72 Eina_Accessor **accessor = (Eina_Accessor**)p;
73 ck_assert_ptr_ne(accessor, NULL); 73 ck_assert_ptr_ne(accessor, NULL);
@@ -84,7 +84,7 @@ promise_then_accessor(void *data EINA_UNUSED, void* p, Eina_Promise* promise EIN
84} 84}
85 85
86static void 86static void
87promise_then_value(void *user EINA_UNUSED, void *p, Eina_Promise* promise EINA_UNUSED) 87promise_then_value(void *user EINA_UNUSED, void *p)
88{ 88{
89 Eina_Value* value = p; 89 Eina_Value* value = p;
90 ck_assert_ptr_ne(value, NULL); 90 ck_assert_ptr_ne(value, NULL);
@@ -98,7 +98,7 @@ promise_then_value(void *user EINA_UNUSED, void *p, Eina_Promise* promise EINA_U
98} 98}
99 99
100static void 100static void
101error_promise_then(void* data EINA_UNUSED, Eina_Error error EINA_UNUSED, Eina_Promise* promise EINA_UNUSED) 101error_promise_then(void* data EINA_UNUSED, Eina_Error error EINA_UNUSED)
102{ 102{
103 ck_abort_msg(0, "Error Promise cb"); 103 ck_abort_msg(0, "Error Promise cb");
104 ecore_main_loop_quit(); 104 ecore_main_loop_quit();
diff --git a/src/tests/eio/eio_model_test_monitor_add.c b/src/tests/eio/eio_model_test_monitor_add.c
index e8bcd11e51..4a97f0ff70 100644
--- a/src/tests/eio/eio_model_test_monitor_add.c
+++ b/src/tests/eio/eio_model_test_monitor_add.c
@@ -64,7 +64,7 @@ _children_added_cb(void *data EINA_UNUSED, const Eo_Event* event)
64} 64}
65 65
66static void 66static void
67_create_file(void *data EINA_UNUSED, void* value EINA_UNUSED, Eina_Promise* promise EINA_UNUSED) 67_create_file(void *data EINA_UNUSED, void* value EINA_UNUSED)
68{ 68{
69 int fd; 69 int fd;
70 if((fd = eina_file_mkstemp("prefixXXXXXX.ext", &temp_filename)) > 0) 70 if((fd = eina_file_mkstemp("prefixXXXXXX.ext", &temp_filename)) > 0)
@@ -76,7 +76,7 @@ _create_file(void *data EINA_UNUSED, void* value EINA_UNUSED, Eina_Promise* prom
76 76
77 77
78static void 78static void
79_create_file_error(void *data EINA_UNUSED, Eina_Error value EINA_UNUSED, Eina_Promise* promise EINA_UNUSED) 79_create_file_error(void *data EINA_UNUSED, Eina_Error value EINA_UNUSED)
80{ 80{
81 ck_abort_msg(0, "Error Promise cb called in Create file"); 81 ck_abort_msg(0, "Error Promise cb called in Create file");
82 ecore_main_loop_quit(); 82 ecore_main_loop_quit();
diff --git a/src/tests/eio/eio_test_job.c b/src/tests/eio/eio_test_job.c
index 7c9a007216..0a532ebf7d 100644
--- a/src/tests/eio/eio_test_job.c
+++ b/src/tests/eio/eio_test_job.c
@@ -31,7 +31,7 @@ _filter_direct_cb(void *data EINA_UNUSED, const Eo_Event *event)
31} 31}
32 32
33static void 33static void
34_main_direct_cb(void *data, const Eina_File_Direct_Info *info, Eina_Promise* promise EINA_UNUSED) 34_main_direct_cb(void *data, const Eina_File_Direct_Info *info)
35{ 35{
36 int *number_of_listed_files = (int *)data; 36 int *number_of_listed_files = (int *)data;
37 37
@@ -53,7 +53,7 @@ _filter_cb(void *data EINA_UNUSED, const Eo_Event *event)
53} 53}
54 54
55static void 55static void
56_main_cb(void *data, const char *file, Eina_Promise* promise EINA_UNUSED) 56_main_cb(void *data, const char *file)
57{ 57{
58 int *number_of_listed_files = (int *)data; 58 int *number_of_listed_files = (int *)data;
59 59
@@ -62,7 +62,7 @@ _main_cb(void *data, const char *file, Eina_Promise* promise EINA_UNUSED)
62} 62}
63 63
64static void 64static void
65_done_cb(void *data, void* value EINA_UNUSED, Eina_Promise* promise EINA_UNUSED) 65_done_cb(void *data, void* value EINA_UNUSED)
66{ 66{
67 int *number_of_listed_files = (int *)data; 67 int *number_of_listed_files = (int *)data;
68 fail_if((*number_of_listed_files) != test_count); 68 fail_if((*number_of_listed_files) != test_count);
@@ -71,7 +71,7 @@ _done_cb(void *data, void* value EINA_UNUSED, Eina_Promise* promise EINA_UNUSED)
71} 71}
72 72
73static void 73static void
74_error_cb(void *data EINA_UNUSED, Eina_Error error, Eina_Promise* promise EINA_UNUSED) 74_error_cb(void *data EINA_UNUSED, Eina_Error error)
75{ 75{
76 const char *msg = eina_error_msg_get(error); 76 const char *msg = eina_error_msg_get(error);
77 EINA_LOG_ERR("error: %s", msg); 77 EINA_LOG_ERR("error: %s", msg);
@@ -79,7 +79,7 @@ _error_cb(void *data EINA_UNUSED, Eina_Error error, Eina_Promise* promise EINA_U
79} 79}
80 80
81static void 81static void
82_open_done_cb(void *data, void *file_value, Eina_Promise* promise EINA_UNUSED) 82_open_done_cb(void *data, void *file_value)
83{ 83{
84 Eina_Bool *opened = (Eina_Bool *)data; 84 Eina_Bool *opened = (Eina_Bool *)data;
85 *opened = EINA_TRUE; 85 *opened = EINA_TRUE;
@@ -89,7 +89,7 @@ _open_done_cb(void *data, void *file_value, Eina_Promise* promise EINA_UNUSED)
89} 89}
90 90
91static void 91static void
92_stat_done_cb(void *data, void *value, Eina_Promise* promise EINA_UNUSED) 92_stat_done_cb(void *data, void *value)
93{ 93{
94 Eina_Stat const* stat = value; 94 Eina_Stat const* stat = value;
95 Eina_Bool *is_dir = data; 95 Eina_Bool *is_dir = data;
@@ -284,4 +284,4 @@ eio_test_job(TCase *tc)
284 tcase_add_test(tc, eio_job_test_file_direct_stat); 284 tcase_add_test(tc, eio_job_test_file_direct_stat);
285 tcase_add_test(tc, eio_job_test_open); 285 tcase_add_test(tc, eio_job_test_open);
286} 286}
287; 287