os/security/cryptoservices/filebasedcertificateandkeystores/test/tfiletokens/CServerOOMTestStart.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2004-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 #include "t_filetokens.h"
    20 #include "t_output.h"
    21 #include "t_testhandler.h"
    22 #include "CServerOOMTestRunner.h"
    23 
    24 EXPORT_C CTestAction* CServerOOMTestStart::NewL(RFs& /*aFs*/,
    25 												CConsoleBase& aConsole, 
    26 												Output& aOut,
    27 												const TTestActionSpec& aTestActionSpec)
    28 	{
    29 	CServerOOMTestStart* self = new(ELeave) CServerOOMTestStart(aConsole, aOut);
    30 	CleanupStack::PushL(self);
    31 	self->ConstructL(aTestActionSpec);
    32 	CleanupStack::Pop(self);
    33 	return self;
    34 	}
    35 
    36 CServerOOMTestStart::~CServerOOMTestStart()
    37 	{
    38 	}
    39 
    40 void CServerOOMTestStart::DoPerformPrerequisite(TRequestStatus& aStatus)
    41 	{
    42 	iActionState = EAction;
    43 	TRequestStatus* status = &aStatus;
    44 	User::RequestComplete(status, KErrNone);
    45 	}
    46 
    47 void CServerOOMTestStart::PerformAction(TRequestStatus& aStatus)
    48 	{
    49     iTestHandler->SetTestRunnerL(new (ELeave) CServerOOMTestRunner(iOut));
    50     
    51 	TRequestStatus* status = &aStatus;
    52 	User::RequestComplete(status, KErrNone);
    53 	iResult = ETrue;
    54 	iFinished = ETrue;
    55 	iActionState = EPostrequisite;
    56 	}
    57 
    58 void CServerOOMTestStart::DoPerformPostrequisite(TRequestStatus& aStatus)
    59 	{	
    60 	TRequestStatus* status = &aStatus;
    61 	User::RequestComplete(status, KErrNone);
    62 	}
    63 
    64 void CServerOOMTestStart::PerformCancel()
    65 	{
    66 	}
    67 
    68 void CServerOOMTestStart::Reset()
    69 	{
    70 	}
    71 
    72 CServerOOMTestStart::CServerOOMTestStart(CConsoleBase& aConsole, 
    73 										 Output& aOut)
    74     : CTestAction(aConsole, aOut)
    75 	{
    76 	}
    77 
    78 void CServerOOMTestStart::ConstructL(const TTestActionSpec& aTestActionSpec)
    79 	{
    80 	CTestAction::ConstructL(aTestActionSpec);
    81 	}
    82 
    83 void CServerOOMTestStart::DoReportAction()
    84 	{
    85 	iOut.writeString(_L("Starting memory failure sequence..."));
    86 	iOut.writeNewLine();
    87 	iOut.writeNewLine();
    88 	}
    89 
    90 void CServerOOMTestStart::DoCheckResult(TInt /*aError*/)
    91 	{
    92 	}