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 wstring des((const wchar_t*)"") ; |
25 wstring des((const wchar_t*)"") ; |
26 __UHEAP_MARK; |
26 __UHEAP_MARK; |
27 TBuf16<30> buf _L(""); |
27 TBuf16<30> buf _L(""); |
28 TPtrC16 src(buf); |
28 TPtrC16 src(buf); |
29 int retval=ESuccess; |
29 int retval=ESuccess; |
30 //int size=2; |
30 int size=2; |
31 retval= Tptrc16ToWstring(src,des); |
31 retval= Tptrc16ToWstring(src,des); |
32 |
32 |
33 if(retval ==EDescriptorNoData) |
33 if(retval ==EDescriptorNoData) |
34 { |
34 { |
35 printf("Test tptrc16towstring positive passed\n"); |
35 printf("Test tptrc16towstring positive passed\n"); |
39 assert_failed = true; |
39 assert_failed = true; |
40 printf("Test tptrc16towstring positive FAILURE\n"); |
40 printf("Test tptrc16towstring positive FAILURE\n"); |
41 } |
41 } |
42 __UHEAP_MARKEND; |
42 __UHEAP_MARKEND; |
43 testResultXml("test_tptrc16towstring_positive2"); |
43 testResultXml("test_tptrc16towstring_positive2"); |
44 |
|
45 return 0; |
|
46 } |
44 } |