utilitylibraries/libutils/tsrc/src/test_tptrc16towstring_positive1.cpp
changeset 22 ddc455616bd6
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
equal deleted inserted replaced
18:47c74d1534e1 22:ddc455616bd6
    17 #include <stdio.h>
    17 #include <stdio.h>
    18 #include<e32std.h>
    18 #include<e32std.h>
    19 #include "libutils.h"
    19 #include "libutils.h"
    20 #include"std_log_result.h"
    20 #include"std_log_result.h"
    21 #define LOG_FILENAME_LINE __FILE__, __LINE__
    21 #define LOG_FILENAME_LINE __FILE__, __LINE__
    22 void main()
    22 int main()
    23 {
    23 {
    24     __UHEAP_MARK;
    24     __UHEAP_MARK;
    25     {
    25     {
    26     wstring des((const wchar_t*)"testing");
    26     wstring des((const wchar_t*)"testing");
    27     TBufC16<30> buf _L("My wide string");
    27     TBufC16<30> buf _L("My wide string");
    28     TPtrC16 src(buf);
    28     TPtrC16 src(buf);
    29     int retval=ESuccess;
    29     int retval=ESuccess;
    30     int size=30;
    30     //int size=30;
    31 //    int i=0;
    31 //    int i=0;
    32 //    while (i<=1000)
    32 //    while (i<=1000)
    33 //    {
    33 //    {
    34     retval= Tptrc16ToWstring(src,des);
    34     retval= Tptrc16ToWstring(src,des);
    35 //    i++;
    35 //    i++;
    46     printf("Test tptrc16towstring positive FAILURE\n");
    46     printf("Test tptrc16towstring positive FAILURE\n");
    47     }
    47     }
    48     }
    48     }
    49     __UHEAP_MARKEND;
    49     __UHEAP_MARKEND;
    50     testResultXml("test_tptrc16towstring_positive1");
    50     testResultXml("test_tptrc16towstring_positive1");
       
    51 	
       
    52 	return 0;
    51 }
    53 }