camerasrv_plat/asynchronous_file_saving_queue_api/tsrc/inc/TestFramework/test.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:23:23 +0100
branchRCL_3
changeset 34 27fe719c32e6
parent 0 9b3e960ffc8a
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201031 Kit: 201035

/*
* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  FSQ Test DLL
*
*/



#ifndef __CPPUNIT_MTEST_H
#define __CPPUNIT_MTEST_H

#include <e32base.h>
#include <StifTestModule.h>
class CCppUnitLog;


// A MTest can be run and collect its results. See CTestResult.
//
class MTest
	{
public:

	virtual ~MTest() { }

    virtual void ExecuteL (TTestResult& aResult) = 0;
    
	virtual TInt CountTestCases () = 0;
    
	virtual const TDesC8& Name () = 0;

    // Same functions with an Index.
    virtual void ExecuteTestL(TTestResult& aResult,
                      TInt aIndex) = 0;

    virtual const TDesC8& TestCaseName (TInt aIndex) = 0;
	};

// All the polymorphic DLLs containing tests should use the following UID:
//
const TInt KCppUnitTestDllUidValue=0x101F5380;
const TUid KCppUnitTestDllUid={KCppUnitTestDllUidValue};

#endif