os/security/cryptomgmtlibs/securitytestfw/test/testhandler2/t_certstoreactionmemfail.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2006-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 
    20 
    21 /**
    22  @file
    23 */
    24 
    25 #ifndef __T_CERTSTOREACTIONMEMFAIL_H__
    26 #define __T_CERTSTOREACTIONMEMFAIL_H__
    27 
    28 #include "t_testaction.h"
    29 
    30 class CMemFailStart : public CTestAction
    31 	{
    32 public:
    33 	static CMemFailStart* NewL(CConsoleBase& aConsole, Output& aOut,
    34 		const TTestActionSpec& aTestActionSpec);
    35 	static CMemFailStart* NewLC(CConsoleBase& aConsole, Output& aOut, 
    36 		const TTestActionSpec& aTestActionSpec);
    37 	~CMemFailStart();
    38 	virtual void PerformAction(TRequestStatus& aStatus);
    39 	virtual void DoPerformPrerequisite(TRequestStatus& aStatus) {	iActionState = EAction;
    40 	TRequestStatus* status = &aStatus;
    41 	User::RequestComplete(status, KErrNone);};
    42 	virtual void DoPerformPostrequisite(TRequestStatus& aStatus) {	
    43 	TRequestStatus* status = &aStatus;
    44 	User::RequestComplete(status, KErrNone);};
    45 	virtual void PerformCancel();
    46 	virtual void Reset();
    47 
    48 private:
    49 	CMemFailStart(CConsoleBase& aConsole, Output& aOut);
    50 	void ConstructL(const TTestActionSpec& aTestActionSpec);
    51 	void DoReportAction();
    52 	void DoCheckResult(TInt aError);
    53 	};
    54 
    55 
    56 class CMemFailStop : public CTestAction
    57 	{
    58 public:
    59 	static CMemFailStop* NewL(CConsoleBase& aConsole, Output& aOut,
    60 		const TTestActionSpec& aTestActionSpec);
    61 	static CMemFailStop* NewLC(CConsoleBase& aConsole, Output& aOut,
    62 		const TTestActionSpec& aTestActionSpec);
    63 	~CMemFailStop();
    64 	virtual void PerformAction(TRequestStatus& aStatus);
    65 	virtual void DoPerformPrerequisite(TRequestStatus& aStatus) {	iActionState = EAction;
    66 	TRequestStatus* status = &aStatus;
    67 	User::RequestComplete(status, KErrNone);};
    68 	virtual void DoPerformPostrequisite(TRequestStatus& aStatus) {	
    69 	TRequestStatus* status = &aStatus;
    70 	User::RequestComplete(status, KErrNone);};
    71 	virtual void PerformCancel();
    72 	virtual void Reset();
    73 
    74 private:
    75 	CMemFailStop(CConsoleBase& aConsole, Output& aOut);
    76 	void ConstructL(const TTestActionSpec& aTestActionSpec);
    77 	void DoReportAction();
    78 	void DoCheckResult(TInt aError);
    79 	};
    80 
    81 #endif
    82