os/kernelhwsrv/kerneltest/e32test/usbho/t_otgdi/inc/testcase0463.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
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 TESTCASE0463_H
sl@0
    19
#define TESTCASE0463_H
sl@0
    20
sl@0
    21
sl@0
    22
sl@0
    23
	
sl@0
    24
//----------------------------------------------------------------------------------------------
sl@0
    25
//!	@SYMTestCaseID				PBASE-T_OTGDI-0463
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. 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 CTestCase0463 : public CTestCaseRoot
sl@0
    40
	{
sl@0
    41
public:
sl@0
    42
	static CTestCase0463* NewL(TBool aHost);
sl@0
    43
	virtual ~CTestCase0463(); 	
sl@0
    44
sl@0
    45
	virtual void ExecuteTestCaseL();
sl@0
    46
	void DoCancel();
sl@0
    47
	void RunStepL();
sl@0
    48
	virtual void DescribePreconditions();
sl@0
    49
	TInt GetStepIndex()	{ return(iCaseStep); };
sl@0
    50
		
sl@0
    51
private:
sl@0
    52
	CTestCase0463(TBool aHost);
sl@0
    53
	void ConstructL();
sl@0
    54
sl@0
    55
sl@0
    56
	// DATA
sl@0
    57
private:
sl@0
    58
sl@0
    59
	enum TCaseSteps
sl@0
    60
		{
sl@0
    61
		EMarkStack,
sl@0
    62
		ELoadLdd,
sl@0
    63
		EDoSomething,	// does nothing right now
sl@0
    64
		EUnloadLdd,
sl@0
    65
		ELoopDecrement,
sl@0
    66
		ELastStep	
sl@0
    67
		};
sl@0
    68
	
sl@0
    69
	TCaseSteps iCaseStep;
sl@0
    70
	TInt       iRepeats;		// loop counter, set to run 10 times over
sl@0
    71
	TInt       iAllocFailNumber; // May be same as the loop index, 
sl@0
    72
	                             // separated to allow us to adjust separately
sl@0
    73
sl@0
    74
	TInt		* aIntegerP;
sl@0
    75
	
sl@0
    76
	const static TTestCaseFactoryReceipt<CTestCase0463> iFactoryReceipt;
sl@0
    77
	
sl@0
    78
	
sl@0
    79
	};
sl@0
    80
	
sl@0
    81
	
sl@0
    82
#endif // TESTCASE0463_H