kerneltest/e32test/usbho/t_otgdi/inc/testcase0460.h
author Mike Kinghan <mikek@symbian.org>
Thu, 25 Nov 2010 14:35:45 +0000
branchGCC_SURGE
changeset 305 1ba12ef4ef89
parent 0 a41df078684a
permissions -rw-r--r--
Enhance the base/rom extension to generate the symbol file of the rom built. The symbol file is placed in epoc32/rom/<baseport_name>, along with the rom log and final oby file.

// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// @internalComponent
// 'A' connector removal test
// 
//


#ifndef TESTCASE0460_H
#define TESTCASE0460_H


	
//----------------------------------------------------------------------------------------------	
//!	@SYMTestCaseID				PBASE-T_OTGDI-0460
//!	@SYMTestCaseDesc			Must be able to detect an A plug insertion. Test proves we can subscribe for insertion events.
//!	@SYMFssID 
//!	@SYMPREQ					1782
//!	@SYMREQ						7079
//!	@SYMTestType				UT
//!	@SYMTestPriority			1 
//!	@SYMTestActions 			1. Call OtgEventNotification() to register for insert/remove event.
//!								2. Remove A-Plug, removal is detected.
//!	@SYMTestExpectedResults 	2. A-Plug removal event fires when it should.
//----------------------------------------------------------------------------------------------
	
	class CTestCase0460 : public CTestCaseRoot
	{
public:
	static CTestCase0460* NewL(TBool aHost);
	virtual ~CTestCase0460(); 	

	virtual void ExecuteTestCaseL();
	void DoCancel();

	void RunStepL();
	virtual void DescribePreconditions();
	TInt GetStepIndex()	{ return(iCaseStep); };
		
private:
	CTestCase0460(TBool aHost);
	void ConstructL();

	// DATA
public:

	
private:
	TInt iDequeAttempts;

	enum TCaseSteps
		{
		EPreconditions,
		ELoadLdd,
		ERegisterForEvents,		// QueueOtgEventRequest( event, status );
		EDriveID_PIN,
		EWait5,
		ETestStateA,
		EUnloadLdd,
		ELastStep	
		};
			
	TCaseSteps iCaseStep;
	
	const static TTestCaseFactoryReceipt<CTestCase0460> iFactoryReceipt;
	};
	
	
#endif // TESTCASE0460_H