First public contribution.
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 TESTCASE1233_H
19 #define TESTCASE1233_H
22 //----------------------------------------------------------------------------------------------
23 //! @SYMTestCaseID PBASE-T_OTGDI-1233
24 //! @SYMTestCaseDesc Exercise all VID/PID pairs for High-Speed Electrical Test
29 //! @SYMTestPriority 1
30 //! @SYMTestActions This test utilises the USB HOST/OTG stack which handles the
31 //! Host side of detection of a Device attachment where the Device
32 //! exposes itself as one of the USB High-Speed test device pairs of
35 //! The applicable VID/PID pairs are shown on the Host end by logging,
36 //! and the end result is confirmed by user interaction with the T_OTGDI
39 //! The program runs as a back-to-back H4 pair:
41 //! t_otgdi /slave is used on the 'A' connected default-Host side
42 //! t_otgdi /master is used on the 'B' connected default-Peripheral side
44 //! To activate this test, select the menu item that access test
45 //! PBASE-USB_T_OTGDI-1233 (at 24/10/2008 this was selector 26)
47 //! The VID/PID pairs are as defined in the OTG Supplement (v1.3)
48 //! section 6.6.6.1 (table 6-5) and are:
59 //! NB: since this runs on an H4, which does not provide High-Speed support,
60 //! the linkage down to hardware is not implemented: instead, the test
61 //! relies on recording the appropriate test routing.
63 //! @SYMTestExpectedResults
64 //! @SYMTestStatus Defined
65 //----------------------------------------------------------------------------------------------
68 class CTestCase1233 : public CTestCaseB2BRoot
71 static CTestCase1233* NewL(TBool aHost);
72 virtual ~CTestCase1233();
74 virtual void ExecuteTestCaseL();
76 static void CancelKB(CTestCaseRoot *pThis);
80 TInt GetStepIndex() { return(iCaseStep); };
83 CTestCase1233(TBool aHost);
96 // Steps for this test case only
110 TCaseSteps iCaseStep;
115 const static TTestCaseFactoryReceipt<CTestCase1233> iFactoryReceipt;
119 #endif // TESTCASE1233_H