Update license
[framework/api/face.git] / TC / testcase / utc_uix_face_basic_negative.c
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #include <stdio.h>
18 #include <tet_api.h>
19
20 #include <face.h>
21
22 static void startup(void);
23 static void cleanup(void);
24
25 void (*tet_startup)(void) = startup;
26 void (*tet_cleanup)(void) = cleanup;
27
28 static void startup(void)
29 {
30 // TODO : How to copy sample image????
31 }
32
33 static void cleanup(void)
34 {
35         /* end of TC */
36 }
37
38 static void utc_uix_face_create_negative_01(void)
39 {
40         static const char szFunc[] = "face_create";
41
42         int err = face_create(NULL);
43
44         dts_check_lt(szFunc, err, FACE_ERROR_NONE);
45 }
46
47 static void utc_uix_face_destroy_negative_01(void)
48 {
49         static const char szFunc[] = "face_destroy";
50
51         int err = face_destroy(NULL);
52
53         dts_check_lt(szFunc, err, FACE_ERROR_NONE);
54 }
55
56 static void utc_uix_face_destroy_negative_02(void)
57 {
58         static const char szFunc[] = "face_destroy";
59
60         face_h face;
61
62         int err = face_destroy(face);
63
64         dts_check_lt(szFunc, err, FACE_ERROR_NONE);
65 }
66
67
68 struct tet_testlist tet_testlist[] = {
69         { utc_uix_face_create_negative_01, 1},
70         { utc_uix_face_destroy_negative_01, 2},
71         { utc_uix_face_destroy_negative_02, 3},
72         { NULL, 0},
73 };
74
75