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 TESTCASE0679_H
19 #define TESTCASE0679_H
22 //----------------------------------------------------------------------------------------------
23 //! @SYMTestCaseID PBASE-T_OTGDI-0679
24 //! @SYMTestCaseDesc A-Device requests bus, VBUS is high, device not b_hnp_enabled
29 //! @SYMTestPriority 1
30 //! @SYMTestActions 1. A-Device raises VBus
31 //! 2. A-Device and B-Device wait to arrive in default roles (A-Host, B-Peripheral)
32 //! 3. B-Peripheral waits to arrive in configured state, A-Device waits to become A-Peripheral
33 //! 4. A-Host enumerates newly attached peripheral, and suspends it
34 //! 5. B-Peripheral waits to arrive in suspended state
35 //! 6. B-Device makes a bus request
36 //! 7. No HNP occurs, B-Device generates message to say HNP is not possible
37 //! 8. A-Device drops VBus
38 //! 9. A-Device and B-Device both observe VBus dropping.
40 //! @SYMTestExpectedResults There should be no role swap, and error message should be generated at step 7.
41 //! No state changes will have occurred and A-Host and B-Peripheral should be observed.
42 //! @SYMTestStatus Defined
43 //----------------------------------------------------------------------------------------------
45 class CTestCase0679 : public CTestCaseB2BRoot
48 static CTestCase0679* NewL(TBool aHost);
49 virtual ~CTestCase0679();
51 virtual void ExecuteTestCaseL();
53 static void CancelKB(CTestCaseRoot *pThis);
57 TInt GetStepIndex() { return(iCaseStep); };
60 CTestCase0679(TBool aHost);
69 ELoadLdd, // Load LDDs, trigger FDFActor
70 EReadyToRaiseVBus, // Wait until VBus arrives
71 EDefaultRoles, // B-device as peripheral, A-device as host
72 EBConfigured, // B-Device is configured
73 EBSuspended, // B-device is suspended
74 EBErrorReceived, // B-device receives error message (refusal to role-swap because HNP is not enabled)
76 EDropVBus, // Tidyup steps
84 TInt iStateRetry; // swallow other events
86 const static TTestCaseFactoryReceipt<CTestCase0679> iFactoryReceipt;
91 #endif // TESTCASE0679_H