summaryrefslogtreecommitdiff
path: root/src/tests/eio
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-16 21:50:37 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-16 22:01:07 -0300
commit8e4f383d61188020d5ceeee691fd7df761f10202 (patch)
treeb747603d70956b51d2ba719a3c4cfb710904bbb4 /src/tests/eio
parent52e2774523209655e868d1244f0e2dd3b2d44491 (diff)
efl: Move promise parameter to return in data model
Summary: Instead of: efl_model_property_get("name", &promise); now: promise = efl_model_property_get("name"); Reviewers: stefan_schmidt, cedric Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D4038
Diffstat (limited to 'src/tests/eio')
-rw-r--r--src/tests/eio/eio_model_test_file.c10
-rw-r--r--src/tests/eio/eio_model_test_monitor_add.c6
2 files changed, 8 insertions, 8 deletions
diff --git a/src/tests/eio/eio_model_test_file.c b/src/tests/eio/eio_model_test_file.c
index 81a65dee92..3352e355b4 100644
--- a/src/tests/eio/eio_model_test_file.c
+++ b/src/tests/eio/eio_model_test_file.c
@@ -121,23 +121,23 @@ START_TEST(eio_model_test_test_file)
121 121
122 Eina_Promise *promise; 122 Eina_Promise *promise;
123 123
124 efl_model_property_get(filemodel, "filename", &promise); 124 promise = efl_model_property_get(filemodel, "filename");
125 eina_promise_then(promise, &promise_then_value, &error_promise_then, NULL); 125 eina_promise_then(promise, &promise_then_value, &error_promise_then, NULL);
126 ecore_main_loop_begin(); 126 ecore_main_loop_begin();
127 127
128 efl_model_property_get(filemodel, "size", &promise); 128 promise = efl_model_property_get(filemodel, "size");
129 eina_promise_then(promise, &promise_then_value, &error_promise_then, NULL); 129 eina_promise_then(promise, &promise_then_value, &error_promise_then, NULL);
130 ecore_main_loop_begin(); 130 ecore_main_loop_begin();
131 131
132 efl_model_property_get(filemodel, "mtime", &promise); 132 promise = efl_model_property_get(filemodel, "mtime");
133 eina_promise_then(promise, &promise_then_value, &error_promise_then, NULL); 133 eina_promise_then(promise, &promise_then_value, &error_promise_then, NULL);
134 ecore_main_loop_begin(); 134 ecore_main_loop_begin();
135 135
136 efl_model_children_slice_get(filemodel, 0, 0, &promise); 136 promise = efl_model_children_slice_get(filemodel, 0, 0);
137 eina_promise_then(promise, &promise_then_accessor, &error_promise_then, NULL); 137 eina_promise_then(promise, &promise_then_accessor, &error_promise_then, NULL);
138 ecore_main_loop_begin(); 138 ecore_main_loop_begin();
139 139
140 efl_model_children_count_get(filemodel, &promise); 140 promise = efl_model_children_count_get(filemodel);
141 eina_promise_then(promise, &promise_then_count, &error_promise_then, NULL); 141 eina_promise_then(promise, &promise_then_count, &error_promise_then, NULL);
142 ecore_main_loop_begin(); 142 ecore_main_loop_begin();
143 143
diff --git a/src/tests/eio/eio_model_test_monitor_add.c b/src/tests/eio/eio_model_test_monitor_add.c
index 99d6e07196..919797a184 100644
--- a/src/tests/eio/eio_model_test_monitor_add.c
+++ b/src/tests/eio/eio_model_test_monitor_add.c
@@ -30,7 +30,7 @@ _children_removed_cb(void *data EINA_UNUSED, const Eo_Event* event)
30 Efl_Model_Children_Event* evt = event->info; 30 Efl_Model_Children_Event* evt = event->info;
31 31
32 Eina_Promise* promise; 32 Eina_Promise* promise;
33 efl_model_property_get(evt->child, "path", &promise); 33 promise = efl_model_property_get(evt->child, "path");
34 Eina_Value const* value = eina_promise_value_get(promise); 34 Eina_Value const* value = eina_promise_value_get(promise);
35 char* filename = eina_value_to_string(value); 35 char* filename = eina_value_to_string(value);
36 36
@@ -49,7 +49,7 @@ _children_added_cb(void *data EINA_UNUSED, const Eo_Event* event)
49 Efl_Model_Children_Event* evt = event->info; 49 Efl_Model_Children_Event* evt = event->info;
50 50
51 Eina_Promise* promise; 51 Eina_Promise* promise;
52 efl_model_property_get(evt->child, "path", &promise); 52 promise = efl_model_property_get(evt->child, "path");
53 Eina_Value const* value = eina_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
@@ -104,7 +104,7 @@ START_TEST(eio_model_test_test_monitor_add)
104 eo_event_callback_add(filemodel, EFL_MODEL_EVENT_CHILD_REMOVED, &_children_removed_cb, NULL); 104 eo_event_callback_add(filemodel, EFL_MODEL_EVENT_CHILD_REMOVED, &_children_removed_cb, NULL);
105 105
106 Eina_Promise* promise; 106 Eina_Promise* promise;
107 efl_model_children_slice_get(filemodel, 0, 0, &promise); 107 promise = efl_model_children_slice_get(filemodel, 0, 0);
108 108
109 eina_promise_then(promise, &_create_file, &_create_file_error, NULL); 109 eina_promise_then(promise, &_create_file, &_create_file_error, NULL);
110 110