kerneltest/e32test/usbho/t_otgdi/inc/testcase0671.h
changeset 9 96e5fb8b040d
equal deleted inserted replaced
-1:000000000000 9: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 TESTCASE0671_H
       
    19 #define TESTCASE0671_H
       
    20 
       
    21 const TInt KDelayDurationForTest4_5	= 30000;
       
    22 const TInt KDelayDurationForTest5_5	= 60000;
       
    23 
       
    24 
       
    25 	
       
    26 //--------------------------------------------------------------------------------------------------------		
       
    27 //! @SYMTestCaseID				PBASE-T_OTGDI-0671
       
    28 //! @SYMTestCaseDesc			Default OPT Support 
       
    29 //! @SYMFssID 
       
    30 //! @SYMPREQ					1782
       
    31 //! @SYMREQ						N/A
       
    32 //! @SYMTestType				UT
       
    33 //! @SYMTestPriority			1 
       
    34 //! @SYMTestActions 			1.Compliance test role swap against OPT TD5.5 
       
    35 //! @SYMTestExpectedResults 	1.
       
    36 //! @SYMTestStatus              Undefined	
       
    37 //---------------------------------------------------------------------------------------------------------	
       
    38 
       
    39 	class CTestCase0671 : public CTestCaseRoot
       
    40 	{
       
    41 public:
       
    42 	static CTestCase0671* NewL(TBool aHost);
       
    43 	virtual ~CTestCase0671(); 	
       
    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 	CTestCase0671(TBool aHost);
       
    57 	void ConstructL();
       
    58 
       
    59 	// DATA
       
    60 private:		
       
    61 	TInt iRepeats;		// loop counter, 
       
    62 
       
    63 	enum TCaseSteps
       
    64 		{
       
    65 		EPreconditions,
       
    66 		ELoadWithOptTestMode,
       
    67 		EConnectAtoB,
       
    68 		EStartOptTD5_5,
       
    69 		EPromptYOpt5_5,
       
    70 		EConfirmOpt5_5,		
       
    71 		EUnloadLdd,
       
    72 		ELastStep	
       
    73 		};
       
    74 		
       
    75 	TCaseSteps iCaseStep;
       
    76 	const static TTestCaseFactoryReceipt<CTestCase0671> iFactoryReceipt;
       
    77 	CTestCaseWatchdog *iWDTimer;	
       
    78 	
       
    79 	};
       
    80 	
       
    81 	
       
    82 #endif // TESTCASE0671_H