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 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#ifndef TESTCASE0671_H
|
sl@0
|
19 |
#define TESTCASE0671_H
|
sl@0
|
20 |
|
sl@0
|
21 |
const TInt KDelayDurationForTest4_5 = 30000;
|
sl@0
|
22 |
const TInt KDelayDurationForTest5_5 = 60000;
|
sl@0
|
23 |
|
sl@0
|
24 |
|
sl@0
|
25 |
|
sl@0
|
26 |
//--------------------------------------------------------------------------------------------------------
|
sl@0
|
27 |
//! @SYMTestCaseID PBASE-T_OTGDI-0671
|
sl@0
|
28 |
//! @SYMTestCaseDesc Default OPT Support
|
sl@0
|
29 |
//! @SYMFssID
|
sl@0
|
30 |
//! @SYMPREQ 1782
|
sl@0
|
31 |
//! @SYMREQ N/A
|
sl@0
|
32 |
//! @SYMTestType UT
|
sl@0
|
33 |
//! @SYMTestPriority 1
|
sl@0
|
34 |
//! @SYMTestActions 1.Compliance test role swap against OPT TD5.5
|
sl@0
|
35 |
//! @SYMTestExpectedResults 1.
|
sl@0
|
36 |
//! @SYMTestStatus Undefined
|
sl@0
|
37 |
//---------------------------------------------------------------------------------------------------------
|
sl@0
|
38 |
|
sl@0
|
39 |
class CTestCase0671 : public CTestCaseRoot
|
sl@0
|
40 |
{
|
sl@0
|
41 |
public:
|
sl@0
|
42 |
static CTestCase0671* NewL(TBool aHost);
|
sl@0
|
43 |
virtual ~CTestCase0671();
|
sl@0
|
44 |
|
sl@0
|
45 |
virtual void ExecuteTestCaseL();
|
sl@0
|
46 |
void DoCancel();
|
sl@0
|
47 |
static void CancelKB(CTestCaseRoot *pThis);
|
sl@0
|
48 |
|
sl@0
|
49 |
void RunStepL();
|
sl@0
|
50 |
virtual void DescribePreconditions();
|
sl@0
|
51 |
TInt GetStepIndex() { return(iCaseStep); };
|
sl@0
|
52 |
|
sl@0
|
53 |
static void CancelDrive(CTestCaseRoot *pThis);
|
sl@0
|
54 |
|
sl@0
|
55 |
private:
|
sl@0
|
56 |
CTestCase0671(TBool aHost);
|
sl@0
|
57 |
void ConstructL();
|
sl@0
|
58 |
|
sl@0
|
59 |
// DATA
|
sl@0
|
60 |
private:
|
sl@0
|
61 |
TInt iRepeats; // loop counter,
|
sl@0
|
62 |
|
sl@0
|
63 |
enum TCaseSteps
|
sl@0
|
64 |
{
|
sl@0
|
65 |
EPreconditions,
|
sl@0
|
66 |
ELoadWithOptTestMode,
|
sl@0
|
67 |
EConnectAtoB,
|
sl@0
|
68 |
EStartOptTD5_5,
|
sl@0
|
69 |
EPromptYOpt5_5,
|
sl@0
|
70 |
EConfirmOpt5_5,
|
sl@0
|
71 |
EUnloadLdd,
|
sl@0
|
72 |
ELastStep
|
sl@0
|
73 |
};
|
sl@0
|
74 |
|
sl@0
|
75 |
TCaseSteps iCaseStep;
|
sl@0
|
76 |
const static TTestCaseFactoryReceipt<CTestCase0671> iFactoryReceipt;
|
sl@0
|
77 |
CTestCaseWatchdog *iWDTimer;
|
sl@0
|
78 |
|
sl@0
|
79 |
};
|
sl@0
|
80 |
|
sl@0
|
81 |
|
sl@0
|
82 |
#endif // TESTCASE0671_H
|