sl@0: /* sl@0: * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: #include "libutils.h" sl@0: sl@0: //chartotbuf8 related test cases sl@0: void test_chartotbuf8_positive(); sl@0: void test_chartotbuf8_negative1(); sl@0: void test_chartotbuf8_negative2(); sl@0: sl@0: void test_chartotbuf16_positive(); sl@0: sl@0: //stringtotbuf8 related test cases sl@0: void test_stringtotbuf8_positive(); sl@0: void test_stringtotbuf8_negative1(); sl@0: void test_stringtotbuf8_negative2(); sl@0: void test_stringtotbuf8_boundry(); sl@0: sl@0: void test_stringtotbuf8_boundry1(); sl@0: void test_stringtotbuf8_boundry2(); sl@0: sl@0: //wstringtotbuf8 related test cases sl@0: void test_wstringtotbuf8_positive(); sl@0: void test_wstringtotbuf8_negative1(); sl@0: void test_wstringtotbuf8_negative2(); sl@0: void test_wstringtotbuf8_boundry(); sl@0: sl@0: //wchartotbuf8 related test cases sl@0: //void test_wchartotbuf8_positive(); sl@0: void test_wchartotbuf8_negative1(); sl@0: void test_wchartotbuf8_negative2(); sl@0: sl@0: //wstring to tptr8 related test cases sl@0: void test_wstringtotptr8_positive(); sl@0: void test_wstringtotptr8_negative1(); sl@0: void test_wstringtotptr8_negative2(); sl@0: void test_wstringtotptrc8_positive_unicode(); sl@0: sl@0: //stringtotbuf16 related cases sl@0: void test_stringtotbuf16_positive(); sl@0: void test_stringtotbuf16_negative1(); sl@0: void test_stringtotbuf16_negative2(); sl@0: void test_stringtotbuf16_negative3(); sl@0: sl@0: //stringtotptr16 related cases sl@0: void test_stringtotptr16_positive(); sl@0: void test_stringtotptr16_negative1(); sl@0: void test_stringtotptr16_negative2(); sl@0: void test_stringtotptr16_negative3(); sl@0: sl@0: //stringtorbuf8 related test cases sl@0: void test_stringtorbuf8_positive(); sl@0: void test_stringtorbuf8_negative(); sl@0: sl@0: //stringtotptr8 related test cases sl@0: void test_stringtotptr8_positive(); sl@0: void test_stringtotptr8_negative1(); sl@0: void test_stringtotptr8_negative2(); sl@0: void test_stringtotptr8_negative3(); sl@0: sl@0: //stringtotptrc8 related test cases sl@0: void test_stringtotptrc8_positive(); sl@0: void test_stringtotptrc8_negative1(); sl@0: sl@0: //stringtohbufc8 related test cases sl@0: void test_stringtohbufc8_positive(); sl@0: void test_stringtohbufc8_negative1(); sl@0: void test_stringtohbufc8_negative2(); sl@0: void test_stringtohbufc8_negative3(); sl@0: sl@0: //tbufc8 to string conversions sl@0: void test_tbufc8tostring_positive(); sl@0: void test_tbufc8tostring_negative1(); sl@0: void test_tbufc8tostring_negative2(); sl@0: sl@0: //tbuf8 to string conversions sl@0: void test_tbuf8tostring_positive(); sl@0: void test_tbuf8tostring_negative1(); sl@0: void test_tbuf8tostring_positive1(); sl@0: sl@0: //tptr8 to string conversions sl@0: void test_tptr8tostring_positive(); sl@0: void test_tptr8tostring_positive1(); sl@0: void test_tptr8tostring_negative1(); sl@0: sl@0: //tptrc8 to string conversions sl@0: void test_tptrc8tostring_positive(); sl@0: void test_tptrc8tostring_positive1(); sl@0: void test_tptrc8tostring_negative1(); sl@0: sl@0: //hbufc8 to string conversions sl@0: void test_hbufc8tostring_positive(); sl@0: void test_hbufc8tostring_negative1(); sl@0: void test_hbufc8tostring_positive1(); sl@0: sl@0: //rbuf8 to string conversions sl@0: void test_rbuf8tostring_positive(); sl@0: void test_rbuf8tostring_positive1(); sl@0: void test_rbuf8tostring_negative1(); sl@0: sl@0: //tlit8 to string conversions sl@0: void test_tlit8tostring_positive(); sl@0: void test_tlit8tostring_positive1(); sl@0: void test_tlit8tostring_negative1(); sl@0: sl@0: //descriptor8 to string conversions sl@0: void test_tbuf8towchar_positive(); sl@0: void test_tbuf8towchar_negative1(); sl@0: sl@0: //string to rbuf16 coversion test cases sl@0: void test_stringtorbuf16_positive(); sl@0: void test_stringtorbuf16_negative1(); sl@0: sl@0: void test_wstringtotptrc8_positive(); sl@0: void test_wstringtotptrc8_negative1(); sl@0: sl@0: sl@0: void test_wstringtohbufc8_positive(); sl@0: void test_wstringtohbufc8_negative1(); sl@0: void test_wstringtohbufc8_positive_unicode(); sl@0: sl@0: //wstring to descriptor16 coversion test cases sl@0: sl@0: void test_wstringtotbuf16_positive(); sl@0: void test_wstringtotbuf16_negative1(); sl@0: void test_wstringtotbuf16_negative2(); sl@0: void test_wstringtotbuf16_boundry(); sl@0: void test_wstringtotbuf16_boundry1(); sl@0: void test_wstringtotbuf16_boundry2(); sl@0: void test_wstringtorbuf16_positive(); sl@0: void test_wstringtorbuf16_negative(); sl@0: void test_wstringtotptr16_positive(); sl@0: void test_wstringtotptr16_negative1(); sl@0: void test_wstringtotptrc16_positive(); sl@0: void test_wstringtotptrc16_negative1(); sl@0: void test_wstringtohbufc16_positive(); sl@0: void test_wstringtohbufc16_negative1(); sl@0: sl@0: void test_wchartohbufc8_positive(); sl@0: void test_wchartotbuf8_positive(); sl@0: sl@0: void test_stringtotbuf8_positive(); sl@0: sl@0: void test_stringtotbuf8_negative1(); sl@0: void test_stringtotbuf8_negative2(); sl@0: void test_stringtotbuf8_boundry(); sl@0: sl@0: void test_stringtotbuf8_boundry1(); sl@0: void test_stringtotbuf8_boundry2(); sl@0: sl@0: //wstringtotbuf8 related test cases sl@0: void test_wstringtotbuf8_positive(); sl@0: void test_wstringtotbuf8_negative1(); sl@0: void test_wstringtotbuf8_negative2(); sl@0: void test_wstringtotbuf8_boundry(); sl@0: sl@0: //wchartotbuf8 related test cases sl@0: void test_wchartotbuf8_positive(); sl@0: void test_wchartotbuf8_unicode(); sl@0: void test_wchartotbuf8_positive1(); sl@0: void test_wchartotbuf8_boundary1(); sl@0: void test_wchartotbuf8_boundary2(); sl@0: void test_wchartotbuf8_content_check(); sl@0: void test_wchartotbuf8_negative1(); sl@0: void test_wchartotbuf8_negative2(); sl@0: sl@0: sl@0: void test_wchartotbuf16_positive(); sl@0: void test_wchartotbuf16_positive1(); sl@0: void test_wchartotbuf16_boundary1(); sl@0: void test_wchartotbuf16_boundary2(); sl@0: void test_wchartotbuf16_content_check(); sl@0: void test_wchartotbuf16_negative1(); sl@0: void test_wchartotbuf16_negative2(); sl@0: sl@0: sl@0: void test_wchartohbufc8_positive(); sl@0: sl@0: sl@0: void test_wcharptotptr8_positive(); sl@0: void test_wcharptotptr8_positive1(); sl@0: void test_wcharptotptr8_boundary1(); sl@0: void test_wcharptotptr8_boundary2(); sl@0: void test_wcharptotptr8_content_check(); sl@0: void test_wcharptotptr8_negative1(); sl@0: void test_wcharptotptr8_negative2(); sl@0: sl@0: void test_wcharptotptr16_positive1(); sl@0: void test_wcharptotptr16_positive2(); sl@0: void test_wcharptotptr16_boundary1(); sl@0: void test_wcharptotptr16_boundary2(); sl@0: void test_wcharptotptr16_content_check(); sl@0: void test_wcharptotptr16_negative1(); sl@0: void test_wcharptotptr16_negative2(); sl@0: sl@0: void test_wcharptotptrc8_positive1(); sl@0: void test_wcharptotptrc8_positive2(); sl@0: void test_wcharptotptrc8_boundary1(); sl@0: void test_wcharptotptrc8_boundary2(); sl@0: void test_wcharptotptrc8_content_check(); sl@0: void test_wcharptotptrc8_negative1(); sl@0: void test_wcharptotptrc8_negative2(); sl@0: sl@0: void test_wcharptotptrc16_positive1(); sl@0: void test_wcharptotptrc16_positive2(); sl@0: void test_wcharptotptrc16_boundary1(); sl@0: void test_wcharptotptrc16_boundary2(); sl@0: void test_wcharptotptrc16_content_check(); sl@0: void test_wcharptotptrc16_negative2(); sl@0: sl@0: void test_wchartorbuf8_positive1(); sl@0: void test_wchartorbuf8_positive2(); sl@0: void test_wchartorbuf8_boundary1(); sl@0: void test_wchartorbuf8_boundary2(); sl@0: void test_wchartorbuf8_content_check(); sl@0: void test_wchartorbuf8_negative1(); sl@0: void test_wchartorbuf8_negative2(); sl@0: sl@0: sl@0: void test_wchartorbuf16_positive1(); sl@0: void test_wchartorbuf16_positive2(); sl@0: void test_wchartorbuf16_boundary1(); sl@0: void test_wchartorbuf16_boundary2(); sl@0: void test_wchartorbuf16_content_check(); sl@0: void test_wchartorbuf16_negative1(); sl@0: void test_wchartorbuf16_negative2(); sl@0: // ------------------------------------ sl@0: sl@0: sl@0: void test_chartotbuf8_positive1(); sl@0: void test_chartotbuf8_positive2(); sl@0: void test_chartotbuf8_boundary1(); sl@0: void test_chartotbuf8_boundary2(); sl@0: void test_chartotbuf8_content_check(); sl@0: void test_chartotbuf8_negative1(); sl@0: void test_chartotbuf8_negative2(); sl@0: sl@0: void test_chartotbuf16_positive1(); sl@0: void test_chartotbuf16_positive2(); sl@0: void test_chartotbuf16_boundary1(); sl@0: void test_chartotbuf16_boundary2(); sl@0: void test_chartotbuf16_content_check(); sl@0: void test_chartotbuf16_negative1(); sl@0: void test_chartotbuf16_negative2(); sl@0: sl@0: sl@0: void test_charptotptr8_positive1(); sl@0: void test_charptotptr8_positive2(); sl@0: void test_charptotptr8_boundary1(); sl@0: void test_charptotptr8_boundary2(); sl@0: void test_charptotptr8_content_check(); sl@0: void test_charptotptr8_negative1(); sl@0: void test_charptotptr8_negative2(); sl@0: sl@0: sl@0: void test_charptotptr16_positive1(); sl@0: void test_charptotptr16_positive2(); sl@0: void test_charptotptr16_boundary1(); sl@0: void test_charptotptr16_boundary2(); sl@0: void test_charptotptr16_content_check(); sl@0: void test_charptotptr16_negative1(); sl@0: void test_charptotptr16_negative2(); sl@0: sl@0: void test_charptotptrc8_positive1(); sl@0: void test_charptotptrc8_positive2(); sl@0: void test_charptotptrc8_boundary1(); sl@0: void test_charptotptrc8_boundary2(); sl@0: void test_charptotptrc8_content_check(); sl@0: //void test_charptotptrc8_negative1(); sl@0: void test_charptotptrc8_negative2(); sl@0: sl@0: sl@0: void test_charptotptrc16_positive1(); sl@0: void test_charptotptrc16_positive2(); sl@0: void test_charptotptrc16_boundary1(); sl@0: void test_charptotptrc16_boundary2(); sl@0: void test_charptotptrc16_content_check(); sl@0: void test_charptotptrc16_negative2(); sl@0: sl@0: sl@0: void test_chartorbuf8_positive1(); sl@0: void test_chartorbuf8_positive2(); sl@0: void test_chartorbuf8_boundary1(); sl@0: void test_chartorbuf8_boundary2(); sl@0: void test_chartorbuf8_content_check(); sl@0: void test_chartorbuf8_negative1(); sl@0: void test_chartorbuf8_negative2(); sl@0: sl@0: sl@0: void test_chartorbuf16_positive1(); sl@0: void test_chartorbuf16_positive2(); sl@0: void test_chartorbuf16_boundary1(); sl@0: void test_chartorbuf16_boundary2(); sl@0: void test_chartorbuf16_content_check(); sl@0: void test_chartorbuf16_negative1(); sl@0: void test_chartorbuf16_negative2(); sl@0: sl@0: sl@0: