os/kernelhwsrv/kerneltest/e32test/usbho/t_otgdi/inc/testcase0464.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 TESTCASE0464_H
    19 #define TESTCASE0464_H
    20 
    21 
    22 	
    23 //----------------------------------------------------------------------------------------------		
    24 //! @SYMTestCaseID				KPBASE-T_OTGDI-0464
    25 //! @SYMTestCaseDesc			VBus drive and drop.
    26 //! @SYMFssID 
    27 //! @SYMPREQ					1782
    28 //! @SYMREQ						7080
    29 //! @SYMTestType				UT
    30 //! @SYMTestPriority			1 
    31 //! @SYMTestActions 			1. Load LDD and start stack
    32 //! 							2. raise Vbus
    33 //! 							3. wait for confirmation input (7 seconds)
    34 //! 							4. drop vBus
    35 //! 							5. wait for confirmation manual input (7 sec)
    36 //! 							6. end test
    37 //! @SYMTestExpectedResults 	1. user input at step 3 and 5 is a 'Y' to indicate 
    38 //!                                5V and 0V measured at each occasion
    39 //----------------------------------------------------------------------------------------------		
    40 
    41 	class CTestCase0464 : public CTestCaseRoot
    42 	{
    43 public:
    44 	static CTestCase0464* NewL(TBool aHost);
    45 	virtual ~CTestCase0464(); 	
    46 
    47 	virtual void ExecuteTestCaseL();
    48 	void DoCancel();
    49 	static void CancelKB(CTestCaseRoot *pThis);
    50 	
    51 	void RunStepL();
    52 	virtual void DescribePreconditions();
    53 	TInt GetStepIndex()	{ return(iCaseStep); };
    54 		
    55 private:
    56 	CTestCase0464(TBool aHost);
    57 	void ConstructL();
    58 
    59 	// DATA
    60 public:
    61 
    62 private:	
    63 
    64 	enum TCaseSteps
    65 		{
    66 		EPreconditions,
    67 		ELoadLdd,
    68 		EDriveBus,	
    69 		EUnloadLdd,
    70 		EVerifyVBusGone,
    71 		ELastStep	
    72 		};
    73 	
    74 		
    75 	TCaseSteps iCaseStep;
    76 	
    77 	const static TTestCaseFactoryReceipt<CTestCase0464> iFactoryReceipt;
    78 	
    79 	
    80 	};
    81 	
    82 	
    83 #endif // TESTCASE0464_H