|
1 /* |
|
2 * Copyright (c) 1998-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 * CSyntaxTest class implementation |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 @internalTechnology |
|
25 */ |
|
26 |
|
27 #ifndef __CSyntaxTest_H |
|
28 #define __CSyntaxTest_H |
|
29 |
|
30 #include "t_testaction.h" |
|
31 #include "CertWriter.h" |
|
32 |
|
33 class CSyntaxTest : public CTestAction |
|
34 { |
|
35 public: |
|
36 static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, |
|
37 Output& aOut, const TTestActionSpec& aTestActionSpec); |
|
38 static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole, |
|
39 Output& aOut, const TTestActionSpec& aTestActionSpec); |
|
40 void TestValidation(TRequestStatus& aStatus); |
|
41 ~CSyntaxTest(); |
|
42 |
|
43 public: |
|
44 virtual void DoPerformPrerequisite(TRequestStatus& aStatus); |
|
45 virtual void DoPerformPostrequisite(TRequestStatus& aStatus); |
|
46 virtual void PerformAction(TRequestStatus& aStatus); |
|
47 |
|
48 virtual void DoReportAction(); |
|
49 virtual void DoCheckResult(TInt aError); |
|
50 |
|
51 private: |
|
52 CSyntaxTest(RFs& aFs, CConsoleBase& aConsole, Output& aOut); |
|
53 void ConstructL(const TTestActionSpec& aTestActionSpec); |
|
54 void ReadAndSyntaxCheckL(const TDesC &aFilename); |
|
55 |
|
56 private: |
|
57 RFs& iFs; |
|
58 CDir* iDirList; |
|
59 TInt nFileNumber; |
|
60 WTLSCertWriter* iWriter; |
|
61 TBuf<128> iPath; |
|
62 RFile iLogFile; |
|
63 FileOutput* iSyntaxOut; |
|
64 static TInt nInstances; |
|
65 }; |
|
66 |
|
67 #endif |