sl@0: /* sl@0: * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: // [INCLUDE FILES] - do not remove sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include "BCCSRuntimeSup.h" sl@0: sl@0: //Headers exported from Compiler specific runtime support API sl@0: //#include sl@0: #include sl@0: #include sl@0: #include sl@0: //#include sl@0: //#include sl@0: sl@0: //#include sl@0: sl@0: // EXTERNAL DATA STRUCTURES sl@0: //extern ?external_data; sl@0: sl@0: // EXTERNAL FUNCTION PROTOTYPES sl@0: //extern ?external_function( ?arg_type,?arg_type ); sl@0: sl@0: // CONSTANTS sl@0: //const ?type ?constant_var = ?constant; sl@0: sl@0: // MACROS sl@0: //#define ?macro ?macro_def sl@0: sl@0: // LOCAL CONSTANTS AND MACROS sl@0: //const ?type ?constant_var = ?constant; sl@0: //#define ?macro_name ?macro_def sl@0: sl@0: // MODULE DATA STRUCTURES sl@0: //enum ?declaration sl@0: //typedef ?declaration sl@0: sl@0: // LOCAL FUNCTION PROTOTYPES sl@0: //?type ?function_name( ?arg_type, ?arg_type ); sl@0: sl@0: // FORWARD DECLARATIONS sl@0: //class ?FORWARD_CLASSNAME; sl@0: sl@0: // ============================= LOCAL FUNCTIONS =============================== sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // ?function_name ?description. sl@0: // ?description sl@0: // Returns: ?value_1: ?description sl@0: // ?value_n: ?description_line1 sl@0: // ?description_line2 sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: /* sl@0: ?type ?function_name( sl@0: ?arg_type arg, // ?description sl@0: ?arg_type arg) // ?description sl@0: { sl@0: sl@0: ?code // ?comment sl@0: sl@0: // ?comment sl@0: ?code sl@0: } sl@0: */ sl@0: sl@0: // ============================ MEMBER FUNCTIONS =============================== sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // CBCCSRuntimeSup::Delete sl@0: // Delete here all resources allocated and opened from test methods. sl@0: // Called from destructor. sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: void CBCCSRuntimeSup::Delete() sl@0: { sl@0: sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // CBCCSRuntimeSup::RunMethodL sl@0: // Run specified method. Contains also table of test mothods and their names. sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: TInt CBCCSRuntimeSup::RunMethodL( sl@0: CStifItemParser& aItem ) sl@0: { sl@0: sl@0: static TStifFunctionInfo const KFunctions[] = sl@0: { sl@0: // Copy this line for every implemented function. sl@0: // First string is the function name used in TestScripter script file. sl@0: // Second is the actual implementation member function. sl@0: ENTRY( "TestAPI", CBCCSRuntimeSup::TestAPI ), sl@0: //ADD NEW ENTRY HERE sl@0: // [test cases entries] - Do not remove sl@0: sl@0: }; sl@0: sl@0: const TInt count = sizeof( KFunctions ) / sl@0: sizeof( TStifFunctionInfo ); sl@0: sl@0: return RunInternalL( KFunctions, count, aItem ); sl@0: sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // CBCCSRuntimeSup::TestAPI sl@0: // TestAPI test method function. sl@0: // (other items were commented in a header). sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: TInt CBCCSRuntimeSup::TestAPI( CStifItemParser& aItem ) sl@0: { sl@0: sl@0: // Print to UI sl@0: _LIT( KBCCSRuntimeSup, "BCCSRuntimeSup" ); sl@0: _LIT( KTestAPI, "In TestAPI" ); sl@0: TestModuleIf().Printf( 0, KBCCSRuntimeSup, KTestAPI ); sl@0: // Print to log file sl@0: iLog->Log( KTestAPI ); sl@0: sl@0: _LIT( KResult, "No functions to be tested"); sl@0: _LIT( KComment, "Compiler specific runtime support API has passed"); sl@0: TestModuleIf().Printf( 0, KResult, KComment); sl@0: sl@0: return KErrNone; sl@0: sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // CBCCSRuntimeSup::?member_function sl@0: // ?implementation_description sl@0: // (other items were commented in a header). sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: /* sl@0: TInt CBCCSRuntimeSup::?member_function( sl@0: CItemParser& aItem ) sl@0: { sl@0: sl@0: ?code sl@0: sl@0: } sl@0: */ sl@0: sl@0: // ========================== OTHER EXPORTED FUNCTIONS ========================= sl@0: // None sl@0: sl@0: // [End of File] - Do not remove