equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file testscriptparser.h |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef TESTSCRIPTPARSER_H |
|
23 #define TESTSCRIPTPARSER_H |
|
24 |
|
25 #include <f32file.h> |
|
26 |
|
27 class CTestLog; |
|
28 |
|
29 /** |
|
30 @internalComponent |
|
31 */ |
|
32 class CTestScriptParser : public CBase |
|
33 { |
|
34 public: |
|
35 |
|
36 enum TScriptAction |
|
37 { |
|
38 ENoAction, |
|
39 ERunProgram, |
|
40 ERunTestStep, |
|
41 EPrint, |
|
42 ELoadTestSuite |
|
43 }; |
|
44 |
|
45 virtual ~CTestScriptParser() {} |
|
46 |
|
47 static CTestScriptParser* FactoryLC(TDesC& aFile, CTestLog* aLog); |
|
48 |
|
49 void OpenScriptFileL(); |
|
50 TBool GetNextTestStepL(TScriptAction &runAction, TDes ¶ms); |
|
51 |
|
52 protected: |
|
53 CTestScriptParser(TDesC& aFile, CTestLog* aLog); |
|
54 void Exit(TInt aErr); |
|
55 |
|
56 TDesC& iFile; |
|
57 CTestLog* iLog; |
|
58 RFile iCfg; |
|
59 TPtr iPtr; |
|
60 TLex iLex; |
|
61 }; |
|
62 |
|
63 |
|
64 |
|
65 #endif |