mmlibs/mmfw/tsrc/mmfunittest/GEF/src/GlobalEffectTest.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 01:56:55 +0200
changeset 0 40261b775718
permissions -rw-r--r--
Revision: 201003 Kit: 201005


// Copyright (c) 2005-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:
//

#ifndef GLOBALEFFECTTEST_H
#define GLOBALEFFECTTEST_H

#include <testframework.h>

#include <mmf/common/mmfglblaudioeffect.h>

class CTestGlobalEffect; // forward

class RGlobalEffectPrimitiveTest : public RTestStep
	{
public:
	static RGlobalEffectPrimitiveTest* NewL(TBool aAllocTest);
protected:
	// from RTestStep;
	TVerdict DoTestStepL();
private:
	RGlobalEffectPrimitiveTest(TBool aAllocTest);
	
	};

class RGlobalEffectStdTest : public RTestStep
	{
public:
	static RGlobalEffectStdTest* NewL(TBool aAllocTest);
protected:
	// from RTestStep;
	TVerdict DoTestStepL();
private:
	RGlobalEffectStdTest(TBool aAllocTest);
	
	};

class RGlobalEffectMainTest : public RTestStep
	{
public:
	static RGlobalEffectMainTest* NewL(TBool aAllocTest);
protected:
	// from RTestStep;
	TVerdict DoTestStepL();
private:
	RGlobalEffectMainTest(TBool aAllocTest);
	
	};

class RGlobalEffectCallbackTest : public RTestStep,
                                  public MMmfGlobalAudioEffectObserver
	{
public:
	static RGlobalEffectCallbackTest* NewL(TBool aAllocTest);
protected:
	// from RTestStep;
	TVerdict DoTestStepL();
	
	// from MMmfGlobalAudioEffectObserver
	void GAEEventNotificationL(CMmfGlobalAudioEffect* aEffect, TUid aEventUid, const TDesC8& aParam);
	
private:
	RGlobalEffectCallbackTest(TBool aAllocTest);
	
	CTestGlobalEffect* iEffect;	// not owned
	TBool iCalledBack;
	TVerdict iResult;
	};

#endif // GLOBALEFFECTTEST_H