utilitylibraries/libutils/tsrc/src/integration_test_scenario24.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
equal deleted inserted replaced
56:acd3cd4aaceb 57:2efc27d87e1c
    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     __UHEAP_MARK;
    25     __UHEAP_MARK;
    26     {
    26     {
    27     int retval[10];
    27     int retval[10];
    28     RBuf8 rbuf;
    28     RBuf8 rbuf;
    53     retval[4] = CharpToTptr8(myChar,myTptr);
    53     retval[4] = CharpToTptr8(myChar,myTptr);
    54 
    54 
    55     wchar_t* Wstr_fin = new wchar_t[36];
    55     wchar_t* Wstr_fin = new wchar_t[36];
    56     int size_char=36;
    56     int size_char=36;
    57     retval[5] = Tptr8ToWcharp(myTptr,Wstr_fin,size_char);
    57     retval[5] = Tptr8ToWcharp(myTptr,Wstr_fin,size_char);
    58     
       
    59     for(int i=1; i<=5; i++)
       
    60         {
       
    61         if (retval[i]!= 0)
       
    62                 printf("Conversion failed for retval\n",retval[i]);
       
    63         }
       
    64 
    58 
    65     if(!wcscmp(myWchar,Wstr_fin))
    59     if(!wcscmp(myWchar,Wstr_fin))
    66     {
    60     {
    67     printf("\n\nintegration_test_scenario24 case passed");
    61     printf("\n\nintegration_test_scenario24 case passed");
    68     }
    62     }
    77     delete[] myChar;
    71     delete[] myChar;
    78     delete[] Wstr_fin;	
    72     delete[] Wstr_fin;	
    79     }
    73     }
    80     __UHEAP_MARKEND;
    74     __UHEAP_MARKEND;
    81     testResultXml("integration_test_scenario24");
    75     testResultXml("integration_test_scenario24");
    82     return 0;
       
    83 }
    76 }