stdcpp/tsrc/Stdcpp_test/stlport/auto/stlport_unegate/src/stlport_unegateblocks.cpp
changeset 31 ce057bb09d0b
parent 0 e4d67989cc36
equal deleted inserted replaced
30:e20de85af2ee 31:ce057bb09d0b
       
     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_unegate.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_unegate::Delete
       
    80 // Delete here all resources allocated and opened from test methods. 
       
    81 // Called from destructor. 
       
    82 // -----------------------------------------------------------------------------
       
    83 //
       
    84 void Cstlport_unegate::Delete() 
       
    85     {
       
    86 
       
    87     }
       
    88 
       
    89 // -----------------------------------------------------------------------------
       
    90 // Cstlport_unegate::RunMethodL
       
    91 // Run specified method. Contains also table of test mothods and their names.
       
    92 // -----------------------------------------------------------------------------
       
    93 //
       
    94 TInt Cstlport_unegate::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( "unegate1_test", Cstlport_unegate::unegate1_testL ),
       
   104         ENTRY( "unegate2_test", Cstlport_unegate::unegate2_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_unegate::unegate1_testL
       
   117 // Example test method function.
       
   118 // (other items were commented in a header).
       
   119 // -----------------------------------------------------------------------------
       
   120 //
       
   121 TInt Cstlport_unegate::unegate1_testL( CStifItemParser& /*aItem*/ )
       
   122     {
       
   123 
       
   124       int ret=0;
       
   125     ret = unegate1_test(0, NULL);
       
   126     
       
   127      if(ret==0)
       
   128 		return KErrNone;
       
   129 	else	
       
   130 		return KErrGeneral;
       
   131 
       
   132     }
       
   133 // -----------------------------------------------------------------------------
       
   134 // Cstlport_unegate::unegate2_testL
       
   135 // Example test method function.
       
   136 // (other items were commented in a header).
       
   137 // -----------------------------------------------------------------------------
       
   138 //
       
   139 TInt Cstlport_unegate::unegate2_testL( CStifItemParser& /*aItem*/ )
       
   140     {
       
   141 
       
   142       int ret=0;
       
   143     ret = unegate2_test(0, NULL);
       
   144     
       
   145      if(ret==0)
       
   146 		return KErrNone;
       
   147 	else	
       
   148 		return KErrGeneral;
       
   149 
       
   150     }
       
   151 // -----------------------------------------------------------------------------
       
   152 // Cstlport_unegate::?member_function
       
   153 // ?implementation_description
       
   154 // (other items were commented in a header).
       
   155 // -----------------------------------------------------------------------------
       
   156 //
       
   157 /*
       
   158 TInt Cstlport_unegate::?member_function(
       
   159    CItemParser& aItem )
       
   160    {
       
   161 
       
   162    ?code
       
   163 
       
   164    }
       
   165 */
       
   166 
       
   167 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
   168 // None
       
   169 
       
   170 //  End of File