stdcpp/tsrc/Stdcpp_test/stlport/auto/stlport_hset/src/stlport_hsetblocks.cpp
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <e32svr.h>
       
    23 #include <StifParser.h>
       
    24 #include <Stiftestinterface.h>
       
    25 #include "stlport_hset.h"
       
    26 
       
    27 // EXTERNAL DATA STRUCTURES
       
    28 //extern  ?external_data;
       
    29 
       
    30 // EXTERNAL FUNCTION PROTOTYPES  
       
    31 //extern ?external_function( ?arg_type,?arg_type );
       
    32 
       
    33 // CONSTANTS
       
    34 //const ?type ?constant_var = ?constant;
       
    35 
       
    36 // MACROS
       
    37 //#define ?macro ?macro_def
       
    38 
       
    39 // LOCAL CONSTANTS AND MACROS
       
    40 //const ?type ?constant_var = ?constant;
       
    41 //#define ?macro_name ?macro_def
       
    42 
       
    43 // MODULE DATA STRUCTURES
       
    44 //enum ?declaration
       
    45 //typedef ?declaration
       
    46 
       
    47 // LOCAL FUNCTION PROTOTYPES
       
    48 //?type ?function_name( ?arg_type, ?arg_type );
       
    49 
       
    50 // FORWARD DECLARATIONS
       
    51 //class ?FORWARD_CLASSNAME;
       
    52 
       
    53 // ============================= LOCAL FUNCTIONS ===============================
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 // ?function_name ?description.
       
    57 // ?description
       
    58 // Returns: ?value_1: ?description
       
    59 //          ?value_n: ?description_line1
       
    60 //                    ?description_line2
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 /*
       
    64 ?type ?function_name(
       
    65     ?arg_type arg,  // ?description
       
    66     ?arg_type arg)  // ?description
       
    67     {
       
    68 
       
    69     ?code  // ?comment
       
    70 
       
    71     // ?comment
       
    72     ?code
       
    73     }
       
    74 */
       
    75 
       
    76 // ============================ MEMBER FUNCTIONS ===============================
       
    77 
       
    78 // -----------------------------------------------------------------------------
       
    79 // Cstlport_hset::Delete
       
    80 // Delete here all resources allocated and opened from test methods. 
       
    81 // Called from destructor. 
       
    82 // -----------------------------------------------------------------------------
       
    83 //
       
    84 void Cstlport_hset::Delete() 
       
    85     {
       
    86 
       
    87     }
       
    88 
       
    89 // -----------------------------------------------------------------------------
       
    90 // Cstlport_hset::RunMethodL
       
    91 // Run specified method. Contains also table of test mothods and their names.
       
    92 // -----------------------------------------------------------------------------
       
    93 //
       
    94 TInt Cstlport_hset::RunMethodL( 
       
    95     CStifItemParser& aItem ) 
       
    96     {
       
    97 
       
    98     static TStifFunctionInfo const KFunctions[] =
       
    99         {  
       
   100         // Copy this line for every implemented function.
       
   101         // First string is the function name used in TestScripter script file.
       
   102         // Second is the actual implementation member function. 
       
   103         ENTRY( "hset2_test", Cstlport_hset::hset2_testL ),
       
   104         ENTRY( "hmset1_test", Cstlport_hset::hmset1_testL ),
       
   105 
       
   106         };
       
   107 
       
   108     const TInt count = sizeof( KFunctions ) / 
       
   109                         sizeof( TStifFunctionInfo );
       
   110 
       
   111     return RunInternalL( KFunctions, count, aItem );
       
   112 
       
   113     }
       
   114 
       
   115 // -----------------------------------------------------------------------------
       
   116 // Cstlport_hset::hset2_testL
       
   117 // Example test method function.
       
   118 // (other items were commented in a header).
       
   119 // -----------------------------------------------------------------------------
       
   120 //
       
   121 TInt Cstlport_hset::hset2_testL( CStifItemParser& /*aItem*/ )
       
   122     {
       
   123 
       
   124       int ret=0;
       
   125     ret = hset2_test(0, NULL);
       
   126     
       
   127      if(ret==0)
       
   128 		return KErrNone;
       
   129 	else	
       
   130 		return KErrGeneral;
       
   131 
       
   132     }
       
   133 
       
   134 
       
   135 // -----------------------------------------------------------------------------
       
   136 // Cstlport_hset::hmset1_testL
       
   137 // Example test method function.
       
   138 // (other items were commented in a header).
       
   139 // -----------------------------------------------------------------------------
       
   140 //
       
   141 TInt Cstlport_hset::hmset1_testL( CStifItemParser& /*aItem*/ )
       
   142     {
       
   143 
       
   144       int ret=0;
       
   145     ret = hmset1_test(0, NULL);
       
   146     
       
   147      if(ret==0)
       
   148 		return KErrNone;
       
   149 	else	
       
   150 		return KErrGeneral;
       
   151 
       
   152     }
       
   153 
       
   154 // -----------------------------------------------------------------------------
       
   155 // Cstlport_hset::?member_function
       
   156 // ?implementation_description
       
   157 // (other items were commented in a header).
       
   158 // -----------------------------------------------------------------------------
       
   159 //
       
   160 /*
       
   161 TInt Cstlport_hset::?member_function(
       
   162    CItemParser& aItem )
       
   163    {
       
   164 
       
   165    ?code
       
   166 
       
   167    }
       
   168 */
       
   169 
       
   170 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
   171 // None
       
   172 
       
   173 //  End of File