omxil/xmltestharness/te_xmlomxclient/src/omxxmltestrunner.h
branchOpenMAX-IL_SHAI
changeset 16 eedf2dcd43c6
equal deleted inserted replaced
15:c1e808730d6c 16:eedf2dcd43c6
       
     1 /*
       
     2 * Copyright (c) 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 #ifndef OMXXMLTESTRUNNER_H
       
    20 #define OMXXMLTESTRUNNER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <multimedia/omx_xml_script.h>
       
    24 
       
    25 class CTestExecuteLogger;
       
    26 
       
    27 class COmxXmlTestRunner : public CBase, public MOmxScriptTestLogger
       
    28 	{
       
    29 public:
       
    30 	static COmxXmlTestRunner* NewL(CTestExecuteLogger& aLogger);
       
    31 	~COmxXmlTestRunner();
       
    32 	
       
    33 	void SetFilenameL(const TDesC& aFilename);
       
    34 	void RunTestL(const TDesC& aSectionName);
       
    35 	
       
    36 	// from MOmxScriptTestLogger
       
    37 	void Log(const TText8* aFile, TInt aLine, TOmxScriptSeverity aSeverity, const TDes& aMessage);
       
    38 	
       
    39 private:
       
    40 	COmxXmlTestRunner(CTestExecuteLogger& aLogger);
       
    41 	void ConstructL();
       
    42 	
       
    43 	CTestExecuteLogger& iTestExecuteLogger;
       
    44 	HBufC* iFilename;
       
    45 	COmxXmlScript* iScript;
       
    46 	};
       
    47 
       
    48 #endif //OMXXMLTESTRUNNER_H