diff -r 000000000000 -r 9b3e960ffc8a camappengine/asynchfilesavequeue/tsrc/public/basic/inc/TestFramework/test.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/camappengine/asynchfilesavequeue/tsrc/public/basic/inc/TestFramework/test.h Thu Dec 17 08:51:24 2009 +0200 @@ -0,0 +1,55 @@ +/* +* 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 +#include +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 +