|
1 /* |
|
2 * Copyright (c) 2005-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 * ASN1TestAction.h: interface for the CASN1NormalTest class. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @file |
|
26 @internalTechnology |
|
27 */ |
|
28 |
|
29 #ifndef __ASN1TESTACTION_H__ |
|
30 #define __ASN1TESTACTION_H__ |
|
31 |
|
32 #include "t_testaction.h" |
|
33 #include "testbase.h" |
|
34 |
|
35 class CASN1NormalTest : public CTestAction |
|
36 { |
|
37 public: |
|
38 static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole,Output& aOut, const TTestActionSpec& aTestActionSpec); |
|
39 static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole, |
|
40 Output& aOut, const TTestActionSpec& aTestActionSpec); |
|
41 virtual ~CASN1NormalTest(); |
|
42 void ReportProgressL(const TInt aError, const TInt aCount, const TInt aMax); |
|
43 Output& Out() { return iOut;}; |
|
44 protected: |
|
45 CASN1NormalTest(RFs& aFs, CConsoleBase& aConsole, Output& aOut); |
|
46 void ConstructL(const TTestActionSpec& aTestActionSpec); |
|
47 |
|
48 protected: |
|
49 CTestBase *iTestType; |
|
50 |
|
51 private: |
|
52 |
|
53 void DoReportAction(); |
|
54 void DoCheckResult(TInt aError); |
|
55 void PerformAction(TRequestStatus& aStatus); |
|
56 TBool TestResult(TInt /*aError*/); |
|
57 void PerformCancel(); |
|
58 void Reset(); |
|
59 |
|
60 //RFs& iFs; |
|
61 TInt iPercentReported; |
|
62 const TInt iReportNumber; |
|
63 static TInt iReportCount; |
|
64 }; |
|
65 |
|
66 #endif // !defined(AFX_ASN1TESTACTION_H__95894345_8529_11D6_AB96_00080214A261__INCLUDED_) |