equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <stdio.h> |
|
19 #include<e32std.h> |
|
20 #include "libutils.h" |
|
21 #include"std_log_result.h" |
|
22 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
|
23 void main() |
|
24 { |
|
25 __UHEAP_MARK; |
|
26 { |
|
27 int retval[10]; |
|
28 wchar_t* mycharstring = L"hellohello"; |
|
29 RBuf16 buf; |
|
30 retval[0]= WcharToRbuf16(mycharstring,buf); |
|
31 |
|
32 wstring str; |
|
33 retval[1]= Rbuf16ToWstring(buf,str); |
|
34 |
|
35 TBuf16 <15> tbuf; |
|
36 retval[2]= WstringToTbuf16(str,tbuf); |
|
37 |
|
38 wchar_t* myfinalstring= new wchar_t[15]; |
|
39 int size=15; |
|
40 retval[3]= Tbuf16ToWchar(tbuf,myfinalstring,size); |
|
41 |
|
42 if(!wcscmp(mycharstring,myfinalstring)) |
|
43 { |
|
44 printf("\nintegration_test_scenario16 case passed"); |
|
45 } |
|
46 else |
|
47 { |
|
48 printf("\nintegration_test_scenario16 case failed"); |
|
49 assert_failed = true; |
|
50 } |
|
51 buf.Close(); |
|
52 delete[] myfinalstring; |
|
53 } |
|
54 __UHEAP_MARKEND; |
|
55 testResultXml("integration_test_scenario16"); |
|
56 } |