sl@0: /* sl@0: * Copyright (c) 2006-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: * sl@0: */ sl@0: sl@0: sl@0: sl@0: sl@0: /** sl@0: @file sl@0: */ sl@0: sl@0: #ifndef __T_CERTSTOREACTIONMEMFAIL_H__ sl@0: #define __T_CERTSTOREACTIONMEMFAIL_H__ sl@0: sl@0: #include "t_testaction.h" sl@0: sl@0: class CMemFailStart : public CTestAction sl@0: { sl@0: public: sl@0: static CMemFailStart* NewL(CConsoleBase& aConsole, Output& aOut, sl@0: const TTestActionSpec& aTestActionSpec); sl@0: static CMemFailStart* NewLC(CConsoleBase& aConsole, Output& aOut, sl@0: const TTestActionSpec& aTestActionSpec); sl@0: ~CMemFailStart(); sl@0: virtual void PerformAction(TRequestStatus& aStatus); sl@0: virtual void DoPerformPrerequisite(TRequestStatus& aStatus) { iActionState = EAction; sl@0: TRequestStatus* status = &aStatus; sl@0: User::RequestComplete(status, KErrNone);}; sl@0: virtual void DoPerformPostrequisite(TRequestStatus& aStatus) { sl@0: TRequestStatus* status = &aStatus; sl@0: User::RequestComplete(status, KErrNone);}; sl@0: virtual void PerformCancel(); sl@0: virtual void Reset(); sl@0: sl@0: private: sl@0: CMemFailStart(CConsoleBase& aConsole, Output& aOut); sl@0: void ConstructL(const TTestActionSpec& aTestActionSpec); sl@0: void DoReportAction(); sl@0: void DoCheckResult(TInt aError); sl@0: }; sl@0: sl@0: sl@0: class CMemFailStop : public CTestAction sl@0: { sl@0: public: sl@0: static CMemFailStop* NewL(CConsoleBase& aConsole, Output& aOut, sl@0: const TTestActionSpec& aTestActionSpec); sl@0: static CMemFailStop* NewLC(CConsoleBase& aConsole, Output& aOut, sl@0: const TTestActionSpec& aTestActionSpec); sl@0: ~CMemFailStop(); sl@0: virtual void PerformAction(TRequestStatus& aStatus); sl@0: virtual void DoPerformPrerequisite(TRequestStatus& aStatus) { iActionState = EAction; sl@0: TRequestStatus* status = &aStatus; sl@0: User::RequestComplete(status, KErrNone);}; sl@0: virtual void DoPerformPostrequisite(TRequestStatus& aStatus) { sl@0: TRequestStatus* status = &aStatus; sl@0: User::RequestComplete(status, KErrNone);}; sl@0: virtual void PerformCancel(); sl@0: virtual void Reset(); sl@0: sl@0: private: sl@0: CMemFailStop(CConsoleBase& aConsole, Output& aOut); sl@0: void ConstructL(const TTestActionSpec& aTestActionSpec); sl@0: void DoReportAction(); sl@0: void DoCheckResult(TInt aError); sl@0: }; sl@0: sl@0: #endif sl@0: