equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __T_SCRIPT_H__ |
|
20 #define __T_SCRIPT_H__ |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class CTestAction; |
|
25 class RFs; |
|
26 class CConsoleBase; |
|
27 class Output; |
|
28 class TTestActionSpec; |
|
29 |
|
30 struct TScriptTests |
|
31 { |
|
32 CTestAction* (*action)(class RFs &,class CConsoleBase &,class Output &,const class TTestActionSpec &); |
|
33 |
|
34 TScriptTests(CTestAction* (*aAction)(class RFs &,class CConsoleBase &,class Output &,const class |
|
35 TTestActionSpec &), const TDesC8& aName) |
|
36 { |
|
37 name.Set(aName); |
|
38 action=aAction; |
|
39 //Set the default groupings when reading tests |
|
40 //groupings= EXOOM | EXCANCEL | SMOKE; |
|
41 }; |
|
42 //TInt groupings; |
|
43 TPtrC8 name; |
|
44 }; |
|
45 |
|
46 |
|
47 #define START_SCRIPT_LIST static TScriptTests theTestTypes[]={ |
|
48 // x is the class to create eg. TActionValidate |
|
49 // y is the name we give to the class instance when displaying results |
|
50 #define SCRIPT_ITEM(x,y) TScriptTests(&x::NewL,y) |
|
51 #define END_SCRIPT_LIST ,TScriptTests(NULL,_L8(""))}; |
|
52 |
|
53 |
|
54 #endif |