diff -r 000000000000 -r 2e3d3ce01487 contenthandling/webrecognisers/Test/t_recogtest/crectestengine.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contenthandling/webrecognisers/Test/t_recogtest/crectestengine.h Tue Feb 02 10:12:00 2010 +0200 @@ -0,0 +1,58 @@ +// Copyright (c) 1997-2009 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: +// + +#ifndef __CRECTESTENGINE_H__ +#define __CRECTESTENGINE_H__ + +#include +#include +#include +#include + +#include "cecomrecogtest.h" +#include "tfailedrectest.h" + +class CRecTestLogger; + +class CRecTestEngine : public CBase + { +public: + static CRecTestEngine* NewL(); + ~CRecTestEngine(); + + void StartTestsL(); + +private: + CRecTestEngine(); + void ConstructL(); + + void RunTestCasesFromPluginL(TInt aPluginIndex); + void ProcessTestResultL(TInt aError); + +private: + REComSession iEcomSession; + RImplInfoPtrArray iPluginArray; + RPointerArray iTestArray; + RTest iTest; + CRecTestLogger* iLogger; + RApaLsSession iAppArcSession; + TInt iTestPassCount; + TInt iTestFailCount; + TInt iCurrentTest; + const TDesC* iCurrentTestTitle; + RPointerArray iFailedTests; + }; + +#endif // __CRECTESTENGINE_H__