First public contribution.
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 // [INCLUDE FILES] - do not remove
21 #include <StifParser.h>
22 #include <Stiftestinterface.h>
24 #include "BCCSRuntimeSup.h"
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>
34 //#include <runtime\typeinfo.h>
36 // EXTERNAL DATA STRUCTURES
37 //extern ?external_data;
39 // EXTERNAL FUNCTION PROTOTYPES
40 //extern ?external_function( ?arg_type,?arg_type );
43 //const ?type ?constant_var = ?constant;
46 //#define ?macro ?macro_def
48 // LOCAL CONSTANTS AND MACROS
49 //const ?type ?constant_var = ?constant;
50 //#define ?macro_name ?macro_def
52 // MODULE DATA STRUCTURES
54 //typedef ?declaration
56 // LOCAL FUNCTION PROTOTYPES
57 //?type ?function_name( ?arg_type, ?arg_type );
59 // FORWARD DECLARATIONS
60 //class ?FORWARD_CLASSNAME;
62 // ============================= LOCAL FUNCTIONS ===============================
64 // -----------------------------------------------------------------------------
65 // ?function_name ?description.
67 // Returns: ?value_1: ?description
68 // ?value_n: ?description_line1
70 // -----------------------------------------------------------------------------
74 ?arg_type arg, // ?description
75 ?arg_type arg) // ?description
85 // ============================ MEMBER FUNCTIONS ===============================
87 // -----------------------------------------------------------------------------
88 // CBCCSRuntimeSup::Delete
89 // Delete here all resources allocated and opened from test methods.
90 // Called from destructor.
91 // -----------------------------------------------------------------------------
93 void CBCCSRuntimeSup::Delete()
98 // -----------------------------------------------------------------------------
99 // CBCCSRuntimeSup::RunMethodL
100 // Run specified method. Contains also table of test mothods and their names.
101 // -----------------------------------------------------------------------------
103 TInt CBCCSRuntimeSup::RunMethodL(
104 CStifItemParser& aItem )
107 static TStifFunctionInfo const KFunctions[] =
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 ),
114 // [test cases entries] - Do not remove
118 const TInt count = sizeof( KFunctions ) /
119 sizeof( TStifFunctionInfo );
121 return RunInternalL( KFunctions, count, aItem );
125 // -----------------------------------------------------------------------------
126 // CBCCSRuntimeSup::TestAPI
127 // TestAPI test method function.
128 // (other items were commented in a header).
129 // -----------------------------------------------------------------------------
131 TInt CBCCSRuntimeSup::TestAPI( CStifItemParser& aItem )
135 _LIT( KBCCSRuntimeSup, "BCCSRuntimeSup" );
136 _LIT( KTestAPI, "In TestAPI" );
137 TestModuleIf().Printf( 0, KBCCSRuntimeSup, KTestAPI );
139 iLog->Log( KTestAPI );
141 _LIT( KResult, "No functions to be tested");
142 _LIT( KComment, "Compiler specific runtime support API has passed");
143 TestModuleIf().Printf( 0, KResult, KComment);
149 // -----------------------------------------------------------------------------
150 // CBCCSRuntimeSup::?member_function
151 // ?implementation_description
152 // (other items were commented in a header).
153 // -----------------------------------------------------------------------------
156 TInt CBCCSRuntimeSup::?member_function(
165 // ========================== OTHER EXPORTED FUNCTIONS =========================
168 // [End of File] - Do not remove