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 "BCException.h"
25 //Headers exported from exceptions API
26 //#include <stl_rvct.h>
27 //#include <exception.h>
28 //#include <stdexcept>
30 //#include <_range_errors.h>
31 //#include <_exception.h>
33 // EXTERNAL DATA STRUCTURES
34 //extern ?external_data;
36 // EXTERNAL FUNCTION PROTOTYPES
37 //extern ?external_function( ?arg_type,?arg_type );
40 //const ?type ?constant_var = ?constant;
43 //#define ?macro ?macro_def
45 // LOCAL CONSTANTS AND MACROS
46 //const ?type ?constant_var = ?constant;
47 //#define ?macro_name ?macro_def
49 // MODULE DATA STRUCTURES
51 //typedef ?declaration
53 // LOCAL FUNCTION PROTOTYPES
54 //?type ?function_name( ?arg_type, ?arg_type );
56 // FORWARD DECLARATIONS
57 //class ?FORWARD_CLASSNAME;
59 // ============================= LOCAL FUNCTIONS ===============================
61 // -----------------------------------------------------------------------------
62 // ?function_name ?description.
64 // Returns: ?value_1: ?description
65 // ?value_n: ?description_line1
67 // -----------------------------------------------------------------------------
71 ?arg_type arg, // ?description
72 ?arg_type arg) // ?description
82 // ============================ MEMBER FUNCTIONS ===============================
84 // -----------------------------------------------------------------------------
85 // CBCException::Delete
86 // Delete here all resources allocated and opened from test methods.
87 // Called from destructor.
88 // -----------------------------------------------------------------------------
90 void CBCException::Delete()
95 // -----------------------------------------------------------------------------
96 // CBCException::RunMethodL
97 // Run specified method. Contains also table of test mothods and their names.
98 // -----------------------------------------------------------------------------
100 TInt CBCException::RunMethodL(
101 CStifItemParser& aItem )
104 static TStifFunctionInfo const KFunctions[] =
106 // Copy this line for every implemented function.
107 // First string is the function name used in TestScripter script file.
108 // Second is the actual implementation member function.
109 ENTRY( "TestAPI", CBCException::TestAPI ),
111 // [test cases entries] - Do not remove
115 const TInt count = sizeof( KFunctions ) /
116 sizeof( TStifFunctionInfo );
118 return RunInternalL( KFunctions, count, aItem );
122 // -----------------------------------------------------------------------------
123 // CBCException::TestAPI
124 // TestAPI test method function.
125 // (other items were commented in a header).
126 // -----------------------------------------------------------------------------
128 TInt CBCException::TestAPI( CStifItemParser& aItem )
132 _LIT( KBCException, "BCException" );
133 _LIT( KTestAPI, "In TestAPI" );
134 TestModuleIf().Printf( 0, KBCException, KTestAPI );
136 iLog->Log( KTestAPI );
138 _LIT( KResult, "No functions to be tested");
139 _LIT( KComment, "Exceptions API has passed");
140 TestModuleIf().Printf( 0, KResult, KComment);
146 // -----------------------------------------------------------------------------
147 // CBCException::?member_function
148 // ?implementation_description
149 // (other items were commented in a header).
150 // -----------------------------------------------------------------------------
153 TInt CBCException::?member_function(
162 // ========================== OTHER EXPORTED FUNCTIONS =========================
165 // [End of File] - Do not remove