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.
20 // [INCLUDE FILES] - do not remove
22 #include <StifParser.h>
23 #include <Stiftestinterface.h>
26 //Headers exported from thread APi
27 #include <_pthread_alloc.c>
28 #include <_pthread_alloc.h>
29 #include <pthread_alloc>
32 // EXTERNAL DATA STRUCTURES
33 //extern ?external_data;
35 // EXTERNAL FUNCTION PROTOTYPES
36 //extern ?external_function( ?arg_type,?arg_type );
39 //const ?type ?constant_var = ?constant;
42 //#define ?macro ?macro_def
44 // LOCAL CONSTANTS AND MACROS
45 //const ?type ?constant_var = ?constant;
46 //#define ?macro_name ?macro_def
48 // MODULE DATA STRUCTURES
50 //typedef ?declaration
52 // LOCAL FUNCTION PROTOTYPES
53 //?type ?function_name( ?arg_type, ?arg_type );
55 // FORWARD DECLARATIONS
56 //class ?FORWARD_CLASSNAME;
58 // ============================= LOCAL FUNCTIONS ===============================
60 // -----------------------------------------------------------------------------
61 // ?function_name ?description.
63 // Returns: ?value_1: ?description
64 // ?value_n: ?description_line1
66 // -----------------------------------------------------------------------------
70 ?arg_type arg, // ?description
71 ?arg_type arg) // ?description
81 // ============================ MEMBER FUNCTIONS ===============================
83 // -----------------------------------------------------------------------------
85 // Delete here all resources allocated and opened from test methods.
86 // Called from destructor.
87 // -----------------------------------------------------------------------------
89 void CBCThread::Delete()
94 // -----------------------------------------------------------------------------
95 // CBCThread::RunMethodL
96 // Run specified method. Contains also table of test mothods and their names.
97 // -----------------------------------------------------------------------------
99 TInt CBCThread::RunMethodL(
100 CStifItemParser& aItem )
103 static TStifFunctionInfo const KFunctions[] =
105 // Copy this line for every implemented function.
106 // First string is the function name used in TestScripter script file.
107 // Second is the actual implementation member function.
108 ENTRY( "TestAPI", CBCThread::TestAPI ),
110 // [test cases entries] - Do not remove
114 const TInt count = sizeof( KFunctions ) /
115 sizeof( TStifFunctionInfo );
117 return RunInternalL( KFunctions, count, aItem );
121 // -----------------------------------------------------------------------------
122 // CBCThread::TestAPI
123 // TestAPI test method function.
124 // (other items were commented in a header).
125 // -----------------------------------------------------------------------------
127 TInt CBCThread::TestAPI( CStifItemParser& aItem )
131 _LIT( KBCThread, "BCThread" );
132 _LIT( KTestAPI, "In TestAPI" );
133 TestModuleIf().Printf( 0, KBCThread, KTestAPI );
135 iLog->Log( KTestAPI );
137 _LIT( KResult, "No functions to be tested");
138 _LIT( KComment, "Thread API has passed");
139 TestModuleIf().Printf( 0, KResult, KComment);
145 // -----------------------------------------------------------------------------
146 // CBCThread::?member_function
147 // ?implementation_description
148 // (other items were commented in a header).
149 // -----------------------------------------------------------------------------
152 TInt CBCThread::?member_function(
161 // ========================== OTHER EXPORTED FUNCTIONS =========================
164 // [End of File] - Do not remove