kerneltest/e32test/usbho/t_otgdi/inc/testcase0457.h
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 #ifndef TESTCASE_0457_H
       
     2 #define TESTCASE_0457_H
       
     3 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     4 // All rights reserved.
       
     5 // This component and the accompanying materials are made available
       
     6 // under the terms of the License "Eclipse Public License v1.0"
       
     7 // which accompanies this distribution, and is available
       
     8 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     9 //
       
    10 // Initial Contributors:
       
    11 // Nokia Corporation - initial contribution.
       
    12 //
       
    13 // Contributors:
       
    14 //
       
    15 // Description:
       
    16 // @internalComponent
       
    17 // Open/Close 'disconnected' test
       
    18 // 2. Call function to close OTGDI driver session.
       
    19 // 3. Repeat from step 1 (x 3)
       
    20 // 
       
    21 //
       
    22 
       
    23 //! @SYMTestCaseID				PBASE-T_OTGDI-0457
       
    24 //! @SYMTestCaseDesc			OTGDI driver session can be repeatedly opened and closed without a) panicking or b) leaking resources.
       
    25 //! @SYMFssID 
       
    26 //! @SYMPREQ					1782
       
    27 //! @SYMREQ						n/a
       
    28 //! @SYMTestType				UT
       
    29 //! @SYMTestPriority			1 
       
    30 //! @SYMTestActions 			1. A plug removed. Call function to open OTGDI driver session.
       
    31 //! @SYMTestExpectedResults 	No panic occurs, no error code returned, we get session handle; session gets closed
       
    32 //! @SYMTestStatus				Proto
       
    33 
       
    34 	class CTestCase0457 : public CTestCaseRoot
       
    35 	{
       
    36 public:
       
    37 	static CTestCase0457* NewL(TBool aHost);
       
    38 	virtual ~CTestCase0457(); 	
       
    39 
       
    40 	virtual void ExecuteTestCaseL();
       
    41 	void DoCancel();
       
    42 	void RunStepL();
       
    43 
       
    44 	virtual void DescribePreconditions();
       
    45 	TInt GetStepIndex()	{ return(iCaseStep); };
       
    46 		
       
    47 private:
       
    48 	CTestCase0457(TBool aHost);
       
    49 	void ConstructL();
       
    50 
       
    51 
       
    52 	// DATA
       
    53 private:
       
    54 	enum TCaseSteps
       
    55 		{
       
    56 		EPreconditions,
       
    57 		ELoadLdd,
       
    58 		EUnloadLdd,
       
    59 		ELoopDecrement,
       
    60 		ELastStep	
       
    61 		};
       
    62 	
       
    63 	TCaseSteps iCaseStep;
       
    64 	TInt       iRepeats;		// loop counter, set to run 3 times over
       
    65 	
       
    66 	const static TTestCaseFactoryReceipt<CTestCase0457> iFactoryReceipt;
       
    67 	
       
    68 	};
       
    69 	
       
    70 	
       
    71 #endif // TESTCASE_0457_H