[ITC][capi-ui-sticker][ACR-1534][Added TCs for new APIs and enumeration for sticker... 07/235007/3
authorPriya Kohli <priya.kohli@samsung.com>
Mon, 1 Jun 2020 12:35:32 +0000 (18:05 +0530)
committershobhit verma <shobhit.v@samsung.com>
Mon, 1 Jun 2020 13:31:31 +0000 (13:31 +0000)
Change-Id: Ifff70c36d2db3c9eacc29d4bfd099dcd3bbf3c9f
Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
src/itc/capi-ui-sticker/ITs-capi-ui-sticker-consumer.c
src/itc/capi-ui-sticker/ITs-capi-ui-sticker-provider.c
src/itc/capi-ui-sticker/ITs-capi-ui-sticker.c
src/itc/capi-ui-sticker/tct-capi-ui-sticker-native_mobile.h
src/itc/capi-ui-sticker/tct-capi-ui-sticker-native_wearable.h

index 3914c866dfa0c21f1f261c720b9581e0b189b1b3..4f0ce5224f0265a1947b576ad945f6ffa3032773 100755 (executable)
@@ -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;
+}
index ca6f54348da3f81a51ce7a07e54027ef059872d6..7f968a9e95284c03f7f31e388c2f625e78417e35 100644 (file)
@@ -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;
+}
index e530c8b4a53a506d9ffbc0bea6b418ad6ab7a312..1aeec6a048466c91688730b531f0f91b2aaeb5e5 100644 (file)
@@ -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;
+}
index cc22dd0f7ed669df20c8e3341bf46cc5f50a2078..6edef1c96842b818e8a18777b1eca8a3b0663406 100644 (file)
@@ -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__
index 6d0ae12cdeb958423fb578522e97cbaf4a3b2708..e8faf2cdcac67dcad353a5a304a87cc280676f68 100644 (file)
@@ -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__