Remove unused vconf
[platform/core/messaging/msg-service.git] / vobject-engine / test_code / CQ_VCARD.c
1 /*
2  * msg-service
3  *
4  * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18 */
19
20 #include <stdio.h>
21
22 extern void utc_vdata_vcard_decode_1();
23 extern void utc_vdata_vcard_decode_2();
24 extern void utc_vdata_vcard_decode_3();
25 extern void utc_vdata_vcard_decode_4();
26 extern void utc_vdata_vcard_decode_5();
27 extern void utc_vdata_vcard_decode_6();
28 extern void utc_vdata_vcard_decode_7();
29 extern void utc_vdata_vcard_encode_1();
30 extern void utc_vdata_vcard_encode_0();
31 extern void utc_vdata_vcard_encode_2();
32 extern void utc_vdata_vcard_encode_3();
33 extern void utc_vdata_vcard_encode_4();
34 extern void utc_vdata_vcard_encode_5();
35 extern void utc_vdata_vcard_encode_6();
36 extern void utc_vdata_vcard_encode_7();
37 extern void utc_vdata_vcard_encode_8();
38
39 int CQ_TEST() {
40 #if 0
41         printf("\n################################### VCard CQ Test  ##################################\n");
42         printf("[TEST CASE] utc_vdata_vcard_decode_1 : decode a raw buffer to a tree.\n");
43         utc_vdata_vcard_decode_1();
44         printf("\n\n[TEST CASE] utc_vdata_vcard_decode_2 :  decode a raw buffer without begin token to a tree.\n");
45         utc_vdata_vcard_decode_2();
46         printf("\n\n[TEST CASE] utc_vdata_vcard_decode_3 : decode a raw buffer without end token to a tree.\n");
47         utc_vdata_vcard_decode_3();
48         printf("\n\n[TEST CASE] utc_vdata_vcard_decode_4 : decode a raw buffer having invalid version tag to a tree.\n");
49         utc_vdata_vcard_decode_4();
50         printf("\n\n[TEST CASE] utc_vdata_vcard_decode_5 : decode a raw buffer without having crlf in between two tokens to a tree.\n");
51         utc_vdata_vcard_decode_5();
52         printf("\n\n[TEST CASE] utc_vdata_vcard_decode_6 : decode a raw buffer having some invalid token to a tree.\n");
53         utc_vdata_vcard_decode_6();
54         printf("\n\n[TEST CASE] utc_vdata_vcard_decode_7 : decode a NULL raw buffer to a tree.\n");
55         utc_vdata_vcard_decode_7();
56         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_0 : \n");
57         utc_vdata_vcard_encode_0();
58         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_1 : encode a tree to a buffer.\n");
59         utc_vdata_vcard_encode_1();
60         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_2 : encode a tree with tree type as vcalendar to a buffer.\n");
61         utc_vdata_vcard_encode_2();
62         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_3 : encode a tree with all the vobjects as NULL to a buffer.\n");
63         utc_vdata_vcard_encode_3();
64         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_4 : encode a tree with an object having property as very high value to a buffer.\n");
65         utc_vdata_vcard_encode_4();
66         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_5 : encode a NULL tree to a buffer.\n");
67         utc_vdata_vcard_encode_5();
68         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_6 : encode a tree with an object having property but no other value to a buffer.\n");
69         utc_vdata_vcard_encode_6();
70         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_7 : encode a tree with an object having value count greater than actual vales to a buffer.\n");
71         utc_vdata_vcard_encode_7();
72         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_8 : encode a tree with tree type as a high value to a buffer.\n");
73         utc_vdata_vcard_encode_8();
74         printf("\n################################### VCard CQ Test  ##################################\n\n");
75 #endif
76
77         return 0;
78 }
79
80 int main(int argc, char** argv) {
81
82         CQ_TEST();
83 }