messagingfw/msgtestfw/Framework/inc/CMtfScriptedTestCase.h
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 /**
       
     2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22 */
       
    23 
       
    24 #ifndef __CMTF_SCRIPTED_TEST_CASE_H__
       
    25 #define __CMTF_SCRIPTED_TEST_CASE_H__
       
    26 
       
    27 #include "CMtfTestCase.h"
       
    28 
       
    29 /** Base class for a scripted test case. The functions SetupTestCaseL, ExecuteTestCaseL and
       
    30 CheckPostConditionsL are defined so that the writer of the test case does not need to define
       
    31 dummy functions. */
       
    32 class CMtfScriptedTestCase: public CMtfTestCase
       
    33 {
       
    34 public:
       
    35 	
       
    36 	/** Creates a new object. The test case may be synchronous or asynchronous. */
       
    37 	static CMtfScriptedTestCase* NewL(const CMtfTestServer& aTestServer, const TBool& aSynchronous);
       
    38     
       
    39     virtual ~CMtfScriptedTestCase();
       
    40 	
       
    41 private:
       
    42 	CMtfScriptedTestCase(const CMtfTestServer& aTestServer, const TBool& aSynchronous);
       
    43 	
       
    44 	// we need to create an instance of this, so no pure virtuals
       
    45 	virtual void SetupTestCaseL();
       
    46 	virtual void ExecuteTestCaseL();
       
    47 	virtual void CheckPostConditionsL();
       
    48 };
       
    49 
       
    50 #endif