- int ret;
- char* display_name = NULL;
-
- printf("-----------------------------------------------------------\n");
- printf("pkgtype : PRVINFO_PACKAGE_TYPE_NATIVE\n");
- printf("api_version : 2.3\n");
- printf("privilege : http://tizen.org/privilege/window.priority.set\n");
- printf("expected result : PRVINFO_ERROR_NONE\n");
- ret = privilege_info_get_display_name_by_pkgtype("PRVINFO_PACKAGE_TYPE_NATIVE", "2.3", "http://tizen.org/privilege/window.priority.set", &display_name);
- __check_get_privilege_display_name_result(PRVINFO_ERROR_NONE, ret, display_name);
-
- printf("-----------------------------------------------------------\n");
- printf("pkgtype : PRVINFO_PACKAGE_TYPE_WEB\n");
- printf("api_version : 2.3\n");
- printf("privilege : http://tizen.org/privilege/mediacapture\n");
- printf("expected result : PRVINFO_ERROR_NONE\n");
- if(display_name != NULL)
- {
- free(display_name);
- display_name = NULL;
- }
- ret = privilege_info_get_display_name_by_pkgtype("PRVINFO_PACKAGE_TYPE_WEB", "2.3", "http://tizen.org/privilege/mediacapture", &display_name);
- __check_get_privilege_display_name_result(PRVINFO_ERROR_NONE, ret, display_name);
-
- printf("-----------------------------------------------------------\n");
- printf("Mismatched package type: write WEB as NATIVE\n");
- printf("pkgtype : PRVINFO_PACKAGE_TYPE_NATIVE\n");
- printf("api_version : 2.3\n");
- printf("privilege : http://tizen.org/privilege/mediacapture\n");
- printf("expected result : PRVINFO_ERROR_NONE\n");
- if(display_name != NULL)
- {
- free(display_name);
- display_name = NULL;
- }
- ret = privilege_info_get_display_name_by_pkgtype("PRVINFO_PACKAGE_TYPE_NATIVE", "2.3", "http://tizen.org/privilege/mediacapture", &display_name);
- __check_get_privilege_display_name_result(PRVINFO_ERROR_NONE, ret, display_name);
-
-
- printf("-----------------------------------------------------------\n");
- printf("Not existing privilege\n");
- printf("api_version : 2.3\n");
- printf("privilege : http://tizen.org/privilege/RRRRRRRRRR\n");
- printf("expected result : PRVINFO_ERROR_NONE\n");
- if(display_name != NULL)
- {
- free(display_name);
- display_name = NULL;
- }
- ret = privilege_info_get_display_name_by_pkgtype("PRVINFO_PACKAGE_TYPE_WEB", "2.3", "http://tizen.org/privilege/RRRRRRRRRR", &display_name);
- __check_get_privilege_display_name_result(PRVINFO_ERROR_NONE, ret, display_name);
-
- printf("-----------------------------------------------------------\n");
- printf("Invalid parameter\n");
- printf("api_version : 2.3\n");
- printf("privilege : http://tizen.org/privilege/mediacapture\n");
- printf("expected result : PRVINFO_ERROR_NONE\n");
- if(display_name != NULL)
- {
- free(display_name);
- display_name = NULL;
- }
- ret = privilege_info_get_display_name_by_pkgtype(NULL, "2.3", "http://tizen.org/privilege/mediacapture", &display_name);
- __check_get_privilege_display_name_result(PRVINFO_ERROR_INVALID_PARAMETER, ret, display_name);
-
- free(display_name);
+ int ret;
+ char* display_name = NULL;
+
+ printf("-----------------------------------------------------------\n");
+ printf("pkgtype : PRVINFO_PACKAGE_TYPE_NATIVE\n");
+ printf("api_version : 2.3\n");
+ printf("privilege : http://tizen.org/privilege/window.priority.set\n");
+ printf("expected result : PRVINFO_ERROR_NONE\n");
+ ret = privilege_info_get_display_name_by_pkgtype("PRVINFO_PACKAGE_TYPE_NATIVE", "2.3", "http://tizen.org/privilege/window.priority.set", &display_name);
+ __check_get_privilege_display_name_result(PRVINFO_ERROR_NONE, ret, display_name);
+
+ printf("-----------------------------------------------------------\n");
+ printf("pkgtype : PRVINFO_PACKAGE_TYPE_WEB\n");
+ printf("api_version : 2.3\n");
+ printf("privilege : http://tizen.org/privilege/mediacapture\n");
+ printf("expected result : PRVINFO_ERROR_NONE\n");
+ if (display_name != NULL) {
+ free(display_name);
+ display_name = NULL;
+ }
+ ret = privilege_info_get_display_name_by_pkgtype("PRVINFO_PACKAGE_TYPE_WEB", "2.3", "http://tizen.org/privilege/mediacapture", &display_name);
+ __check_get_privilege_display_name_result(PRVINFO_ERROR_NONE, ret, display_name);
+
+ printf("-----------------------------------------------------------\n");
+ printf("Mismatched package type: write WEB as NATIVE\n");
+ printf("pkgtype : PRVINFO_PACKAGE_TYPE_NATIVE\n");
+ printf("api_version : 2.3\n");
+ printf("privilege : http://tizen.org/privilege/mediacapture\n");
+ printf("expected result : PRVINFO_ERROR_NONE\n");
+ if (display_name != NULL) {
+ free(display_name);
+ display_name = NULL;
+ }
+ ret = privilege_info_get_display_name_by_pkgtype("PRVINFO_PACKAGE_TYPE_NATIVE", "2.3", "http://tizen.org/privilege/mediacapture", &display_name);
+ __check_get_privilege_display_name_result(PRVINFO_ERROR_NONE, ret, display_name);
+
+
+ printf("-----------------------------------------------------------\n");
+ printf("Not existing privilege\n");
+ printf("api_version : 2.3\n");
+ printf("privilege : http://tizen.org/privilege/RRRRRRRRRR\n");
+ printf("expected result : PRVINFO_ERROR_NONE\n");
+ if (display_name != NULL) {
+ free(display_name);
+ display_name = NULL;
+ }
+ ret = privilege_info_get_display_name_by_pkgtype("PRVINFO_PACKAGE_TYPE_WEB", "2.3", "http://tizen.org/privilege/RRRRRRRRRR", &display_name);
+ __check_get_privilege_display_name_result(PRVINFO_ERROR_NONE, ret, display_name);
+
+ printf("-----------------------------------------------------------\n");
+ printf("Invalid parameter\n");
+ printf("api_version : 2.3\n");
+ printf("privilege : http://tizen.org/privilege/mediacapture\n");
+ printf("expected result : PRVINFO_ERROR_NONE\n");
+ if (display_name != NULL) {
+ free(display_name);
+ display_name = NULL;
+ }
+ ret = privilege_info_get_display_name_by_pkgtype(NULL, "2.3", "http://tizen.org/privilege/mediacapture", &display_name);
+ __check_get_privilege_display_name_result(PRVINFO_ERROR_INVALID_PARAMETER, ret, display_name);
+
+ free(display_name);