From: Priya Kohli Date: Mon, 1 Jun 2020 12:35:32 +0000 (+0530) Subject: [ITC][capi-ui-sticker][ACR-1534][Added TCs for new APIs and enumeration for sticker... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F07%2F235007%2F3;p=test%2Ftct%2Fnative%2Fapi.git [ITC][capi-ui-sticker][ACR-1534][Added TCs for new APIs and enumeration for sticker framework] Change-Id: Ifff70c36d2db3c9eacc29d4bfd099dcd3bbf3c9f Signed-off-by: Priya Kohli --- diff --git a/src/itc/capi-ui-sticker/ITs-capi-ui-sticker-consumer.c b/src/itc/capi-ui-sticker/ITs-capi-ui-sticker-consumer.c index 3914c866d..4f0ce5224 100755 --- a/src/itc/capi-ui-sticker/ITs-capi-ui-sticker-consumer.c +++ b/src/itc/capi-ui-sticker/ITs-capi-ui-sticker-consumer.c @@ -54,6 +54,16 @@ static void StickerConsumerKeywordListCallback(const char *keyword, void *user_d FPRINTF("[Line : %d][%s] Inside callback StickerConsumerKeywordListCallback\\n", __LINE__, API_NAMESPACE); } +/** + * @function StickerConsumerSetEventCallback + * @description A sticker consumer callback for set event + */ +static void StickerConsumerSetEventCallback(sticker_consumer_event_type_e event_type, sticker_data_h data_handle, void *user_data) +{ + g_bCallbackHit = true; + FPRINTF("[Line : %d][%s] Inside callback StickerConsumerSetEventCallback\\n", __LINE__, API_NAMESPACE); +} + /** * @function ITs_capi_ui_sticker_consumer_startup * @description Called before each test, set the service boolean true @@ -136,6 +146,12 @@ void ITs_capi_ui_sticker_consumer_startup(void) FPRINTF("[%s:%d] sticker_data_set_description failed, error returned =(%d)\\n", __FILE__, __LINE__, nRet); g_bStickerCreation = false; } + nRet = sticker_data_set_display_type(g_hStickerDataHandle, STICKER_DATA_DISP_WALLPAPER); + if ( nRet != STICKER_ERROR_NONE ) + { + FPRINTF("[%s:%d] sticker_data_set_display_type failed, error returned =(%d)\\n", __FILE__, __LINE__, nRet); + g_bStickerCreation = false; + } nRet = sticker_provider_insert_data(g_hStickerProviderHandle, g_hStickerDataHandle); if ( nRet != STICKER_ERROR_NONE ) { @@ -158,6 +174,7 @@ void ITs_capi_ui_sticker_consumer_cleanup(void) #if DEBUG FPRINTF("[Line : %d][%s] TEST SUIT clean-up: ITs_capi_ui_sticker_consumer_cleanup\\n", __LINE__, API_NAMESPACE); #endif + if (g_hStickerConsumerHandle) { nRet = sticker_consumer_destroy(g_hStickerConsumerHandle); if(nRet !=0) @@ -390,7 +407,6 @@ int ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_all_p(void) { START_TEST; int nRet = -1; - int nResult = -1; g_bCallbackHit = false; nRet = sticker_consumer_group_list_foreach_all(g_hStickerConsumerHandle, StickerConsumerGroupListCallback, NULL); @@ -421,7 +437,6 @@ int ITc_capi_ui_sticker_data_sticker_consumer_keyword_list_foreach_all_p(void) { START_TEST; int nRet = -1; - int nResult = -1; g_bCallbackHit = false; nRet = sticker_consumer_keyword_list_foreach_all(g_hStickerConsumerHandle, StickerConsumerKeywordListCallback, NULL); @@ -432,5 +447,145 @@ int ITc_capi_ui_sticker_data_sticker_consumer_keyword_list_foreach_all_p(void) return 0; } +/** + * @testcase ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_display_type_p + * @since_tizen 5.5 + * @author SRID(priya.kohli) + * @reviewer SRID(shobhit.v) + * @type auto + * @description Retrieves all sticker data in the sticker database using display type + * @scenario Retrieves all sticker data in the sticker database using display type + * @apicovered sticker_consumer_data_foreach_by_display_type + * @passcase When sticker_consumer_data_foreach_by_display_type and Precondition APi's are successful. + * @failcase If target API fails or any precondition API fails + * @precondition None + * @postcondition None + */ +//& purpose: API to retrieve all sticker data in the sticker database using display type +int ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_display_type_p(void) +{ + START_TEST; + int nRet = -1; + int nResult = -1; + int nOffset = 0; + int nCnt = 1000; + void *userData = NULL; + g_bCallbackHit = false; + + nRet = sticker_consumer_data_foreach_by_display_type(g_hStickerConsumerHandle, nOffset, nCnt, &nResult, STICKER_DATA_DISP_WALLPAPER, StickerDataConsumerForeachCallback, userData); + PRINT_RESULT(STICKER_ERROR_NONE, nRet, "sticker_consumer_data_foreach_by_display_type", StickerGetError(nRet)); + PRINT_RESULT(g_bCallbackHit, true, "callback not hit", StickerGetError(nRet)); + if(nResult < 0) + { + FPRINTF("[%s:%d] nResult value is not valid\\n", __FILE__, __LINE__); + return 1; + } + + return 0; +} + +/** + * @testcase ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_by_display_type_p + * @since_tizen 5.5 + * @author SRID(priya.kohli) + * @reviewer SRID(shobhit.v) + * @type auto + * @description Retrieves all group names assigned to stickers with a matching display @a type. + * @scenario Retrieves all group names assigned to stickers with a matching display @a type. + * @apicovered sticker_consumer_group_list_foreach_by_display_type + * @passcase When sticker_consumer_group_list_foreach_by_display_type and Precondition APi's are successful. + * @failcase If target API fails or any precondition API fails + * @precondition None + * @postcondition None + */ +//& purpose: API to retrieve all group names assigned to stickers with a matching display @a type. +int ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_by_display_type_p(void) +{ + START_TEST; + int nRet = -1; + void *userData = NULL; + g_bCallbackHit = false; + + nRet = sticker_consumer_group_list_foreach_by_display_type(g_hStickerConsumerHandle, STICKER_DATA_DISP_WALLPAPER, StickerConsumerGroupListCallback, userData); + PRINT_RESULT(STICKER_ERROR_NONE, nRet, "sticker_consumer_group_list_foreach_by_display_type", StickerGetError(nRet)); + PRINT_RESULT(g_bCallbackHit, true, "callback not hit", StickerGetError(nRet)); + + return 0; +} + +/** + * @testcase ITc_capi_ui_sticker_data_sticker_consumer_add_get_recent_data_p + * @since_tizen 5.5 + * @author SRID(priya.kohli) + * @reviewer SRID(shobhit.v) + * @type auto + * @description Adds entry to recently used stickers list and gets the entry. + * @scenario Adds entry to recently used stickers list and gets the entry. + * @apicovered sticker_consumer_add_recent_data,sticker_consumer_get_recent_data_list + * @passcase When sticker_consumer_add_recent_data,sticker_consumer_get_recent_data_list and Precondition APi's are successful. + * @failcase If target APIs fails or any precondition API fails + * @precondition None + * @postcondition None + */ +//& purpose: API to add entry to recently used stickers list and get the entry. +int ITc_capi_ui_sticker_data_sticker_consumer_add_get_recent_data_p(void) +{ + START_TEST; + int nRet = -1; + int nResult = -1; + void *userData = NULL; + int nCount = 1; + g_bCallbackHit = false; + + nRet = sticker_consumer_add_recent_data(g_hStickerConsumerHandle, g_hStickerDataHandle); + PRINT_RESULT(STICKER_ERROR_NONE, nRet, "sticker_consumer_add_recent_data", StickerGetError(nRet)); + + nRet = sticker_consumer_get_recent_data_list(g_hStickerConsumerHandle, nCount, &nResult, StickerDataConsumerForeachCallback, userData); + PRINT_RESULT(STICKER_ERROR_NONE, nRet, "sticker_consumer_get_recent_data_list", StickerGetError(nRet)); + + PRINT_RESULT(g_bCallbackHit, true, "callback not hit", StickerGetError(nRet)); + if(nResult < 0) + { + FPRINTF("[%s:%d] nResult value is not valid\\n", __FILE__, __LINE__); + return 1; + } + + return 0; +} + +/** + * @testcase ITc_capi_ui_sticker_data_sticker_consumer_set_unset_event_cb_p + * @since_tizen 5.5 + * @author SRID(priya.kohli) + * @reviewer SRID(shobhit.v) + * @type auto + * @description Registers and unregisters a callback function to be invoked when the stickers are inserted, deleted, or updated. + * @scenario Registers and unregisters a callback function to be invoked when the stickers are inserted, deleted, or updated. + * @apicovered sticker_consumer_set_event_cb, sticker_consumer_unset_event_cb + * @passcase When sticker_consumer_set_event_cb, sticker_consumer_unset_event_cb and Precondition APi's are successful. + * @failcase If target APIs fails or any precondition API fails + * @precondition None + * @postcondition None + */ +//& purpose: API to register and unregister a callback function to be invoked when the stickers are inserted, deleted, or updated. +int ITc_capi_ui_sticker_data_sticker_consumer_set_unset_event_cb_p(void) +{ + START_TEST; + int nRet = -1; + void *userData = NULL; + g_bCallbackHit = false; + int nTimeoutId = 0; + + nRet = sticker_consumer_set_event_cb(g_hStickerConsumerHandle, StickerConsumerSetEventCallback, userData); + PRINT_RESULT(STICKER_ERROR_NONE, nRet, "sticker_consumer_set_event_cb", StickerGetError(nRet)); + + RUN_POLLING_LOOP; + PRINT_RESULT(g_bCallbackHit, true, "callback not hit", StickerGetError(nRet)); + + nRet = sticker_consumer_unset_event_cb(g_hStickerConsumerHandle); + PRINT_RESULT(STICKER_ERROR_NONE, nRet, "sticker_consumer_unset_event_cb", StickerGetError(nRet)); + + return 0; +} diff --git a/src/itc/capi-ui-sticker/ITs-capi-ui-sticker-provider.c b/src/itc/capi-ui-sticker/ITs-capi-ui-sticker-provider.c index ca6f54348..7f968a9e9 100644 --- a/src/itc/capi-ui-sticker/ITs-capi-ui-sticker-provider.c +++ b/src/itc/capi-ui-sticker/ITs-capi-ui-sticker-provider.c @@ -138,6 +138,13 @@ void ITs_capi_ui_sticker_provider_startup(void) FPRINTF("[%s:%d] sticker_data_set_description failed, error returned =(%d)\\n", __FILE__, __LINE__, nRet); g_bStickerCreation = false; } + + nRet = sticker_data_set_display_type(g_hStickerDataHandle, STICKER_DATA_DISP_WALLPAPER); + if ( nRet != STICKER_ERROR_NONE ) + { + FPRINTF("[%s:%d] sticker_data_set_display_type failed, error returned =(%d)\\n", __FILE__, __LINE__, nRet); + g_bStickerCreation = false; + } return; } @@ -442,3 +449,34 @@ int ITc_capi_ui_sticker_data_sticker_data_get_handle_p(void) return 0; } + +/** + * @testcase ITc_capi_ui_sticker_data_sticker_provider_delete_data_by_uri_p + * @since_tizen 5.5 + * @author SRID(priya.kohli) + * @reviewer SRID(shobhit.v) + * @type auto + * @description Deletes a sticker data in the sticker database using URI. + * @scenario Deletes a sticker data in the sticker database using URI. + * @apicovered sticker_provider_delete_data_by_uri + * @passcase When sticker_provider_delete_data_by_uri and Precondition API's are successful. + * @failcase If target API fails or any precondition API fails + * @precondition None + * @postcondition None + */ +//& purpose: API to delete a sticker data in the sticker database using URI. +int ITc_capi_ui_sticker_data_sticker_provider_delete_data_by_uri_p(void) +{ + int nRet = -1; + + nRet = sticker_provider_insert_data(g_hStickerProviderHandle, g_hStickerDataHandle); + PRINT_RESULT(STICKER_ERROR_NONE, nRet, "sticker_provider_insert_data", StickerGetError(nRet)); + + nRet = sticker_provider_delete_data_by_uri(g_hStickerProviderHandle, "www.samsung.com/ITC/provider"); + PRINT_RESULT(STICKER_ERROR_NONE, nRet, "sticker_provider_delete_data_by_uri", StickerGetError(nRet)); + + nRet = sticker_data_set_uri(g_hStickerDataHandle, STICKER_DATA_URI_WEB_RESOURCE, "www.samsung.com/ITC/provider"); + PRINT_RESULT_NORETURN(STICKER_ERROR_NONE, nRet, "sticker_data_set_uri", StickerGetError(nRet)); + + return 0; +} diff --git a/src/itc/capi-ui-sticker/ITs-capi-ui-sticker.c b/src/itc/capi-ui-sticker/ITs-capi-ui-sticker.c index e530c8b4a..1aeec6a04 100644 --- a/src/itc/capi-ui-sticker/ITs-capi-ui-sticker.c +++ b/src/itc/capi-ui-sticker/ITs-capi-ui-sticker.c @@ -27,7 +27,6 @@ * @function StickerDataForeachKeywordCallback * @description A sticker data foreach callback for keyword */ - static void StickerDataForeachKeywordCallback(const char *keyword, void *user_data) { FPRINTF("[Line : %d][%s] Inside callback StickerDataForeachKeywordCallback\\n", __LINE__, API_NAMESPACE); @@ -457,4 +456,45 @@ int ITc_capi_ui_sticker_data_sticker_data_get_date_p(void) return 0; } +/** +* @testcase ITc_capi_ui_sticker_data_sticker_data_set_get_display_type_p +* @since_tizen 5.5 +* @author SRID(priya.kohli) +* @reviewer SRID(shobhit.v) +* @type auto +* @description Sets and gets the display type of the sticker. +* @scenario Sets and gets the display type of the sticker. +* @apicovered sticker_data_set_display_type, sticker_data_get_display_type +* @passcase When target APIs are successful and set, get values are same. +* @failcase If any of the target API fails or any precondition API fails or set, get values are not same. +* @precondition None +* @postcondition None +*/ +//& purpose: API to set and get the display type of the sticker. +//& type: auto +int ITc_capi_ui_sticker_data_sticker_data_set_get_display_type_p(void) +{ + START_TEST; + int nRet = -1; + sticker_data_display_type_e eGetDispType; + + sticker_data_display_type_e eDisplayType[] = {STICKER_DATA_DISP_EMOJI, + STICKER_DATA_DISP_WALLPAPER}; + + int nSize = sizeof(eDisplayType)/sizeof(eDisplayType[0]); + for(int nCount = 0; nCount < nSize; nCount++) + { + nRet = sticker_data_set_display_type(g_hStickerDataHandle, eDisplayType[nCount]); + PRINT_RESULT(STICKER_ERROR_NONE, nRet, "sticker_data_set_display_type", StickerGetError(nRet)); + + nRet = sticker_data_get_display_type(g_hStickerDataHandle, &eGetDispType); + PRINT_RESULT(STICKER_ERROR_NONE, nRet, "sticker_data_get_display_type", StickerGetError(nRet)); + if(eDisplayType[nCount] != eGetDispType) + { + FPRINTF("[%s:%d] Set and Get display type value mismatch\\n", __FILE__, __LINE__); + return 1; + } + } + return 0; +} diff --git a/src/itc/capi-ui-sticker/tct-capi-ui-sticker-native_mobile.h b/src/itc/capi-ui-sticker/tct-capi-ui-sticker-native_mobile.h index cc22dd0f7..6edef1c96 100644 --- a/src/itc/capi-ui-sticker/tct-capi-ui-sticker-native_mobile.h +++ b/src/itc/capi-ui-sticker/tct-capi-ui-sticker-native_mobile.h @@ -38,7 +38,7 @@ extern int ITc_capi_ui_sticker_data_sticker_data_set_get_group_name_p(void); extern int ITc_capi_ui_sticker_data_sticker_data_set_get_thumbnail_p(void); extern int ITc_capi_ui_sticker_data_sticker_data_set_get_description_p(void); extern int ITc_capi_ui_sticker_data_sticker_data_get_date_p(void); - +extern int ITc_capi_ui_sticker_data_sticker_data_set_get_display_type_p(void); extern int ITc_capi_ui_sticker_data_sticker_consumer_create_destroy_p(void); extern int ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_all_p(void); @@ -47,6 +47,10 @@ extern int ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_group_p(voi extern int ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_type_p(void); extern int ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_all_p(void); extern int ITc_capi_ui_sticker_data_sticker_consumer_keyword_list_foreach_all_p(void); +extern int ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_display_type_p(void); +extern int ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_by_display_type_p(void); +extern int ITc_capi_ui_sticker_data_sticker_consumer_add_get_recent_data_p(void); +extern int ITc_capi_ui_sticker_data_sticker_consumer_set_unset_event_cb_p(void); extern int ITc_capi_ui_sticker_data_sticker_provider_create_destroy_p(void); extern int ITc_capi_ui_sticker_data_sticker_provider_insert_data_p(void); @@ -55,10 +59,11 @@ extern int ITc_capi_ui_sticker_data_sticker_provider_update_data_p(void); extern int ITc_capi_ui_sticker_data_sticker_provider_delete_data_p(void); extern int ITc_capi_ui_sticker_data_sticker_provider_get_sticker_count_p(void); extern int ITc_capi_ui_sticker_data_sticker_provider_data_foreach_all_p(void); +extern int ITc_capi_ui_sticker_data_sticker_provider_delete_data_by_uri_p(void); extern int ITc_capi_ui_sticker_data_sticker_data_get_handle_p(void); testcase tc_array[] = { - {"ITc_capi_ui_sticker_data_sticker_data_create_destroy_p", ITc_capi_ui_sticker_data_sticker_data_create_destroy_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_data_create_destroy_p", ITc_capi_ui_sticker_data_sticker_data_create_destroy_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, {"ITc_capi_ui_sticker_data_sticker_data_clone_p", ITc_capi_ui_sticker_data_sticker_data_clone_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, {"ITc_capi_ui_sticker_data_sticker_data_get_app_id_p", ITc_capi_ui_sticker_data_sticker_data_get_app_id_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, {"ITc_capi_ui_sticker_data_sticker_data_set_get_uri_p", ITc_capi_ui_sticker_data_sticker_data_set_get_uri_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, @@ -68,6 +73,7 @@ testcase tc_array[] = { {"ITc_capi_ui_sticker_data_sticker_data_set_get_thumbnail_p", ITc_capi_ui_sticker_data_sticker_data_set_get_thumbnail_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, {"ITc_capi_ui_sticker_data_sticker_data_set_get_description_p", ITc_capi_ui_sticker_data_sticker_data_set_get_description_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, {"ITc_capi_ui_sticker_data_sticker_data_get_date_p", ITc_capi_ui_sticker_data_sticker_data_get_date_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_data_set_get_display_type_p", ITc_capi_ui_sticker_data_sticker_data_set_get_display_type_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, {"ITc_capi_ui_sticker_data_sticker_consumer_create_destroy_p", ITc_capi_ui_sticker_data_sticker_consumer_create_destroy_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, {"ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_all_p", ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_all_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, {"ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_keyword_p", ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_keyword_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, @@ -75,16 +81,20 @@ testcase tc_array[] = { {"ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_type_p", ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_type_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, {"ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_all_p", ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_all_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, {"ITc_capi_ui_sticker_data_sticker_consumer_keyword_list_foreach_all_p", ITc_capi_ui_sticker_data_sticker_consumer_keyword_list_foreach_all_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_display_type_p", ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_display_type_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_by_display_type_p", ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_by_display_type_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_consumer_add_get_recent_data_p", ITc_capi_ui_sticker_data_sticker_consumer_add_get_recent_data_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_consumer_set_unset_event_cb_p", ITc_capi_ui_sticker_data_sticker_consumer_set_unset_event_cb_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, {"ITc_capi_ui_sticker_data_sticker_provider_create_destroy_p", ITc_capi_ui_sticker_data_sticker_provider_create_destroy_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, {"ITc_capi_ui_sticker_data_sticker_provider_insert_data_p", ITc_capi_ui_sticker_data_sticker_provider_insert_data_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, {"ITc_capi_ui_sticker_data_sticker_provider_insert_data_by_json_file_p", ITc_capi_ui_sticker_data_sticker_provider_insert_data_by_json_file_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, {"ITc_capi_ui_sticker_data_sticker_provider_update_data_p", ITc_capi_ui_sticker_data_sticker_provider_update_data_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, {"ITc_capi_ui_sticker_data_sticker_provider_delete_data_p", ITc_capi_ui_sticker_data_sticker_provider_delete_data_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, - {"ITc_capi_ui_sticker_data_sticker_provider_get_sticker_count_p", ITc_capi_ui_sticker_data_sticker_provider_get_sticker_count_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, {"ITc_capi_ui_sticker_data_sticker_provider_data_foreach_all_p", ITc_capi_ui_sticker_data_sticker_provider_data_foreach_all_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_provider_delete_data_by_uri_p", ITc_capi_ui_sticker_data_sticker_provider_delete_data_by_uri_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, {"ITc_capi_ui_sticker_data_sticker_data_get_handle_p", ITc_capi_ui_sticker_data_sticker_data_get_handle_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, - {NULL, NULL} +{NULL, NULL} }; #endif // __TCT_CAPI_UI_STICKER_NATIVE_H__ diff --git a/src/itc/capi-ui-sticker/tct-capi-ui-sticker-native_wearable.h b/src/itc/capi-ui-sticker/tct-capi-ui-sticker-native_wearable.h index 6d0ae12cd..e8faf2cdc 100644 --- a/src/itc/capi-ui-sticker/tct-capi-ui-sticker-native_wearable.h +++ b/src/itc/capi-ui-sticker/tct-capi-ui-sticker-native_wearable.h @@ -38,7 +38,7 @@ extern int ITc_capi_ui_sticker_data_sticker_data_set_get_group_name_p(void); extern int ITc_capi_ui_sticker_data_sticker_data_set_get_thumbnail_p(void); extern int ITc_capi_ui_sticker_data_sticker_data_set_get_description_p(void); extern int ITc_capi_ui_sticker_data_sticker_data_get_date_p(void); - +extern int ITc_capi_ui_sticker_data_sticker_data_set_get_display_type_p(void); extern int ITc_capi_ui_sticker_data_sticker_consumer_create_destroy_p(void); extern int ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_all_p(void); @@ -47,6 +47,10 @@ extern int ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_group_p(voi extern int ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_type_p(void); extern int ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_all_p(void); extern int ITc_capi_ui_sticker_data_sticker_consumer_keyword_list_foreach_all_p(void); +extern int ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_display_type_p(void); +extern int ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_by_display_type_p(void); +extern int ITc_capi_ui_sticker_data_sticker_consumer_add_get_recent_data_p(void); +extern int ITc_capi_ui_sticker_data_sticker_consumer_set_unset_event_cb_p(void); extern int ITc_capi_ui_sticker_data_sticker_provider_create_destroy_p(void); extern int ITc_capi_ui_sticker_data_sticker_provider_insert_data_p(void); @@ -55,10 +59,11 @@ extern int ITc_capi_ui_sticker_data_sticker_provider_update_data_p(void); extern int ITc_capi_ui_sticker_data_sticker_provider_delete_data_p(void); extern int ITc_capi_ui_sticker_data_sticker_provider_get_sticker_count_p(void); extern int ITc_capi_ui_sticker_data_sticker_provider_data_foreach_all_p(void); +extern int ITc_capi_ui_sticker_data_sticker_provider_delete_data_by_uri_p(void); extern int ITc_capi_ui_sticker_data_sticker_data_get_handle_p(void); testcase tc_array[] = { - {"ITc_capi_ui_sticker_data_sticker_data_create_destroy_p", ITc_capi_ui_sticker_data_sticker_data_create_destroy_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_data_create_destroy_p", ITc_capi_ui_sticker_data_sticker_data_create_destroy_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, {"ITc_capi_ui_sticker_data_sticker_data_clone_p", ITc_capi_ui_sticker_data_sticker_data_clone_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, {"ITc_capi_ui_sticker_data_sticker_data_get_app_id_p", ITc_capi_ui_sticker_data_sticker_data_get_app_id_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, {"ITc_capi_ui_sticker_data_sticker_data_set_get_uri_p", ITc_capi_ui_sticker_data_sticker_data_set_get_uri_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, @@ -68,6 +73,7 @@ testcase tc_array[] = { {"ITc_capi_ui_sticker_data_sticker_data_set_get_thumbnail_p", ITc_capi_ui_sticker_data_sticker_data_set_get_thumbnail_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, {"ITc_capi_ui_sticker_data_sticker_data_set_get_description_p", ITc_capi_ui_sticker_data_sticker_data_set_get_description_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, {"ITc_capi_ui_sticker_data_sticker_data_get_date_p", ITc_capi_ui_sticker_data_sticker_data_get_date_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_data_set_get_display_type_p", ITc_capi_ui_sticker_data_sticker_data_set_get_display_type_p, ITs_capi_ui_sticker_data_startup, ITs_capi_ui_sticker_data_cleanup}, {"ITc_capi_ui_sticker_data_sticker_consumer_create_destroy_p", ITc_capi_ui_sticker_data_sticker_consumer_create_destroy_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, {"ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_all_p", ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_all_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, {"ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_keyword_p", ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_keyword_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, @@ -75,15 +81,19 @@ testcase tc_array[] = { {"ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_type_p", ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_type_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, {"ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_all_p", ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_all_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, {"ITc_capi_ui_sticker_data_sticker_consumer_keyword_list_foreach_all_p", ITc_capi_ui_sticker_data_sticker_consumer_keyword_list_foreach_all_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_display_type_p", ITc_capi_ui_sticker_data_sticker_consumer_data_foreach_by_display_type_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_by_display_type_p", ITc_capi_ui_sticker_data_sticker_consumer_group_list_foreach_by_display_type_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_consumer_add_get_recent_data_p", ITc_capi_ui_sticker_data_sticker_consumer_add_get_recent_data_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_consumer_set_unset_event_cb_p", ITc_capi_ui_sticker_data_sticker_consumer_set_unset_event_cb_p, ITs_capi_ui_sticker_consumer_startup, ITs_capi_ui_sticker_consumer_cleanup}, {"ITc_capi_ui_sticker_data_sticker_provider_create_destroy_p", ITc_capi_ui_sticker_data_sticker_provider_create_destroy_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, {"ITc_capi_ui_sticker_data_sticker_provider_insert_data_p", ITc_capi_ui_sticker_data_sticker_provider_insert_data_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, {"ITc_capi_ui_sticker_data_sticker_provider_insert_data_by_json_file_p", ITc_capi_ui_sticker_data_sticker_provider_insert_data_by_json_file_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, {"ITc_capi_ui_sticker_data_sticker_provider_update_data_p", ITc_capi_ui_sticker_data_sticker_provider_update_data_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, {"ITc_capi_ui_sticker_data_sticker_provider_delete_data_p", ITc_capi_ui_sticker_data_sticker_provider_delete_data_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, - {"ITc_capi_ui_sticker_data_sticker_provider_get_sticker_count_p", ITc_capi_ui_sticker_data_sticker_provider_get_sticker_count_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, {"ITc_capi_ui_sticker_data_sticker_provider_data_foreach_all_p", ITc_capi_ui_sticker_data_sticker_provider_data_foreach_all_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, +{"ITc_capi_ui_sticker_data_sticker_provider_delete_data_by_uri_p", ITc_capi_ui_sticker_data_sticker_provider_delete_data_by_uri_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, {"ITc_capi_ui_sticker_data_sticker_data_get_handle_p", ITc_capi_ui_sticker_data_sticker_data_get_handle_p, ITs_capi_ui_sticker_provider_startup, ITs_capi_ui_sticker_provider_cleanup}, - {NULL, NULL} +{NULL, NULL} }; #endif // __TCT_CAPI_UI_STICKER_NATIVE_H__