[ITC][base-utils][ACR-1538][Added TCs for new APIs in the newly added ures module] 23/238823/3
authorMOHIT MIGLANI <mohit.m@samsung.com>
Fri, 17 Jul 2020 12:24:09 +0000 (17:54 +0530)
committershobhit verma <shobhit.v@samsung.com>
Thu, 13 Aug 2020 06:21:04 +0000 (06:21 +0000)
Change-Id: I25b625830827c092b3304095671d7fa2c21573af
Signed-off-by: MOHIT MIGLANI <mohit.m@samsung.com>
src/itc/base-utils/CMakeLists.txt
src/itc/base-utils/ITs-base-utils-ures.c [new file with mode: 0755]
src/itc/base-utils/res/te.res [new file with mode: 0644]
src/itc/base-utils/res/testtypes.res [new file with mode: 0644]
src/itc/base-utils/tct-base-utils-native_mobile.h
src/itc/base-utils/tct-base-utils-native_tizeniot.h
src/itc/base-utils/tct-base-utils-native_wearable.h

index 6e20dae82431ace1be4296e7688b4e80863cb24e..faac7eddcbdddda28e3e77b58807165432974a79 100755 (executable)
@@ -46,6 +46,7 @@ SET(TC_SOURCES
         ITs-base-utils-ucsdet.c
         ITs-base-utils-ucnvsel.c
         ITs-base-utils-ucnv.c
+        ITs-base-utils-ures.c
 )
 
 PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
