4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>,
7 * Jaeho Lee <jaeho81.lee@samsung.com>, Shobhit Srivastava <shobhit.s@samsung.com>
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
23 #include <app-checker.h>
24 static void startup(void);
25 static void cleanup(void);
27 void (*tet_startup) (void) = startup;
28 void (*tet_cleanup) (void) = cleanup;
30 static void utc_ApplicationFW_ac_unregister_launch_privilege_func_01(void);
31 static void utc_ApplicationFW_ac_unregister_launch_privilege_func_02(void);
32 static void utc_ApplicationFW_ac_unregister_launch_privilege_func_03(void);
33 static void utc_ApplicationFW_ac_unregister_launch_privilege_func_04(void);
36 POSITIVE_TC_IDX = 0x01,
40 struct tet_testlist tet_testlist[] = {
41 {utc_ApplicationFW_ac_unregister_launch_privilege_func_01,
43 {utc_ApplicationFW_ac_unregister_launch_privilege_func_02,
45 {utc_ApplicationFW_ac_unregister_launch_privilege_func_03,
47 {utc_ApplicationFW_ac_unregister_launch_privilege_func_04,
52 static void startup(void)
56 static void cleanup(void)
61 *int ac_unregister_launch_privilege(const char *pkg_name,
62 * const char *pkg_type);
67 * @brief Positive test case of ac_unregister_launch_privilege()
69 static void utc_ApplicationFW_ac_unregister_launch_privilege_func_01(void)
72 r = ac_unregister_launch_privilege("org.tizen.calculator", "deb");
73 if (r < 0 && r != AC_R_ENOPULUGINS) {
75 ("ac_unregister_launch_privilege()"
76 " failed in positive test case");
84 * @brief Negative test case 01 of ac_unregister_launch_privilege()
86 static void utc_ApplicationFW_ac_unregister_launch_privilege_func_02(void)
89 r = ac_unregister_launch_privilege(NULL, "deb");
90 if (r != AC_R_EINVAL) {
92 ("ac_unregister_launch_privilege()"
93 " failed in negative test case");
101 * @brief Negative test case 02 of ac_unregister_launch_privilege()
103 static void utc_ApplicationFW_ac_unregister_launch_privilege_func_03(void)
106 r = ac_unregister_launch_privilege("org.tizen.calculator", NULL);
107 if (r != AC_R_EINVAL) {
109 ("ac_unregister_launch_privilege()"
110 " failed in negative test case");
111 tet_result(TET_FAIL);
114 tet_result(TET_PASS);
118 * @brief Negative test case 03 of ac_unregister_launch_privilege()
120 static void utc_ApplicationFW_ac_unregister_launch_privilege_func_04(void)
123 r = ac_unregister_launch_privilege(NULL, NULL);
124 if (r != AC_R_EINVAL) {
126 ("ac_unregister_launch_privilege()"
127 " failed in negative test case");
128 tet_result(TET_FAIL);
131 tet_result(TET_PASS);