os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/ACLNT/TestOldCodec.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 
     2 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     5 // under the terms of "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description:
    15 // Header file: Play record tests that use CMMFCodecs rather than CMMFHwDevices
    16 // DEF039267
    17 // 
    18 //
    19 
    20 /**
    21  @file TestOldCodec.h
    22 */
    23 
    24 #ifndef TESTOLDCODEC_H__
    25 #define TESTOLDCODEC_H__
    26 
    27 
    28 #include "TestPlayerUtils.h"
    29 #include "UseOldCodecAudioController/TestUseOldCodecAudioControllerUIDs.hrh"
    30 
    31 
    32 /**
    33  *  Play and record an audio file using the UseOldCodecAudioController
    34  *  which uses CMMFCodecs and the 'null' pcm16->pcm16 hw device plugin an audio file.
    35  *
    36  * @class CTestMmfAclntOldCodecFile
    37  *
    38  */         
    39 class CTestMmfAclntOldCodecFile :  public CTestMmfAclntStep, public MMdaObjectStateChangeObserver
    40 	{
    41 public:
    42 	static CTestMmfAclntOldCodecFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName,const TBool aPlay,const TInt aExpectedError);
    43 	static CTestMmfAclntOldCodecFile* NewLC(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName,const TBool aPlay, const TInt aExpectedError);
    44 	virtual TVerdict DoTestStepL();
    45 	// from MMdaObjectStateChangeObserver
    46 	virtual void MoscoStateChangeEvent(CBase* aObject,TInt aPreviousState,TInt aCurrentState, TInt aErrorCode);
    47 private:
    48 	CTestMmfAclntOldCodecFile(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName,const TBool aPlay, const TInt aExpectedError);	
    49 private:
    50 	TInt iError;
    51 	TBuf<KNameBufSize> iSectName;		// Section name for retrieving filename
    52 	TBuf<KNameBufSize> iKeyName;		// Key name for retrieving filename
    53 	TTimeIntervalMicroSeconds iDuration;// Stores duration of audio
    54 	const TBool iPlay;					// Does this test require playing the audio
    55 	const TInt	iExpectedError;			// Is this a negative test
    56 	};
    57 
    58 #endif