equal
deleted
inserted
replaced
18 #include <stdio.h> |
18 #include <stdio.h> |
19 #include<e32std.h> |
19 #include<e32std.h> |
20 #include "libutils.h" |
20 #include "libutils.h" |
21 #include"std_log_result.h" |
21 #include"std_log_result.h" |
22 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
22 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
23 void main() |
23 int main() |
24 { |
24 { |
25 __UHEAP_MARK; |
25 __UHEAP_MARK; |
26 { |
26 { |
27 int retval[10]; |
27 int retval[10]; |
28 wstring mystring(L"hellohello"); |
28 wstring mystring(L"hellohello"); |
37 HBufC16 *hbufc = HBufC16::NewMaxL(30); |
37 HBufC16 *hbufc = HBufC16::NewMaxL(30); |
38 retval[3] = WcharToHbufc16(myWchar,hbufc); |
38 retval[3] = WcharToHbufc16(myWchar,hbufc); |
39 |
39 |
40 wstring myFinalWstr(L"kjhskjfhsakhssjhfdkjshfdks") ; |
40 wstring myFinalWstr(L"kjhskjfhsakhssjhfdkjshfdks") ; |
41 retval[4] = Hbufc16ToWstring(hbufc,myFinalWstr); |
41 retval[4] = Hbufc16ToWstring(hbufc,myFinalWstr); |
|
42 |
|
43 for(int i=1; i<=4; i++) |
|
44 { |
|
45 if (retval[i]!= 0) |
|
46 printf("Conversion failed for retval\n",retval[i]); |
|
47 } |
42 |
48 |
43 if(!wcscmp((wchar_t *)mystring.c_str(),(wchar_t *)myFinalWstr.c_str())) |
49 if(!wcscmp((wchar_t *)mystring.c_str(),(wchar_t *)myFinalWstr.c_str())) |
44 { |
50 { |
45 printf("\nintegration_test_scenario21 case passed"); |
51 printf("\nintegration_test_scenario21 case passed"); |
46 } |
52 } |
52 delete[] myWchar; |
58 delete[] myWchar; |
53 delete hbufc; |
59 delete hbufc; |
54 } |
60 } |
55 __UHEAP_MARKEND; |
61 __UHEAP_MARKEND; |
56 testResultXml("integration_test_scenario21"); |
62 testResultXml("integration_test_scenario21"); |
|
63 return 0; |
57 } |
64 } |