return 0;
}
+/**
+ * @testcase ITc_capi_ui_sticker_data_sticker_data_get_handle_p
+ * @since_tizen 5.5
+ * @author SRID(priya.kohli)
+ * @reviewer SRID(shobhit.v)
+ * @type auto
+ * @description Gets the sticker data handle for the given URI.
+ * @scenario Gets the sticker data handle for the given URI.
+ * @apicovered sticker_data_get_handle
+ * @passcase When sticker_data_get_handle and Precondition API's are successful.
+ * @failcase If target API fails or any precondition API fails
+ * @precondition None
+ * @postcondition None
+ */
+//& purpose: API to get the sticker data handle for the given URI.
+int ITc_capi_ui_sticker_data_sticker_data_get_handle_p(void)
+{
+ START_TEST;
+ int nRet = -1;
+ sticker_data_h hStickerDataHandle = NULL;
+
+ nRet = sticker_provider_insert_data(g_hStickerProviderHandle, g_hStickerDataHandle);
+ PRINT_RESULT(STICKER_ERROR_NONE, nRet, "sticker_provider_insert_data", StickerGetError(nRet));
+
+ nRet = sticker_data_get_handle("www.samsung.com/ITC/provider", &hStickerDataHandle);
+ PRINT_RESULT(STICKER_ERROR_NONE, nRet, "sticker_data_get_handle", StickerGetError(nRet));
+ CHECK_HANDLE(hStickerDataHandle, "sticker_data_get_handle");
+
+ nRet = sticker_provider_delete_data(g_hStickerProviderHandle, g_hStickerDataHandle);
+ PRINT_RESULT_NORETURN(STICKER_ERROR_NONE, nRet, "sticker_provider_delete_data", StickerGetError(nRet));
+
+ return 0;
+}
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_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_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_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}
};
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_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_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_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}
};
#endif // __TCT_CAPI_UI_STICKER_NATIVE_H__