0
|
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 TESTCASE1233_H
|
|
19 |
#define TESTCASE1233_H
|
|
20 |
|
|
21 |
|
|
22 |
//----------------------------------------------------------------------------------------------
|
|
23 |
//! @SYMTestCaseID PBASE-T_OTGDI-1233
|
|
24 |
//! @SYMTestCaseDesc Exercise all VID/PID pairs for High-Speed Electrical Test
|
|
25 |
//! @SYMFssID
|
|
26 |
//! @SYMPREQ
|
|
27 |
//! @SYMREQ
|
|
28 |
//! @SYMTestType UT
|
|
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
|
|
33 |
//! VID/PID.
|
|
34 |
//!
|
|
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
|
|
37 |
//! program.
|
|
38 |
//!
|
|
39 |
//! The program runs as a back-to-back H4 pair:
|
|
40 |
//!
|
|
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
|
|
43 |
//!
|
|
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)
|
|
46 |
//!
|
|
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:
|
|
49 |
//!
|
|
50 |
//! 0x1A0A/0x0101
|
|
51 |
//! 0x1A0A/0x0102
|
|
52 |
//! 0x1A0A/0x0103
|
|
53 |
//! 0x1A0A/0x0104
|
|
54 |
//! 0x1A0A/0x0105
|
|
55 |
//! 0x1A0A/0x0106
|
|
56 |
//! 0x1A0A/0x0107
|
|
57 |
//! 0x1A0A/0x0108
|
|
58 |
//!
|
|
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.
|
|
62 |
//!
|
|
63 |
//! @SYMTestExpectedResults
|
|
64 |
//! @SYMTestStatus Defined
|
|
65 |
//----------------------------------------------------------------------------------------------
|
|
66 |
|
|
67 |
|
|
68 |
class CTestCase1233 : public CTestCaseB2BRoot
|
|
69 |
{
|
|
70 |
public:
|
|
71 |
static CTestCase1233* NewL(TBool aHost);
|
|
72 |
virtual ~CTestCase1233();
|
|
73 |
|
|
74 |
virtual void ExecuteTestCaseL();
|
|
75 |
void DoCancel();
|
|
76 |
static void CancelKB(CTestCaseRoot *pThis);
|
|
77 |
|
|
78 |
void RunStepL();
|
|
79 |
|
|
80 |
TInt GetStepIndex() { return(iCaseStep); };
|
|
81 |
|
|
82 |
private:
|
|
83 |
CTestCase1233(TBool aHost);
|
|
84 |
void ConstructL();
|
|
85 |
|
|
86 |
// DATA
|
|
87 |
|
|
88 |
private:
|
|
89 |
|
|
90 |
enum TCaseSteps
|
|
91 |
{
|
|
92 |
// Fixed steps
|
|
93 |
EPreconditions,
|
|
94 |
ELoadLdd,
|
|
95 |
|
|
96 |
// Steps for this test case only
|
|
97 |
ELoopToNextPID,
|
|
98 |
|
|
99 |
ERaiseVBus,
|
|
100 |
EVBusRaised,
|
|
101 |
|
|
102 |
EDropVBus,
|
|
103 |
EVBusDropped,
|
|
104 |
|
|
105 |
// Fixed steps
|
|
106 |
EUnloadLdd,
|
|
107 |
ELastStep
|
|
108 |
};
|
|
109 |
|
|
110 |
TCaseSteps iCaseStep;
|
|
111 |
|
|
112 |
TInt iTestVID;
|
|
113 |
TInt iTestPID;
|
|
114 |
|
|
115 |
const static TTestCaseFactoryReceipt<CTestCase1233> iFactoryReceipt;
|
|
116 |
};
|
|
117 |
|
|
118 |
|
|
119 |
#endif // TESTCASE1233_H
|
|
120 |
|