First public contribution.
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.
15 // Open/Close 'powered peripheral' test
19 #ifndef TESTCASE_0458_H
20 #define TESTCASE_0458_H
24 //----------------------------------------------------------------------------------------------
25 //! @SYMTestCaseID PBASE-T_OTGDI-0458
26 //! @SYMTestCaseDesc OTGDI driver session can be repeatedly opened and closed without a) panicking or b) leaking resources.
31 //! @SYMTestPriority 1
32 //! @SYMTestActions 1. B plug and and plugged into Host. Call function to open OTGDI driver session.
33 //! 2. Call function to close OTGDI driver session.
34 //! 3. Repeat from step 1 (x 3)
35 //! @SYMTestExpectedResults No panic occurs, no error code returned, we get session handle; session gets closed
36 //! @SYMTestStatus Proto
37 //----------------------------------------------------------------------------------------------
39 class CTestCase0458 : public CTestCaseRoot
42 static CTestCase0458* NewL(TBool aHost);
43 virtual ~CTestCase0458();
45 virtual void ExecuteTestCaseL();
49 virtual void DescribePreconditions();
50 TInt GetStepIndex() { return(iCaseStep); };
53 CTestCase0458(TBool aHost);
69 TInt iRepeats; // loop counter, set to run 3 times over
71 const static TTestCaseFactoryReceipt<CTestCase0458> iFactoryReceipt;
76 #endif // TESTCASE_0458_H