sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // @internalComponent sl@0: // sl@0: // sl@0: sl@0: #ifndef TESTCASE0670_H sl@0: #define TESTCASE0670_H sl@0: sl@0: const TInt KDelayDurationForTest4_5 = 30000; sl@0: const TInt KDelayDurationForTest5_5 = 60000; sl@0: sl@0: sl@0: sl@0: //------------------------------------------------------------------------------------------------------- sl@0: //! @SYMTestCaseID PBASE-T_OTGDI-0670 sl@0: //! @SYMTestCaseDesc Default OPT Support sl@0: //! @SYMFssID sl@0: //! @SYMPREQ 1782 sl@0: //! @SYMREQ N/A sl@0: //! @SYMTestType UT sl@0: //! @SYMTestPriority 1 sl@0: //! @SYMTestActions 1.Compliance test role swap against OPT TD4.5 sl@0: //! @SYMTestExpectedResults 1. sl@0: //! @SYMTestStatus Undefined sl@0: //-------------------------------------------------------------------------------------------------------- sl@0: sl@0: class CTestCase0670 : public CTestCaseRoot sl@0: { sl@0: public: sl@0: static CTestCase0670* NewL(TBool aHost); sl@0: virtual ~CTestCase0670(); sl@0: sl@0: virtual void ExecuteTestCaseL(); sl@0: void DoCancel(); sl@0: static void CancelKB(CTestCaseRoot *pThis); sl@0: sl@0: void RunStepL(); sl@0: virtual void DescribePreconditions(); sl@0: TInt GetStepIndex() { return(iCaseStep); }; sl@0: sl@0: static void CancelDrive(CTestCaseRoot *pThis); sl@0: sl@0: private: sl@0: CTestCase0670(TBool aHost); sl@0: void ConstructL(); sl@0: sl@0: // DATA sl@0: private: sl@0: TInt iRepeats; // loop counter, sl@0: sl@0: enum TCaseSteps sl@0: { sl@0: EPreconditions, sl@0: ELoadWithOptTestMode, sl@0: EConnectAtoB, sl@0: EStartOptTD4_5, sl@0: EPromptYOpt4_5, sl@0: EConfirmOpt4_5, sl@0: EUnloadLdd, sl@0: ELastStep sl@0: }; sl@0: sl@0: TCaseSteps iCaseStep; sl@0: const static TTestCaseFactoryReceipt iFactoryReceipt; sl@0: CTestCaseWatchdog *iWDTimer; sl@0: sl@0: }; sl@0: sl@0: sl@0: #endif // TESTCASE0670_H