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 TBufC<30> buf; |
28 TBufC<30> buf; |
45 retval[4] = WstringToTptrc8(myFinWstring,temp,myTptr8); |
45 retval[4] = WstringToTptrc8(myFinWstring,temp,myTptr8); |
46 |
46 |
47 wchar_t* myFinWchar = new wchar_t[21]; |
47 wchar_t* myFinWchar = new wchar_t[21]; |
48 int size = 20; |
48 int size = 20; |
49 retval[5] = Tptrc8ToWcharp(myTptr8,myFinWchar,size); |
49 retval[5] = Tptrc8ToWcharp(myTptr8,myFinWchar,size); |
|
50 |
|
51 for(int i=1; i<=5; i++) |
|
52 { |
|
53 if (retval[i]!= 0) |
|
54 printf("Conversion failed for retval\n",retval[i]); |
|
55 } |
50 |
56 |
51 if(!wcscmp(myWchar,myFinWchar)) |
57 if(!wcscmp(myWchar,myFinWchar)) |
52 { |
58 { |
53 printf("\n\nintegration_test_scenario22 case passed"); |
59 printf("\n\nintegration_test_scenario22 case passed"); |
54 } |
60 } |
61 delete hbufc; |
67 delete hbufc; |
62 delete[] myFinWchar; |
68 delete[] myFinWchar; |
63 } |
69 } |
64 __UHEAP_MARKEND; |
70 __UHEAP_MARKEND; |
65 testResultXml("integration_test_scenario22"); |
71 testResultXml("integration_test_scenario22"); |
|
72 return 0; |
66 } |
73 } |