crypto/weakcryptospi/test/tbigint/tprimegenperformance.h
changeset 8 35751d3474b7
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __TPRIMEGENPERFORMANCE_H__
       
    20 #define __TPRIMEGENPERFORMANCE_H__
       
    21 
       
    22 #include "t_testaction.h"
       
    23 #include <e32std.h>
       
    24 #include <bigint.h>
       
    25 
       
    26 class CPrimeGenPerformance : public CTestAction
       
    27 {
       
    28 public:
       
    29 	static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole,
       
    30 		Output& aOut, const TTestActionSpec& aTestActionSpec);
       
    31 	static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole,
       
    32 		Output& aOut, const TTestActionSpec& aTestActionSpec);
       
    33 	virtual ~CPrimeGenPerformance();
       
    34 	virtual void DoPerformPrerequisite(TRequestStatus& aStatus);
       
    35 	virtual void DoPerformPostrequisite(TRequestStatus& aStatus);
       
    36 	virtual void PerformAction(TRequestStatus& aStatus);
       
    37 	virtual void DoReportAction(void);
       
    38 	virtual void DoCheckResult(TInt);
       
    39 
       
    40 private:
       
    41 	CPrimeGenPerformance(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
       
    42 	void ConstructL(const TTestActionSpec& aTestActionSpec);
       
    43 
       
    44 	RFs& iFs;
       
    45 	HBufC8* iBody;
       
    46 	TUint iIterations;
       
    47 	TUint iBits;
       
    48 };
       
    49 
       
    50 #endif