os/security/crypto/weakcryptospi/test/tbigint/tbasicmathsfb.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 __TBASICMATHSFB_H__
    20 #define __TBASICMATHSFB_H__
    21 
    22 #include "t_testaction.h"
    23 #include <e32std.h>
    24 
    25 class TInteger;
    26 
    27 class CBasicMathsFB : public CTestAction
    28 {
    29 public:
    30 	static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole,
    31 		Output& aOut, const TTestActionSpec& aTestActionSpec);
    32 	static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole,
    33 		Output& aOut, const TTestActionSpec& aTestActionSpec);
    34 	virtual ~CBasicMathsFB();
    35 	virtual void DoPerformPrerequisite(TRequestStatus& aStatus);
    36 	virtual void DoPerformPostrequisite(TRequestStatus& aStatus);
    37 	virtual void PerformAction(TRequestStatus& aStatus);
    38 	virtual void DoReportAction(void);
    39 	virtual void DoCheckResult(TInt);
    40 
    41 private:
    42 	CBasicMathsFB(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
    43 	void ConstructL(const TTestActionSpec& aTestActionSpec);
    44 	void AddSub(const TInteger& aInitial, TUint aRange);
    45 	void MulDiv(const TInteger& aInitial, TUint aRange);
    46 	void MiscDivL();
    47 
    48 	RFs& iFs;
    49 	TUint iIterations;
    50 	HBufC8* iBody;
    51 };
    52 
    53 #endif