os/kernelhwsrv/kerneltest/e32test/usbho/t_otgdi/inc/testcasecontroller.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // @internalComponent
    15 // 
    16 //
    17 
    18 #ifndef __TEST_CASE_CONTROLLER_H
    19 #define __TEST_CASE_CONTROLLER_H
    20 
    21 #include "TestCaseFactory.h"
    22 
    23 	
    24 // Forward declarations
    25 
    26 class CTestEngine;
    27 class CBasicTestPolicy;
    28 
    29 /**
    30 This class represents the test case state machine for executing the OTG test cases
    31 */
    32 class CTestCaseController : public CActive
    33 	{
    34 public:
    35 	static CTestCaseController* NewL(CTestEngine& aTestEngine,TBool aHostRole);
    36 	~CTestCaseController();
    37 	
    38 	
    39 protected: // From CActive
    40 	virtual void DoCancel();
    41 	virtual void RunL();
    42 	virtual TInt RunError(TInt aError);
    43 	
    44 private:
    45 	CTestCaseController(CTestEngine& aTestEngine,TBool aHostRole);
    46 	void ConstructL();
    47 	
    48 private:
    49 	CTestEngine& iTestEngine;
    50 	TBuf<KTestCaseIdLength> iTestCaseId;
    51 	CBasicTestPolicy* iTestPolicy;
    52 	TBool iHostRole;
    53 	};
    54 
    55 
    56 #endif // __TEST_CASE_CONTROLLER_H