summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_test_config.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-06-23 19:33:34 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-06-24 17:10:21 +0900
commit07613bf2f6ef322e6a4b9cf68249b3b8297788b7 (patch)
tree00b35a648a07a93ce81ed30fa5c0e9d09d4e091d /src/tests/elementary/elm_test_config.c
parent8b8430214a6559a0a540b298b768e49a39f84113 (diff)
config: Simplify Efl.Config API, make C helpers only
This removes the mixin functions and uses static inline functions instead. Much cleaner, looks the same to C devs.
Diffstat (limited to '')
-rw-r--r--src/tests/elementary/elm_test_config.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/tests/elementary/elm_test_config.c b/src/tests/elementary/elm_test_config.c
index 1f2f1bb..bdedc11 100644
--- a/src/tests/elementary/elm_test_config.c
+++ b/src/tests/elementary/elm_test_config.c
@@ -13,7 +13,7 @@ START_TEST (elm_config_eoapi)
13{ 13{
14 elm_init(1, NULL); 14 elm_init(1, NULL);
15 15
16 Eo *cfg = efl_config_global_get(EFL_CONFIG_MIXIN); 16 Eo *cfg = eo_provider_find(ecore_main_loop_get(), EFL_CONFIG_INTERFACE);
17 fail_if(!cfg); 17 fail_if(!cfg);
18 18
19#define CONFIG_CHK(opt, typ, val) do { \ 19#define CONFIG_CHK(opt, typ, val) do { \
@@ -26,7 +26,6 @@ START_TEST (elm_config_eoapi)
26 26
27#define CONFIG_CHKB(opt, val) CONFIG_CHK(opt, bool, val) 27#define CONFIG_CHKB(opt, val) CONFIG_CHK(opt, bool, val)
28#define CONFIG_CHKI(opt, val) CONFIG_CHK(opt, int, val) 28#define CONFIG_CHKI(opt, val) CONFIG_CHK(opt, int, val)
29#define CONFIG_CHKU(opt, val) CONFIG_CHK(opt, uint, val)
30#define CONFIG_CHKD(opt, val) CONFIG_CHK(opt, double, val) 29#define CONFIG_CHKD(opt, val) CONFIG_CHK(opt, double, val)
31 30
32 // note: leaks badly 31 // note: leaks badly
@@ -52,10 +51,10 @@ START_TEST (elm_config_eoapi)
52 CONFIG_CHKD(scroll_bring_in_scroll_friction, 0); 51 CONFIG_CHKD(scroll_bring_in_scroll_friction, 0);
53 CONFIG_CHKD(scroll_zoom_friction, 0); 52 CONFIG_CHKD(scroll_zoom_friction, 0);
54 CONFIG_CHKB(scroll_thumbscroll_enabled, !old); 53 CONFIG_CHKB(scroll_thumbscroll_enabled, !old);
55 CONFIG_CHKU(scroll_thumbscroll_threshold, 0); 54 CONFIG_CHKI(scroll_thumbscroll_threshold, 0);
56 CONFIG_CHKU(scroll_thumbscroll_hold_threshold, 0); 55 CONFIG_CHKI(scroll_thumbscroll_hold_threshold, 0);
57 CONFIG_CHKD(scroll_thumbscroll_momentum_threshold, 0); 56 CONFIG_CHKD(scroll_thumbscroll_momentum_threshold, 0);
58 CONFIG_CHKU(scroll_thumbscroll_flick_distance_tolerance, 0); 57 CONFIG_CHKI(scroll_thumbscroll_flick_distance_tolerance, 0);
59 CONFIG_CHKD(scroll_thumbscroll_friction, 0); 58 CONFIG_CHKD(scroll_thumbscroll_friction, 0);
60 CONFIG_CHKD(scroll_thumbscroll_min_friction, 0); 59 CONFIG_CHKD(scroll_thumbscroll_min_friction, 0);
61 CONFIG_CHKD(scroll_thumbscroll_friction_standard, 0); 60 CONFIG_CHKD(scroll_thumbscroll_friction_standard, 0);