summaryrefslogtreecommitdiff
path: root/src/tests/eldbus/eldbus_test_fake_server_eldbus_model_proxy.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2018-11-23 16:25:19 +0000
committerCedric BAIL <cedric@osg.samsung.com>2018-11-23 10:13:58 -0800
commitd4d44d76f3efef4d61edb4cce7152284915a12d2 (patch)
tree502779c9047c6a8e02c8466f81ddc8616887fa50 /src/tests/eldbus/eldbus_test_fake_server_eldbus_model_proxy.c
parentaac7d099a17d69f5989481f8999a43d4173005bd (diff)
efl: make Efl.Model.properties_get return an Iterator<string>.
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7289
Diffstat (limited to '')
-rw-r--r--src/tests/eldbus/eldbus_test_fake_server_eldbus_model_proxy.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tests/eldbus/eldbus_test_fake_server_eldbus_model_proxy.c b/src/tests/eldbus/eldbus_test_fake_server_eldbus_model_proxy.c
index 81d35df609..69cf8bafc9 100644
--- a/src/tests/eldbus/eldbus_test_fake_server_eldbus_model_proxy.c
+++ b/src/tests/eldbus/eldbus_test_fake_server_eldbus_model_proxy.c
@@ -52,12 +52,17 @@ _teardown(void)
52 52
53EFL_START_TEST(properties_get) 53EFL_START_TEST(properties_get)
54{ 54{
55 const Eina_Array *properties = efl_model_properties_get(fake_server_proxy); 55 Eina_Iterator *properties = efl_model_properties_get(fake_server_proxy);
56 ck_assert_ptr_ne(NULL, properties); 56 ck_assert_ptr_ne(NULL, properties);
57 57
58 // FAKE_SERVER_READONLY_PROPERTY, FAKE_SERVER_WRITEONLY_PROPERTY and FAKE_SERVER_READWRITE_PROPERTY properties 58 // FAKE_SERVER_READONLY_PROPERTY, FAKE_SERVER_WRITEONLY_PROPERTY and FAKE_SERVER_READWRITE_PROPERTY properties
59 const unsigned int expected_properties_count = 3; 59 const unsigned int expected_properties_count = 3;
60 const unsigned int actual_properties_count = eina_array_count(properties); 60 unsigned int actual_properties_count = 0;
61 const char *prop;
62
63 EINA_ITERATOR_FOREACH(properties, prop)
64 actual_properties_count++;
65 eina_iterator_free(properties);
61 ck_assert_int_eq(expected_properties_count, actual_properties_count); 66 ck_assert_int_eq(expected_properties_count, actual_properties_count);
62 67
63 _teardown(); 68 _teardown();