diff --git a/src/itc/base-utils/ITs-base-utils-ures.c b/src/itc/base-utils/ITs-base-utils-ures.c
new file mode 100755 (executable)
index 0000000..5813a30
--- /dev/null
@@ -0,0 +1,1238 @@
+//
+// Copyright (c) 2020 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+#include "ITs-base-utils-common.h"
+
+/** @addtogroup itc-base-utils
+*  @ingroup itc
+*  @{
+*/
+/**
+* @function             ITs_base_utils_ures_startup
+* @description          Called before each test
+* @parameter            NA
+* @return               NA
+*/
+void ITs_base_utils_ures_startup(void)
+{
+        struct stat stBuff;
+        if ( stat(ERR_LOG, &stBuff) == 0 )
+        {
+                remove(ERR_LOG);
+        }
+#if DEBUG
+        FPRINTF("\\n[Line : %d][%s] TEST SUIT start-up: ITs_Base_Utils_p\\n", __LINE__, API_NAMESPACE);
+#endif
+        return;
+}
+/**
+* @function             ITs_base_utils_ures_cleanup
+* @description          Called after each test
+* @parameter            NA
+* @return               NA
+*/
+void ITs_base_utils_ures_cleanup(void)
+{
+#if DEBUG
+        FPRINTF("\\n[Line : %d][%s] TEST SUIT clean-up: ITs_Base_Utils_p\\n", __LINE__, API_NAMESPACE);
+#endif
+
+        return;
+}
+/*
+ * @testcase           ITc_i18n_ures_create_destroy_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_create, i18n_ures_destroy
+ * @apicovered          i18n_ures_create, i18n_ures_destroy
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_destroy
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_destroy
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_create_destroy_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "en";
+        const char *pszPackageName = NULL;
+        i18n_ures_h hUres = NULL;
+
+        //Target API
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        //Target API
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+        hUres = NULL;
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_create_direct_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_create_direct
+ * @apicovered          i18n_ures_create_direct
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create_direct
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create_direct
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_create_direct_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "en";
+        const char *pszPackageName = NULL;
+        i18n_ures_h hUres = NULL;
+
+        //Target API
+        nRet = i18n_ures_create_direct(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create_direct", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create_direct");
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_create_unicode_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_create_unicode
+ * @apicovered          i18n_ures_create_unicode
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create_unicode
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create_unicode
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_create_unicode_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "en";
+        const char *pszPackageName = NULL;
+        i18n_ures_h hUres = NULL;
+
+        //Target API
+        nRet = i18n_ures_create_unicode(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create_unicode", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create_unicode");
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_version_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_version
+ * @apicovered          i18n_ures_create, i18n_ures_get_version
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_version
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_version
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_version_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "en";
+        const char *pszPackageName = NULL;
+        i18n_ures_h hUres = NULL;
+        i18n_uversion_info version_array;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        //Target API
+       nRet = i18n_ures_get_version(hUres, version_array);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_version", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_locale_by_type_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_locale_by_type
+ * @apicovered          i18n_ures_create, i18n_ures_get_locale_by_type
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_locale_by_type
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_locale_by_type
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_locale_by_type_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "en";
+        const char *pszPackageName = NULL;
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        //Target API
+        nRet = i18n_ures_get_locale_by_type(hUres, I18N_ULOCALE_DATA_LOCALE_TYPE_ACTUAL_LOCALE, &pszLocaleType);
+        PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_locale_by_type", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        CHECK_HANDLE_CLEANUP(pszLocaleType, "i18n_ures_get_locale_by_type", i18n_ures_destroy(hUres));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_string_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_string
+ * @apicovered          i18n_ures_create, i18n_ures_get_string
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_string
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_string
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_string_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+        i18n_ures_h hItem = NULL;
+       int32_t len = -1;
+       int count = -1;
+       const i18n_uchar *pszStrResult = NULL;
+       i18n_ures_type_e type_result;
+        int i = 0;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        nRet = i18n_ures_get_size(hUres, &count);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_size", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        if(count < 0)
+        {
+                FPRINTF("\\n[Line : %d][%s] i18n_ures_get_size failed ,count is not correct \n", __LINE__, API_NAMESPACE);
+                i18n_ures_destroy(hUres);
+                return 1;
+        }
+
+        for(i = 0; i < count; ++i)
+        {
+               nRet = i18n_ures_get_by_index(hUres, i, hItem, &hItem);
+               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_by_index", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+                CHECK_HANDLE_CLEANUP(hItem, "i18n_ures_get_by_index", i18n_ures_destroy(hUres));
+
+               nRet = i18n_ures_get_type(hItem, &type_result);
+               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_type", BaseUtilsGetError(nRet), i18n_ures_destroy(hItem); i18n_ures_destroy(hUres));
+
+               switch(type_result)
+                {
+                       case I18N_URES_STRING:
+                       {
+                                //Target API
+                               nRet = i18n_ures_get_string(hItem, &len, &pszStrResult);
+                               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_string", BaseUtilsGetError(nRet), i18n_ures_destroy(hItem); i18n_ures_destroy(hUres));
+                                if(len < 0)
+                                {
+                                        FPRINTF("\\n[Line : %d][%s] i18n_ures_get_string failed ,len is not correct \n", __LINE__, API_NAMESPACE);
+                                        i18n_ures_destroy(hItem);
+                                        i18n_ures_destroy(hUres);
+                                        return 1;
+                                }
+                               break;
+                       }
+
+               }
+        }
+        nRet = i18n_ures_destroy(hItem);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_UTF8_string_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_UTF8_string
+ * @apicovered          i18n_ures_create, i18n_ures_get_UTF8_string
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_UTF8_string
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_UTF8_string
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_UTF8_string_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+        i18n_ures_h hItem = NULL;
+       int32_t len = -1;
+       int count = -1;
+       i18n_ures_type_e type_result;
+        int i = 0;
+        const char *pszResult = NULL;
+       char *pszBuff = NULL;
+       char szBuffer[16];
+       pszBuff = szBuffer;
+       int32_t result_len = (int32_t)sizeof(szBuffer);
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        nRet = i18n_ures_get_size(hUres, &count);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_size", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        if(count < 0)
+        {
+                FPRINTF("\\n[Line : %d][%s] i18n_ures_get_size failed ,count is not correct \n", __LINE__, API_NAMESPACE);
+                i18n_ures_destroy(hUres);
+                return 1;
+        }
+
+        if(count > 10)
+        {
+                count = 10;
+        }
+        for(i = 0; i < count; ++i)
+        {
+               nRet = i18n_ures_get_by_index(hUres, i, hItem, &hItem);
+               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_by_index", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+                CHECK_HANDLE_CLEANUP(hItem, "i18n_ures_get_by_index", i18n_ures_destroy(hUres));
+
+               nRet = i18n_ures_get_type(hItem, &type_result);
+               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_type", BaseUtilsGetError(nRet), i18n_ures_destroy(hItem); i18n_ures_destroy(hUres));
+
+               switch(type_result)
+                {
+                       case I18N_URES_STRING:
+                       {
+                                //Target API
+                               nRet = i18n_ures_get_UTF8_string(hItem, pszBuff, &result_len, true, &pszResult);
+                               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_string", BaseUtilsGetError(nRet), i18n_ures_destroy(hItem); i18n_ures_destroy(hUres));
+                               break;
+                       }
+               }
+        }
+        nRet = i18n_ures_destroy(hItem);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_binary_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_binary
+ * @apicovered          i18n_ures_create, i18n_ures_get_binary
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_binary
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_binary
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_binary_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+        i18n_ures_h hUresKey = NULL;
+        int32_t len;
+       const uint8_t *binary_result;
+        int i = 0;
+        int nCount = 15;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+       nRet = i18n_ures_get_by_key(hUres, "binarytest", hUresKey, &hUresKey);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_by_key", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        CHECK_HANDLE_CLEANUP(hUresKey, "i18n_ures_get_by_key", i18n_ures_destroy(hUres));
+
+        //Target API
+       nRet = i18n_ures_get_binary(hUresKey, &len, &binary_result);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_binary", BaseUtilsGetError(nRet), i18n_ures_destroy(hUresKey); i18n_ures_destroy(hUres));
+
+        if(len < 0)
+        {
+                FPRINTF("\\n[Line : %d][%s] i18n_ures_get_binary failed ,len is not correct \n", __LINE__, API_NAMESPACE);
+                i18n_ures_destroy(hUresKey);
+                i18n_ures_destroy(hUres);
+                return 1;
+        }
+
+       for(i = 0; i < nCount; ++i)
+        {
+               PRINT_RESULT_CLEANUP(binary_result[i], i, "i18n_ures_get_binary", "obtained and expected result are not same", i18n_ures_destroy(hUresKey); i18n_ures_destroy(hUres));
+       }
+
+        nRet = i18n_ures_destroy(hUresKey);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_int_vector_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_int_vector
+ * @apicovered          i18n_ures_create, i18n_ures_get_int_vector
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_int_vector
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_int_vector
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_int_vector_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+        i18n_ures_h hUresKey = NULL;
+        int32_t len = -1;
+       const int32_t *int_vector_result;
+        int i = 0;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+       nRet = i18n_ures_get_by_key(hUres, "emptyintv", hUresKey, &hUresKey);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_by_key", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        CHECK_HANDLE_CLEANUP(hUresKey, "i18n_ures_get_by_key", i18n_ures_destroy(hUres));
+
+        //Target API
+       nRet = i18n_ures_get_int_vector(hUresKey, &len, &int_vector_result);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_int_vector", BaseUtilsGetError(nRet), i18n_ures_destroy(hUresKey); i18n_ures_destroy(hUres));
+        PRINT_RESULT_CLEANUP(len, 0, "i18n_ures_get_int_vector", "obtained and expected length are not same", i18n_ures_destroy(hUresKey); i18n_ures_destroy(hUres));
+
+        nRet = i18n_ures_destroy(hUresKey);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_uint_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_uint
+ * @apicovered          i18n_ures_create, i18n_ures_get_uint
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_uint
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_uint
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_uint_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+        i18n_ures_h hUresKey = NULL;
+        int32_t len = -1;
+       const int32_t *int_vector_result;
+        uint32_t uint_result;
+        int i = 0;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+       nRet = i18n_ures_get_by_key(hUres, "one", hUresKey, &hUresKey);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_by_key", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        CHECK_HANDLE_CLEANUP(hUresKey, "i18n_ures_get_by_key", i18n_ures_destroy(hUres));
+
+        //Target API
+       nRet = i18n_ures_get_uint(hUresKey, &uint_result);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_uint", BaseUtilsGetError(nRet), i18n_ures_destroy(hUresKey); i18n_ures_destroy(hUres));
+        PRINT_RESULT_CLEANUP(uint_result, 1, "i18n_ures_get_uint", "obtained and expected length are not same", i18n_ures_destroy(hUresKey); i18n_ures_destroy(hUres));
+
+        nRet = i18n_ures_destroy(hUresKey);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_int_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_int
+ * @apicovered          i18n_ures_create, i18n_ures_get_int
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_int
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_int
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_int_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+        i18n_ures_h hItem = NULL;
+        int32_t int_result;
+       int count;
+       i18n_ures_type_e type_result;
+        int i = 0;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        nRet = i18n_ures_get_size(hUres, &count);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_size", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        if(count < 0)
+        {
+                FPRINTF("\\n[Line : %d][%s] i18n_ures_get_size failed ,count is not correct \n", __LINE__, API_NAMESPACE);
+                i18n_ures_destroy(hUres);
+                return 1;
+        }
+
+        for(i = 0; i < count; ++i)
+        {
+               nRet = i18n_ures_get_by_index(hUres, i, hItem, &hItem);
+               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_by_index", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+                CHECK_HANDLE_CLEANUP(hItem, "i18n_ures_get_by_index", i18n_ures_destroy(hUres));
+
+               nRet = i18n_ures_get_type(hItem, &type_result);
+               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_type", BaseUtilsGetError(nRet), i18n_ures_destroy(hItem); i18n_ures_destroy(hUres));
+
+               switch(type_result)
+                {
+                       case I18N_URES_INT:
+                       {
+                                //Target API
+                               nRet = i18n_ures_get_int(hItem, &int_result);
+                               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_int", BaseUtilsGetError(nRet), i18n_ures_destroy(hItem); i18n_ures_destroy(hUres));
+                                break;
+                       }
+
+               }
+        }
+        nRet = i18n_ures_destroy(hItem);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_size_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_size
+ * @apicovered          i18n_ures_create, i18n_ures_get_size
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_size
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_size
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_size_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        i18n_ures_h hUres = NULL;
+       int count = -1;
+        int i = 0;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        //Target API
+        nRet = i18n_ures_get_size(hUres, &count);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_size", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        if(count < 0)
+        {
+                FPRINTF("\\n[Line : %d][%s] i18n_ures_get_size failed ,count is not correct \n", __LINE__, API_NAMESPACE);
+                i18n_ures_destroy(hUres);
+                return 1;
+        }
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_type_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_type
+ * @apicovered          i18n_ures_create, i18n_ures_get_type
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_type
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_type
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_type_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+        i18n_ures_h hItem = NULL;
+       int count;
+       i18n_ures_type_e type_result;
+        int i = 0;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        nRet = i18n_ures_get_size(hUres, &count);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_size", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        if(count < 0)
+        {
+                FPRINTF("\\n[Line : %d][%s] i18n_ures_get_size failed ,count is not correct \n", __LINE__, API_NAMESPACE);
+                i18n_ures_destroy(hUres);
+                return 1;
+        }
+
+        for(i = 0; i < count; ++i)
+        {
+               nRet = i18n_ures_get_by_index(hUres, i, hItem, &hItem);
+               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_by_index", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+                CHECK_HANDLE_CLEANUP(hItem, "i18n_ures_get_by_index", i18n_ures_destroy(hUres));
+
+                //Target API
+               nRet = i18n_ures_get_type(hItem, &type_result);
+               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_type", BaseUtilsGetError(nRet), i18n_ures_destroy(hItem); i18n_ures_destroy(hUres));
+        }
+        nRet = i18n_ures_destroy(hItem);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_key_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_key
+ * @apicovered          i18n_ures_create, i18n_ures_get_key
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_key
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_key
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_key_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+        i18n_ures_h hItem = NULL;
+       int count;
+       i18n_ures_type_e type_result;
+        const char *pszKey = NULL;
+        int i = 0;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        nRet = i18n_ures_get_size(hUres, &count);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_size", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        if(count < 0)
+        {
+                FPRINTF("\\n[Line : %d][%s] i18n_ures_get_size failed ,count is not correct \n", __LINE__, API_NAMESPACE);
+                i18n_ures_destroy(hUres);
+                return 1;
+        }
+
+        for(i = 0; i < count; ++i)
+        {
+               nRet = i18n_ures_get_by_index(hUres, i, hItem, &hItem);
+               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_by_index", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+                CHECK_HANDLE_CLEANUP(hItem, "i18n_ures_get_by_index", i18n_ures_destroy(hUres));
+
+                //Target API
+               nRet = i18n_ures_get_key(hItem, &pszKey);
+               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_type", BaseUtilsGetError(nRet), i18n_ures_destroy(hItem); i18n_ures_destroy(hUres));
+        }
+        nRet = i18n_ures_destroy(hItem);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_reset_iterator_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_reset_iterator
+ * @apicovered          i18n_ures_create, i18n_ures_reset_iterator
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_reset_iterator
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_reset_iterator
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_reset_iterator_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        //Target API
+        nRet = i18n_ures_reset_iterator(hUres);
+        PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_reset_iterator", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+
+}
+/*
+ * @testcase           ITc_i18n_ures_has_next_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_has_next
+ * @apicovered          i18n_ures_create, i18n_ures_has_next
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_has_next
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_has_next
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_has_next_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+        bool bHasNext = false;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        //Target API
+        nRet = i18n_ures_has_next(hUres, &bHasNext);
+        PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_has_next", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        PRINT_RESULT_CLEANUP(true, bHasNext, "i18n_ures_has_next", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_next_resource_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_next_resource
+ * @apicovered          i18n_ures_create, i18n_ures_get_next_resource
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_next_resource
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_next_resource
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_next_resource_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        i18n_ures_h hUres = NULL;
+        i18n_ures_h hUresNextResource = NULL;
+        bool bHasNext = false;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        //Target API
+        nRet = i18n_ures_get_next_resource(hUres, hUresNextResource, &hUresNextResource);
+        PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_next_resource", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        CHECK_HANDLE_CLEANUP(hUresNextResource, "i18n_ures_get_next_resource", i18n_ures_destroy(hUres));
+
+        nRet = i18n_ures_destroy(hUresNextResource);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_next_string_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_next_string
+ * @apicovered          i18n_ures_create, i18n_ures_get_next_string
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_next_string
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_next_string
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_next_string_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        i18n_ures_h hUres = NULL;
+        const i18n_uchar *pszResult = NULL;
+       int32_t result_len = 0;
+       const char *pszKey = NULL;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        //Target API
+        nRet = i18n_ures_get_next_string(hUres, &result_len, &pszKey, &pszResult);
+        PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_next_string", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+
+        if(result_len < 0)
+        {
+                FPRINTF("\\n[Line : %d][%s] i18n_ures_get_next_string failed ,result_len is not correct \n", __LINE__, API_NAMESPACE);
+                i18n_ures_destroy(hUres);
+                return 1;
+        }
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_by_index_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_by_index
+ * @apicovered          i18n_ures_create, i18n_ures_get_by_index
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_by_index
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_by_index
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_by_index_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "testtypes";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+        i18n_ures_h hItem = NULL;
+       int count = -1;
+        int i = 0;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        nRet = i18n_ures_get_size(hUres, &count);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_size", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        if(count < 0)
+        {
+                FPRINTF("\\n[Line : %d][%s] i18n_ures_get_size failed ,count is not correct \n", __LINE__, API_NAMESPACE);
+                i18n_ures_destroy(hUres);
+                return 1;
+        }
+
+        for(i = 0; i < count; ++i)
+        {
+                //Target API
+               nRet = i18n_ures_get_by_index(hUres, i, hItem, &hItem);
+               PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_by_index", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+                CHECK_HANDLE_CLEANUP(hItem, "i18n_ures_get_by_index", i18n_ures_destroy(hUres));
+        }
+        nRet = i18n_ures_destroy(hItem);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_string_by_index_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_string_by_index
+ * @apicovered          i18n_ures_create, i18n_ures_get_string_by_index
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_string_by_index
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_string_by_index
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_string_by_index_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "te";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+        i18n_ures_h hUresKey = NULL;
+        int32_t len = -1;
+       const i18n_uchar *pszStrResult = NULL;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+       nRet = i18n_ures_get_by_key(hUres, "array_only_in_te", hUresKey, &hUresKey);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_by_key", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        CHECK_HANDLE_CLEANUP(hUresKey, "i18n_ures_get_by_key", i18n_ures_destroy(hUres));
+
+        //Target API
+        nRet = i18n_ures_get_string_by_index(hUresKey, 0, &len, &pszStrResult);
+        PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_string_by_index", BaseUtilsGetError(nRet),i18n_ures_destroy(hUresKey); i18n_ures_destroy(hUres));
+        if(len < 0)
+        {
+                FPRINTF("\\n[Line : %d][%s] i18n_ures_get_string_by_index failed ,len is not correct \n", __LINE__, API_NAMESPACE);
+                i18n_ures_destroy(hUresKey);
+                i18n_ures_destroy(hUres);
+                return 1;
+        }
+
+        nRet = i18n_ures_destroy(hUresKey);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_UTF8_string_by_index_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_UTF8_string_by_index
+ * @apicovered          i18n_ures_create, i18n_ures_get_UTF8_string_by_index
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_UTF8_string_by_index
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_UTF8_string_by_index
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_UTF8_string_by_index_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "te";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+        const char *pszStrResult = NULL;
+        char *pszBuff = NULL;
+        char szBuffer[16];
+        pszBuff = szBuffer;
+        int32_t len = (int32_t)sizeof(szBuffer);
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        //Target API
+       nRet = i18n_ures_get_UTF8_string_by_index(hUres, 1, pszBuff, &len, false, &pszStrResult);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_UTF8_string_by_index", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_by_key_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_by_key
+ * @apicovered          i18n_ures_create, i18n_ures_get_by_key
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_by_key
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_by_key
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_by_key_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "te";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        const char *pszLocaleType = NULL;
+        i18n_ures_h hUres = NULL;
+        i18n_ures_h hUresKey = NULL;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        //Target API
+       nRet = i18n_ures_get_by_key(hUres, "array_only_in_te", hUresKey, &hUresKey);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_by_key", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        CHECK_HANDLE_CLEANUP(hUresKey, "i18n_ures_get_by_key", i18n_ures_destroy(hUres));
+
+        nRet = i18n_ures_destroy(hUresKey);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_string_by_key_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_string_by_key
+ * @apicovered          i18n_ures_create, i18n_ures_get_string_by_key
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_string_by_key
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_string_by_key
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_string_by_key_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "te";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        i18n_ures_h hUres = NULL;
+        const i18n_uchar *pszResult = NULL;
+       int32_t result_len = -1;
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        //Target API
+       nRet = i18n_ures_get_string_by_key(hUres, "string_only_in_te", &result_len, &pszResult);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_string_by_key", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+        if(result_len < 0)
+        {
+                FPRINTF("\\n[Line : %d][%s] i18n_ures_get_string_by_key failed ,result_len is not correct \n", __LINE__, API_NAMESPACE);
+                i18n_ures_destroy(hUres);
+                return 1;
+        }
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
+/*
+ * @testcase           ITc_i18n_ures_get_UTF8_string_by_key_p
+ * @since_tizen        6.0
+ * @author             SRID(mohit.m)
+ * @reviewer           SRID(shobhit.v)
+ * @type               auto
+ * @scenario           calls the api based on code
+ * @apitarget          i18n_ures_get_UTF8_string_by_key
+ * @apicovered          i18n_ures_create, i18n_ures_get_UTF8_string_by_key
+ * @passcase           I18N_ERROR_NONE returned by i18n_ures_create, i18n_ures_get_UTF8_string_by_key
+ * @failcase           I18N_ERROR_NONE not returned by i18n_ures_create, i18n_ures_get_UTF8_string_by_key
+ * @precondition       NA
+ * @postcondition      NA
+ */
+int ITc_i18n_ures_get_UTF8_string_by_key_p(void)
+{
+        START_TEST_PRINT;
+
+        int nRet = -1;
+        const char *pszLocale = "te";
+        const char *pszPackageName = "/opt/usr/globalapps/org.tizen.base-utils-native-itc/res/";
+        i18n_ures_h hUres = NULL;
+        const i18n_uchar *pszExpectedResult = "TE";
+        const char *pszResult = NULL;
+       char *pszBuff = NULL;
+       char szBuffer[16];
+       pszBuff = szBuffer;
+       int32_t result_len = (int32_t)sizeof(szBuffer);
+
+        nRet = i18n_ures_create(pszPackageName, pszLocale, &hUres);
+        PRINT_RESULT(I18N_ERROR_NONE, nRet, "i18n_ures_create", BaseUtilsGetError(nRet));
+        CHECK_HANDLE(hUres, "i18n_ures_create");
+
+        //Target API
+       nRet = i18n_ures_get_UTF8_string_by_key(hUres, "string_only_in_te", pszBuff, &result_len, false, &pszResult);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_UTF8_string_by_key", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+       if(strncmp(pszResult, pszExpectedResult, strlen(pszExpectedResult)) != 0)
+        {
+                FPRINTF("[Line : %d][%s] i18n_ures_get_UTF8_string_by_key mismatch pszResult = %s. \\n", __LINE__, API_NAMESPACE, pszResult);
+                i18n_ures_destroy(hUres);
+                return 1;
+        }
+
+        pszResult = NULL;
+
+       nRet = i18n_ures_get_UTF8_string_by_key(hUres, "string_only_in_te", pszBuff, &result_len, true, &pszResult);
+       PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRet, "i18n_ures_get_UTF8_string_by_key", BaseUtilsGetError(nRet), i18n_ures_destroy(hUres));
+
+        nRet = i18n_ures_destroy(hUres);
+        PRINT_RESULT_NORETURN(I18N_ERROR_NONE, nRet, "i18n_ures_destroy", BaseUtilsGetError(nRet));
+
+        return 0;
+}
diff --git a/src/itc/base-utils/res/te.res b/src/itc/base-utils/res/te.res
new file mode 100644 (file)
index 0000000..9e8d04b
Binary files /dev/null and b/src/itc/base-utils/res/te.res differ
diff --git a/src/itc/base-utils/res/testtypes.res b/src/itc/base-utils/res/testtypes.res
new file mode 100644 (file)
index 0000000..6ab11a2
Binary files /dev/null and b/src/itc/base-utils/res/testtypes.res differ
index f75bb046e6db08c4244a822c8f6a9e3dd0aba280..80df45f86477456d2be651b1cab96b2082004367 100755 (executable)
@@ -99,6 +99,8 @@ extern void ITs_base_utils_ucnvsel_startup(void);
 extern void ITs_base_utils_ucnvsel_cleanup(void);
 extern void ITs_base_utils_ucnv_startup(void);
 extern void ITs_base_utils_ucnv_cleanup(void);
