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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 #ifndef __TEST_CASE_CONTROLLER_H
19 #define __TEST_CASE_CONTROLLER_H
21 #include "TestCaseFactory.h"
24 // Forward declarations
27 class CBasicTestPolicy;
30 This class represents the test case state machine for executing the OTG test cases
32 class CTestCaseController : public CActive
35 static CTestCaseController* NewL(CTestEngine& aTestEngine,TBool aHostRole);
36 ~CTestCaseController();
39 protected: // From CActive
40 virtual void DoCancel();
42 virtual TInt RunError(TInt aError);
45 CTestCaseController(CTestEngine& aTestEngine,TBool aHostRole);
49 CTestEngine& iTestEngine;
50 TBuf<KTestCaseIdLength> iTestCaseId;
51 CBasicTestPolicy* iTestPolicy;
56 #endif // __TEST_CASE_CONTROLLER_H