imagingtestenv/imagingtestfwunittest/src/tsu_mmtsth11/TSU_MmTsthStep11.cpp
changeset 0 5752a19fdefe
equal deleted inserted replaced
-1:000000000000 0:5752a19fdefe
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 // EPOC includes
       
    17 #include <e32base.h>
       
    18 
       
    19 // Test system includes
       
    20 #include <testframework.h>
       
    21 #include "TSU_MmTsthStep11.h"
       
    22 #include "TSU_MmTsthSuite11.h"
       
    23 
       
    24 // preamble
       
    25 TVerdict RTSUMmTsthStep11::OpenL()
       
    26 	{
       
    27 	// initialise iStepStub for tests. if this fails, tests are
       
    28 	// inconclusive (will not run)
       
    29 	RTestStepVirtualStub* theStepStub = NULL;
       
    30 	TRAPD(err, theStepStub = RTestStepVirtualStub::NewL());
       
    31 	if(err != KErrNone)
       
    32 		{
       
    33 		ERR_PRINTF1(_L("RTestStepVirtualStub::NewL() left"));
       
    34 		return iTestStepResult = EInconclusive;
       
    35 		}
       
    36 
       
    37 	iStepStub = theStepStub;
       
    38 	// set its suite to the suite of this step - so that it can do logging
       
    39 	iStepStub->SetSuite(iSuite);
       
    40 
       
    41 	return iTestStepResult = EPass;
       
    42 	}
       
    43 
       
    44 // postamble
       
    45 void RTSUMmTsthStep11::Close()
       
    46 	{
       
    47 	delete iStepStub;
       
    48 	}