messagingfw/msgtestfw/Framework/src/CMtfTestBeginManager.cpp
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 2003-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 /**
       
    17  @file
       
    18 */
       
    19 
       
    20 #include "CMtfTestBeginManager.h"
       
    21 #include "CMtfTestServer.h"
       
    22 #include "CMtfScriptedTestCase.h"
       
    23 	 
       
    24 CMtfTestBeginManager* CMtfTestBeginManager::NewL(CMtfTestServer& aTestServer,
       
    25 		const TBool& aSynchronous)
       
    26 {
       
    27 	CMtfTestBeginManager* self=new(ELeave) CMtfTestBeginManager(aTestServer,aSynchronous);
       
    28 	return self;
       
    29 }
       
    30  
       
    31 CMtfTestBeginManager::CMtfTestBeginManager(CMtfTestServer& aTestServer,
       
    32 		const TBool& aSynchronous)
       
    33 : CTestStep(), iTestServer(aTestServer), iSynchronous(aSynchronous)
       
    34 {
       
    35 }
       
    36 		
       
    37 CMtfTestBeginManager::~CMtfTestBeginManager()
       
    38 {
       
    39 }
       
    40 
       
    41 TVerdict CMtfTestBeginManager::doTestStepPreambleL()  
       
    42 {
       
    43 	return TestStepResult();
       
    44 }
       
    45 	
       
    46 /** Creates a new scripted test case and hands it over to the test server. */
       
    47 TVerdict CMtfTestBeginManager::doTestStepL()
       
    48 {
       
    49 	iTestServer.SetCurrentTestCase(CMtfScriptedTestCase::NewL(iTestServer,iSynchronous));
       
    50 	return TestStepResult();
       
    51 }
       
    52 		
       
    53 TVerdict CMtfTestBeginManager::doTestStepPostambleL()
       
    54 {
       
    55 	return TestStepResult();
       
    56 }