Modify flora license version.
[platform/core/messaging/msg-service.git] / vobject-engine / test_code / CQ_VCARD.c
1 /*
2 * Copyright 2012-2013  Samsung Electronics Co., Ltd
3 *
4 * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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
19 extern void utc_vdata_vcard_decode_1();
20 extern void utc_vdata_vcard_decode_2();
21 extern void utc_vdata_vcard_decode_3();
22 extern void utc_vdata_vcard_decode_4();
23 extern void utc_vdata_vcard_decode_5();
24 extern void utc_vdata_vcard_decode_6();
25 extern void utc_vdata_vcard_decode_7();
26 extern void utc_vdata_vcard_encode_1();
27 extern void utc_vdata_vcard_encode_0();
28 extern void utc_vdata_vcard_encode_2();
29 extern void utc_vdata_vcard_encode_3();
30 extern void utc_vdata_vcard_encode_4();
31 extern void utc_vdata_vcard_encode_5();
32 extern void utc_vdata_vcard_encode_6();
33 extern void utc_vdata_vcard_encode_7();
34 extern void utc_vdata_vcard_encode_8();
35
36 int CQ_TEST() {
37 #if 0
38         printf("\n################################### VCard CQ Test  ##################################\n");
39         printf("[TEST CASE] utc_vdata_vcard_decode_1 : decode a raw buffer to a tree.\n");
40         utc_vdata_vcard_decode_1();
41         printf("\n\n[TEST CASE] utc_vdata_vcard_decode_2 :  decode a raw buffer without begin token to a tree.\n");
42         utc_vdata_vcard_decode_2();
43         printf("\n\n[TEST CASE] utc_vdata_vcard_decode_3 : decode a raw buffer without end token to a tree.\n");
44         utc_vdata_vcard_decode_3();
45         printf("\n\n[TEST CASE] utc_vdata_vcard_decode_4 : decode a raw buffer having invalid version tag to a tree.\n");
46         utc_vdata_vcard_decode_4();
47         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");
48         utc_vdata_vcard_decode_5();
49         printf("\n\n[TEST CASE] utc_vdata_vcard_decode_6 : decode a raw buffer having some invalid token to a tree.\n");
50         utc_vdata_vcard_decode_6();
51         printf("\n\n[TEST CASE] utc_vdata_vcard_decode_7 : decode a NULL raw buffer to a tree.\n");
52         utc_vdata_vcard_decode_7();
53         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_0 : \n");
54         utc_vdata_vcard_encode_0();
55         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_1 : encode a tree to a buffer.\n");
56         utc_vdata_vcard_encode_1();
57         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_2 : encode a tree with tree type as vcalendar to a buffer.\n");
58         utc_vdata_vcard_encode_2();
59         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_3 : encode a tree with all the vobjects as NULL to a buffer.\n");
60         utc_vdata_vcard_encode_3();
61         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");
62         utc_vdata_vcard_encode_4();
63         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_5 : encode a NULL tree to a buffer.\n");
64         utc_vdata_vcard_encode_5();
65         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");
66         utc_vdata_vcard_encode_6();
67         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");
68         utc_vdata_vcard_encode_7();
69         printf("\n\n[TEST CASE] utc_vdata_vcard_encode_8 : encode a tree with tree type as a high value to a buffer.\n");
70         utc_vdata_vcard_encode_8();
71         printf("\n################################### VCard CQ Test  ##################################\n\n");
72 #endif
73
74         return 0;
75 }
76
77 int main(int argc, char** argv) {
78
79         CQ_TEST();
80 }