mmlibs/mmfw/tsrc/mmfunittest/aclnt/TSU_MMF_ACLNT_01/TestStepRecorderBitRate.h
author hgs
Thu, 07 Oct 2010 22:34:12 +0100
changeset 0 b8ed18f6c07b
permissions -rw-r--r--
2010wk40

// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "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:
// This file contains testing steps for reading the bitrates of 
// audio files with different formats
// Tests opening sounds of various formats
// from a file with various parameters and constructor calls
// 
//

#ifndef __TEST_STEP_RECORDER_BITRATE__
#define __TEST_STEP_RECORDER_BITRATE__

#include <testframework.h>

#include "TestStepUnitMMFAudClient.h"
#include "TestSuiteUnitMMFAudClient.h"
#include "mmfclientaudiorecorder.h"

/**
 *
 * Read the bit rate of wav files.
 *
 * @lib "TSU_MMF_ACLNT_01.lib"
 *
 * @xxxx
 *
 */

class CTestStepRecorderBitRateWav : public CTestStepUnitMMFAudClient,
							   	  	public MMdaObjectStateChangeObserver
	{
public:
	static CTestStepRecorderBitRateWav* NewL();
	CTestStepRecorderBitRateWav();
	~CTestStepRecorderBitRateWav();
	virtual TVerdict DoTestStepL();

	// from MMdaObjectStateChangeObserver
	void MoscoStateChangeEvent(CBase* /*aObject*/, 
								TInt /*aPreviousState*/, 
								TInt /*aCurrentState*/, 
								TInt aErrorcCode);

private:
	TInt iError;
	};
	
/**
 *
 * Read the bit rate of au files.
 *
 * @lib "TSU_MMF_ACLNT_01.lib"
 *
 * @xxxx
 *
 */

class CTestStepRecorderBitRateAu : public CTestStepUnitMMFAudClient,
							   	   public MMdaObjectStateChangeObserver
	{
public:
	static CTestStepRecorderBitRateAu* NewL();
	CTestStepRecorderBitRateAu();
	~CTestStepRecorderBitRateAu();
	virtual TVerdict DoTestStepL();

	// from MMdaObjectStateChangeObserver
	void MoscoStateChangeEvent(CBase* /*aObject*/, 
								TInt /*aPreviousState*/, 
								TInt /*aCurrentState*/, 
								TInt aErrorcCode);

private:
	TInt iError;
	};
	
#endif //(__TEST_STEP_RECORDER_BITRATE__)