Update contrib.
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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
15 // Header file: Play record tests that use CMMFCodecs rather than CMMFHwDevices
24 #ifndef TESTOLDCODEC_H__
25 #define TESTOLDCODEC_H__
28 #include "TestPlayerUtils.h"
29 #include "UseOldCodecAudioController/TestUseOldCodecAudioControllerUIDs.hrh"
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.
36 * @class CTestMmfAclntOldCodecFile
39 class CTestMmfAclntOldCodecFile : public CTestMmfAclntStep, public MMdaObjectStateChangeObserver
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);
48 CTestMmfAclntOldCodecFile(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName,const TBool aPlay, const TInt aExpectedError);
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