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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 #ifndef TESTCASE0676_H
19 #define TESTCASE0676_H
23 //----------------------------------------------------------------------------------------------
24 //! @SYMTestCaseID PBASE-T_OTGDI-0476
25 //! @SYMTestCaseDesc A-Device requests bus, VBUS down (PBASE-USB_OTGDI-0676)
30 //! @SYMTestPriority 1
31 //! @SYMTestActions 1. Call function on OTGDI to trigger raise VBUS - BusRequest()
32 //! 2. Retrieve error event from error callback
33 //! @SYMTestExpectedResults Error KErrUsbOtgVbusAlreadyRaised should be observed
34 //! @SYMTestStatus Implemented
35 //----------------------------------------------------------------------------------------------
37 class CTestCase0676 : public CTestCaseRoot
40 static CTestCase0676* NewL(TBool aHost);
41 virtual ~CTestCase0676();
44 virtual void ExecuteTestCaseL();
46 static void CancelKB(CTestCaseRoot *pThis);
49 virtual void DescribePreconditions();
50 TInt GetStepIndex() { return(iCaseStep); };
52 static void CancelNotify(CTestCaseRoot *pThis);
55 CTestCase0676(TBool aHost);
60 TInt iRepeats; // loop counter,
67 EDetectAPlug, // double-check before starting
68 ELoopControl, // loop: loop control =3x3 times (wait 50ms)
69 ELoopDriveVBus, // loop: drive
70 ELoopVerifyVBus,// loop: check
71 ELoopWait, // loop: wait (50ms)
72 ELoopDropVBus, // loop: drop
73 ELoopVerifyDrop,// loop: test Vbus dropped, and repeat ELoopDriveVBus
81 const static TTestCaseFactoryReceipt<CTestCase0676> iFactoryReceipt;
83 CTestCaseWatchdog *iWDTimer;
85 void ContinueAfter(TTimeIntervalMicroSeconds32 aMicroSecs, TCaseSteps step);
89 #endif // TESTCASE0676_H