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 void startup(void);
27 static void cleanup(void);
29 void (*tet_startup)(void) = startup;
30 void (*tet_cleanup)(void) = cleanup;
32 static void utc_ApplicationFW_ug_get_window_func_01(void);
35 POSITIVE_TC_IDX = 0x01,
38 struct tet_testlist tet_testlist[] = {
39 { utc_ApplicationFW_ug_get_window_func_01, POSITIVE_TC_IDX },
43 static void startup(void)
49 win = elm_win_add(NULL, "UI gadget test", ELM_WIN_BASIC);
51 err = "Cannot create window";
55 if (UG_INIT_EFL(win, UG_OPT_INDICATOR_ENABLE)) {
56 err = "ug_init() failed";
64 tet_delete(POSITIVE_TC_IDX, err);
68 static void cleanup(void)
74 * @brief Positive test case of ug_get_window()
76 static void utc_ApplicationFW_ug_get_window_func_01(void)
79 win = ug_get_window();
81 tet_infoline("ug_get_window() failed in positive test case");