From: Suyeon Hwang Date: Tue, 20 Jul 2021 08:29:17 +0000 (+0900) Subject: Use ecore timer to make testable X-Git-Tag: accepted/tizen/6.5/unified/20211028.123107~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2480ccacdb0b956be2fe64dc855ed4f18b0317f9;p=platform%2Fcore%2Fuifw%2Fvoice-control.git Use ecore timer to make testable Change-Id: Ib43ee0b2d1501507bc41a2b1695d323fa0d43d44 Signed-off-by: Suyeon Hwang --- diff --git a/client/vc_mgr.c b/client/vc_mgr.c index 559a276..5c0a44f 100755 --- a/client/vc_mgr.c +++ b/client/vc_mgr.c @@ -45,7 +45,7 @@ #define VC_MANAGER_CONFIG_HANDLE 100000 static Ecore_Timer* g_send_hello_timer = NULL; -static Ecore_Idler* g_request_init_timer = NULL; +static Ecore_Timer* g_request_init_timer = NULL; static int g_send_hello_count = 0; static Ecore_Timer* g_m_set_volume_timer = NULL; @@ -368,7 +368,7 @@ int vc_mgr_deinitialize(void) } if (g_request_init_timer) { SLOG(LOG_DEBUG, TAG_VCM, "Connect idler is deleted"); - ecore_idler_del(g_request_init_timer); + ecore_timer_del(g_request_init_timer); g_request_init_timer = NULL; } @@ -515,7 +515,7 @@ static Eina_Bool __send_hello_message(void *data) if (NULL == g_request_init_timer) { SLOG(LOG_INFO, TAG_VCM, "[DEBUG] Create a new idler for preparation"); - g_request_init_timer = ecore_idler_add(__request_initialize, NULL); + g_request_init_timer = ecore_timer_add(0.0, __request_initialize, NULL); } else { SLOG(LOG_INFO, TAG_VCM, "[INFO] idler handle is already created"); }