2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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.
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_resume_func_01(void);
35 POSITIVE_TC_IDX = 0x01,
38 struct tet_testlist tet_testlist[] = {
39 { utc_ApplicationFW_ug_resume_func_01, POSITIVE_TC_IDX },
43 #define TESTUG "helloUG-efl"
44 static struct ui_gadget *ug;
46 static void startup(void)
52 win = elm_win_add(NULL, "UI gadget test", ELM_WIN_BASIC);
54 err = "Cannot create window";
58 if (UG_INIT_EFL(win, UG_OPT_INDICATOR_ENABLE)) {
59 err = "ug_init() failed";
63 ug = ug_create(NULL, TESTUG, UG_MODE_FULLVIEW, NULL, NULL);
65 err = "ug_create() failed";
73 tet_delete(POSITIVE_TC_IDX, err);
76 static void cleanup(void)
81 static Eina_Bool tst01(void *data)
87 tet_infoline("ug_resume() failed in positive test case");
99 * @brief Positive test case of ug_resume()
101 static void utc_ApplicationFW_ug_resume_func_01(void)
103 ecore_idler_add(tst01, NULL);