3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.1 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://floralicense.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 /***************************************
20 * add your header file here
22 * #include "utc_ApplicationLib_recurGetDayOfWeek_func.h"
23 ***************************************/
24 #include "utc_alarmdb_get_power_onoff_by_author_func.h"
26 /***************************************
27 * add Test Case Wide Declarations
29 * static char msg[256];
30 ***************************************/
31 struct alarm_data *ad;
36 tet_printf("\n TC startup");
37 /* add your code here */
39 ret = alarmdb_init(NULL);
41 tet_printf("\n alarmdb_init succeed!");
43 ad = alarmdb_create_data();
45 tet_printf("\n failed to create data");
47 ad->author = AUTHOR_TIMER;
48 ad->auto_power_on = 1;
50 alarmdb_id = alarmdb_add_data(ad);
52 tet_printf("\n Succeed to add an alarm data");
57 tet_printf("\n TC End");
58 /* add your code here */
59 if (alarmdb_id > -1) {
60 alarmdb_del_data(alarmdb_id);
64 alarmdb_free_data(ad);
70 /***************************************
71 * Add your callback function here
73 ***************************************/
75 /***************************************
78 * static void utc_ApplicationLib_recurGetDayOfWeek_01()
84 * tet_result(TET_PASS);
86 * tet_result(TET_FAIL);
89 * static void utc_ApplicationLib_recurGetDayOfWeek_02()
93 * tet_result(TET_PASS);
95 * tet_result(TET_FAIL);
98 ***************************************/
100 static void utc_alarmdb_get_power_onoff_by_author_func_01()
103 ret = alarmdb_get_power_onoff_by_author(AUTHOR_TIMER);
105 tet_result(TET_PASS);
107 tet_result(TET_FAIL);
110 static void utc_alarmdb_get_power_onoff_by_author_func_02()
113 ret = alarmdb_get_power_onoff_by_author(ALARM_DB_AUTHOR_ALARM);
115 tet_result(TET_PASS);
117 tet_result(TET_FAIL);