summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-03 18:34:42 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-03 18:37:21 -0300
commite98c57d9d414c654c2e90cad19ec791d02374448 (patch)
treedcf5861f2e69fdff80e2c91518846aa96ae37d13 /src/tests
parent3de4e3100371206b1343afd7a4c4832b61964fcd (diff)
eina: Remove more Eina_Promise* parameter in promise callback
Remove not very useful parameter to eina_promise_then callbacks.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/ecore/ecore_test_job.c2
-rw-r--r--src/tests/eina/eina_test_promise.c10
-rw-r--r--src/tests/eio/eio_test_job_xattr.c8
3 files changed, 10 insertions, 10 deletions
diff --git a/src/tests/ecore/ecore_test_job.c b/src/tests/ecore/ecore_test_job.c
index 60eebdef86..2e1a528219 100644
--- a/src/tests/ecore/ecore_test_job.c
+++ b/src/tests/ecore/ecore_test_job.c
@@ -6,7 +6,7 @@
6#include "ecore_suite.h" 6#include "ecore_suite.h"
7 7
8static void 8static void
9_ecore_promise_quit(void *data, void *value, Eina_Promise* promise EINA_UNUSED) 9_ecore_promise_quit(void *data, void *value)
10{ 10{
11 Eina_Bool *bob = data; 11 Eina_Bool *bob = data;
12 12
diff --git a/src/tests/eina/eina_test_promise.c b/src/tests/eina/eina_test_promise.c
index 7c6d33af1b..8df6e26d90 100644
--- a/src/tests/eina/eina_test_promise.c
+++ b/src/tests/eina/eina_test_promise.c
@@ -32,7 +32,7 @@
32#include "eina_suite.h" 32#include "eina_suite.h"
33 33
34static void 34static void
35_eina_test_promise_cb(void* data, void* value EINA_UNUSED, Eina_Promise* promise EINA_UNUSED) 35_eina_test_promise_cb(void* data, void* value EINA_UNUSED)
36{ 36{
37 *(Eina_Bool*)data = EINA_TRUE; 37 *(Eina_Bool*)data = EINA_TRUE;
38} 38}
@@ -122,7 +122,7 @@ START_TEST(eina_test_promise_immediate_set_lifetime_all)
122} 122}
123END_TEST 123END_TEST
124 124
125static void _eina_test_promise_value_all_cb(void* data, void* value, Eina_Promise* promise EINA_UNUSED) 125static void _eina_test_promise_value_all_cb(void* data, void* value)
126{ 126{
127 Eina_Iterator* iterator = value; 127 Eina_Iterator* iterator = value;
128 int *i, *j; 128 int *i, *j;
@@ -178,7 +178,7 @@ static void cancel_callback(void* data, Eina_Promise_Owner* promise EINA_UNUSED)
178 *(Eina_Bool*)data = EINA_TRUE; 178 *(Eina_Bool*)data = EINA_TRUE;
179} 179}
180 180
181static void _cancel_promise_callback(void* data EINA_UNUSED, Eina_Error error EINA_UNUSED, Eina_Promise* promise EINA_UNUSED) 181static void _cancel_promise_callback(void* data EINA_UNUSED, Eina_Error error EINA_UNUSED)
182{ 182{
183 *(Eina_Bool*)data = EINA_TRUE; 183 *(Eina_Bool*)data = EINA_TRUE;
184} 184}
@@ -284,13 +284,13 @@ START_TEST(eina_test_promise_progress_notify2)
284END_TEST 284END_TEST
285 285
286static void 286static void
287_eina_promise_progress_notify_fulfilled(void* data, void* value EINA_UNUSED, Eina_Promise* promise EINA_UNUSED) 287_eina_promise_progress_notify_fulfilled(void* data, void* value EINA_UNUSED)
288{ 288{
289 *(Eina_Bool*)data = EINA_TRUE; 289 *(Eina_Bool*)data = EINA_TRUE;
290} 290}
291 291
292static void 292static void
293_eina_promise_progress_notify_error(void* data EINA_UNUSED, Eina_Error error EINA_UNUSED, Eina_Promise* promise EINA_UNUSED) 293_eina_promise_progress_notify_error(void* data EINA_UNUSED, Eina_Error error EINA_UNUSED)
294{ 294{
295 ck_assert(EINA_FALSE); 295 ck_assert(EINA_FALSE);
296} 296}
diff --git a/src/tests/eio/eio_test_job_xattr.c b/src/tests/eio/eio_test_job_xattr.c
index d47fb50da0..f2fd2bbd24 100644
--- a/src/tests/eio/eio_test_job_xattr.c
+++ b/src/tests/eio/eio_test_job_xattr.c
@@ -60,7 +60,7 @@ _main_cb(void *data, void *v)
60} 60}
61 61
62static void 62static void
63_done_cb(void *data, void *value EINA_UNUSED, Eina_Promise* promise EINA_UNUSED) 63_done_cb(void *data, void *value EINA_UNUSED)
64 64
65{ 65{
66 int *num_of_attr = (int *)data; 66 int *num_of_attr = (int *)data;
@@ -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_done_get_cb(void *data EINA_UNUSED, void* v, Eina_Promise* promise EINA_UNUSED) 74_done_get_cb(void *data EINA_UNUSED, void* v)
75{ 75{
76 Eina_Iterator** it = (Eina_Iterator**)v; 76 Eina_Iterator** it = (Eina_Iterator**)v;
77 int i = 0; 77 int i = 0;
@@ -90,7 +90,7 @@ _done_get_cb(void *data EINA_UNUSED, void* v, Eina_Promise* promise EINA_UNUSED)
90} 90}
91 91
92static void 92static void
93_done_set_cb(void *data, void* v, Eina_Promise* promise EINA_UNUSED) 93_done_set_cb(void *data, void* v)
94{ 94{
95 Eina_Iterator** it = (Eina_Iterator**)v; 95 Eina_Iterator** it = (Eina_Iterator**)v;
96 int *placeholder; 96 int *placeholder;
@@ -104,7 +104,7 @@ _done_set_cb(void *data, void* v, Eina_Promise* promise EINA_UNUSED)
104} 104}
105 105
106static void 106static void
107_error_cb(void *data EINA_UNUSED, Eina_Error error, Eina_Promise* promise EINA_UNUSED) 107_error_cb(void *data EINA_UNUSED, Eina_Error error)
108 108
109{ 109{
110 fprintf(stderr, "Something has gone wrong:%s\n", eina_error_msg_get(error)); 110 fprintf(stderr, "Something has gone wrong:%s\n", eina_error_msg_get(error));