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__
28 _LIT(KTxt, "HelloHello");
29 HBufC* buffer = HBufC::NewL(10);
32 retval[0] = Hbufc16ToWstring(buffer,myWstring);
35 retval[2] = WstringToTptrc16(myWstring,myTptr16);
37 char* myChar = new char[40];
39 retval[3] = Tptrc16ToCharp(myTptr16,myChar,size);
42 TPtr8 myTptr = buf8.Des();
43 retval[4] = CharpToTptr8(myChar,myTptr);
45 wchar_t* Wstr_fin = new wchar_t[36];
47 retval[5] = Tptr8ToWcharp(myTptr,Wstr_fin,size_char);
49 HBufC16* finBuffer = HBufC16::NewMaxL(20);
50 retval[6] = WcharToHbufc16(Wstr_fin,finBuffer);
52 for(int i=1; i<=6; i++)
55 printf("Conversion failed for retval\n",retval[i]);
58 if(!buffer->Compare(finBuffer->Des()))
60 printf("\n\nintegration_test_scenario25 case passed");
64 printf("\n\nintegration_test_scenario25 case failed");
73 testResultXml("integration_test_scenario25");