idlefw/tsrc/ai_utilities_api/inc/mt_apiaistrparser.h
branchRCL_3
changeset 111 053c6c7c14f3
equal deleted inserted replaced
110:2c7f27287390 111:053c6c7c14f3
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MT_ApiAiStrParser_H
       
    19 #define MT_ApiAiStrParser_H
       
    20 
       
    21 //  EXTERNAL INCLUDES
       
    22 #include <digia/eunit/ceunittestsuiteclass.h>
       
    23 
       
    24 //  INTERNAL INCLUDES
       
    25 
       
    26 
       
    27 #include <e32def.h>
       
    28 #ifndef NONSHARABLE_CLASS
       
    29     #define NONSHARABLE_CLASS(x) class x
       
    30 #endif
       
    31 
       
    32 class MAiStrParser;
       
    33 
       
    34 //  CLASS DEFINITION
       
    35 /**
       
    36  *
       
    37  * EUnitWizard generated test class. 
       
    38  *
       
    39  */
       
    40 NONSHARABLE_CLASS( MT_ApiAiStrParser )
       
    41      : public CEUnitTestSuiteClass
       
    42     {
       
    43     public:     // Constructors and destructors
       
    44 
       
    45         /**
       
    46          * Two phase construction
       
    47          */
       
    48         static MT_ApiAiStrParser* NewL();
       
    49         static MT_ApiAiStrParser* NewLC();
       
    50         /**
       
    51          * Destructor
       
    52          */
       
    53         ~MT_ApiAiStrParser();
       
    54 
       
    55     private:    // Constructors and destructors
       
    56 
       
    57         MT_ApiAiStrParser();
       
    58         void ConstructL();
       
    59 
       
    60     public:     // From observer interface
       
    61 
       
    62         
       
    63 
       
    64     private:    // New methods
       
    65 
       
    66          void SetupL();
       
    67          
       
    68          void SetupUtf8BufferL();
       
    69          
       
    70          void SetupUnicodeBufferL();
       
    71          
       
    72          void SetupHexIntL();
       
    73          
       
    74          void SetupIntL();
       
    75          
       
    76          void SetupNoIntL();
       
    77          
       
    78          void SetupHexIntUnicodeL();
       
    79          
       
    80          void SetupIntUnicodeL();
       
    81          
       
    82          void SetupNoIntUnicodeL();
       
    83          
       
    84          void Teardown();
       
    85         
       
    86          void TestCopyUnicodeToUnicodeL();
       
    87          
       
    88          void TestCopyUnicodeToUtf8L();
       
    89             
       
    90          void TestCopyUtf8ToUnicodeL();
       
    91                  
       
    92          void TestCopyUtf8ToUtf8L();
       
    93          
       
    94          void TestParseInt();
       
    95          
       
    96          void TestParseIntUnicode();
       
    97          
       
    98          void TestEnsureBufMaxLengthL();
       
    99 
       
   100          
       
   101     private:    // Data
       
   102 
       
   103         EUNIT_DECLARE_TEST_TABLE;
       
   104         
       
   105         HBufC* iUnicodeBuffer;
       
   106         
       
   107         HBufC8* iUtf8Buffer;
       
   108         
       
   109         TInt iTestResult;
       
   110         
       
   111         TInt32 iTestValue;
       
   112         
       
   113         MAiStrParser* iStrParser;
       
   114     };
       
   115 
       
   116 #endif      //  __UT_ActiveTransactionStack_H__
       
   117 
       
   118 // End of file