os/ossrv/stdcpp/tsrc/BC/apps/BCCSRuntimeSup/src/BCCSRuntimeSupBlocks.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 
    19 // [INCLUDE FILES] - do not remove
    20 #include <e32svr.h>
    21 #include <StifParser.h>
    22 #include <Stiftestinterface.h>
    23 #include <string>
    24 #include "BCCSRuntimeSup.h"
    25 
    26 //Headers exported from Compiler specific runtime support API
    27 //#include <stl\_config.h>
    28 #include <runtime\numeric>
    29 #include <runtime\typeinfo>
    30 #include <runtime\new>
    31 //#include <runtime\new.h>
    32 //#include <runtime\exception.h>
    33 
    34 //#include <runtime\typeinfo.h>
    35 
    36 // EXTERNAL DATA STRUCTURES
    37 //extern  ?external_data;
    38 
    39 // EXTERNAL FUNCTION PROTOTYPES  
    40 //extern ?external_function( ?arg_type,?arg_type );
    41 
    42 // CONSTANTS
    43 //const ?type ?constant_var = ?constant;
    44 
    45 // MACROS
    46 //#define ?macro ?macro_def
    47 
    48 // LOCAL CONSTANTS AND MACROS
    49 //const ?type ?constant_var = ?constant;
    50 //#define ?macro_name ?macro_def
    51 
    52 // MODULE DATA STRUCTURES
    53 //enum ?declaration
    54 //typedef ?declaration
    55 
    56 // LOCAL FUNCTION PROTOTYPES
    57 //?type ?function_name( ?arg_type, ?arg_type );
    58 
    59 // FORWARD DECLARATIONS
    60 //class ?FORWARD_CLASSNAME;
    61 
    62 // ============================= LOCAL FUNCTIONS ===============================
    63 
    64 // -----------------------------------------------------------------------------
    65 // ?function_name ?description.
    66 // ?description
    67 // Returns: ?value_1: ?description
    68 //          ?value_n: ?description_line1
    69 //                    ?description_line2
    70 // -----------------------------------------------------------------------------
    71 //
    72 /*
    73 ?type ?function_name(
    74     ?arg_type arg,  // ?description
    75     ?arg_type arg)  // ?description
    76     {
    77 
    78     ?code  // ?comment
    79 
    80     // ?comment
    81     ?code
    82     }
    83 */
    84 
    85 // ============================ MEMBER FUNCTIONS ===============================
    86 
    87 // -----------------------------------------------------------------------------
    88 // CBCCSRuntimeSup::Delete
    89 // Delete here all resources allocated and opened from test methods. 
    90 // Called from destructor. 
    91 // -----------------------------------------------------------------------------
    92 //
    93 void CBCCSRuntimeSup::Delete() 
    94     {
    95 
    96     }
    97 
    98 // -----------------------------------------------------------------------------
    99 // CBCCSRuntimeSup::RunMethodL
   100 // Run specified method. Contains also table of test mothods and their names.
   101 // -----------------------------------------------------------------------------
   102 //
   103 TInt CBCCSRuntimeSup::RunMethodL( 
   104     CStifItemParser& aItem ) 
   105     {
   106 
   107     static TStifFunctionInfo const KFunctions[] =
   108         {  
   109         // Copy this line for every implemented function.
   110         // First string is the function name used in TestScripter script file.
   111         // Second is the actual implementation member function. 
   112         ENTRY( "TestAPI", CBCCSRuntimeSup::TestAPI ),
   113         //ADD NEW ENTRY HERE
   114         // [test cases entries] - Do not remove
   115 
   116         };
   117 
   118     const TInt count = sizeof( KFunctions ) / 
   119                         sizeof( TStifFunctionInfo );
   120 
   121     return RunInternalL( KFunctions, count, aItem );
   122 
   123     }
   124 
   125 // -----------------------------------------------------------------------------
   126 // CBCCSRuntimeSup::TestAPI
   127 // TestAPI test method function.
   128 // (other items were commented in a header).
   129 // -----------------------------------------------------------------------------
   130 //
   131 TInt CBCCSRuntimeSup::TestAPI( CStifItemParser& aItem )
   132     {
   133 
   134     // Print to UI
   135     _LIT( KBCCSRuntimeSup, "BCCSRuntimeSup" );
   136     _LIT( KTestAPI, "In TestAPI" );
   137     TestModuleIf().Printf( 0, KBCCSRuntimeSup, KTestAPI );
   138     // Print to log file
   139     iLog->Log( KTestAPI );
   140 
   141 		_LIT( KResult, "No functions to be tested");
   142 		_LIT( KComment, "Compiler specific runtime support API has passed");
   143     TestModuleIf().Printf( 0, KResult, KComment);
   144 
   145     return KErrNone;
   146 
   147     }
   148 
   149 // -----------------------------------------------------------------------------
   150 // CBCCSRuntimeSup::?member_function
   151 // ?implementation_description
   152 // (other items were commented in a header).
   153 // -----------------------------------------------------------------------------
   154 //
   155 /*
   156 TInt CBCCSRuntimeSup::?member_function(
   157    CItemParser& aItem )
   158    {
   159 
   160    ?code
   161 
   162    }
   163 */
   164 
   165 // ========================== OTHER EXPORTED FUNCTIONS =========================
   166 // None
   167 
   168 //  [End of File] - Do not remove