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 "BCOpenCWrap.h"
25 //headers exported from Open C Wrappers API
35 // EXTERNAL DATA STRUCTURES
36 //extern ?external_data;
38 // EXTERNAL FUNCTION PROTOTYPES
39 //extern ?external_function( ?arg_type,?arg_type );
42 //const ?type ?constant_var = ?constant;
45 //#define ?macro ?macro_def
47 // LOCAL CONSTANTS AND MACROS
48 //const ?type ?constant_var = ?constant;
49 //#define ?macro_name ?macro_def
51 // MODULE DATA STRUCTURES
53 //typedef ?declaration
55 // LOCAL FUNCTION PROTOTYPES
56 //?type ?function_name( ?arg_type, ?arg_type );
58 // FORWARD DECLARATIONS
59 //class ?FORWARD_CLASSNAME;
61 // ============================= LOCAL FUNCTIONS ===============================
63 // -----------------------------------------------------------------------------
64 // ?function_name ?description.
66 // Returns: ?value_1: ?description
67 // ?value_n: ?description_line1
69 // -----------------------------------------------------------------------------
73 ?arg_type arg, // ?description
74 ?arg_type arg) // ?description
84 // ============================ MEMBER FUNCTIONS ===============================
86 // -----------------------------------------------------------------------------
87 // CBCOpenCWrap::Delete
88 // Delete here all resources allocated and opened from test methods.
89 // Called from destructor.
90 // -----------------------------------------------------------------------------
92 void CBCOpenCWrap::Delete()
97 // -----------------------------------------------------------------------------
98 // CBCOpenCWrap::RunMethodL
99 // Run specified method. Contains also table of test mothods and their names.
100 // -----------------------------------------------------------------------------
102 TInt CBCOpenCWrap::RunMethodL(
103 CStifItemParser& aItem )
106 static TStifFunctionInfo const KFunctions[] =
108 // Copy this line for every implemented function.
109 // First string is the function name used in TestScripter script file.
110 // Second is the actual implementation member function.
111 ENTRY( "TestAPI", CBCOpenCWrap::TestAPI ),
113 // [test cases entries] - Do not remove
117 const TInt count = sizeof( KFunctions ) /
118 sizeof( TStifFunctionInfo );
120 return RunInternalL( KFunctions, count, aItem );
124 // -----------------------------------------------------------------------------
125 // CBCOpenCWrap::TestAPI
126 // TestAPI test method function.
127 // (other items were commented in a header).
128 // -----------------------------------------------------------------------------
130 TInt CBCOpenCWrap::TestAPI( CStifItemParser& aItem )
134 _LIT( KBCOpenCWrap, "BCOpenCWrap" );
135 _LIT( KTestAPI, "In TestAPI" );
136 TestModuleIf().Printf( 0, KBCOpenCWrap, KTestAPI );
138 iLog->Log( KTestAPI );
140 _LIT( KResult, "No functions to be tested");
141 _LIT( KComment, "Open C Wrapper API has passed");
142 TestModuleIf().Printf( 0, KResult, KComment);
148 // -----------------------------------------------------------------------------
149 // CBCOpenCWrap::?member_function
150 // ?implementation_description
151 // (other items were commented in a header).
152 // -----------------------------------------------------------------------------
155 TInt CBCOpenCWrap::?member_function(
164 // ========================== OTHER EXPORTED FUNCTIONS =========================
167 // [End of File] - Do not remove