os/ossrv/utilitylibraries/libutils/tsrc/inc/test_libutil.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/utilitylibraries/libutils/tsrc/inc/test_libutil.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,312 @@
     1.4 +/*
     1.5 +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +*
    1.19 +*/
    1.20 +#include "libutils.h"
    1.21 +
    1.22 +//chartotbuf8 related test cases
    1.23 +void test_chartotbuf8_positive();
    1.24 +void test_chartotbuf8_negative1();
    1.25 +void test_chartotbuf8_negative2();
    1.26 +
    1.27 +void test_chartotbuf16_positive();
    1.28 +
    1.29 +//stringtotbuf8 related test cases
    1.30 +void test_stringtotbuf8_positive();
    1.31 +void test_stringtotbuf8_negative1();
    1.32 +void test_stringtotbuf8_negative2();
    1.33 +void test_stringtotbuf8_boundry();
    1.34 +
    1.35 +void test_stringtotbuf8_boundry1();
    1.36 +void test_stringtotbuf8_boundry2();
    1.37 +
    1.38 +//wstringtotbuf8 related test cases
    1.39 +void test_wstringtotbuf8_positive();
    1.40 +void test_wstringtotbuf8_negative1();
    1.41 +void test_wstringtotbuf8_negative2();
    1.42 +void test_wstringtotbuf8_boundry();
    1.43 +
    1.44 +//wchartotbuf8 related test cases
    1.45 +//void test_wchartotbuf8_positive();
    1.46 +void test_wchartotbuf8_negative1();
    1.47 +void test_wchartotbuf8_negative2();
    1.48 +
    1.49 +//wstring to tptr8 related test cases
    1.50 +void test_wstringtotptr8_positive();
    1.51 +void test_wstringtotptr8_negative1();
    1.52 +void test_wstringtotptr8_negative2();
    1.53 +void test_wstringtotptrc8_positive_unicode();
    1.54 +
    1.55 +//stringtotbuf16 related cases
    1.56 +void test_stringtotbuf16_positive();
    1.57 +void test_stringtotbuf16_negative1();
    1.58 +void test_stringtotbuf16_negative2();
    1.59 +void test_stringtotbuf16_negative3();
    1.60 +
    1.61 +//stringtotptr16 related cases
    1.62 +void test_stringtotptr16_positive();
    1.63 +void test_stringtotptr16_negative1();
    1.64 +void test_stringtotptr16_negative2();
    1.65 +void test_stringtotptr16_negative3();
    1.66 +
    1.67 +//stringtorbuf8 related test cases
    1.68 +void test_stringtorbuf8_positive();
    1.69 +void test_stringtorbuf8_negative();
    1.70 +
    1.71 +//stringtotptr8 related test cases
    1.72 +void test_stringtotptr8_positive();
    1.73 +void test_stringtotptr8_negative1();
    1.74 +void test_stringtotptr8_negative2();
    1.75 +void test_stringtotptr8_negative3();
    1.76 +
    1.77 +//stringtotptrc8 related test cases
    1.78 +void test_stringtotptrc8_positive();
    1.79 +void test_stringtotptrc8_negative1();
    1.80 +
    1.81 +//stringtohbufc8 related test cases
    1.82 +void test_stringtohbufc8_positive();
    1.83 +void test_stringtohbufc8_negative1();
    1.84 +void test_stringtohbufc8_negative2();
    1.85 +void test_stringtohbufc8_negative3();
    1.86 +
    1.87 +//tbufc8 to string conversions
    1.88 +void test_tbufc8tostring_positive();
    1.89 +void test_tbufc8tostring_negative1();
    1.90 +void test_tbufc8tostring_negative2();
    1.91 +
    1.92 +//tbuf8 to string conversions
    1.93 +void test_tbuf8tostring_positive();
    1.94 +void test_tbuf8tostring_negative1();
    1.95 +void test_tbuf8tostring_positive1();
    1.96 +
    1.97 +//tptr8 to string conversions
    1.98 +void test_tptr8tostring_positive();
    1.99 +void test_tptr8tostring_positive1();
   1.100 +void test_tptr8tostring_negative1();
   1.101 +
   1.102 +//tptrc8 to string conversions
   1.103 +void test_tptrc8tostring_positive();
   1.104 +void test_tptrc8tostring_positive1();
   1.105 +void test_tptrc8tostring_negative1();
   1.106 +
   1.107 +//hbufc8 to string conversions
   1.108 +void test_hbufc8tostring_positive();
   1.109 +void test_hbufc8tostring_negative1();
   1.110 +void test_hbufc8tostring_positive1();
   1.111 +
   1.112 +//rbuf8 to string conversions
   1.113 +void test_rbuf8tostring_positive();
   1.114 +void test_rbuf8tostring_positive1();
   1.115 +void test_rbuf8tostring_negative1();
   1.116 +
   1.117 +//tlit8 to string conversions
   1.118 +void test_tlit8tostring_positive();
   1.119 +void test_tlit8tostring_positive1();
   1.120 +void test_tlit8tostring_negative1();
   1.121 +
   1.122 +//descriptor8 to string conversions
   1.123 +void test_tbuf8towchar_positive();
   1.124 +void test_tbuf8towchar_negative1();
   1.125 +
   1.126 +//string to rbuf16 coversion test cases 
   1.127 +void test_stringtorbuf16_positive();
   1.128 +void test_stringtorbuf16_negative1();
   1.129 +
   1.130 +void test_wstringtotptrc8_positive();
   1.131 +void test_wstringtotptrc8_negative1();
   1.132 +
   1.133 +
   1.134 +void test_wstringtohbufc8_positive();
   1.135 +void test_wstringtohbufc8_negative1();
   1.136 +void test_wstringtohbufc8_positive_unicode();
   1.137 +
   1.138 +//wstring to descriptor16 coversion test cases
   1.139 + 
   1.140 +void test_wstringtotbuf16_positive();
   1.141 +void test_wstringtotbuf16_negative1();
   1.142 +void test_wstringtotbuf16_negative2();
   1.143 +void test_wstringtotbuf16_boundry();
   1.144 +void test_wstringtotbuf16_boundry1();
   1.145 +void test_wstringtotbuf16_boundry2();
   1.146 +void test_wstringtorbuf16_positive();
   1.147 +void test_wstringtorbuf16_negative();
   1.148 +void test_wstringtotptr16_positive();
   1.149 +void test_wstringtotptr16_negative1();
   1.150 +void test_wstringtotptrc16_positive();
   1.151 +void test_wstringtotptrc16_negative1();
   1.152 +void test_wstringtohbufc16_positive();
   1.153 +void test_wstringtohbufc16_negative1();
   1.154 +
   1.155 +void test_wchartohbufc8_positive();
   1.156 +void test_wchartotbuf8_positive();
   1.157 +
   1.158 +void test_stringtotbuf8_positive();
   1.159 +
   1.160 +void test_stringtotbuf8_negative1();
   1.161 +void test_stringtotbuf8_negative2();
   1.162 +void test_stringtotbuf8_boundry();
   1.163 +
   1.164 +void test_stringtotbuf8_boundry1();
   1.165 +void test_stringtotbuf8_boundry2();
   1.166 +
   1.167 +//wstringtotbuf8 related test cases
   1.168 +void test_wstringtotbuf8_positive();
   1.169 +void test_wstringtotbuf8_negative1();
   1.170 +void test_wstringtotbuf8_negative2();
   1.171 +void test_wstringtotbuf8_boundry();
   1.172 +
   1.173 +//wchartotbuf8 related test cases
   1.174 +void test_wchartotbuf8_positive();
   1.175 +void test_wchartotbuf8_unicode();
   1.176 +void test_wchartotbuf8_positive1();
   1.177 +void test_wchartotbuf8_boundary1();
   1.178 +void test_wchartotbuf8_boundary2();
   1.179 +void test_wchartotbuf8_content_check();
   1.180 +void test_wchartotbuf8_negative1();
   1.181 +void test_wchartotbuf8_negative2();
   1.182 +
   1.183 +
   1.184 +void test_wchartotbuf16_positive();
   1.185 +void test_wchartotbuf16_positive1();
   1.186 +void test_wchartotbuf16_boundary1();
   1.187 +void test_wchartotbuf16_boundary2();
   1.188 +void test_wchartotbuf16_content_check();
   1.189 +void test_wchartotbuf16_negative1();
   1.190 +void test_wchartotbuf16_negative2();
   1.191 +
   1.192 +
   1.193 +void test_wchartohbufc8_positive();
   1.194 +
   1.195 +
   1.196 +void test_wcharptotptr8_positive();
   1.197 +void test_wcharptotptr8_positive1();
   1.198 +void test_wcharptotptr8_boundary1();
   1.199 +void test_wcharptotptr8_boundary2();
   1.200 +void test_wcharptotptr8_content_check();
   1.201 +void test_wcharptotptr8_negative1();
   1.202 +void test_wcharptotptr8_negative2();
   1.203 +
   1.204 +void test_wcharptotptr16_positive1();
   1.205 +void test_wcharptotptr16_positive2();
   1.206 +void test_wcharptotptr16_boundary1();
   1.207 +void test_wcharptotptr16_boundary2();
   1.208 +void test_wcharptotptr16_content_check();
   1.209 +void test_wcharptotptr16_negative1();
   1.210 +void test_wcharptotptr16_negative2();
   1.211 +
   1.212 +void test_wcharptotptrc8_positive1();
   1.213 +void test_wcharptotptrc8_positive2();
   1.214 +void test_wcharptotptrc8_boundary1();
   1.215 +void test_wcharptotptrc8_boundary2();
   1.216 +void test_wcharptotptrc8_content_check();
   1.217 +void test_wcharptotptrc8_negative1();
   1.218 +void test_wcharptotptrc8_negative2();
   1.219 +
   1.220 +void test_wcharptotptrc16_positive1();
   1.221 +void test_wcharptotptrc16_positive2();
   1.222 +void test_wcharptotptrc16_boundary1();
   1.223 +void test_wcharptotptrc16_boundary2();
   1.224 +void test_wcharptotptrc16_content_check();
   1.225 +void test_wcharptotptrc16_negative2();
   1.226 +
   1.227 +void test_wchartorbuf8_positive1();
   1.228 +void test_wchartorbuf8_positive2();
   1.229 +void test_wchartorbuf8_boundary1();
   1.230 +void test_wchartorbuf8_boundary2();
   1.231 +void test_wchartorbuf8_content_check();
   1.232 +void test_wchartorbuf8_negative1();
   1.233 +void test_wchartorbuf8_negative2();
   1.234 +
   1.235 +
   1.236 +void test_wchartorbuf16_positive1();
   1.237 +void test_wchartorbuf16_positive2();
   1.238 +void test_wchartorbuf16_boundary1();
   1.239 +void test_wchartorbuf16_boundary2();
   1.240 +void test_wchartorbuf16_content_check();
   1.241 +void test_wchartorbuf16_negative1();
   1.242 +void test_wchartorbuf16_negative2();
   1.243 +// ------------------------------------
   1.244 +
   1.245 +
   1.246 +void test_chartotbuf8_positive1();
   1.247 +void test_chartotbuf8_positive2();
   1.248 +void test_chartotbuf8_boundary1();
   1.249 +void test_chartotbuf8_boundary2();
   1.250 +void test_chartotbuf8_content_check();
   1.251 +void test_chartotbuf8_negative1();
   1.252 +void test_chartotbuf8_negative2();
   1.253 +
   1.254 +void test_chartotbuf16_positive1();
   1.255 +void test_chartotbuf16_positive2();
   1.256 +void test_chartotbuf16_boundary1();
   1.257 +void test_chartotbuf16_boundary2();
   1.258 +void test_chartotbuf16_content_check();
   1.259 +void test_chartotbuf16_negative1();
   1.260 +void test_chartotbuf16_negative2();
   1.261 +
   1.262 +
   1.263 +void test_charptotptr8_positive1();
   1.264 +void test_charptotptr8_positive2();
   1.265 +void test_charptotptr8_boundary1();
   1.266 +void test_charptotptr8_boundary2();
   1.267 +void test_charptotptr8_content_check();
   1.268 +void test_charptotptr8_negative1();
   1.269 +void test_charptotptr8_negative2();
   1.270 +
   1.271 +
   1.272 +void test_charptotptr16_positive1();
   1.273 +void test_charptotptr16_positive2();
   1.274 +void test_charptotptr16_boundary1();
   1.275 +void test_charptotptr16_boundary2();
   1.276 +void test_charptotptr16_content_check();
   1.277 +void test_charptotptr16_negative1();
   1.278 +void test_charptotptr16_negative2();
   1.279 +
   1.280 +void test_charptotptrc8_positive1();
   1.281 +void test_charptotptrc8_positive2();
   1.282 +void test_charptotptrc8_boundary1();
   1.283 +void test_charptotptrc8_boundary2();
   1.284 +void test_charptotptrc8_content_check();
   1.285 +//void test_charptotptrc8_negative1();
   1.286 +void test_charptotptrc8_negative2();
   1.287 +
   1.288 +
   1.289 +void test_charptotptrc16_positive1();
   1.290 +void test_charptotptrc16_positive2();
   1.291 +void test_charptotptrc16_boundary1();
   1.292 +void test_charptotptrc16_boundary2();
   1.293 +void test_charptotptrc16_content_check();
   1.294 +void test_charptotptrc16_negative2();
   1.295 +
   1.296 +
   1.297 +void test_chartorbuf8_positive1();
   1.298 +void test_chartorbuf8_positive2();
   1.299 +void test_chartorbuf8_boundary1();
   1.300 +void test_chartorbuf8_boundary2();
   1.301 +void test_chartorbuf8_content_check();
   1.302 +void test_chartorbuf8_negative1();
   1.303 +void test_chartorbuf8_negative2();
   1.304 +
   1.305 +
   1.306 +void test_chartorbuf16_positive1();
   1.307 +void test_chartorbuf16_positive2();
   1.308 +void test_chartorbuf16_boundary1();
   1.309 +void test_chartorbuf16_boundary2();
   1.310 +void test_chartorbuf16_content_check();
   1.311 +void test_chartorbuf16_negative1();
   1.312 +void test_chartorbuf16_negative2();
   1.313 +
   1.314 +
   1.315 +