utilitylibraries/libutils/tsrc/src/test_chartorbuf8_positive2.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
equal deleted inserted replaced
56:acd3cd4aaceb 57:2efc27d87e1c
    19 #include <e32base.h>
    19 #include <e32base.h>
    20 #include<e32std.h>
    20 #include<e32std.h>
    21 #include "libutils.h"
    21 #include "libutils.h"
    22 #include"std_log_result.h"
    22 #include"std_log_result.h"
    23 #define LOG_FILENAME_LINE __FILE__, __LINE__
    23 #define LOG_FILENAME_LINE __FILE__, __LINE__
    24 int main()
    24 void main()
    25 {
    25 {
    26     __UHEAP_MARK;	
    26     __UHEAP_MARK;	
    27     int retval =ESuccess;
    27     int retval =ESuccess;
    28     char* mycharstring = ""; 
    28     char* mycharstring = ""; 
    29     RBuf8 myRBuf;
    29     RBuf8 myRBuf;
    30     myRBuf.CreateL(5);
       
    31     myRBuf.CleanupClosePushL();
    30     myRBuf.CleanupClosePushL();
    32     retval = CharToRbuf8(mycharstring, myRBuf);
    31     retval = CharToRbuf8(mycharstring, myRBuf);
    33 
    32 
    34     if (retval ==ESuccess)
    33     if (retval ==ESuccess)
    35     {
    34     {
    41     printf("chartorbuf8 positive2 Failed\n");
    40     printf("chartorbuf8 positive2 Failed\n");
    42     }      
    41     }      
    43     CleanupStack::PopAndDestroy(1);
    42     CleanupStack::PopAndDestroy(1);
    44     __UHEAP_MARKEND;
    43     __UHEAP_MARKEND;
    45     testResultXml("test_chartorbuf8_positive2");
    44     testResultXml("test_chartorbuf8_positive2");
    46 	return 0;
       
    47 }
    45 }