cryptomgmtlibs/securitytestfw/test/testhandler2/t_mtestspec.h
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 /*
       
     2 * Copyright (c) 2002-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 the License "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 * M_testspec.H
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __MTESTSPEC_H__
       
    21 #define __MTESTSPEC_H__
       
    22 
       
    23 class CTestAction;
       
    24 
       
    25 /**
       
    26  * This class defines the interface that must be provided by the objects passed
       
    27  * to a CTestHandler. It allows the CTestHandler object to get the next test it has to
       
    28  * run.
       
    29  */
       
    30 class MTestSpec
       
    31 	{
       
    32 public:
       
    33 	/**
       
    34 	 * This function returns the next test to be run.
       
    35 	 * @param aAction This is a reference to a pointer which will be initialized
       
    36 	 * by the function so that it points to the next test to run. The action is owned
       
    37 	 * by the MTestSpec and must not be deleted by the CTestHandler object.
       
    38 	 * @retval ETrue if there is another test to run. In this case aAction points to the 
       
    39 	 * test to run.
       
    40 	 * @retval EFalse if there is no more test to run. In this case aAction is meaningless.
       
    41 	 */
       
    42 	virtual TBool GetNextTest(CTestAction*& aAction) = 0;
       
    43 	};
       
    44 
       
    45 #endif