2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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 static void startup(void);
23 static void cleanup(void);
25 void (*tet_startup)(void) = startup;
26 void (*tet_cleanup)(void) = cleanup;
28 static void startup(void)
30 // TODO : How to copy sample image????
33 static void cleanup(void)
38 static void utc_uix_face_component_create_negative(void)
40 static const char szFunc[] = "face_component_create";
42 int err = face_component_create(NULL);
44 dts_check_lt(szFunc, err, FACE_ERROR_NONE);
49 static void utc_uix_face_component_destroy_negative(void)
51 static const char szFunc[] = "face_component_destroy";
55 err = face_component_destroy(NULL);
57 dts_check_lt(szFunc, err, FACE_ERROR_NONE);
62 static void utc_uix_face_component_get_face_rect_negative(void)
64 static const char szFunc[] = "face_component_get_face_rect";
68 face_component_h face_component;
70 err = face_component_create(&face_component);
74 err = face_component_get_face_rect(NULL, &face);
76 dts_check_lt(szFunc, err, FACE_ERROR_NONE);
78 err = face_component_destroy(face_component);
82 static void utc_uix_face_component_get_left_eye_point_negative(void)
84 static const char szFunc[] = "face_component_get_left_eye_point";
88 face_component_h face_component;
90 err = face_component_create(&face_component);
94 err = face_component_get_left_eye_point(NULL, &point);
96 dts_check_lt(szFunc, err, FACE_ERROR_NONE);
98 err = face_component_get_left_eye_point(face_component, NULL);
100 dts_check_lt(szFunc, err, FACE_ERROR_NONE);
102 err = face_component_destroy(face_component);
105 static void utc_uix_face_component_get_right_eye_point_negative(void)
107 static const char szFunc[] = "face_component_get_right_eye_point";
111 face_component_h face_component;
113 err = face_component_create(&face_component);
117 err = face_component_get_right_eye_point(NULL, &point);
119 dts_check_lt(szFunc, err, FACE_ERROR_NONE);
121 err = face_component_get_right_eye_point(face_component, NULL);
123 dts_check_lt(szFunc, err, FACE_ERROR_NONE);
125 err = face_component_destroy(face_component);
128 static void utc_uix_face_component_get_mouth_rect_negative(void)
130 static const char szFunc[] = "face_component_get_mouth_rect";
134 face_component_h face_component;
136 err = face_component_create(&face_component);
140 err = face_component_get_mouth_rect(face_component, NULL);
142 dts_check_lt(szFunc, err, FACE_ERROR_NONE);
144 err = face_component_get_mouth_rect(NULL, &mouth);
146 dts_check_lt(szFunc, err, FACE_ERROR_NONE);
148 err = face_component_destroy(face_component);
152 struct tet_testlist tet_testlist[] = {
153 { utc_uix_face_component_create_negative, 1},
154 { utc_uix_face_component_destroy_negative, 2},
155 { utc_uix_face_component_get_face_rect_negative, 3},
156 { utc_uix_face_component_get_left_eye_point_negative, 4},
157 { utc_uix_face_component_get_right_eye_point_negative, 5},
158 { utc_uix_face_component_get_mouth_rect_negative, 6},