sl@0
|
1 |
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// @internalComponent
|
sl@0
|
15 |
// Open/Close 'powered peripheral' test
|
sl@0
|
16 |
//
|
sl@0
|
17 |
//
|
sl@0
|
18 |
|
sl@0
|
19 |
#ifndef TESTCASE_0458_H
|
sl@0
|
20 |
#define TESTCASE_0458_H
|
sl@0
|
21 |
|
sl@0
|
22 |
|
sl@0
|
23 |
|
sl@0
|
24 |
//----------------------------------------------------------------------------------------------
|
sl@0
|
25 |
//! @SYMTestCaseID PBASE-T_OTGDI-0458
|
sl@0
|
26 |
//! @SYMTestCaseDesc OTGDI driver session can be repeatedly opened and closed without a) panicking or b) leaking resources.
|
sl@0
|
27 |
//! @SYMFssID
|
sl@0
|
28 |
//! @SYMPREQ 1782
|
sl@0
|
29 |
//! @SYMREQ n/a
|
sl@0
|
30 |
//! @SYMTestType UT
|
sl@0
|
31 |
//! @SYMTestPriority 1
|
sl@0
|
32 |
//! @SYMTestActions 1. B plug and and plugged into Host. Call function to open OTGDI driver session.
|
sl@0
|
33 |
//! 2. Call function to close OTGDI driver session.
|
sl@0
|
34 |
//! 3. Repeat from step 1 (x 3)
|
sl@0
|
35 |
//! @SYMTestExpectedResults No panic occurs, no error code returned, we get session handle; session gets closed
|
sl@0
|
36 |
//! @SYMTestStatus Proto
|
sl@0
|
37 |
//----------------------------------------------------------------------------------------------
|
sl@0
|
38 |
|
sl@0
|
39 |
class CTestCase0458 : public CTestCaseRoot
|
sl@0
|
40 |
{
|
sl@0
|
41 |
public:
|
sl@0
|
42 |
static CTestCase0458* NewL(TBool aHost);
|
sl@0
|
43 |
virtual ~CTestCase0458();
|
sl@0
|
44 |
|
sl@0
|
45 |
virtual void ExecuteTestCaseL();
|
sl@0
|
46 |
void DoCancel();
|
sl@0
|
47 |
void RunStepL();
|
sl@0
|
48 |
|
sl@0
|
49 |
virtual void DescribePreconditions();
|
sl@0
|
50 |
TInt GetStepIndex() { return(iCaseStep); };
|
sl@0
|
51 |
|
sl@0
|
52 |
private:
|
sl@0
|
53 |
CTestCase0458(TBool aHost);
|
sl@0
|
54 |
void ConstructL();
|
sl@0
|
55 |
|
sl@0
|
56 |
|
sl@0
|
57 |
// DATA
|
sl@0
|
58 |
private:
|
sl@0
|
59 |
enum TCaseSteps
|
sl@0
|
60 |
{
|
sl@0
|
61 |
EPreconditions,
|
sl@0
|
62 |
ELoadLdd,
|
sl@0
|
63 |
EUnloadLdd,
|
sl@0
|
64 |
ELoopDecrement,
|
sl@0
|
65 |
ELastStep
|
sl@0
|
66 |
};
|
sl@0
|
67 |
|
sl@0
|
68 |
TCaseSteps iCaseStep;
|
sl@0
|
69 |
TInt iRepeats; // loop counter, set to run 3 times over
|
sl@0
|
70 |
|
sl@0
|
71 |
const static TTestCaseFactoryReceipt<CTestCase0458> iFactoryReceipt;
|
sl@0
|
72 |
|
sl@0
|
73 |
};
|
sl@0
|
74 |
|
sl@0
|
75 |
|
sl@0
|
76 |
#endif // TESTCASE_0458_H
|