Update contrib.
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>
23 #include "BCOpenCHeaders.h"
25 //Headers exported from Open C headers API
69 // EXTERNAL DATA STRUCTURES
70 //extern ?external_data;
72 // EXTERNAL FUNCTION PROTOTYPES
73 //extern ?external_function( ?arg_type,?arg_type );
76 //const ?type ?constant_var = ?constant;
79 //#define ?macro ?macro_def
81 // LOCAL CONSTANTS AND MACROS
82 //const ?type ?constant_var = ?constant;
83 //#define ?macro_name ?macro_def
85 // MODULE DATA STRUCTURES
87 //typedef ?declaration
89 // LOCAL FUNCTION PROTOTYPES
90 //?type ?function_name( ?arg_type, ?arg_type );
92 // FORWARD DECLARATIONS
93 //class ?FORWARD_CLASSNAME;
95 // ============================= LOCAL FUNCTIONS ===============================
97 // -----------------------------------------------------------------------------
98 // ?function_name ?description.
100 // Returns: ?value_1: ?description
101 // ?value_n: ?description_line1
102 // ?description_line2
103 // -----------------------------------------------------------------------------
106 ?type ?function_name(
107 ?arg_type arg, // ?description
108 ?arg_type arg) // ?description
118 // ============================ MEMBER FUNCTIONS ===============================
120 // -----------------------------------------------------------------------------
121 // CBCOpenCHeaders::Delete
122 // Delete here all resources allocated and opened from test methods.
123 // Called from destructor.
124 // -----------------------------------------------------------------------------
126 void CBCOpenCHeaders::Delete()
131 // -----------------------------------------------------------------------------
132 // CBCOpenCHeaders::RunMethodL
133 // Run specified method. Contains also table of test mothods and their names.
134 // -----------------------------------------------------------------------------
136 TInt CBCOpenCHeaders::RunMethodL(
137 CStifItemParser& aItem )
140 static TStifFunctionInfo const KFunctions[] =
142 // Copy this line for every implemented function.
143 // First string is the function name used in TestScripter script file.
144 // Second is the actual implementation member function.
145 ENTRY( "TestAPI", CBCOpenCHeaders::TestAPI ),
147 // [test cases entries] - Do not remove
151 const TInt count = sizeof( KFunctions ) /
152 sizeof( TStifFunctionInfo );
154 return RunInternalL( KFunctions, count, aItem );
158 // -----------------------------------------------------------------------------
159 // CBCOpenCHeaders::TestAPI
160 // TestAPI test method function.
161 // (other items were commented in a header).
162 // -----------------------------------------------------------------------------
164 TInt CBCOpenCHeaders::TestAPI( CStifItemParser& aItem )
168 _LIT( KBCOpenCHeaders, "BCOpenCHeaders" );
169 _LIT( KTestAPI, "In TestAPI" );
170 TestModuleIf().Printf( 0, KBCOpenCHeaders, KTestAPI );
172 iLog->Log( KTestAPI );
174 _LIT( KResult, "No functions to be tested");
175 _LIT( KComment, "Open C Headers API has passed");
176 TestModuleIf().Printf( 0, KResult, KComment);
182 // -----------------------------------------------------------------------------
183 // CBCOpenCHeaders::?member_function
184 // ?implementation_description
185 // (other items were commented in a header).
186 // -----------------------------------------------------------------------------
189 TInt CBCOpenCHeaders::?member_function(
198 // ========================== OTHER EXPORTED FUNCTIONS =========================
201 // [End of File] - Do not remove