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 TBuf8<20>src1((unsigned char*)"testing");
28 char * des1= new char [20];
29 int size1=20,ret,retval1,retval2,retval3,retval4,retval5,retval6;
30 retval1= Tbuf8ToChar(src1,des1,size1);
31 printf("retval1 value is %d\n", retval1);
34 TPtr8 des2((unsigned char*)" ",7);
35 retval2=CharpToTptr8(src2,des2);
36 printf("retval2 value is %d\n", retval2);
40 retval3= Tptrc8ToString(src3,des3);
41 printf("retval3 value is %d\n", retval3);
44 HBufC16 *des4= HBufC16::NewMaxL(20);
45 retval4= StringToHbufc16(src4,des4);
46 printf("retval4 value is %d\n", retval4);
51 retval5= Hbufc16ToString(src5,des5,size2);
52 printf("retval5 value is %d\n", retval5);
56 retval6= StringToTbuf8(src6,des6);
57 printf("retval6 value is %d\n", retval6);
59 ret= strncmp((char *)src1.Ptr(),(char *)des6.Ptr(),7);
62 printf("integration_test7 PASSED\n");
66 printf("integration_test7 FAILED\n");
74 testResultXml("integration_test_scenario7");