os/security/cryptomgmtlibs/securitytestfw/test/testhandler2/t_certstoreactionmemfail.h
Update contrib.
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
25 #ifndef __T_CERTSTOREACTIONMEMFAIL_H__
26 #define __T_CERTSTOREACTIONMEMFAIL_H__
28 #include "t_testaction.h"
30 class CMemFailStart : public CTestAction
33 static CMemFailStart* NewL(CConsoleBase& aConsole, Output& aOut,
34 const TTestActionSpec& aTestActionSpec);
35 static CMemFailStart* NewLC(CConsoleBase& aConsole, Output& aOut,
36 const TTestActionSpec& aTestActionSpec);
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();
49 CMemFailStart(CConsoleBase& aConsole, Output& aOut);
50 void ConstructL(const TTestActionSpec& aTestActionSpec);
51 void DoReportAction();
52 void DoCheckResult(TInt aError);
56 class CMemFailStop : public CTestAction
59 static CMemFailStop* NewL(CConsoleBase& aConsole, Output& aOut,
60 const TTestActionSpec& aTestActionSpec);
61 static CMemFailStop* NewLC(CConsoleBase& aConsole, Output& aOut,
62 const TTestActionSpec& aTestActionSpec);
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();
75 CMemFailStop(CConsoleBase& aConsole, Output& aOut);
76 void ConstructL(const TTestActionSpec& aTestActionSpec);
77 void DoReportAction();
78 void DoCheckResult(TInt aError);