utilitylibraries/libutils/tsrc/src/test_tptrc8towstring_positive2.cpp
changeset 22 ddc455616bd6
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
equal deleted inserted replaced
18:47c74d1534e1 22:ddc455616bd6
    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 ;
    25     wstring des ;
    26     __UHEAP_MARK;
    26     __UHEAP_MARK;
    27     TBufC8<30> buf((unsigned char*)"");
    27     TBufC8<30> buf((unsigned char*)"");
    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 ==EDescriptorNoData)
    33     if(retval ==EDescriptorNoData)
    34     {
    34     {
    35     printf("Test tptrc8towstring positive passed\n");
    35     printf("Test tptrc8towstring positive passed\n");
    39     assert_failed = true;
    39     assert_failed = true;
    40     printf("Test tptrc8towstring positive FAILURE\n");
    40     printf("Test tptrc8towstring positive FAILURE\n");
    41     }
    41     }
    42     __UHEAP_MARKEND;
    42     __UHEAP_MARKEND;
    43     testResultXml("test_tptrc8towstring_positive2");
    43     testResultXml("test_tptrc8towstring_positive2");
       
    44 	
       
    45 	return 0;
    44 }
    46 }