+extern void ITs_base_utils_ures_startup(void);
+extern void ITs_base_utils_ures_cleanup(void);
 
 extern int ITc_i18n_ubrk_create_destroy_p(void);
 extern int ITc_i18n_ubrk_create_rules_p(void);
@@ -945,6 +947,31 @@ extern int ITc_i18n_ucnv_from_ucount_pending_p(void);
 extern int ITc_i18n_ucnv_to_ucount_pending_p(void);
 extern int ITc_i18n_ucnv_is_fixed_width_p(void);
 
+extern int ITc_i18n_ures_create_destroy_p(void);
+extern int ITc_i18n_ures_create_direct_p(void);
+extern int ITc_i18n_ures_create_unicode_p(void);
+extern int ITc_i18n_ures_get_version_p(void);
+extern int ITc_i18n_ures_get_locale_by_type_p(void);
+extern int ITc_i18n_ures_get_string_p(void);
+extern int ITc_i18n_ures_get_UTF8_string_p(void);
+extern int ITc_i18n_ures_get_binary_p(void);
+extern int ITc_i18n_ures_get_int_vector_p(void);
+extern int ITc_i18n_ures_get_uint_p(void);
+extern int ITc_i18n_ures_get_int_p(void);
+extern int ITc_i18n_ures_get_size_p(void);
+extern int ITc_i18n_ures_get_type_p(void);
+extern int ITc_i18n_ures_get_key_p(void);
+extern int ITc_i18n_ures_reset_iterator_p(void);
+extern int ITc_i18n_ures_has_next_p(void);
+extern int ITc_i18n_ures_get_next_resource_p(void);
+extern int ITc_i18n_ures_get_next_string_p(void);
+extern int ITc_i18n_ures_get_by_index_p(void);
+extern int ITc_i18n_ures_get_string_by_index_p(void);
+extern int ITc_i18n_ures_get_UTF8_string_by_index_p(void);
+extern int ITc_i18n_ures_get_by_key_p(void);
+extern int ITc_i18n_ures_get_string_by_key_p(void);
+extern int ITc_i18n_ures_get_UTF8_string_by_key_p(void);
+
 testcase tc_array[] = {
        {"ITc_i18n_ubrk_create_destroy_p",ITc_i18n_ubrk_create_destroy_p,ITs_base_utils_ubrk_startup,ITs_base_utils_ubrk_cleanup},
        {"ITc_i18n_ubrk_create_rules_p",ITc_i18n_ubrk_create_rules_p,ITs_base_utils_ubrk_startup,ITs_base_utils_ubrk_cleanup},
@@ -1789,6 +1816,31 @@ testcase tc_array[] = {
         {"ITc_i18n_ucnv_from_ucount_pending_p", ITc_i18n_ucnv_from_ucount_pending_p, ITs_base_utils_ucnv_startup, ITs_base_utils_ucnv_cleanup},
         {"ITc_i18n_ucnv_to_ucount_pending_p", ITc_i18n_ucnv_to_ucount_pending_p, ITs_base_utils_ucnv_startup, ITs_base_utils_ucnv_cleanup},
         {"ITc_i18n_ucnv_is_fixed_width_p", ITc_i18n_ucnv_is_fixed_width_p, ITs_base_utils_ucnv_startup, ITs_base_utils_ucnv_cleanup},
+
+        {"ITc_i18n_ures_create_destroy_p", ITc_i18n_ures_create_destroy_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_create_direct_p", ITc_i18n_ures_create_direct_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_create_unicode_p", ITc_i18n_ures_create_unicode_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_version_p", ITc_i18n_ures_get_version_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_locale_by_type_p", ITc_i18n_ures_get_locale_by_type_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_string_p", ITc_i18n_ures_get_string_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_UTF8_string_p", ITc_i18n_ures_get_UTF8_string_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_binary_p", ITc_i18n_ures_get_binary_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_int_vector_p", ITc_i18n_ures_get_int_vector_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_uint_p", ITc_i18n_ures_get_uint_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_int_p", ITc_i18n_ures_get_int_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_size_p", ITc_i18n_ures_get_size_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_type_p", ITc_i18n_ures_get_type_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_key_p", ITc_i18n_ures_get_key_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_reset_iterator_p", ITc_i18n_ures_reset_iterator_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_has_next_p", ITc_i18n_ures_has_next_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_next_resource_p", ITc_i18n_ures_get_next_resource_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_next_string_p", ITc_i18n_ures_get_next_string_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_by_index_p", ITc_i18n_ures_get_by_index_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_string_by_index_p", ITc_i18n_ures_get_string_by_index_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_UTF8_string_by_index_p", ITc_i18n_ures_get_UTF8_string_by_index_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_by_key_p", ITc_i18n_ures_get_by_key_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_string_by_key_p", ITc_i18n_ures_get_string_by_key_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_UTF8_string_by_key_p", ITc_i18n_ures_get_UTF8_string_by_key_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
         {NULL, NULL}
 
 };
index e2a3d3661b583021ff3167dc047dc3b40b0c845f..68cf26b8f289d3ea7cf90f1a456624df05247e67 100755 (executable)
@@ -93,6 +93,8 @@ extern void ITs_base_utils_ucnvsel_startup(void);
 extern void ITs_base_utils_ucnvsel_cleanup(void);
 extern void ITs_base_utils_ucnv_startup(void);
 extern void ITs_base_utils_ucnv_cleanup(void);
+extern void ITs_base_utils_ures_startup(void);
+extern void ITs_base_utils_ures_cleanup(void);
 
 extern int ITc_i18n_ubrk_create_destroy_p(void);
 extern int ITc_i18n_ubrk_create_rules_p(void);
@@ -908,6 +910,31 @@ extern int ITc_i18n_ucnv_from_ucount_pending_p(void);
 extern int ITc_i18n_ucnv_to_ucount_pending_p(void);
 extern int ITc_i18n_ucnv_is_fixed_width_p(void);
 
+extern int ITc_i18n_ures_create_destroy_p(void);
+extern int ITc_i18n_ures_create_direct_p(void);
+extern int ITc_i18n_ures_create_unicode_p(void);
+extern int ITc_i18n_ures_get_version_p(void);
+extern int ITc_i18n_ures_get_locale_by_type_p(void);
+extern int ITc_i18n_ures_get_string_p(void);
+extern int ITc_i18n_ures_get_UTF8_string_p(void);
+extern int ITc_i18n_ures_get_binary_p(void);
+extern int ITc_i18n_ures_get_int_vector_p(void);
+extern int ITc_i18n_ures_get_uint_p(void);
+extern int ITc_i18n_ures_get_int_p(void);
+extern int ITc_i18n_ures_get_size_p(void);
+extern int ITc_i18n_ures_get_type_p(void);
+extern int ITc_i18n_ures_get_key_p(void);
+extern int ITc_i18n_ures_reset_iterator_p(void);
+extern int ITc_i18n_ures_has_next_p(void);
+extern int ITc_i18n_ures_get_next_resource_p(void);
+extern int ITc_i18n_ures_get_next_string_p(void);
+extern int ITc_i18n_ures_get_by_index_p(void);
+extern int ITc_i18n_ures_get_string_by_index_p(void);
+extern int ITc_i18n_ures_get_UTF8_string_by_index_p(void);
+extern int ITc_i18n_ures_get_by_key_p(void);
+extern int ITc_i18n_ures_get_string_by_key_p(void);
+extern int ITc_i18n_ures_get_UTF8_string_by_key_p(void);
+
 testcase tc_array[] = {
        {"ITc_i18n_ubrk_create_destroy_p",ITc_i18n_ubrk_create_destroy_p,ITs_base_utils_ubrk_startup,ITs_base_utils_ubrk_cleanup},
        {"ITc_i18n_ubrk_create_rules_p",ITc_i18n_ubrk_create_rules_p,ITs_base_utils_ubrk_startup,ITs_base_utils_ubrk_cleanup},
@@ -1722,6 +1749,31 @@ testcase tc_array[] = {
         {"ITc_i18n_ucnv_from_ucount_pending_p", ITc_i18n_ucnv_from_ucount_pending_p, ITs_base_utils_ucnv_startup, ITs_base_utils_ucnv_cleanup},
         {"ITc_i18n_ucnv_to_ucount_pending_p", ITc_i18n_ucnv_to_ucount_pending_p, ITs_base_utils_ucnv_startup, ITs_base_utils_ucnv_cleanup},
         {"ITc_i18n_ucnv_is_fixed_width_p", ITc_i18n_ucnv_is_fixed_width_p, ITs_base_utils_ucnv_startup, ITs_base_utils_ucnv_cleanup},
+
+        {"ITc_i18n_ures_create_destroy_p", ITc_i18n_ures_create_destroy_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_create_direct_p", ITc_i18n_ures_create_direct_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_create_unicode_p", ITc_i18n_ures_create_unicode_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_version_p", ITc_i18n_ures_get_version_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_locale_by_type_p", ITc_i18n_ures_get_locale_by_type_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_string_p", ITc_i18n_ures_get_string_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_UTF8_string_p", ITc_i18n_ures_get_UTF8_string_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_binary_p", ITc_i18n_ures_get_binary_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_int_vector_p", ITc_i18n_ures_get_int_vector_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_uint_p", ITc_i18n_ures_get_uint_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_int_p", ITc_i18n_ures_get_int_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_size_p", ITc_i18n_ures_get_size_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_type_p", ITc_i18n_ures_get_type_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_key_p", ITc_i18n_ures_get_key_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_reset_iterator_p", ITc_i18n_ures_reset_iterator_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_has_next_p", ITc_i18n_ures_has_next_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_next_resource_p", ITc_i18n_ures_get_next_resource_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_next_string_p", ITc_i18n_ures_get_next_string_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_by_index_p", ITc_i18n_ures_get_by_index_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_string_by_index_p", ITc_i18n_ures_get_string_by_index_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_UTF8_string_by_index_p", ITc_i18n_ures_get_UTF8_string_by_index_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_by_key_p", ITc_i18n_ures_get_by_key_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_string_by_key_p", ITc_i18n_ures_get_string_by_key_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_UTF8_string_by_key_p", ITc_i18n_ures_get_UTF8_string_by_key_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
         {NULL, NULL}
 
 };
index 9ba5831c662e99ab7600ea68100fc219e1fe5b3d..5050dca3ae3bedcb2ab5ca360019c69916ce89ad 100755 (executable)
@@ -99,6 +99,8 @@ extern void ITs_base_utils_ucnvsel_startup(void);
 extern void ITs_base_utils_ucnvsel_cleanup(void);
 extern void ITs_base_utils_ucnv_startup(void);
 extern void ITs_base_utils_ucnv_cleanup(void);
+extern void ITs_base_utils_ures_startup(void);
+extern void ITs_base_utils_ures_cleanup(void);
 
 extern int ITc_i18n_ubrk_create_destroy_p(void);
 extern int ITc_i18n_ubrk_create_rules_p(void);
@@ -944,6 +946,31 @@ extern int ITc_i18n_ucnv_from_ucount_pending_p(void);
 extern int ITc_i18n_ucnv_to_ucount_pending_p(void);
 extern int ITc_i18n_ucnv_is_fixed_width_p(void);
 
+extern int ITc_i18n_ures_create_destroy_p(void);
+extern int ITc_i18n_ures_create_direct_p(void);
+extern int ITc_i18n_ures_create_unicode_p(void);
+extern int ITc_i18n_ures_get_version_p(void);
+extern int ITc_i18n_ures_get_locale_by_type_p(void);
+extern int ITc_i18n_ures_get_string_p(void);
+extern int ITc_i18n_ures_get_UTF8_string_p(void);
+extern int ITc_i18n_ures_get_binary_p(void);
+extern int ITc_i18n_ures_get_int_vector_p(void);
+extern int ITc_i18n_ures_get_uint_p(void);
+extern int ITc_i18n_ures_get_int_p(void);
+extern int ITc_i18n_ures_get_size_p(void);
+extern int ITc_i18n_ures_get_type_p(void);
+extern int ITc_i18n_ures_get_key_p(void);
+extern int ITc_i18n_ures_reset_iterator_p(void);
+extern int ITc_i18n_ures_has_next_p(void);
+extern int ITc_i18n_ures_get_next_resource_p(void);
+extern int ITc_i18n_ures_get_next_string_p(void);
+extern int ITc_i18n_ures_get_by_index_p(void);
+extern int ITc_i18n_ures_get_string_by_index_p(void);
+extern int ITc_i18n_ures_get_UTF8_string_by_index_p(void);
+extern int ITc_i18n_ures_get_by_key_p(void);
+extern int ITc_i18n_ures_get_string_by_key_p(void);
+extern int ITc_i18n_ures_get_UTF8_string_by_key_p(void);
+
 testcase tc_array[] = {
        {"ITc_i18n_ubrk_create_destroy_p",ITc_i18n_ubrk_create_destroy_p,ITs_base_utils_ubrk_startup,ITs_base_utils_ubrk_cleanup},
        {"ITc_i18n_ubrk_create_rules_p",ITc_i18n_ubrk_create_rules_p,ITs_base_utils_ubrk_startup,ITs_base_utils_ubrk_cleanup},
@@ -1787,6 +1814,31 @@ testcase tc_array[] = {
         {"ITc_i18n_ucnv_from_ucount_pending_p", ITc_i18n_ucnv_from_ucount_pending_p, ITs_base_utils_ucnv_startup, ITs_base_utils_ucnv_cleanup},
         {"ITc_i18n_ucnv_to_ucount_pending_p", ITc_i18n_ucnv_to_ucount_pending_p, ITs_base_utils_ucnv_startup, ITs_base_utils_ucnv_cleanup},
         {"ITc_i18n_ucnv_is_fixed_width_p", ITc_i18n_ucnv_is_fixed_width_p, ITs_base_utils_ucnv_startup, ITs_base_utils_ucnv_cleanup},
+
+        {"ITc_i18n_ures_create_destroy_p", ITc_i18n_ures_create_destroy_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_create_direct_p", ITc_i18n_ures_create_direct_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_create_unicode_p", ITc_i18n_ures_create_unicode_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_version_p", ITc_i18n_ures_get_version_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_locale_by_type_p", ITc_i18n_ures_get_locale_by_type_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_string_p", ITc_i18n_ures_get_string_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_UTF8_string_p", ITc_i18n_ures_get_UTF8_string_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_binary_p", ITc_i18n_ures_get_binary_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_int_vector_p", ITc_i18n_ures_get_int_vector_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_uint_p", ITc_i18n_ures_get_uint_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_int_p", ITc_i18n_ures_get_int_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_size_p", ITc_i18n_ures_get_size_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_type_p", ITc_i18n_ures_get_type_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_key_p", ITc_i18n_ures_get_key_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_reset_iterator_p", ITc_i18n_ures_reset_iterator_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_has_next_p", ITc_i18n_ures_has_next_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_next_resource_p", ITc_i18n_ures_get_next_resource_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_next_string_p", ITc_i18n_ures_get_next_string_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_by_index_p", ITc_i18n_ures_get_by_index_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_string_by_index_p", ITc_i18n_ures_get_string_by_index_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_UTF8_string_by_index_p", ITc_i18n_ures_get_UTF8_string_by_index_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_by_key_p", ITc_i18n_ures_get_by_key_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_string_by_key_p", ITc_i18n_ures_get_string_by_key_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
+        {"ITc_i18n_ures_get_UTF8_string_by_key_p", ITc_i18n_ures_get_UTF8_string_by_key_p, ITs_base_utils_ures_startup, ITs_base_utils_ures_cleanup},
         {NULL, NULL}
 
 };