|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #include "libutils.h" |
|
18 |
|
19 //chartotbuf8 related test cases |
|
20 void test_chartotbuf8_positive(); |
|
21 void test_chartotbuf8_negative1(); |
|
22 void test_chartotbuf8_negative2(); |
|
23 |
|
24 void test_chartotbuf16_positive(); |
|
25 |
|
26 //stringtotbuf8 related test cases |
|
27 void test_stringtotbuf8_positive(); |
|
28 void test_stringtotbuf8_negative1(); |
|
29 void test_stringtotbuf8_negative2(); |
|
30 void test_stringtotbuf8_boundry(); |
|
31 |
|
32 void test_stringtotbuf8_boundry1(); |
|
33 void test_stringtotbuf8_boundry2(); |
|
34 |
|
35 //wstringtotbuf8 related test cases |
|
36 void test_wstringtotbuf8_positive(); |
|
37 void test_wstringtotbuf8_negative1(); |
|
38 void test_wstringtotbuf8_negative2(); |
|
39 void test_wstringtotbuf8_boundry(); |
|
40 |
|
41 //wchartotbuf8 related test cases |
|
42 //void test_wchartotbuf8_positive(); |
|
43 void test_wchartotbuf8_negative1(); |
|
44 void test_wchartotbuf8_negative2(); |
|
45 |
|
46 //wstring to tptr8 related test cases |
|
47 void test_wstringtotptr8_positive(); |
|
48 void test_wstringtotptr8_negative1(); |
|
49 void test_wstringtotptr8_negative2(); |
|
50 void test_wstringtotptrc8_positive_unicode(); |
|
51 |
|
52 //stringtotbuf16 related cases |
|
53 void test_stringtotbuf16_positive(); |
|
54 void test_stringtotbuf16_negative1(); |
|
55 void test_stringtotbuf16_negative2(); |
|
56 void test_stringtotbuf16_negative3(); |
|
57 |
|
58 //stringtotptr16 related cases |
|
59 void test_stringtotptr16_positive(); |
|
60 void test_stringtotptr16_negative1(); |
|
61 void test_stringtotptr16_negative2(); |
|
62 void test_stringtotptr16_negative3(); |
|
63 |
|
64 //stringtorbuf8 related test cases |
|
65 void test_stringtorbuf8_positive(); |
|
66 void test_stringtorbuf8_negative(); |
|
67 |
|
68 //stringtotptr8 related test cases |
|
69 void test_stringtotptr8_positive(); |
|
70 void test_stringtotptr8_negative1(); |
|
71 void test_stringtotptr8_negative2(); |
|
72 void test_stringtotptr8_negative3(); |
|
73 |
|
74 //stringtotptrc8 related test cases |
|
75 void test_stringtotptrc8_positive(); |
|
76 void test_stringtotptrc8_negative1(); |
|
77 |
|
78 //stringtohbufc8 related test cases |
|
79 void test_stringtohbufc8_positive(); |
|
80 void test_stringtohbufc8_negative1(); |
|
81 void test_stringtohbufc8_negative2(); |
|
82 void test_stringtohbufc8_negative3(); |
|
83 |
|
84 //tbufc8 to string conversions |
|
85 void test_tbufc8tostring_positive(); |
|
86 void test_tbufc8tostring_negative1(); |
|
87 void test_tbufc8tostring_negative2(); |
|
88 |
|
89 //tbuf8 to string conversions |
|
90 void test_tbuf8tostring_positive(); |
|
91 void test_tbuf8tostring_negative1(); |
|
92 void test_tbuf8tostring_positive1(); |
|
93 |
|
94 //tptr8 to string conversions |
|
95 void test_tptr8tostring_positive(); |
|
96 void test_tptr8tostring_positive1(); |
|
97 void test_tptr8tostring_negative1(); |
|
98 |
|
99 //tptrc8 to string conversions |
|
100 void test_tptrc8tostring_positive(); |
|
101 void test_tptrc8tostring_positive1(); |
|
102 void test_tptrc8tostring_negative1(); |
|
103 |
|
104 //hbufc8 to string conversions |
|
105 void test_hbufc8tostring_positive(); |
|
106 void test_hbufc8tostring_negative1(); |
|
107 void test_hbufc8tostring_positive1(); |
|
108 |
|
109 //rbuf8 to string conversions |
|
110 void test_rbuf8tostring_positive(); |
|
111 void test_rbuf8tostring_positive1(); |
|
112 void test_rbuf8tostring_negative1(); |
|
113 |
|
114 //tlit8 to string conversions |
|
115 void test_tlit8tostring_positive(); |
|
116 void test_tlit8tostring_positive1(); |
|
117 void test_tlit8tostring_negative1(); |
|
118 |
|
119 //descriptor8 to string conversions |
|
120 void test_tbuf8towchar_positive(); |
|
121 void test_tbuf8towchar_negative1(); |
|
122 |
|
123 //string to rbuf16 coversion test cases |
|
124 void test_stringtorbuf16_positive(); |
|
125 void test_stringtorbuf16_negative1(); |
|
126 |
|
127 void test_wstringtotptrc8_positive(); |
|
128 void test_wstringtotptrc8_negative1(); |
|
129 |
|
130 |
|
131 void test_wstringtohbufc8_positive(); |
|
132 void test_wstringtohbufc8_negative1(); |
|
133 void test_wstringtohbufc8_positive_unicode(); |
|
134 |
|
135 //wstring to descriptor16 coversion test cases |
|
136 |
|
137 void test_wstringtotbuf16_positive(); |
|
138 void test_wstringtotbuf16_negative1(); |
|
139 void test_wstringtotbuf16_negative2(); |
|
140 void test_wstringtotbuf16_boundry(); |
|
141 void test_wstringtotbuf16_boundry1(); |
|
142 void test_wstringtotbuf16_boundry2(); |
|
143 void test_wstringtorbuf16_positive(); |
|
144 void test_wstringtorbuf16_negative(); |
|
145 void test_wstringtotptr16_positive(); |
|
146 void test_wstringtotptr16_negative1(); |
|
147 void test_wstringtotptrc16_positive(); |
|
148 void test_wstringtotptrc16_negative1(); |
|
149 void test_wstringtohbufc16_positive(); |
|
150 void test_wstringtohbufc16_negative1(); |
|
151 |
|
152 void test_wchartohbufc8_positive(); |
|
153 void test_wchartotbuf8_positive(); |
|
154 |
|
155 void test_stringtotbuf8_positive(); |
|
156 |
|
157 void test_stringtotbuf8_negative1(); |
|
158 void test_stringtotbuf8_negative2(); |
|
159 void test_stringtotbuf8_boundry(); |
|
160 |
|
161 void test_stringtotbuf8_boundry1(); |
|
162 void test_stringtotbuf8_boundry2(); |
|
163 |
|
164 //wstringtotbuf8 related test cases |
|
165 void test_wstringtotbuf8_positive(); |
|
166 void test_wstringtotbuf8_negative1(); |
|
167 void test_wstringtotbuf8_negative2(); |
|
168 void test_wstringtotbuf8_boundry(); |
|
169 |
|
170 //wchartotbuf8 related test cases |
|
171 void test_wchartotbuf8_positive(); |
|
172 void test_wchartotbuf8_unicode(); |
|
173 void test_wchartotbuf8_positive1(); |
|
174 void test_wchartotbuf8_boundary1(); |
|
175 void test_wchartotbuf8_boundary2(); |
|
176 void test_wchartotbuf8_content_check(); |
|
177 void test_wchartotbuf8_negative1(); |
|
178 void test_wchartotbuf8_negative2(); |
|
179 |
|
180 |
|
181 void test_wchartotbuf16_positive(); |
|
182 void test_wchartotbuf16_positive1(); |
|
183 void test_wchartotbuf16_boundary1(); |
|
184 void test_wchartotbuf16_boundary2(); |
|
185 void test_wchartotbuf16_content_check(); |
|
186 void test_wchartotbuf16_negative1(); |
|
187 void test_wchartotbuf16_negative2(); |
|
188 |
|
189 |
|
190 void test_wchartohbufc8_positive(); |
|
191 |
|
192 |
|
193 void test_wcharptotptr8_positive(); |
|
194 void test_wcharptotptr8_positive1(); |
|
195 void test_wcharptotptr8_boundary1(); |
|
196 void test_wcharptotptr8_boundary2(); |
|
197 void test_wcharptotptr8_content_check(); |
|
198 void test_wcharptotptr8_negative1(); |
|
199 void test_wcharptotptr8_negative2(); |
|
200 |
|
201 void test_wcharptotptr16_positive1(); |
|
202 void test_wcharptotptr16_positive2(); |
|
203 void test_wcharptotptr16_boundary1(); |
|
204 void test_wcharptotptr16_boundary2(); |
|
205 void test_wcharptotptr16_content_check(); |
|
206 void test_wcharptotptr16_negative1(); |
|
207 void test_wcharptotptr16_negative2(); |
|
208 |
|
209 void test_wcharptotptrc8_positive1(); |
|
210 void test_wcharptotptrc8_positive2(); |
|
211 void test_wcharptotptrc8_boundary1(); |
|
212 void test_wcharptotptrc8_boundary2(); |
|
213 void test_wcharptotptrc8_content_check(); |
|
214 void test_wcharptotptrc8_negative1(); |
|
215 void test_wcharptotptrc8_negative2(); |
|
216 |
|
217 void test_wcharptotptrc16_positive1(); |
|
218 void test_wcharptotptrc16_positive2(); |
|
219 void test_wcharptotptrc16_boundary1(); |
|
220 void test_wcharptotptrc16_boundary2(); |
|
221 void test_wcharptotptrc16_content_check(); |
|
222 void test_wcharptotptrc16_negative2(); |
|
223 |
|
224 void test_wchartorbuf8_positive1(); |
|
225 void test_wchartorbuf8_positive2(); |
|
226 void test_wchartorbuf8_boundary1(); |
|
227 void test_wchartorbuf8_boundary2(); |
|
228 void test_wchartorbuf8_content_check(); |
|
229 void test_wchartorbuf8_negative1(); |
|
230 void test_wchartorbuf8_negative2(); |
|
231 |
|
232 |
|
233 void test_wchartorbuf16_positive1(); |
|
234 void test_wchartorbuf16_positive2(); |
|
235 void test_wchartorbuf16_boundary1(); |
|
236 void test_wchartorbuf16_boundary2(); |
|
237 void test_wchartorbuf16_content_check(); |
|
238 void test_wchartorbuf16_negative1(); |
|
239 void test_wchartorbuf16_negative2(); |
|
240 // ------------------------------------ |
|
241 |
|
242 |
|
243 void test_chartotbuf8_positive1(); |
|
244 void test_chartotbuf8_positive2(); |
|
245 void test_chartotbuf8_boundary1(); |
|
246 void test_chartotbuf8_boundary2(); |
|
247 void test_chartotbuf8_content_check(); |
|
248 void test_chartotbuf8_negative1(); |
|
249 void test_chartotbuf8_negative2(); |
|
250 |
|
251 void test_chartotbuf16_positive1(); |
|
252 void test_chartotbuf16_positive2(); |
|
253 void test_chartotbuf16_boundary1(); |
|
254 void test_chartotbuf16_boundary2(); |
|
255 void test_chartotbuf16_content_check(); |
|
256 void test_chartotbuf16_negative1(); |
|
257 void test_chartotbuf16_negative2(); |
|
258 |
|
259 |
|
260 void test_charptotptr8_positive1(); |
|
261 void test_charptotptr8_positive2(); |
|
262 void test_charptotptr8_boundary1(); |
|
263 void test_charptotptr8_boundary2(); |
|
264 void test_charptotptr8_content_check(); |
|
265 void test_charptotptr8_negative1(); |
|
266 void test_charptotptr8_negative2(); |
|
267 |
|
268 |
|
269 void test_charptotptr16_positive1(); |
|
270 void test_charptotptr16_positive2(); |
|
271 void test_charptotptr16_boundary1(); |
|
272 void test_charptotptr16_boundary2(); |
|
273 void test_charptotptr16_content_check(); |
|
274 void test_charptotptr16_negative1(); |
|
275 void test_charptotptr16_negative2(); |
|
276 |
|
277 void test_charptotptrc8_positive1(); |
|
278 void test_charptotptrc8_positive2(); |
|
279 void test_charptotptrc8_boundary1(); |
|
280 void test_charptotptrc8_boundary2(); |
|
281 void test_charptotptrc8_content_check(); |
|
282 //void test_charptotptrc8_negative1(); |
|
283 void test_charptotptrc8_negative2(); |
|
284 |
|
285 |
|
286 void test_charptotptrc16_positive1(); |
|
287 void test_charptotptrc16_positive2(); |
|
288 void test_charptotptrc16_boundary1(); |
|
289 void test_charptotptrc16_boundary2(); |
|
290 void test_charptotptrc16_content_check(); |
|
291 void test_charptotptrc16_negative2(); |
|
292 |
|
293 |
|
294 void test_chartorbuf8_positive1(); |
|
295 void test_chartorbuf8_positive2(); |
|
296 void test_chartorbuf8_boundary1(); |
|
297 void test_chartorbuf8_boundary2(); |
|
298 void test_chartorbuf8_content_check(); |
|
299 void test_chartorbuf8_negative1(); |
|
300 void test_chartorbuf8_negative2(); |
|
301 |
|
302 |
|
303 void test_chartorbuf16_positive1(); |
|
304 void test_chartorbuf16_positive2(); |
|
305 void test_chartorbuf16_boundary1(); |
|
306 void test_chartorbuf16_boundary2(); |
|
307 void test_chartorbuf16_content_check(); |
|
308 void test_chartorbuf16_negative1(); |
|
309 void test_chartorbuf16_negative2(); |
|
310 |
|
311 |
|
312 |