kerneltest/e32test/usbho/t_otgdi/inc/testcase0465.h
changeset 43 96e5fb8b040d
equal deleted inserted replaced
-1:000000000000 43:96e5fb8b040d
       
     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 TESTCASE0465_H
       
    19 #define TESTCASE0465_H
       
    20 
       
    21 	
       
    22 //----------------------------------------------------------------------------------------------		
       
    23 //! @SYMTestCaseID				PBASE-T_OTGDI-0465
       
    24 //! @SYMTestCaseDesc			VBus drive and drop.
       
    25 //! @SYMFssID 
       
    26 //! @SYMPREQ					1782
       
    27 //! @SYMREQ						7080
       
    28 //! @SYMTestType				UT
       
    29 //! @SYMTestPriority			1 
       
    30 //! @SYMTestActions 			1. Apply a dummy Load using the OET of 450 Ohm so that IBus > 8mA
       
    31 //! 							2. Wait 1 second.
       
    32 //! 							3. Remove the dummy load via the OET board. Retrieve error event from error callback
       
    33 //! 							4. Measure VBus=0
       
    34 //! @SYMTestExpectedResults 	1. Initial value for VBus > 4.4 and <5.25 volts
       
    35 //! 							Between steps 2 and 3, we expect to see an error event, with value EMessageVbusProblem
       
    36 //! 							5. Value for VBus < 0.2v (See Notes on VBus in section 6.5.2)
       
    37 //----------------------------------------------------------------------------------------------	
       
    38 
       
    39 	class CTestCase0465 : public CTestCaseRoot
       
    40 	{
       
    41 public:
       
    42 	static CTestCase0465* NewL(TBool aHost);
       
    43 	virtual ~CTestCase0465(); 	
       
    44 	
       
    45 	virtual void ExecuteTestCaseL();
       
    46 	void DoCancel();
       
    47 	static void CancelKB(CTestCaseRoot *pThis);
       
    48 	
       
    49 	void RunStepL();
       
    50 	virtual void DescribePreconditions();
       
    51 	TInt GetStepIndex()	{ return(iCaseStep); };
       
    52 
       
    53 	static void CancelDrive(CTestCaseRoot *pThis);	
       
    54 	
       
    55 private:
       
    56 	CTestCase0465(TBool aHost);
       
    57 	void ConstructL();
       
    58 
       
    59 
       
    60 	// DATA
       
    61 private:		
       
    62 
       
    63 	TInt iRepeats;		// loop counter, 
       
    64 
       
    65 	enum TCaseSteps
       
    66 		{
       
    67 		EPreconditions,
       
    68 		ELoadLdd,		// load and ...
       
    69 		EDriveVBus,		// drive VBUS
       
    70 		EVerifyVBus,	// double-checker step
       
    71 		EVerifyBusGone,	// verify VBus dropped (manually!)
       
    72 		EUnloadLdd,		// unload 
       
    73 		ELastStep	
       
    74 		};
       
    75 	
       
    76 		
       
    77 	TCaseSteps iCaseStep;
       
    78 	
       
    79 	const static TTestCaseFactoryReceipt<CTestCase0465> iFactoryReceipt;
       
    80 	
       
    81 	CTestCaseWatchdog *iWDTimer;	
       
    82 	
       
    83 	};
       
    84 	
       
    85 	
       
    86 #endif // TESTCASE0465_H