sl@0: /* sl@0: * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * ASN1TestAction.h: interface for the CASN1NormalTest class. sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #ifndef __ASN1TESTACTION_H__ sl@0: #define __ASN1TESTACTION_H__ sl@0: sl@0: #include "t_testaction.h" sl@0: #include "testbase.h" sl@0: sl@0: class CASN1NormalTest : public CTestAction sl@0: { sl@0: public: sl@0: static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole,Output& aOut, const TTestActionSpec& aTestActionSpec); sl@0: static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole, sl@0: Output& aOut, const TTestActionSpec& aTestActionSpec); sl@0: virtual ~CASN1NormalTest(); sl@0: void ReportProgressL(const TInt aError, const TInt aCount, const TInt aMax); sl@0: Output& Out() { return iOut;}; sl@0: protected: sl@0: CASN1NormalTest(RFs& aFs, CConsoleBase& aConsole, Output& aOut); sl@0: void ConstructL(const TTestActionSpec& aTestActionSpec); sl@0: sl@0: protected: sl@0: CTestBase *iTestType; sl@0: sl@0: private: sl@0: sl@0: void DoReportAction(); sl@0: void DoCheckResult(TInt aError); sl@0: void PerformAction(TRequestStatus& aStatus); sl@0: TBool TestResult(TInt /*aError*/); sl@0: void PerformCancel(); sl@0: void Reset(); sl@0: sl@0: //RFs& iFs; sl@0: TInt iPercentReported; sl@0: const TInt iReportNumber; sl@0: static TInt iReportCount; sl@0: }; sl@0: sl@0: #endif // !defined(AFX_ASN1TESTACTION_H__95894345_8529_11D6_AB96_00080214A261__INCLUDED_)