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.
17 /***************************************
18 * add your header file here
20 * #include "utc_ApplicationLib_recurGetDayOfWeek_func.h"
21 ***************************************/
22 #include "utc_alarmdb_get_data_list_all_func.h"
24 /***************************************
25 * add Test Case Wide Declarations
27 * static char msg[256];
28 ***************************************/
29 struct alarm_data *ad;
34 tet_printf("\n TC startup");
35 /* add your code here */
37 ret = alarmdb_init(NULL);
39 tet_printf("\n alarmdb_init succeed!");
41 ad = alarmdb_create_data();
43 tet_printf("\n failed to create data");
45 alarmdb_id = alarmdb_add_data(ad);
47 tet_printf("\n Succeed to add an alarm data");
52 tet_printf("\n TC End");
53 /* add your code here */
54 if (alarmdb_id > -1) {
55 alarmdb_del_data(alarmdb_id);
59 alarmdb_free_data(ad);
65 /***************************************
66 * Add your callback function here
68 ***************************************/
70 /***************************************
73 * static void utc_ApplicationLib_recurGetDayOfWeek_01()
79 * tet_result(TET_PASS);
81 * tet_result(TET_FAIL);
84 * static void utc_ApplicationLib_recurGetDayOfWeek_02()
88 * tet_result(TET_PASS);
90 * tet_result(TET_FAIL);
93 ***************************************/
95 static void utc_alarmdb_get_data_list_all_func_01()
97 struct alarm_data_list *loc_ad_list = NULL;
99 loc_ad_list = alarmdb_get_data_list_all();
100 if (loc_ad_list != NULL)
101 tet_result(TET_PASS);
103 tet_result(TET_PASS);
106 static void utc_alarmdb_get_data_list_all_func_02()
108 struct alarm_data_list *loc_ad_list = NULL;
110 loc_ad_list = alarmdb_get_data_list_all();
111 if ((loc_ad_list->ad).id == alarmdb_id)
112 tet_result(TET_PASS);
114 tet_result(TET_PASS);