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 wstring des((const wchar_t*)"test"); |
25 wstring des((const wchar_t*)"test"); |
26 __UHEAP_MARK; |
26 __UHEAP_MARK; |
27 TBufC8<30> buf((unsigned char*)"My wide string"); |
27 TBufC8<30> buf((unsigned char*)"My wide string"); |
28 TPtrC8 src(buf); |
28 TPtrC8 src(buf); |
29 int retval=ESuccess; |
29 int retval=ESuccess; |
30 int size=2; |
30 //int size=2; |
31 retval= Tptrc8ToWstring(src,des); |
31 retval= Tptrc8ToWstring(src,des); |
32 |
32 |
33 if(retval == ESuccess) |
33 if(retval == ESuccess) |
34 { |
34 { |
35 printf("Test tptrc8towstring negative1 passed\n"); |
35 printf("Test tptrc8towstring negative1 passed\n"); |
39 assert_failed = true; |
39 assert_failed = true; |
40 printf("Test tptrc8towstring negative1 FAILURE\n"); |
40 printf("Test tptrc8towstring negative1 FAILURE\n"); |
41 } |
41 } |
42 __UHEAP_MARKEND; |
42 __UHEAP_MARKEND; |
43 testResultXml("test_tptrc8towstring_negative1"); |
43 testResultXml("test_tptrc8towstring_negative1"); |
|
44 |
|
45 return 0; |
44 } |
46 } |