2 * Copyright (c) 2014-2021 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <privilege_information.h>
27 static int fail_cnt = 0;
28 static int success_cnt = 0;
30 static void __change_color_to_red()
32 printf("%c[%d;%dm", 0x1B, BRIGHTNESS, RED);
35 static void __change_color_to_green()
37 printf("%c[%d;%dm", 0x1B, BRIGHTNESS, GREEN);
40 static void __change_color_to_origin()
42 printf("%c[%dm", 0x1B, 0);
45 static const char* __get_result_string(privilege_info_error_e ret)
47 if (ret == PRVINFO_ERROR_NONE)
48 return "PRVINFO_ERROR_NONE";
49 else if (ret == PRVINFO_ERROR_INVALID_PARAMETER)
50 return "PRVINFO_ERROR_INVALID_PARAMETER";
51 else if (ret == PRVINFO_ERROR_OUT_OF_MEMORY)
52 return "PRVINFO_ERROR_OUT_OF_MEMORY";
53 else if (ret == PRVINFO_ERROR_INTERNAL_ERROR)
54 return "PRVINFO_ERROR_INTERNAL_ERROR";
55 else if (ret == PRVINFO_ERROR_NOT_SUPPORTED)
56 return "PRVINFO_ERROR_NOT_SUPPORTED";
57 else if (ret == PRVINFO_ERROR_NO_MATCHING_PRIVILEGE)
58 return "PRVINFO_ERROR_NO_MATCHING_PRIVILEGE";
60 return "PRVINFO_ERROR_NO_MATCHED_ERROR_MESSAGE";
63 static void __check_get_privilege_display_name_result(privilege_info_error_e expected_result, privilege_info_error_e result, const char* display_name)
65 printf("--- expected : %s\n result : %s\n", __get_result_string(expected_result), __get_result_string(result));
67 if (expected_result != result) {
68 __change_color_to_red();
69 printf("TEST RESULT: FAILED\n");
72 if (result == PRVINFO_ERROR_NONE) {
73 if (display_name == NULL) {
74 printf("--- display_name must not be NULL\n");
75 __change_color_to_red();
76 printf("TEST RESULT: FAILED\n");
78 __change_color_to_origin();
81 printf("--- display_name = %s\n", display_name);
83 } else if (result == PRVINFO_ERROR_NO_MATCHING_PRIVILEGE) {
84 if (display_name != NULL) {
85 printf("--- display_name = %s\n", display_name);
86 printf("--- display_name must be NULL\n");
87 __change_color_to_red();
88 printf("TEST RESULT: FAILED\n");
90 __change_color_to_origin();
94 __change_color_to_green();
95 printf("TEST RESULT: SUCCESS\n");
98 __change_color_to_origin();
102 static void __check_get_privilege_description_result(privilege_info_error_e expected_result, privilege_info_error_e result, const char* description)
104 printf("--- expected : %s\n result : %s\n", __get_result_string(expected_result), __get_result_string(result));
106 if (expected_result != result) {
107 __change_color_to_red();
108 printf("TEST RESULT: FAILED\n");
111 if (result == PRVINFO_ERROR_NONE) {
112 if (description == NULL) {
113 printf("--- description must not be NULL\n");
114 __change_color_to_red();
115 printf("TEST RESULT: FAILED\n");
117 __change_color_to_origin();
120 printf("--- description = %s\n", description);
122 } else if (result == PRVINFO_ERROR_NO_MATCHING_PRIVILEGE) {
123 if (description != NULL) {
124 printf("--- description = %s\n", description);
125 printf("--- description must be NULL\n");
126 __change_color_to_red();
127 printf("TEST RESULT: FAILED\n");
129 __change_color_to_origin();
134 __change_color_to_green();
135 printf("TEST RESULT: SUCCESS\n");
138 __change_color_to_origin();
141 static void __check_get_privacy_display_name_result(privilege_info_error_e expected_result, privilege_info_error_e result, const char* privacy_display)
143 printf("--- expected : %s\n result : %s\n", __get_result_string(expected_result), __get_result_string(result));
145 if (expected_result != result) {
146 __change_color_to_red();
147 printf("TEST RESULT: FAILED\n");
150 if (privacy_display != NULL)
151 printf("--- privacy_display_name = %s\n", privacy_display);
153 printf("--- privacy_display_name is NULL.\n");
154 __change_color_to_green();
155 printf("TEST RESULT: SUCCESS\n");
158 __change_color_to_origin();
161 static void __test_positive_privilege_info_get_display_name()
164 char* display_name = NULL;
166 printf("TEST NAME: %s #1\n",__func__);
167 printf("--- api_version : 2.3\n");
168 printf("--- privilege : http://tizen.org/privilege/window.priority.set\n");
169 ret = privilege_info_get_display_name("2.3", "http://tizen.org/privilege/window.priority.set", &display_name);
170 __check_get_privilege_display_name_result(PRVINFO_ERROR_NONE, ret, display_name);
172 printf("-----------------------------------------------------------\n");
173 printf("TEST NAME: %s #2\n",__func__);
174 printf("--- api_version : 2.3\n");
175 printf("--- privilege : http://tizen.org/privilege/mediacapture\n");
176 if (display_name != NULL) {
180 ret = privilege_info_get_display_name("2.3", "http://tizen.org/privilege/mediacapture", &display_name);
181 __check_get_privilege_display_name_result(PRVINFO_ERROR_NONE, ret, display_name);
186 static void __test_negative_privilege_info_get_display_name()
189 char * display_name = NULL;
191 printf("TEST NAME: %s #1\n",__func__);
192 printf("--- Not existing privilege\n");
193 printf("--- api_version : 2.3\n");
194 printf("--- privilege : http://tizen.org/privilege/RRRRRRRRRR\n");
195 if (display_name != NULL) {
199 ret = privilege_info_get_display_name("2.3", "http://tizen.org/privilege/RRRRRRRRRR", &display_name);
200 __check_get_privilege_display_name_result(PRVINFO_ERROR_NO_MATCHING_PRIVILEGE, ret, display_name);
202 printf("TEST NAME: %s #2\n",__func__);
203 printf("--- Invalid parameter\n");
204 printf("--- api_version : NULL\n");
205 printf("--- privilege : http://tizen.org/privilege/window.priority.set\n");
206 if (display_name != NULL) {
210 ret = privilege_info_get_display_name(NULL, "http://tizen.org/privilege/window, priority.set", &display_name);
211 __check_get_privilege_display_name_result(PRVINFO_ERROR_INVALID_PARAMETER, ret, display_name);
216 static void __test_positive_privilege_info_get_display_name_by_pkgtype()
219 char* display_name = NULL;
221 printf("TEST NAME: %s #1\n",__func__);
222 printf("--- pkgtype : PRVINFO_PACKAGE_TYPE_NATIVE\n");
223 printf("--- api_version : 2.3\n");
224 printf("--- privilege : http://tizen.org/privilege/window.priority.set\n");
225 ret = privilege_info_get_display_name_by_pkgtype("PRVINFO_PACKAGE_TYPE_NATIVE", "2.3", "http://tizen.org/privilege/window.priority.set", &display_name);
226 __check_get_privilege_display_name_result(PRVINFO_ERROR_NONE, ret, display_name);
228 printf("TEST NAME: %s #2\n",__func__);
229 printf("--- pkgtype : PRVINFO_PACKAGE_TYPE_WEB\n");
230 printf("--- api_version : 2.3\n");
231 printf("--- privilege : http://tizen.org/privilege/mediacapture\n");
232 if (display_name != NULL) {
236 ret = privilege_info_get_display_name_by_pkgtype("PRVINFO_PACKAGE_TYPE_WEB", "2.3", "http://tizen.org/privilege/mediacapture", &display_name);
237 __check_get_privilege_display_name_result(PRVINFO_ERROR_NONE, ret, display_name);
242 static void __test_negative_privilege_info_get_display_name_by_pkgtype()
245 char* display_name = NULL;
247 printf("TEST NAME: %s #1\n",__func__);
248 printf("--- Mismatched package type: write WEB as NATIVE\n");
249 printf("--- pkgtype : PRVINFO_PACKAGE_TYPE_NATIVE\n");
250 printf("--- api_version : 2.3\n");
251 printf("--- privilege : http://tizen.org/privilege/mediacapture\n");
252 if (display_name != NULL) {
256 ret = privilege_info_get_display_name_by_pkgtype("PRVINFO_PACKAGE_TYPE_NATIVE", "2.3", "http://tizen.org/privilege/mediacapture", &display_name);
257 __check_get_privilege_display_name_result(PRVINFO_ERROR_NO_MATCHING_PRIVILEGE, ret, display_name);
259 printf("TEST NAME: %s #2\n",__func__);
260 printf("--- Not existing privilege\n");
261 printf("--- api_version : 2.3\n");
262 printf("--- privilege : http://tizen.org/privilege/RRRRRRRRRR\n");
263 if (display_name != NULL) {
267 ret = privilege_info_get_display_name_by_pkgtype("PRVINFO_PACKAGE_TYPE_WEB", "2.3", "http://tizen.org/privilege/RRRRRRRRRR", &display_name);
268 __check_get_privilege_display_name_result(PRVINFO_ERROR_NO_MATCHING_PRIVILEGE, ret, display_name);
270 printf("TEST NAME: %s #3\n",__func__);
271 printf("--- Invalid parameter\n");
272 printf("--- api_version : 2.3\n");
273 printf("--- privilege : http://tizen.org/privilege/mediacapture\n");
274 if (display_name != NULL) {
278 ret = privilege_info_get_display_name_by_pkgtype(NULL, "2.3", "http://tizen.org/privilege/mediacapture", &display_name);
279 __check_get_privilege_display_name_result(PRVINFO_ERROR_INVALID_PARAMETER, ret, display_name);
285 static void __test_positive_privilege_info_get_description()
288 char* description = NULL;
290 printf("TEST NAME: %s #1\n",__func__);
291 printf("--- api_version : 2.3\n");
292 printf("--- privilege : http://tizen.org/privilege/window.priority.set\n");
293 ret = privilege_info_get_description("2.3", "http://tizen.org/privilege/window.priority.set", &description);
294 __check_get_privilege_description_result(PRVINFO_ERROR_NONE, ret, description);
296 printf("TEST NAME: %s #2\n",__func__);
297 printf("--- api_version : 2.3\n");
298 printf("--- privilege : http://tizen.org/privilege/mediacapture\n");
299 if (description != NULL) {
303 ret = privilege_info_get_description("2.3", "http://tizen.org/privilege/mediacapture", &description);
304 __check_get_privilege_description_result(PRVINFO_ERROR_NONE, ret, description);
309 static void __test_negative_privilege_info_get_description()
312 char* description = NULL;
314 printf("TEST NAME: %s #1\n",__func__);
315 printf("--- Not existing privilege\n");
316 printf("--- api_version : 2.3\n");
317 printf("--- privilege : http://tizen.org/privilege/RRRRRRRRRR\n");
318 if (description != NULL) {
322 ret = privilege_info_get_description("2.3", "http://tizen.org/privilege/RRRRRRRRRR", &description);
323 __check_get_privilege_description_result(PRVINFO_ERROR_NO_MATCHING_PRIVILEGE, ret, description);
325 printf("TEST NAME: %s #2\n",__func__);
326 printf("--- Invalid parameter\n");
327 printf("--- api_version : 2.3\n");
328 printf("--- privilege : http://tizen.org/privilege/mediacapture\n");
329 if (description != NULL) {
333 ret = privilege_info_get_description(NULL, "http://tizen.org/privilege/mediacapture", &description);
334 __check_get_privilege_description_result(PRVINFO_ERROR_INVALID_PARAMETER, ret, description);
339 static void __test_positive_privilege_info_get_description_by_pkgtype()
342 char* description = NULL;
344 printf("TEST NAME: %s #1\n",__func__);
345 printf("--- api_version : 2.3\n");
346 printf("--- privilege : http://tizen.org/privilege/window.priority.set\n");
347 ret = privilege_info_get_description_by_pkgtype("PRVINFO_PACKAGE_TYPE_NATIVE", "2.3", "http://tizen.org/privilege/window.priority.set", &description);
348 __check_get_privilege_description_result(PRVINFO_ERROR_NONE, ret, description);
350 printf("TEST NAME: %s #2\n",__func__);
351 printf("--- api_version : 2.3\n");
352 printf("--- privilege : http://tizen.org/privilege/mediacapture\n");
353 if (description != NULL) {
357 ret = privilege_info_get_description_by_pkgtype("PRVINFO_PACKAGE_TYPE_WEB", "2.3", "http://tizen.org/privilege/mediacapture", &description);
358 __check_get_privilege_description_result(PRVINFO_ERROR_NONE, ret, description);
363 static void __test_negative_privilege_info_get_description_by_pkgtype()
366 char* description = NULL;
368 printf("TEST NAME: %s #1\n",__func__);
369 printf("--- Mismatched package type: write WEB as NATIVE\n");
370 printf("--- pkgtype : PRVINFO_PACKAGE_TYPE_NATIVE\n");
371 printf("--- api_version : 2.3\n");
372 printf("--- privilege : http://tizen.org/privilege/mediacapture\n");
373 if (description != NULL) {
377 ret = privilege_info_get_description_by_pkgtype("PRVINFO_PACKAGE_TYPE_NATIVE", "2.3", "http://tizen.org/privilege/mediacapture", &description);
378 __check_get_privilege_description_result(PRVINFO_ERROR_NO_MATCHING_PRIVILEGE, ret, description);
380 printf("TEST NAME: %s #2\n",__func__);
381 printf("--- Not existing privilege\n");
382 printf("--- api_version : 2.3\n");
383 printf("--- privilege : http://tizen.org/privilege/RRRRRRRRRR\n");
384 if (description != NULL) {
388 ret = privilege_info_get_description_by_pkgtype("PRVINFO_PACKAGE_TYPE_NATIVE", "2.3", "http://tizen.org/privilege/RRRRRRRRRR", &description);
389 __check_get_privilege_description_result(PRVINFO_ERROR_NO_MATCHING_PRIVILEGE, ret, description);
391 printf("TEST NAME: %s #3\n",__func__);
392 printf("--- Invalid parameter\n");
393 printf("--- api_version : 2.3\n");
394 printf("--- privilege : NULL\n");
395 if (description != NULL) {
399 ret = privilege_info_get_description_by_pkgtype("PRVINFO_PACKAGE_TYPE_NATIVE", "2.3", NULL, &description);
400 __check_get_privilege_description_result(PRVINFO_ERROR_INVALID_PARAMETER, ret, description);
405 static void __test_positive_privilege_info_get_privacy_display_name()
408 char* privacy_display_name = NULL;
410 printf("TEST NAME: %s #1\n",__func__);
411 printf("--- Privacy related privilege\n");
412 printf("--- privilege: http://tizen.org/privilege/account.read\n");
413 ret = privilege_info_get_privacy_display_name("http://tizen.org/privilege/account.read", &privacy_display_name);
414 __check_get_privacy_display_name_result(PRVINFO_ERROR_NOT_SUPPORTED, ret, privacy_display_name);
416 free(privacy_display_name);
419 static void __test_negative_privilege_info_get_privacy_display_name()
422 char* privacy_display_name = NULL;
424 printf("TEST NAME: %s #1\n",__func__);
425 printf("--- Invalid parameter\n");
426 printf("--- no input privilege\n");
427 ret = privilege_info_get_privacy_display_name(NULL, &privacy_display_name);
428 __check_get_privacy_display_name_result(PRVINFO_ERROR_NOT_SUPPORTED, ret, privacy_display_name);
430 if (privacy_display_name != NULL) {
431 free(privacy_display_name);
432 privacy_display_name = NULL;
435 printf("TEST NAME: %s #2\n",__func__);
436 printf("--- Not a privacy related privilege\n");
437 printf("--- privilege: http://tizen.org/privilege/internet\n");
438 ret = privilege_info_get_privacy_display_name("http://tizen.org/privilege/internet", &privacy_display_name);
439 __check_get_privacy_display_name_result(PRVINFO_ERROR_NOT_SUPPORTED, ret, privacy_display_name);
441 if (privacy_display_name != NULL) {
442 free(privacy_display_name);
443 privacy_display_name = NULL;
446 printf("TEST NAME: %s #3\n",__func__);
447 printf("--- Not existing privilege\n");
448 printf("--- privilege: http://tizen.org/privilege/wrong.privilege.name\n");
449 ret = privilege_info_get_privacy_display_name("http://tizen.org/privilege/wrong.privilege.name", &privacy_display_name);
450 __check_get_privacy_display_name_result(PRVINFO_ERROR_NOT_SUPPORTED, ret, privacy_display_name);
452 if (privacy_display_name != NULL) {
453 free(privacy_display_name);
454 privacy_display_name = NULL;
457 free(privacy_display_name);
460 static void __check_privilege_info_get_privilege_info(privilege_info_error_e expected_result, privilege_info_error_e result, GList* privilege_info_list, int return_result)
462 printf("--- expected : %s\n result : %s\n", __get_result_string(expected_result), __get_result_string(result));
464 if (expected_result != result) {
465 __change_color_to_red();
466 printf("TEST RESULT: FAILED\n");
468 __change_color_to_origin();
470 __change_color_to_green();
471 printf("TEST RESULT: SUCCESS\n");
473 __change_color_to_origin();
476 printf("--- return_result = %d\n", return_result);
478 if (result == PRVINFO_ERROR_NONE) {
479 for (l = privilege_info_list; l != NULL; l = l->next) {
480 privilege_info_s* privilege_info = (privilege_info_s*)l->data;
482 printf("--- privilege_info->privilege_name = %s\n", privilege_info->privilege_name);
483 printf("--- privilege_info->display_name = %s\n", privilege_info->display_name);
484 printf("--- privilege_info->description = %s\n", privilege_info->description);
492 static void __test_positive_privilege_info_get_privilege_info_list()
494 GList* privilege_name_list = NULL;
495 GList* privilege_info_list = NULL;
496 privilege_consumer_return_code_e return_result;
499 printf("TEST NAME: %s #1\n",__func__);
500 printf("--- locale : ko_KR.UTF8\n");
501 printf("--- privilege name : http://tizen.org/privilege/call\n");
502 printf("--- privilege name : http://tizen.org/privilege/content.read\n");
503 printf("--- privilege name : http://tizen.org/privilege/filesystem.read\n");
504 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/call");
505 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/content.read");
506 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/filesystem.read");
508 ret = privilege_info_get_privilege_info_list("ko_KR.UTF8", privilege_name_list, &privilege_info_list, &return_result);
509 __check_privilege_info_get_privilege_info(PRVINFO_ERROR_NONE, ret, privilege_info_list, return_result);
510 g_list_free(privilege_name_list);
511 privilege_name_list = NULL;
512 privilege_info_free_privilege_info_list(privilege_info_list);
513 privilege_info_list = NULL;
514 printf("-----------------------------------------------------------\n");
516 printf("TEST NAME: %s #2\n",__func__);
517 printf("--- locale : ko_KR.UTF8\n");
518 printf("--- privilege name : http://tizen.org/privilege/call\n");
519 printf("--- privilege name : http://tizen.org/privilege/systemsettings.admin\n");
520 printf("--- privilege name : http://tizen.org/privilege/bookmark.admin\n");
521 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/call");
522 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/systemsettings.admin");
523 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/bookmark.admin");
525 ret = privilege_info_get_privilege_info_list("ko_KR.UTF8", privilege_name_list, &privilege_info_list, &return_result);
526 __check_privilege_info_get_privilege_info(PRVINFO_ERROR_NONE, ret, privilege_info_list, return_result);
527 g_list_free(privilege_name_list);
528 privilege_name_list = NULL;
529 privilege_info_free_privilege_info_list(privilege_info_list);
530 privilege_info_list = NULL;
531 printf("-----------------------------------------------------------\n");
533 printf("TEST NAME: %s #3\n",__func__);
534 printf("--- locale : ko_KR.UTF8\n");
535 printf("--- privilege name : http://tizen.org/privilege/call\n");
536 printf("--- privilege name : http://tizen.org/privilege/alarm.xxxx\n");
537 printf("--- privilege name : http://tizen.org/privilege/account.xxx\n");
538 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/call");
539 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/alarm.xxxx");
540 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/account.xxx");
542 ret = privilege_info_get_privilege_info_list("ko_KR.UTF8", privilege_name_list, &privilege_info_list, &return_result);
543 __check_privilege_info_get_privilege_info(PRVINFO_ERROR_NONE, ret, privilege_info_list, return_result);
544 g_list_free(privilege_name_list);
545 privilege_name_list = NULL;
546 privilege_info_free_privilege_info_list(privilege_info_list);
547 privilege_info_list = NULL;
548 printf("-----------------------------------------------------------\n");
551 static void __test_negative_privilege_info_get_privilege_info_list()
553 GList* privilege_name_list = NULL;
554 GList* privilege_info_list = NULL;
555 privilege_consumer_return_code_e return_result;
558 printf("TEST NAME: %s #1\n",__func__);
559 printf("--- UNKNOWN_LOCAL_CODE\n");
560 printf("--- locale : xx_XX.UTF8\n");
561 printf("--- privilege name : http://tizen.org/privilege/call\n");
562 printf("--- privilege name : http://tizen.org/privilege/content.read\n");
563 printf("--- privilege name : http://tizen.org/privilege/filesystem.read\n");
564 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/call");
565 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/content.read");
566 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/filesystem.read");
568 ret = privilege_info_get_privilege_info_list("xx_XX.UTF8", privilege_name_list, &privilege_info_list, &return_result);
569 __check_privilege_info_get_privilege_info(PRVINFO_ERROR_NONE, ret, privilege_info_list, return_result);
570 g_list_free(privilege_name_list);
571 privilege_name_list = NULL;
572 privilege_info_free_privilege_info_list(privilege_info_list);
573 privilege_info_list = NULL;
575 printf("TEST NAME: %s #2\n",__func__);
576 printf("--- INVAILD_PARAMETER\n");
577 printf("--- locale : ko_KR.UTF8\n");
578 printf("--- privilege name : http://tizen.org/privilege/xxxx\n");
579 printf("--- privilege name : http://tizen.org/privilege/alarm.xxxx\n");
580 printf("--- privilege name : http://tizen.org/privilege/account.xxx\n");
581 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/xxxx");
582 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/alarm.xxxx");
583 privilege_name_list = g_list_append(privilege_name_list, "http://tizen.org/privilege/account.xxx");
585 ret = privilege_info_get_privilege_info_list("ko_KR.UTF8", privilege_name_list, &privilege_info_list, &return_result);
586 __check_privilege_info_get_privilege_info(PRVINFO_ERROR_NONE, ret, privilege_info_list, return_result);
587 g_list_free(privilege_name_list);
588 privilege_name_list = NULL;
589 privilege_info_free_privilege_info_list(privilege_info_list);
590 privilege_info_list = NULL;
591 printf("-----------------------------------------------------------\n");
596 __change_color_to_origin();
597 __test_positive_privilege_info_get_display_name();
598 __test_negative_privilege_info_get_display_name();
600 __change_color_to_origin();
601 __test_positive_privilege_info_get_display_name_by_pkgtype();
602 __test_negative_privilege_info_get_display_name_by_pkgtype();
604 __change_color_to_origin();
605 __test_positive_privilege_info_get_description();
606 __test_negative_privilege_info_get_description();
608 __change_color_to_origin();
609 __test_positive_privilege_info_get_description_by_pkgtype();
610 __test_negative_privilege_info_get_description_by_pkgtype();
612 __change_color_to_origin();
613 __test_positive_privilege_info_get_privacy_display_name();
614 __test_negative_privilege_info_get_privacy_display_name();
616 __change_color_to_origin();
617 __test_positive_privilege_info_get_privilege_info_list();
618 __test_negative_privilege_info_get_privilege_info_list();
620 __change_color_to_green();
621 printf("Test Complete\n");
622 printf("success : %d, ", success_cnt);
623 __change_color_to_red();
624 printf("fail : %d\n", fail_cnt);
625 __change_color_to_origin();