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.
18 #ifndef TESTCASE0463_H
19 #define TESTCASE0463_H
24 //----------------------------------------------------------------------------------------------
25 //! @SYMTestCaseID PBASE-T_OTGDI-0463
26 //! @SYMTestCaseDesc OTGDI driver session can be repeatedly opened and closed without a) panicking or b) leaking resources.
31 //! @SYMTestPriority 1
32 //! @SYMTestActions 1. 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 CTestCase0463 : public CTestCaseRoot
42 static CTestCase0463* NewL(TBool aHost);
43 virtual ~CTestCase0463();
45 virtual void ExecuteTestCaseL();
48 virtual void DescribePreconditions();
49 TInt GetStepIndex() { return(iCaseStep); };
52 CTestCase0463(TBool aHost);
63 EDoSomething, // does nothing right now
70 TInt iRepeats; // loop counter, set to run 10 times over
71 TInt iAllocFailNumber; // May be same as the loop index,
72 // separated to allow us to adjust separately
76 const static TTestCaseFactoryReceipt<CTestCase0463> iFactoryReceipt;
82 #endif // TESTCASE0463_H