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.
22 #include"std_log_result.h"
23 #define LOG_FILENAME_LINE __FILE__, __LINE__
32 retval = des.length();
34 buf.Copy((TUint16 *)"Hello",5);
35 buf.CleanupClosePushL();
37 retval = Rbuf16ToWstring(buf, des);
39 int rbuf_len = buf.Length();
40 int string_len = des.length();
42 if (retval ==ESuccess && rbuf_len == string_len)
44 printf("test rbuf16towstring boundary1 Passed\n");
49 printf("test rbuf16towstring boundary1 Failed\n");
52 if (retval ==ESuccess && ((rbuf_len+1)/2) == string_len)
54 printf("test rbuf16towstring boundary1 Passed\n");
59 printf("test rbuf16towstring boundary1 Failed\n");
62 CleanupStack::PopAndDestroy(1);
66 testResultXml("test_rbuf16towstring_boundary1");