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 _LIT(KTxt, "HelloHello"); |
28 _LIT(KTxt, "HelloHello"); |
46 int size_char=36; |
46 int size_char=36; |
47 retval[5] = Tptr8ToWcharp(myTptr,Wstr_fin,size_char); |
47 retval[5] = Tptr8ToWcharp(myTptr,Wstr_fin,size_char); |
48 |
48 |
49 HBufC16* finBuffer = HBufC16::NewMaxL(20); |
49 HBufC16* finBuffer = HBufC16::NewMaxL(20); |
50 retval[6] = WcharToHbufc16(Wstr_fin,finBuffer); |
50 retval[6] = WcharToHbufc16(Wstr_fin,finBuffer); |
|
51 |
|
52 for(int i=1; i<=6; i++) |
|
53 { |
|
54 if (retval[i]!= 0) |
|
55 printf("Conversion failed for retval\n",retval[i]); |
|
56 } |
51 |
57 |
52 if(!buffer->Compare(finBuffer->Des())) |
58 if(!buffer->Compare(finBuffer->Des())) |
53 { |
59 { |
54 printf("\n\nintegration_test_scenario25 case passed"); |
60 printf("\n\nintegration_test_scenario25 case passed"); |
55 } |
61 } |
63 delete[] Wstr_fin; |
69 delete[] Wstr_fin; |
64 delete finBuffer; |
70 delete finBuffer; |
65 } |
71 } |
66 __UHEAP_MARKEND; |
72 __UHEAP_MARKEND; |
67 testResultXml("integration_test_scenario25"); |
73 testResultXml("integration_test_scenario25"); |
|
74 return 0; |
68 } |
75 } |