kerneltest/e32test/usbho/t_otgdi/inc/testcase0463.h
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     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 TESTCASE0463_H
       
    19 #define TESTCASE0463_H
       
    20 
       
    21 
       
    22 
       
    23 	
       
    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.
       
    27 //!	@SYMFssID 
       
    28 //!	@SYMPREQ					1782
       
    29 //!	@SYMREQ						n/a
       
    30 //!	@SYMTestType				UT
       
    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 //----------------------------------------------------------------------------------------------	
       
    38 
       
    39 	class CTestCase0463 : public CTestCaseRoot
       
    40 	{
       
    41 public:
       
    42 	static CTestCase0463* NewL(TBool aHost);
       
    43 	virtual ~CTestCase0463(); 	
       
    44 
       
    45 	virtual void ExecuteTestCaseL();
       
    46 	void DoCancel();
       
    47 	void RunStepL();
       
    48 	virtual void DescribePreconditions();
       
    49 	TInt GetStepIndex()	{ return(iCaseStep); };
       
    50 		
       
    51 private:
       
    52 	CTestCase0463(TBool aHost);
       
    53 	void ConstructL();
       
    54 
       
    55 
       
    56 	// DATA
       
    57 private:
       
    58 
       
    59 	enum TCaseSteps
       
    60 		{
       
    61 		EMarkStack,
       
    62 		ELoadLdd,
       
    63 		EDoSomething,	// does nothing right now
       
    64 		EUnloadLdd,
       
    65 		ELoopDecrement,
       
    66 		ELastStep	
       
    67 		};
       
    68 	
       
    69 	TCaseSteps iCaseStep;
       
    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
       
    73 
       
    74 	TInt		* aIntegerP;
       
    75 	
       
    76 	const static TTestCaseFactoryReceipt<CTestCase0463> iFactoryReceipt;
       
    77 	
       
    78 	
       
    79 	};
       
    80 	
       
    81 	
       
    82 #endif // TESTCASE0463_H