summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-05-03 09:36:37 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2016-05-03 09:36:37 +0200
commitb917eb4c2570c516987cebc5c5d69e7d47608cbc (patch)
treed0d812e520726c73823bf465ec2dbef14ff720f0 /src/tests
parent37667cb69f321106d0a159127c7793f8ea767e7f (diff)
tests: eio: use the correct eina_promise_* functions
When these changes got it with 0c76f82a31b1ad06a4da4c12f1a02139e0d0c6fa they used the non existing symbols ecore_promise_value_get and ecore_promise_then (most likely due to an unfinished refactoring) Make sure we actually use the correct eina_promise_ symbols and add NULL for the error callback which is now needed.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/eio/eio_model_test_monitor_add.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/eio/eio_model_test_monitor_add.c b/src/tests/eio/eio_model_test_monitor_add.c
index a18b47e670..4df6539a44 100644
--- a/src/tests/eio/eio_model_test_monitor_add.c
+++ b/src/tests/eio/eio_model_test_monitor_add.c
@@ -32,7 +32,7 @@ _children_removed_cb(void *data EINA_UNUSED, const Eo_Event* event)
32 32
33 Eina_Promise* promise; 33 Eina_Promise* promise;
34 efl_model_property_get(evt->child, "path", &promise); 34 efl_model_property_get(evt->child, "path", &promise);
35 Eina_Value const* value = ecore_promise_value_get(promise); 35 Eina_Value const* value = eina_promise_value_get(promise);
36 char* filename = eina_value_to_string(value); 36 char* filename = eina_value_to_string(value);
37 37
38 if(temp_filename && !strcmp(filename, temp_filename) == 0) 38 if(temp_filename && !strcmp(filename, temp_filename) == 0)
@@ -50,7 +50,7 @@ _children_added_cb(void *data EINA_UNUSED, const Eo_Event* event)
50 50
51 Eina_Promise* promise; 51 Eina_Promise* promise;
52 efl_model_property_get(evt->child, "path", &promise); 52 efl_model_property_get(evt->child, "path", &promise);
53 Eina_Value const* value = ecore_promise_value_get(promise); 53 Eina_Value const* value = eina_promise_value_get(promise);
54 char* filename = eina_value_to_string(value); 54 char* filename = eina_value_to_string(value);
55 55
56 if(temp_filename && !strcmp(temp_filename, filename)) 56 if(temp_filename && !strcmp(temp_filename, filename))
@@ -96,7 +96,7 @@ START_TEST(eio_model_test_test_monitor_add)
96 Eina_Promise* promise; 96 Eina_Promise* promise;
97 efl_model_children_slice_get(filemodel, 0, 0, &promise); 97 efl_model_children_slice_get(filemodel, 0, 0, &promise);
98 98
99 ecore_promise_then(promise, &_create_file, NULL); 99 eina_promise_then(promise, &_create_file, NULL, NULL);
100 100
101 ecore_main_loop_begin(); 101 ecore_main_loop_begin();
102 102