Update contrib.
1 #ifndef __TEST_ENGINE_H
2 #define __TEST_ENGINE_H
5 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
7 * This component and the accompanying materials are made available
8 * under the terms of the License "Eclipse Public License v1.0"
9 * which accompanies this distribution, and is available
10 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
12 * Initial Contributors:
13 * Nokia Corporation - initial contribution.
28 namespace NUnitTesting_USBDI
31 // Forward declarations
33 class CTestCaseController;
36 This class represents the engine for this test module.
37 It parses the command line and builds the test that should be run(through iTestCaseController)
39 class CTestEngine : public CActive
44 @return a pointer to a new instance of CTestEngine
47 static CTestEngine* NewL();
56 Retrieve the next in the list of test cases identities to run
57 @param an empty descriptor to populate with the next test case identity
58 @return KErrNone if successful or KErrNotFound if test cases identities depleted
61 TInt NextTestCaseId(TDes& aTestCaseId);
64 Retrieve the list of test cases identities
65 @return the list of test cases identities
68 RPointerArray<HBufC>& TestCasesIdentities();
71 Retrieve the number of times the test cases are repeated
72 @the number of times the test cases are repeated
77 private: // From CActive
91 TInt RunError(TInt aError);
101 2nd phase constructor
108 The test cases from the Xml file that the user wishes to execute
110 RPointerArray<HBufC> iTestCasesIdentities;
127 CTestCaseController* iTestCaseController;