add base code
[framework/api/face.git] / TC / testcase / utc_uix_face_basic_negative.c
1 /*
2  *
3  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of SAMSUNG
7  * ELECTRONICS ("Confidential Information"). You agree and acknowledge that
8  * this software is owned by Samsung and you shall not disclose such
9  * Confidential Information and shall use it only in accordance with the terms
10  * of the license agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG
11  * make no representations or warranties about the suitability of the software,
12  * either express or implied, including but not limited to the implied
13  * warranties of merchantability, fitness for a particular purpose, or
14  * non-infringement. SAMSUNG shall not be liable for any damages suffered by
15  * licensee arising out of or related to this software.
16  *
17  */
18 #include <stdio.h>
19 #include <tet_api.h>
20
21 #include <face.h>
22
23 static void startup(void);
24 static void cleanup(void);
25
26 void (*tet_startup)(void) = startup;
27 void (*tet_cleanup)(void) = cleanup;
28
29 static void startup(void)
30 {
31 // TODO : How to copy sample image????
32 }
33
34 static void cleanup(void)
35 {
36         /* end of TC */
37 }
38
39 static void utc_uix_face_create_negative_01(void)
40 {
41         static const char szFunc[] = "face_create";
42
43         int err = face_create(NULL);
44
45         dts_check_lt(szFunc, err, FACE_ERROR_NONE);
46 }
47
48 static void utc_uix_face_destroy_negative_01(void)
49 {
50         static const char szFunc[] = "face_destroy";
51
52         int err = face_destroy(NULL);
53
54         dts_check_lt(szFunc, err, FACE_ERROR_NONE);
55 }
56
57 static void utc_uix_face_destroy_negative_02(void)
58 {
59         static const char szFunc[] = "face_destroy";
60
61         face_h face;
62
63         int err = face_destroy(face);
64
65         dts_check_lt(szFunc, err, FACE_ERROR_NONE);
66 }
67
68
69 struct tet_testlist tet_testlist[] = {
70         { utc_uix_face_create_negative_01, 1},
71         { utc_uix_face_destroy_negative_01, 2},
72         { utc_uix_face_destroy_negative_02, 3},
73         { NULL, 0},
74 };
75
76