First public contribution.
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
21 #include"std_log_result.h"
22 #define LOG_FILENAME_LINE __FILE__, __LINE__
27 _LIT8(src1,"integration_test9");
28 char *des1= new char[20];
29 int size1=20,ret,retval1,retval2,retval3,retval4,retval5,size2=40;
30 retval1= Tlitc8ToChar(src1,des1,size1);
31 printf("retval1 value is %d\n", retval1);
36 retval2= CharToRbuf8(src2,des2);
37 printf("retval2 value is %d\n", retval2);
42 retval3= Rbuf8ToString(src3,des3);
43 printf("retval3 value is %d\n", retval3);
46 TPtrC16 des4((unsigned short*)" ",50);
47 wchar_t *aPtr= new wchar_t[20];
48 retval4= StringToTptrc16(src4,aPtr,des4);
49 printf("retval4 value is %d\n", retval4);
52 char *des5= new char[30];
53 retval5= Tptrc16ToCharp(src5,des5,size2);
54 printf("retval5 value is %d\n", retval5);
56 ret= strncmp("integration_test9",(char*)des5,17);
59 printf("integration_test9 PASSED\n");
63 printf("integration_test9 FAILED\n");
73 testResultXml("integration_test_scenario9");