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>, Jaeho Lee <jaeho81.lee@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 #include <appcore-common.h>
26 void (*cb_app)(int, void *, bundle *);
30 static void startup(void);
31 static void cleanup(void);
33 void (*tet_startup)(void) = startup;
34 void (*tet_cleanup)(void) = cleanup;
36 static void utc_ApplicationFW_appcore_init_func_01(void);
37 static void utc_ApplicationFW_appcore_init_func_02(void);
40 POSITIVE_TC_IDX = 0x01,
44 struct tet_testlist tet_testlist[] = {
45 { utc_ApplicationFW_appcore_init_func_01, POSITIVE_TC_IDX },
46 { utc_ApplicationFW_appcore_init_func_02, NEGATIVE_TC_IDX },
50 static void startup(void)
54 static void cleanup(void)
59 static void ui_cb(int evt, void *data, bundle *b)
64 * @brief Positive test case of appcore_init()
66 static void utc_ApplicationFW_appcore_init_func_01(void)
74 const struct ui_ops ops = {
78 r = appcore_init("Testcase", &ops, argc, argv);
80 tet_infoline("appcore_init() failed in positive test case");
88 * @brief Negative test case of ug_init appcore_init()
90 static void utc_ApplicationFW_appcore_init_func_02(void)
98 const struct ui_ops ops = {
102 r = appcore_init(NULL, &ops, argc, argv);
104 tet_infoline("appcore_init() failed in negative test case");
105 tet_result(TET_FAIL);
109 r = appcore_init("Testcase", NULL, argc, argv);
111 tet_infoline("appcore_init() failed in negative test case");
112 tet_result(TET_FAIL);
116 r = appcore_init("Testcase", &ops, -1, argv);
118 tet_infoline("appcore_init() failed in negative test case");
119 tet_result(TET_FAIL);
123 r = appcore_init("Testcase", &ops, argc, NULL);
125 tet_infoline("appcore_init() failed in negative test case");
126 tet_result(TET_FAIL);
130 tet_result(TET_PASS);