|
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 TESTCASE0466_H |
|
19 #define TESTCASE0466_H |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 //---------------------------------------------------------------------------------------------- |
|
25 //! @SYMTestCaseID PBASE-T_OTGDI-0466 |
|
26 //! @SYMTestCaseDesc VBus errors. |
|
27 //! @SYMFssID |
|
28 //! @SYMPREQ 1782 |
|
29 //! @SYMREQ 7080 |
|
30 //! @SYMTestType UT |
|
31 //! @SYMTestPriority 1 |
|
32 //! @SYMTestActions 1. Apply a dummy Load using the OET of 450 Ohm so that IBus > 8mA |
|
33 //! 2. Wait 1 second. |
|
34 //! 3. Remove the dummy load via the OET board. Retrieve error event from error callback |
|
35 //! 4. Measure VBus |
|
36 //! @SYMTestExpectedResults 1. Initial value for VBus > 4.4 and <5.25 volts |
|
37 //! Between steps 2 and 3, we expect to see an error event, with value EMessageVbusProblem |
|
38 //! 4. Value for VBus < 0.2v |
|
39 //---------------------------------------------------------------------------------------------- |
|
40 |
|
41 class CTestCase0466 : public CTestCaseRoot |
|
42 { |
|
43 public: |
|
44 static CTestCase0466* NewL(TBool aHost); |
|
45 virtual ~CTestCase0466(); |
|
46 |
|
47 virtual void ExecuteTestCaseL(); |
|
48 void DoCancel(); |
|
49 |
|
50 void RunStepL(); |
|
51 virtual void DescribePreconditions(); |
|
52 TInt GetStepIndex() { return(iCaseStep); }; |
|
53 |
|
54 static void CancelDrive(CTestCaseRoot *pThis); |
|
55 |
|
56 private: |
|
57 CTestCase0466(TBool aHost); |
|
58 void ConstructL(); |
|
59 |
|
60 // DATA |
|
61 public: |
|
62 |
|
63 private: |
|
64 |
|
65 TInt iRepeats; // loop counter, |
|
66 |
|
67 enum TCaseSteps |
|
68 { |
|
69 EPreconditions, |
|
70 ELoadLdd, |
|
71 EDriveBus, // QueueOtgEventRequest( event, status ); |
|
72 EVerifyBusFail, |
|
73 EUnloadLdd, |
|
74 ELastStep |
|
75 }; |
|
76 |
|
77 |
|
78 TCaseSteps iCaseStep; |
|
79 CTestCaseWatchdog *iWDTimer; |
|
80 |
|
81 const static TTestCaseFactoryReceipt<CTestCase0466> iFactoryReceipt; |
|
82 |
|
83 }; |
|
84 |
|
85 |
|
86 #endif // TESTCASE0466_H |