sl@0: /*
sl@0: * Copyright (c) 2004-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: #include "t_filetokens.h"
sl@0: #include "t_output.h"
sl@0: #include "t_testhandler.h"
sl@0: #include "CServerOOMTestRunner.h"
sl@0: 
sl@0: EXPORT_C CTestAction* CServerOOMTestStop::NewL(RFs& /*aFs*/,
sl@0: 											   CConsoleBase& aConsole, 
sl@0: 											   Output& aOut,
sl@0: 											   const TTestActionSpec& aTestActionSpec)
sl@0: 	{
sl@0: 	CServerOOMTestStop* self = new(ELeave) CServerOOMTestStop(aConsole, aOut);
sl@0: 	CleanupStack::PushL(self);
sl@0: 	self->ConstructL(aTestActionSpec);
sl@0: 	CleanupStack::Pop(self);
sl@0: 	return self;
sl@0: 	}
sl@0: 
sl@0: CServerOOMTestStop::~CServerOOMTestStop()
sl@0: 	{
sl@0: 	}
sl@0: 
sl@0: void CServerOOMTestStop::DoPerformPrerequisite(TRequestStatus& aStatus)
sl@0: 	{
sl@0: 	iActionState = EAction;
sl@0: 	TRequestStatus* status = &aStatus;
sl@0: 	User::RequestComplete(status, KErrNone);
sl@0: 	}
sl@0: 
sl@0: void CServerOOMTestStop::PerformAction(TRequestStatus& aStatus)
sl@0: 	{
sl@0:     iTestHandler->SetTestRunnerL(NULL);
sl@0:     
sl@0: 	TRequestStatus* status = &aStatus;
sl@0: 	User::RequestComplete(status, KErrNone);
sl@0: 	iResult = ETrue;
sl@0: 	iFinished = ETrue;
sl@0: 	iActionState = EPostrequisite;
sl@0: 	}
sl@0: 
sl@0: void CServerOOMTestStop::DoPerformPostrequisite(TRequestStatus& aStatus)
sl@0: 	{	
sl@0: 	TRequestStatus* status = &aStatus;
sl@0: 	User::RequestComplete(status, KErrNone);
sl@0: 	}
sl@0: 
sl@0: void CServerOOMTestStop::PerformCancel()
sl@0: 	{
sl@0: 	}
sl@0: 
sl@0: void CServerOOMTestStop::Reset()
sl@0: 	{
sl@0: 	}
sl@0: 
sl@0: CServerOOMTestStop::CServerOOMTestStop(CConsoleBase& aConsole, 
sl@0: 									   Output& aOut)
sl@0:     : CTestAction(aConsole, aOut)
sl@0: 	{
sl@0: 	}
sl@0: 
sl@0: void CServerOOMTestStop::ConstructL(const TTestActionSpec& aTestActionSpec)
sl@0: 	{
sl@0: 	CTestAction::ConstructL(aTestActionSpec);
sl@0: 	}
sl@0: 
sl@0: void CServerOOMTestStop::DoReportAction()
sl@0: 	{
sl@0: 	iOut.writeString(_L("Stoping memory failure sequence..."));
sl@0: 	iOut.writeNewLine();
sl@0: 	iOut.writeNewLine();
sl@0: 	}
sl@0: 
sl@0: void CServerOOMTestStop::DoCheckResult(TInt /*aError*/)
sl@0: 	{
sl@0: 	}