}
return 0;
}
+
+//& purpose: Gets the display name of the privacy group in which the given privilege is included.
+//& type: auto
+/**
+* @testcase ITc_privilege_info_get_privacy_display_name_p
+* @since 3.0
+* @author SRID(gaurav.m2)
+* @reviewer SRID(a.pandia1)
+* @type auto
+* @scenario Gets the display name of the privacy group in which the given privilege is included.
+* @apicovered privilege_info_get_privacy_display_name
+* @passcase When privilege_info_get_privacy_display_name API returns 0
+* @failcase If privilege_info_get_privacy_display_name returns non zero value
+* @precondition Parameter list should have been allocated and buffer parameter should have been set
+* @postcondition NA
+*/
+int ITc_privilege_info_get_privacy_display_name_p(void)
+{
+ START_TEST;
+
+ char *pPrivacy_name = NULL;
+
+ int nRet = privilege_info_get_privacy_display_name(pszPrivilege, &pPrivacy_name);
+ PRINT_RESULT(PRVINFO_ERROR_NONE, nRet, " privilege_info_get_privacy_display_name", PrivilegeinfoGetError(nRet));
+
+ if(pPrivacy_name == NULL)
+ {
+ FPRINTF("[Line : %d][%s] display name of the privacy group is not set\\n", __LINE__, API_NAMESPACE);
+ return 1;
+ }
+
+ FREE_MEMORY(pPrivacy_name);
+
+ return 0;
+}
+
+//& purpose: Gets the status of the given privacy related privilege.
+//& type: auto
+/**
+* @testcase ITc_privilege_info_get_privacy_privilege_status_p
+* @since 3.0
+* @author SRID(gaurav.m2)
+* @reviewer SRID(a.pandia1)
+* @type auto
+* @scenario Gets the status of the given privacy related privilege.
+* @apicovered privilege_info_get_privacy_privilege_status
+* @passcase When privilege_info_get_privacy_privilege_status API returns 0
+* @failcase If privilege_info_get_privacy_privilege_status returns non zero value
+* @precondition Parameter list should have been allocated and buffer parameter should have been set
+* @postcondition NA
+*/
+int ITc_privilege_info_get_privacy_privilege_status_p(void)
+{
+ START_TEST;
+
+ bool bStatus;
+
+ int nRet = privilege_info_get_privacy_privilege_status(pszPrivilege, &bStatus);
+ PRINT_RESULT(PRVINFO_ERROR_NONE, nRet, " privilege_info_get_privacy_privilege_status", PrivilegeinfoGetError(nRet));
+
+ return 0;
+}
+
/** @} */
/** @} */
\ No newline at end of file
extern int ITc_privilege_info_get_description_by_pkgtype_p(void);
extern int ITc_privilege_info_get_display_name_p(void);
extern int ITc_privilege_info_get_display_name_by_pkgtype_p(void);
+extern int ITc_privilege_info_get_privacy_display_name_p(void);
+extern int ITc_privilege_info_get_privacy_privilege_status_p(void);
testcase tc_array[] = {
{"ITc_privilege_info_get_description_p", ITc_privilege_info_get_description_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{"ITc_privilege_info_get_description_by_pkgtype_p", ITc_privilege_info_get_description_by_pkgtype_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{"ITc_privilege_info_get_display_name_p", ITc_privilege_info_get_display_name_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{"ITc_privilege_info_get_display_name_by_pkgtype_p", ITc_privilege_info_get_display_name_by_pkgtype_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
+ {"ITc_privilege_info_get_privacy_display_name_p", ITc_privilege_info_get_privacy_display_name_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
+ {"ITc_privilege_info_get_privacy_privilege_status_p", ITc_privilege_info_get_privacy_privilege_status_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{NULL, NULL}
};
extern int ITc_privilege_info_get_description_by_pkgtype_p(void);
extern int ITc_privilege_info_get_display_name_p(void);
extern int ITc_privilege_info_get_display_name_by_pkgtype_p(void);
+extern int ITc_privilege_info_get_privacy_display_name_p(void);
+extern int ITc_privilege_info_get_privacy_privilege_status_p(void);
testcase tc_array[] = {
{"ITc_privilege_info_get_description_p", ITc_privilege_info_get_description_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{"ITc_privilege_info_get_description_by_pkgtype_p", ITc_privilege_info_get_description_by_pkgtype_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{"ITc_privilege_info_get_display_name_p", ITc_privilege_info_get_display_name_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{"ITc_privilege_info_get_display_name_by_pkgtype_p", ITc_privilege_info_get_display_name_by_pkgtype_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
+ {"ITc_privilege_info_get_privacy_display_name_p", ITc_privilege_info_get_privacy_display_name_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
+ {"ITc_privilege_info_get_privacy_privilege_status_p", ITc_privilege_info_get_privacy_privilege_status_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{NULL, NULL}
};
extern int ITc_privilege_info_get_description_by_pkgtype_p(void);
extern int ITc_privilege_info_get_display_name_p(void);
extern int ITc_privilege_info_get_display_name_by_pkgtype_p(void);
+extern int ITc_privilege_info_get_privacy_display_name_p(void);
+extern int ITc_privilege_info_get_privacy_privilege_status_p(void);
testcase tc_array[] = {
{"ITc_privilege_info_get_description_p", ITc_privilege_info_get_description_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{"ITc_privilege_info_get_description_by_pkgtype_p", ITc_privilege_info_get_description_by_pkgtype_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{"ITc_privilege_info_get_display_name_p", ITc_privilege_info_get_display_name_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{"ITc_privilege_info_get_display_name_by_pkgtype_p", ITc_privilege_info_get_display_name_by_pkgtype_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
+ {"ITc_privilege_info_get_privacy_display_name_p", ITc_privilege_info_get_privacy_display_name_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
+ {"ITc_privilege_info_get_privacy_privilege_status_p", ITc_privilege_info_get_privacy_privilege_status_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{NULL, NULL}
};
extern int ITc_privilege_info_get_description_by_pkgtype_p(void);
extern int ITc_privilege_info_get_display_name_p(void);
extern int ITc_privilege_info_get_display_name_by_pkgtype_p(void);
+extern int ITc_privilege_info_get_privacy_display_name_p(void);
+extern int ITc_privilege_info_get_privacy_privilege_status_p(void);
testcase tc_array[] = {
{"ITc_privilege_info_get_description_p", ITc_privilege_info_get_description_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{"ITc_privilege_info_get_description_by_pkgtype_p", ITc_privilege_info_get_description_by_pkgtype_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{"ITc_privilege_info_get_display_name_p", ITc_privilege_info_get_display_name_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{"ITc_privilege_info_get_display_name_by_pkgtype_p", ITc_privilege_info_get_display_name_by_pkgtype_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
+ {"ITc_privilege_info_get_privacy_display_name_p", ITc_privilege_info_get_privacy_display_name_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
+ {"ITc_privilege_info_get_privacy_privilege_status_p", ITc_privilege_info_get_privacy_privilege_status_p, ITs_privilege_info_startup, ITs_privilege_info_cleanup},
{NULL, NULL}
};