mmlibs/mmfw/tsrc/mmfunittest/GEF/src/GlobalEffectTest.h
changeset 0 b8ed18f6c07b
equal deleted inserted replaced
-1:000000000000 0:b8ed18f6c07b
       
     1 
       
     2 // Copyright (c) 2005-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 //
       
    16 
       
    17 #ifndef GLOBALEFFECTTEST_H
       
    18 #define GLOBALEFFECTTEST_H
       
    19 
       
    20 #include <testframework.h>
       
    21 
       
    22 #include <mmf/common/mmfglblaudioeffect.h>
       
    23 
       
    24 class CTestGlobalEffect; // forward
       
    25 
       
    26 class RGlobalEffectPrimitiveTest : public RTestStep
       
    27 	{
       
    28 public:
       
    29 	static RGlobalEffectPrimitiveTest* NewL(TBool aAllocTest);
       
    30 protected:
       
    31 	// from RTestStep;
       
    32 	TVerdict DoTestStepL();
       
    33 private:
       
    34 	RGlobalEffectPrimitiveTest(TBool aAllocTest);
       
    35 	
       
    36 	};
       
    37 
       
    38 class RGlobalEffectStdTest : public RTestStep
       
    39 	{
       
    40 public:
       
    41 	static RGlobalEffectStdTest* NewL(TBool aAllocTest);
       
    42 protected:
       
    43 	// from RTestStep;
       
    44 	TVerdict DoTestStepL();
       
    45 private:
       
    46 	RGlobalEffectStdTest(TBool aAllocTest);
       
    47 	
       
    48 	};
       
    49 
       
    50 class RGlobalEffectMainTest : public RTestStep
       
    51 	{
       
    52 public:
       
    53 	static RGlobalEffectMainTest* NewL(TBool aAllocTest);
       
    54 protected:
       
    55 	// from RTestStep;
       
    56 	TVerdict DoTestStepL();
       
    57 private:
       
    58 	RGlobalEffectMainTest(TBool aAllocTest);
       
    59 	
       
    60 	};
       
    61 
       
    62 class RGlobalEffectCallbackTest : public RTestStep,
       
    63                                   public MMmfGlobalAudioEffectObserver
       
    64 	{
       
    65 public:
       
    66 	static RGlobalEffectCallbackTest* NewL(TBool aAllocTest);
       
    67 protected:
       
    68 	// from RTestStep;
       
    69 	TVerdict DoTestStepL();
       
    70 	
       
    71 	// from MMmfGlobalAudioEffectObserver
       
    72 	void GAEEventNotificationL(CMmfGlobalAudioEffect* aEffect, TUid aEventUid, const TDesC8& aParam);
       
    73 	
       
    74 private:
       
    75 	RGlobalEffectCallbackTest(TBool aAllocTest);
       
    76 	
       
    77 	CTestGlobalEffect* iEffect;	// not owned
       
    78 	TBool iCalledBack;
       
    79 	TVerdict iResult;
       
    80 	};
       
    81 
       
    82 #endif // GLOBALEFFECTTEST_H