os/mm/mmlibs/mmfw/tsrc/mmfunittest/oggctrl/teststepoggctrlplay.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmlibs/mmfw/tsrc/mmfunittest/oggctrl/teststepoggctrlplay.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,210 @@
     1.4 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef TESTSTEPOGGCTRLPLAY_H
    1.20 +#define TESTSTEPOGGCTRLPLAY_H
    1.21 +
    1.22 +#include "tsu_mmf_oggctrl_teststep.h"
    1.23 +
    1.24 +/**
    1.25 + *
    1.26 + * This class tests playing an ogg file completely and checks for playcompletion
    1.27 + * event with KErrNone from the oggplaycontroller.
    1.28 + *
    1.29 + * @lib "TSU_MMF_OGGCTRL_01.lib"
    1.30 + *
    1.31 + */
    1.32 +class RTestStepOggCtrlPlay : public RTestStepOggCtrlPlayBase
    1.33 +	{
    1.34 +public:
    1.35 +	RTestStepOggCtrlPlay(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
    1.36 +	virtual TVerdict  DoTestStepL();
    1.37 +	};
    1.38 +
    1.39 +/**
    1.40 + *
    1.41 + * This class tests setting the volume on OggPlayController in Stopped, Primed and Playing 
    1.42 + * states and checks if the volume set is same as the volume got.
    1.43 + *
    1.44 + * @lib "TSU_MMF_OGGCTRL_01.lib"
    1.45 + *
    1.46 + */
    1.47 +class RTestStepOggCtrlVolume : public RTestStepOggCtrlPlayBase
    1.48 +	{
    1.49 +public:
    1.50 +	RTestStepOggCtrlVolume(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
    1.51 +	virtual TVerdict  DoTestStepL();
    1.52 +	};
    1.53 +
    1.54 +/**
    1.55 + *
    1.56 + * This class tests setting the PlayBalance on OggPlayController in Stopped, Primed and Playing 
    1.57 + * states and checks if the PlayBalance set is same as the PlayBalance got.
    1.58 + *
    1.59 + * @lib "TSU_MMF_OGGCTRL_01.lib"
    1.60 + *
    1.61 + */
    1.62 +class RTestStepOggCtrlPlayBalance : public RTestStepOggCtrlPlayBase
    1.63 +	{
    1.64 +public:
    1.65 +	RTestStepOggCtrlPlayBalance(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
    1.66 +	virtual TVerdict  DoTestStepL();
    1.67 +	};
    1.68 +
    1.69 +/**
    1.70 + *
    1.71 + * This class tests setting the Position on OggPlayController in Stopped, Primed and Playing 
    1.72 + * states and checks if the Position set is same as the Position got.
    1.73 + *
    1.74 + * @lib "TSU_MMF_OGGCTRL_01.lib"
    1.75 + *
    1.76 + */
    1.77 +class RTestStepOggCtrlPosition : public RTestStepOggCtrlPlayBase
    1.78 +	{
    1.79 +public:
    1.80 +	RTestStepOggCtrlPosition(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
    1.81 +	virtual TVerdict  DoTestStepL();
    1.82 +	};
    1.83 +
    1.84 +/**
    1.85 + *
    1.86 + * This class tests pause functionality of OggPlayController in Stopped, Primed and Playing 
    1.87 + * states and checks if the play starts from the current position during playign state
    1.88 + *
    1.89 + * @lib "TSU_MMF_OGGCTRL_01.lib"
    1.90 + *
    1.91 + */
    1.92 +class RTestStepOggCtrlPause : public RTestStepOggCtrlPlayBase
    1.93 +	{
    1.94 +public:
    1.95 +	RTestStepOggCtrlPause(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
    1.96 +	virtual TVerdict  DoTestStepL();
    1.97 +	};
    1.98 +
    1.99 +/**
   1.100 + *
   1.101 + * This class tests stop functionality of OggPlayController in Stopped, Primed and Playing 
   1.102 + * states and checks if the play starts from the initial position during playing state
   1.103 + *
   1.104 + * @lib "TSU_MMF_OGGCTRL_01.lib"
   1.105 + *
   1.106 + */
   1.107 +class RTestStepOggCtrlStop : public RTestStepOggCtrlPlayBase
   1.108 +	{
   1.109 +public:
   1.110 +	RTestStepOggCtrlStop(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
   1.111 +	virtual TVerdict  DoTestStepL();
   1.112 +	};
   1.113 +
   1.114 +/**
   1.115 + *
   1.116 + * This class tests metadata support of the OggPlayController. 
   1.117 + *
   1.118 + * @lib "TSU_MMF_OGGCTRL_01.lib"
   1.119 + *
   1.120 + */
   1.121 +class RTestStepOggCtrlMetaData : public RTestStepOggCtrlPlayBase
   1.122 +	{
   1.123 +public:
   1.124 +	RTestStepOggCtrlMetaData(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
   1.125 +	virtual TVerdict  DoTestStepL();
   1.126 +	};
   1.127 +
   1.128 +/**
   1.129 + *
   1.130 + * This class tests PlayWindow support of the OggPlayController.
   1.131 + *
   1.132 + * @lib "TSU_MMF_OGGCTRL_01.lib"
   1.133 + *
   1.134 + */
   1.135 +class RTestStepOggCtrlPlayWindow : public RTestStepOggCtrlPlayBase
   1.136 +	{
   1.137 +public:
   1.138 +	RTestStepOggCtrlPlayWindow(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
   1.139 +	virtual TVerdict  DoTestStepL();
   1.140 +	};
   1.141 +
   1.142 +/**
   1.143 + *
   1.144 + * This class tests Getting the audio configuratin of the file using OggPlayController.
   1.145 + *
   1.146 + * @lib "TSU_MMF_OGGCTRL_01.lib"
   1.147 + *
   1.148 + */
   1.149 +class RTestStepOggCtrlGetSetConfig : public RTestStepOggCtrlPlayBase
   1.150 +	{
   1.151 +public:
   1.152 +	RTestStepOggCtrlGetSetConfig(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
   1.153 +	virtual TVerdict  DoTestStepL();
   1.154 +	};
   1.155 +
   1.156 +/**
   1.157 + *
   1.158 + * This class tests Getting the duration of the file using OggPlayController.
   1.159 + *
   1.160 + * @lib "TSU_MMF_OGGCTRL_01.lib"
   1.161 + *
   1.162 + */
   1.163 +class RTestStepOggCtrlDuration : public RTestStepOggCtrlPlayBase
   1.164 +	{
   1.165 +public:
   1.166 +	RTestStepOggCtrlDuration(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
   1.167 +	virtual TVerdict  DoTestStepL();
   1.168 +	};
   1.169 +
   1.170 +//Negative Tests
   1.171 +/**
   1.172 + *
   1.173 + * This class tests opening an invalid file using OggPlayController.
   1.174 + *
   1.175 + * @lib "TSU_MMF_OGGCTRL_01.lib"
   1.176 + *
   1.177 + */
   1.178 +class RTestStepOggCtrlPlayInvalid : public RTestStepOggCtrlPlayBase
   1.179 +	{
   1.180 +public:
   1.181 +	RTestStepOggCtrlPlayInvalid(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
   1.182 +	virtual TVerdict DoTestStepPreambleL(void);
   1.183 +	virtual TVerdict  DoTestStepL();
   1.184 +	};
   1.185 +
   1.186 +/**
   1.187 + *
   1.188 + * This class tests setting an invalid sourcedatatype on OggPlayController.
   1.189 + *
   1.190 + * @lib "TSU_MMF_OGGCTRL_01.lib"
   1.191 + *
   1.192 + */
   1.193 +class RTestStepOggCtrlSetInvalidConfig : public RTestStepOggCtrlPlayBase
   1.194 +	{
   1.195 +public:
   1.196 +	RTestStepOggCtrlSetInvalidConfig(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
   1.197 +	virtual TVerdict  DoTestStepL();
   1.198 +	};
   1.199 +
   1.200 +/**
   1.201 + *
   1.202 + * This class tests opening an invalid file using OggPlayController.
   1.203 + *
   1.204 + * @lib "TSU_MMF_OGGCTRL_01.lib"
   1.205 + *
   1.206 + */
   1.207 +class RTestStepOggCtrlPositionNegative : public RTestStepOggCtrlPlayBase
   1.208 +	{
   1.209 +public:
   1.210 +	RTestStepOggCtrlPositionNegative(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
   1.211 +	virtual TVerdict  DoTestStepL();
   1.212 +	};
   1.213 +#endif //(TESTSTEPOGGCTRLPLAY_H)