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 int main() |
23 void main() |
24 { |
24 { |
25 __UHEAP_MARK; |
25 __UHEAP_MARK; |
26 { |
26 { |
27 int retval[10]; |
27 int retval[10]; |
28 _LIT8(KTxt, "HelloHello"); |
28 _LIT8(KTxt, "HelloHello"); |
49 |
49 |
50 _LIT8(text_fin, "fgdsgfgdsg"); |
50 _LIT8(text_fin, "fgdsgfgdsg"); |
51 HBufC8* finBuffer = HBufC8::NewL(10); |
51 HBufC8* finBuffer = HBufC8::NewL(10); |
52 *finBuffer = text_fin; |
52 *finBuffer = text_fin; |
53 retval[6] = WcharToHbufc8(Wstr_fin,finBuffer); |
53 retval[6] = WcharToHbufc8(Wstr_fin,finBuffer); |
54 |
|
55 for(int i=1; i<=6; i++) |
|
56 { |
|
57 if (retval[i]!= 0) |
|
58 printf("Conversion failed for retval\n",retval[i]); |
|
59 } |
|
60 |
54 |
61 if(!buffer->Compare(finBuffer->Des())) |
55 if(!buffer->Compare(finBuffer->Des())) |
62 { |
56 { |
63 printf("\n\nintegration_test_scenario26 case passed"); |
57 printf("\n\nintegration_test_scenario26 case passed"); |
64 } |
58 } |
73 delete[] Wstr_fin; |
67 delete[] Wstr_fin; |
74 delete finBuffer; |
68 delete finBuffer; |
75 } |
69 } |
76 __UHEAP_MARKEND; |
70 __UHEAP_MARKEND; |
77 testResultXml("integration_test_scenario26"); |
71 testResultXml("integration_test_scenario26"); |
78 return 0; |
|
79 } |
72 } |