os/mm/mmtestenv/mmtestfwunittest/src/tsu_mmtsth03/TSU_MmTsthStep03.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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_MmTsthStep03.h"
    22 #include "TSU_MmTsthSuite03.h"
    23 
    24 // preamble
    25 TVerdict RTSUMmTsthStep03::OpenL()
    26 	{
    27 	// create a CFileName with NewL, for use of tests - if this fails,
    28 	// the tests are inconclusive (cannot be run)
    29 	CFileName* theFileName = NULL;
    30 	TRAPD(err, theFileName = CFileName::NewL());
    31 	if(err != KErrNone)
    32 		{
    33 		ERR_PRINTF2(_L("CFileName::NewL left with code %d"), err);
    34 		return iTestStepResult = EInconclusive;
    35 		}
    36 	iFileName = theFileName;
    37 	return iTestStepResult = EPass;
    38 	}
    39 
    40 // postamble
    41 void RTSUMmTsthStep03::Close()
    42 	{
    43 	delete iFileName;
    44 	}
    45