utilitylibraries/libutils/tsrc/src/integration_test_scenario26.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     __UHEAP_MARK;
    25     __UHEAP_MARK;
    26     {
    26     {
    27     int retval[10];
    27     int retval[10];
    28     _LIT8(KTxt, "HelloHello");
    28     _LIT8(KTxt, "HelloHello");
    49 
    49 
    50     _LIT8(text_fin, "fgdsgfgdsg");
    50     _LIT8(text_fin, "fgdsgfgdsg");
    51     HBufC8* finBuffer = HBufC8::NewL(10);
    51     HBufC8* finBuffer = HBufC8::NewL(10);
    52     *finBuffer = text_fin;
    52     *finBuffer = text_fin;
    53     retval[6] = WcharToHbufc8(Wstr_fin,finBuffer);
    53     retval[6] = WcharToHbufc8(Wstr_fin,finBuffer);
       
    54     
       
    55     for(int i=1; i<=6; i++)
       
    56         {
       
    57         if (retval[i]!= 0)
       
    58                 printf("Conversion failed for retval\n",retval[i]);
       
    59         }
    54 
    60 
    55     if(!buffer->Compare(finBuffer->Des()))
    61     if(!buffer->Compare(finBuffer->Des()))
    56     {
    62     {
    57     printf("\n\nintegration_test_scenario26 case passed");
    63     printf("\n\nintegration_test_scenario26 case passed");
    58     }
    64     }
    67     delete[] Wstr_fin;
    73     delete[] Wstr_fin;
    68     delete 	finBuffer;
    74     delete 	finBuffer;
    69     }
    75     }
    70     __UHEAP_MARKEND;
    76     __UHEAP_MARKEND;
    71     testResultXml("integration_test_scenario26");
    77     testResultXml("integration_test_scenario26");
       
    78     return 0;
    72 }
    79 }