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 "BCNoNamespace.h"
25 //headers exported from No namespace headers API
27 #include <streambuf.h>
28 #include <strstream.h>
45 // EXTERNAL DATA STRUCTURES
46 //extern ?external_data;
48 // EXTERNAL FUNCTION PROTOTYPES
49 //extern ?external_function( ?arg_type,?arg_type );
52 //const ?type ?constant_var = ?constant;
55 //#define ?macro ?macro_def
57 // LOCAL CONSTANTS AND MACROS
58 //const ?type ?constant_var = ?constant;
59 //#define ?macro_name ?macro_def
61 // MODULE DATA STRUCTURES
63 //typedef ?declaration
65 // LOCAL FUNCTION PROTOTYPES
66 //?type ?function_name( ?arg_type, ?arg_type );
68 // FORWARD DECLARATIONS
69 //class ?FORWARD_CLASSNAME;
71 // ============================= LOCAL FUNCTIONS ===============================
73 // -----------------------------------------------------------------------------
74 // ?function_name ?description.
76 // Returns: ?value_1: ?description
77 // ?value_n: ?description_line1
79 // -----------------------------------------------------------------------------
83 ?arg_type arg, // ?description
84 ?arg_type arg) // ?description
94 // ============================ MEMBER FUNCTIONS ===============================
96 // -----------------------------------------------------------------------------
97 // CBCNoNamespace::Delete
98 // Delete here all resources allocated and opened from test methods.
99 // Called from destructor.
100 // -----------------------------------------------------------------------------
102 void CBCNoNamespace::Delete()
107 // -----------------------------------------------------------------------------
108 // CBCNoNamespace::RunMethodL
109 // Run specified method. Contains also table of test mothods and their names.
110 // -----------------------------------------------------------------------------
112 TInt CBCNoNamespace::RunMethodL(
113 CStifItemParser& aItem )
116 static TStifFunctionInfo const KFunctions[] =
118 // Copy this line for every implemented function.
119 // First string is the function name used in TestScripter script file.
120 // Second is the actual implementation member function.
121 ENTRY( "TestAPI", CBCNoNamespace::TestAPI ),
123 // [test cases entries] - Do not remove
127 const TInt count = sizeof( KFunctions ) /
128 sizeof( TStifFunctionInfo );
130 return RunInternalL( KFunctions, count, aItem );
134 // -----------------------------------------------------------------------------
135 // CBCNoNamespace::TestAPI
136 // TestAPI test method function.
137 // (other items were commented in a header).
138 // -----------------------------------------------------------------------------
140 TInt CBCNoNamespace::TestAPI( CStifItemParser& aItem )
144 _LIT( KBCNoNamespace, "BCNoNamespace" );
145 _LIT( KTestAPI, "In TestAPI" );
146 TestModuleIf().Printf( 0, KBCNoNamespace, KTestAPI );
148 iLog->Log( KTestAPI );
150 _LIT( KResult, "No functions to be tested");
151 _LIT( KComment, "No Namespace headers API has passed");
152 TestModuleIf().Printf( 0, KResult, KComment);
158 // -----------------------------------------------------------------------------
159 // CBCNoNamespace::?member_function
160 // ?implementation_description
161 // (other items were commented in a header).
162 // -----------------------------------------------------------------------------
165 TInt CBCNoNamespace::?member_function(
174 // ========================== OTHER EXPORTED FUNCTIONS =========================
177 // [End of File] - Do not remove