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 wchar_t* mycharstring = L"HelloHello"; |
28 wchar_t* mycharstring = L"HelloHello"; |
36 retval[3]= WstringToTbuf16(str,tbuf); |
36 retval[3]= WstringToTbuf16(str,tbuf); |
37 |
37 |
38 wchar_t* myfinalstring= new wchar_t[15]; |
38 wchar_t* myfinalstring= new wchar_t[15]; |
39 int size=15; |
39 int size=15; |
40 retval[4]= Tbuf16ToWchar(tbuf,myfinalstring,size); |
40 retval[4]= Tbuf16ToWchar(tbuf,myfinalstring,size); |
|
41 |
|
42 for(int i=1; i<=4; i++) |
|
43 { |
|
44 if (retval[i]!= 0) |
|
45 printf("Conversion failed for retval\n",(retval[i])); |
|
46 } |
41 |
47 |
42 if(!wcscmp(mycharstring,myfinalstring)) |
48 if(!wcscmp(mycharstring,myfinalstring)) |
43 { |
49 { |
44 printf("\nintegration_test_scenario17 case passed"); |
50 printf("\nintegration_test_scenario17 case passed"); |
45 } |
51 } |
51 buf.Close(); |
57 buf.Close(); |
52 delete [] myfinalstring; |
58 delete [] myfinalstring; |
53 } |
59 } |
54 __UHEAP_MARKEND; |
60 __UHEAP_MARKEND; |
55 testResultXml("integration_test_scenario17"); |
61 testResultXml("integration_test_scenario17"); |
|
62 return 0; |
56 } |
63 } |