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>
23 #include "BCCppWrap.h"
25 //Headers exported from CPP Wrappers API
38 // EXTERNAL DATA STRUCTURES
39 //extern ?external_data;
41 // EXTERNAL FUNCTION PROTOTYPES
42 //extern ?external_function( ?arg_type,?arg_type );
45 //const ?type ?constant_var = ?constant;
48 //#define ?macro ?macro_def
50 // LOCAL CONSTANTS AND MACROS
51 //const ?type ?constant_var = ?constant;
52 //#define ?macro_name ?macro_def
54 // MODULE DATA STRUCTURES
56 //typedef ?declaration
58 // LOCAL FUNCTION PROTOTYPES
59 //?type ?function_name( ?arg_type, ?arg_type );
61 // FORWARD DECLARATIONS
62 //class ?FORWARD_CLASSNAME;
64 // ============================= LOCAL FUNCTIONS ===============================
66 // -----------------------------------------------------------------------------
67 // ?function_name ?description.
69 // Returns: ?value_1: ?description
70 // ?value_n: ?description_line1
72 // -----------------------------------------------------------------------------
76 ?arg_type arg, // ?description
77 ?arg_type arg) // ?description
87 // ============================ MEMBER FUNCTIONS ===============================
89 // -----------------------------------------------------------------------------
91 // Delete here all resources allocated and opened from test methods.
92 // Called from destructor.
93 // -----------------------------------------------------------------------------
95 void CBCCppWrap::Delete()
100 // -----------------------------------------------------------------------------
101 // CBCCppWrap::RunMethodL
102 // Run specified method. Contains also table of test mothods and their names.
103 // -----------------------------------------------------------------------------
105 TInt CBCCppWrap::RunMethodL(
106 CStifItemParser& aItem )
109 static TStifFunctionInfo const KFunctions[] =
111 // Copy this line for every implemented function.
112 // First string is the function name used in TestScripter script file.
113 // Second is the actual implementation member function.
114 ENTRY( "TestAPI", CBCCppWrap::TestAPI ),
116 // [test cases entries] - Do not remove
120 const TInt count = sizeof( KFunctions ) /
121 sizeof( TStifFunctionInfo );
123 return RunInternalL( KFunctions, count, aItem );
127 // -----------------------------------------------------------------------------
128 // CBCCppWrap::TestAPI
129 // TestAPI test method function.
130 // (other items were commented in a header).
131 // -----------------------------------------------------------------------------
133 TInt CBCCppWrap::TestAPI( CStifItemParser& aItem )
137 _LIT( KBCCppWrap, "BCCppWrap" );
138 _LIT( KTestAPI, "In TestAPI" );
139 TestModuleIf().Printf( 0, KBCCppWrap, KTestAPI );
141 iLog->Log( KTestAPI );
143 _LIT( KResult, "No functions to be tested");
144 _LIT( KComment, "CPP Wrapper API has passed");
145 TestModuleIf().Printf( 0, KResult, KComment);
151 // -----------------------------------------------------------------------------
152 // CBCCppWrap::?member_function
153 // ?implementation_description
154 // (other items were commented in a header).
155 // -----------------------------------------------------------------------------
158 TInt CBCCppWrap::?member_function(
167 // ========================== OTHER EXPORTED FUNCTIONS =========================
170 // [End of File] - Do not remove