4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>,
7 * Jaeho Lee <jaeho81.lee@samsung.com>
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
25 static void startup(void);
26 static void cleanup(void);
28 void (*tet_startup)(void) = startup;
29 void (*tet_cleanup)(void) = cleanup;
31 static void utc_ApplicationFW_heynoti_get_snoti_name_func_01(void);
32 static void utc_ApplicationFW_heynoti_get_snoti_name_func_02(void);
35 POSITIVE_TC_IDX = 0x01,
39 struct tet_testlist tet_testlist[] = {
40 { utc_ApplicationFW_heynoti_get_snoti_name_func_01, POSITIVE_TC_IDX },
41 { utc_ApplicationFW_heynoti_get_snoti_name_func_02, NEGATIVE_TC_IDX },
49 static void startup(void)
56 err = "Error init heynoti";
58 tet_delete(POSITIVE_TC_IDX, err);
59 tet_delete(NEGATIVE_TC_IDX, err);
64 static void cleanup(void)
70 * @brief Positive test case of heynoti_get_snoti_name()
72 static void utc_ApplicationFW_heynoti_get_snoti_name_func_01(void)
76 r = heynoti_get_snoti_name("test_testnoti", sys_noti, sizeof(sys_noti));
79 tet_infoline("heynoti_get_snoti_name() failed in positive test case");
87 * @brief Negative test case of ug_init heynoti_get_snoti_name()
89 static void utc_ApplicationFW_heynoti_get_snoti_name_func_02(void)
93 r = heynoti_get_snoti_name("test_testnoti", sys_noti_err, sizeof(sys_noti_err));
96 tet_infoline("heynoti_get_snoti_name() failed in negative test case");
100 tet_result(TET_PASS);