os/mm/mmlibs/mmfw/tsrc/mmfunittest/MidiClnt/TestMidiClientSharedHeap.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef TESTMIDICLIENTSHAREDHEAP_H
    17 #define TESTMIDICLIENTSHAREDHEAP_H
    18 
    19 #include "TSU_MMFMIDICLNT.h"
    20 
    21 
    22 /**
    23  * Loads and initialises multiple midi utilities.
    24  *
    25  * @class CTestMidiClntMultiSharedHeap
    26  *
    27  * Req. under test 
    28  */
    29 class CTestMidiClntMultiSharedHeap : public CTestMmfMidiClntStep
    30 	{
    31 public:
    32 	CTestMidiClntMultiSharedHeap(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TBool aMixHeapStyle );
    33 	~CTestMidiClntMultiSharedHeap() {};
    34 	static CTestMidiClntMultiSharedHeap* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TBool aMixHeapStyle );
    35 	// From Base Class
    36 	TVerdict DoTestStepL();
    37 
    38 protected:
    39 	TBuf<KNameBufSize> iSectName;			// Section name for retrieving filename
    40 	TBuf<KNameBufSize> iKeyName;			// Key name for retrieving filename
    41 	TTimeIntervalMicroSeconds iDuration;	// Stores duration of Audio file
    42 	TBool iMixHeapStyle;					// Should a mixture of shared and separate heap controllers be created?
    43 	};
    44 
    45 
    46 /**
    47  * Repeatedly creates and deletes multiple midi utilities
    48  *
    49  * @class CTestMidiClntRepeatMultiSharedHeap
    50  *
    51  * Req. under test 
    52  */
    53 class CTestMidiClntRepeatMultiSharedHeap : public CTestMmfMidiClntStep
    54 	{
    55 public:
    56 	CTestMidiClntRepeatMultiSharedHeap(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TBool aMixHeapStyle );
    57 	~CTestMidiClntRepeatMultiSharedHeap() {};
    58 	static CTestMidiClntRepeatMultiSharedHeap* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TBool aMixHeapStyle );
    59 	// From Base Class
    60 	TVerdict DoTestStepL();
    61 
    62 protected:
    63 	TBuf<KNameBufSize> iSectName;			// Section name for retrieving filename
    64 	TBuf<KNameBufSize> iKeyName;			// Key name for retrieving filename
    65 	TTimeIntervalMicroSeconds iDuration;	// Stores duration of Audio file
    66 	TBool iMixHeapStyle;					// Should a mixture of shared and separate heap controllers be created?
    67 	};
    68 
    69 	
    70 #endif // TESTMIDICLIENTSHAREDHEAP_H