2 * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd All Rights Reserved
4 * This file is part of the UI Gadget
5 * Written by Jayoun Lee <airjany@samsung.com>, Jinwoo Nam <jwoo.nam@samsung.com>
7 * PROPRIETARY/CONFIDENTIAL
9 * This software is the confidential and proprietary information of
10 * SAMSUNG ELECTRONICS (Confidential Information).
11 * You shall not disclose such Confidential Information and shall
12 * use it only in accordance with the terms of the license agreement
13 * you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
14 * representations or warranties about the suitability
15 * of the software, either express or implied, including but not
16 * limited to the implied warranties of merchantability, fitness for a particular purpose, or non-
17 * infringement. SAMSUNG shall not be liable for any damages suffered by licensee as
18 * a result of using, modifying or distributing this software or its derivatives.
22 #include <ui-gadget.h>
23 #include <Elementary.h>
26 static Evas_Object *win;
28 static void startup(void);
29 static void cleanup(void);
31 static void utc_ApplicationFW_ug_init_func_01(void);
32 static void utc_ApplicationFW_ug_init_func_02(void);
34 void (*tet_startup)(void) = startup;
35 void (*tet_cleanup)(void) = cleanup;
38 POSITIVE_TC_IDX = 0x01,
42 struct tet_testlist tet_testlist[] = {
43 { utc_ApplicationFW_ug_init_func_01, POSITIVE_TC_IDX },
44 { utc_ApplicationFW_ug_init_func_02, NEGATIVE_TC_IDX },
48 static void startup(void)
52 win = elm_win_add(NULL, "UI gadget test", ELM_WIN_BASIC);
54 err = "Cannot create window";
56 tet_delete(POSITIVE_TC_IDX, err);
60 static void cleanup(void)
68 * @brief Positive test case of ug_init API
70 static void utc_ApplicationFW_ug_init_func_01(void)
75 for (opt = UG_OPT_INDICATOR_ENABLE; opt < UG_OPT_MAX; opt++) {
76 r = UG_INIT_EFL(win, UG_OPT_INDICATOR_ENABLE);
78 tet_infoline("ug_init() failed in positive test case");
87 * @brief Negative test case of ug_init API
89 static void utc_ApplicationFW_ug_init_func_02(void)
93 r = UG_INIT_EFL(win, -1);
95 tet_infoline("ug_init() failed in negative test case");
100 r = UG_INIT_EFL(win, UG_OPT_MAX);
102 tet_infoline("ug_init() failed in negative test case");
103 tet_result(TET_FAIL);
107 tet_result(TET_PASS);