os/security/cryptoservices/filebasedcertificateandkeystores/test/tfiletokens/CServerOOMTestStop.cpp
Update contrib.
2 * Copyright (c) 2004-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.
19 #include "t_filetokens.h"
21 #include "t_testhandler.h"
22 #include "CServerOOMTestRunner.h"
24 EXPORT_C CTestAction* CServerOOMTestStop::NewL(RFs& /*aFs*/,
25 CConsoleBase& aConsole,
27 const TTestActionSpec& aTestActionSpec)
29 CServerOOMTestStop* self = new(ELeave) CServerOOMTestStop(aConsole, aOut);
30 CleanupStack::PushL(self);
31 self->ConstructL(aTestActionSpec);
32 CleanupStack::Pop(self);
36 CServerOOMTestStop::~CServerOOMTestStop()
40 void CServerOOMTestStop::DoPerformPrerequisite(TRequestStatus& aStatus)
42 iActionState = EAction;
43 TRequestStatus* status = &aStatus;
44 User::RequestComplete(status, KErrNone);
47 void CServerOOMTestStop::PerformAction(TRequestStatus& aStatus)
49 iTestHandler->SetTestRunnerL(NULL);
51 TRequestStatus* status = &aStatus;
52 User::RequestComplete(status, KErrNone);
55 iActionState = EPostrequisite;
58 void CServerOOMTestStop::DoPerformPostrequisite(TRequestStatus& aStatus)
60 TRequestStatus* status = &aStatus;
61 User::RequestComplete(status, KErrNone);
64 void CServerOOMTestStop::PerformCancel()
68 void CServerOOMTestStop::Reset()
72 CServerOOMTestStop::CServerOOMTestStop(CConsoleBase& aConsole,
74 : CTestAction(aConsole, aOut)
78 void CServerOOMTestStop::ConstructL(const TTestActionSpec& aTestActionSpec)
80 CTestAction::ConstructL(aTestActionSpec);
83 void CServerOOMTestStop::DoReportAction()
85 iOut.writeString(_L("Stoping memory failure sequence..."));
90 void CServerOOMTestStop::DoCheckResult(TInt /*aError*/)