messagingappbase/smsmtm/test/src/t_testSmsBase_Step.cpp
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 27 e4592d119491
child 37 518b245aa84c
child 79 2981cb3aa489
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
     1 // Copyright (c) 2005-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 #include <test/testexecutelog.h>
       
    17 #include "t_testSmsBase_Step.h"
       
    18 
       
    19 GLDEF_D RTest				test(_L("SMCM Test Harness"));
       
    20 
       
    21 CTestSmsBaseStep::CTestSmsBaseStep()
       
    22 	{
       
    23 	}
       
    24 		
       
    25 CTestSmsBaseStep::~CTestSmsBaseStep()
       
    26 	{
       
    27 	delete iSmcmTest;	
       
    28 	delete iSmsTestUtils;
       
    29 	delete iScheduler;
       
    30 	}
       
    31 
       
    32 TVerdict CTestSmsBaseStep::doTestStepPreambleL()
       
    33 	{
       
    34 	SetTestStepResult(EPass);
       
    35 	
       
    36 	// Create and install the active scheduler
       
    37  	iScheduler = new (ELeave) CActiveScheduler();
       
    38 	CActiveScheduler::Install(iScheduler);
       
    39 	
       
    40 	iSmsTestUtils = CSmsTestUtils::NewL(test);
       
    41 	TInt nextTest=0;
       
    42 	iSmcmTest = CSmutTest::NewLC(*iSmsTestUtils, KNullDesC, nextTest,*this);
       
    43 	CleanupStack::Pop(iSmcmTest);
       
    44 	
       
    45 	return TestStepResult();
       
    46 	}		
       
    47 
       
    48 TVerdict CTestSmsBaseStep::doTestStepL()
       
    49 	{			
       
    50 	SetTestStepResult(EPass);
       
    51 	return TestStepResult();
       
    52 	}	
       
    53 
       
    54 TVerdict CTestSmsBaseStep::doTestStepPostambleL()
       
    55 /**
       
    56  * @return - TVerdict code
       
    57  * Override of base class virtual
       
    58  */
       
    59 	{
       
    60 	return TestStepResult();
       
    61 	}
       
    62 	
       
    63 	
       
    64 
       
    65