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=30; |
30 //int size=30; |
31 retval= Tptrc8ToWstring(src,des); |
31 retval= Tptrc8ToWstring(src,des); |
32 |
32 |
33 int tptrc_len = src.Length(); |
33 int tptrc_len = src.Length(); |
34 int string_len = des.length(); |
34 int string_len = des.length(); |
35 if(retval ==ESuccess && tptrc_len == string_len ) |
35 if(retval ==ESuccess && tptrc_len == string_len ) |
41 assert_failed = true; |
41 assert_failed = true; |
42 printf("Test tptrc8towstring boundary1 FAILURE\n"); |
42 printf("Test tptrc8towstring boundary1 FAILURE\n"); |
43 } |
43 } |
44 __UHEAP_MARKEND; |
44 __UHEAP_MARKEND; |
45 testResultXml("test_tptrc8towstring_boundary1"); |
45 testResultXml("test_tptrc8towstring_boundary1"); |
|
46 |
|
47 return 0; |
46 } |
48 } |