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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 // Test system includes
20 #include <testframework.h>
22 #include "parseline.h"
24 #include "TSU_MmTsthStep01.h"
25 #include "TSU_MmTsthSuite01.h"
28 TVerdict RTSUMmTsthStep01::OpenL()
30 // initialise iParseLine and associated objects for tests. if this fails, tests are
31 // inconclusive (will not run)
32 // initialise a CParseLine
33 iLogClient = iSuite->LogSystem();
34 TInt64 theGuardTimer (-1);
36 TRAPD(err, iTestUtils = CTestUtils::NewL(iLogClient));
39 ERR_PRINTF2(_L("Could not initialise CTestUtils, error code %d"), err);
40 return iTestStepResult = EInconclusive;
43 // NB : CScript does not have a NewL()
44 TRAPD(err2, iTestScript = CScript::NewLC(iTestUtils, iLogClient, theGuardTimer, KNullDesC);
45 CleanupStack::Pop(iTestScript) );
48 ERR_PRINTF2(_L("Could not initialise CScript, error code %d"), err2);
50 return iTestStepResult = EInconclusive;
53 TRAPD(err3, iParseLine = CParseLine::NewL(iTestScript, iTestUtils, iLogClient, theGuardTimer, KNullDesC));
56 ERR_PRINTF2(_L("Could not initialise CParseLine, error code %d"), err3);
59 return iTestStepResult = EInconclusive;
62 return iTestStepResult = EPass;
66 void RTSUMmTsthStep01::Close()