os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/vclntavi/inc/testvideoplayer_subtitles.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef TESTVIDEOPLAYER_SUBTITLES_H
sl@0
    17
#define TESTVIDEOPLAYER_SUBTITLES_H
sl@0
    18
sl@0
    19
#include "tsi_mmf_vclntavi_stepbase.h"
sl@0
    20
#include "u32hal.h"
sl@0
    21
sl@0
    22
#define LOG_CALL(f) INFO_PRINTF1(_L(#f)); f
sl@0
    23
sl@0
    24
class RTestVclnt2Subtitle;
sl@0
    25
sl@0
    26
class CPlayTimer : public CTimer
sl@0
    27
	{
sl@0
    28
public:
sl@0
    29
	static CPlayTimer* NewL(RTestVclnt2Subtitle& aTestStep);
sl@0
    30
	
sl@0
    31
protected:
sl@0
    32
	void RunL();
sl@0
    33
	TInt RunError(TInt aError);
sl@0
    34
	
sl@0
    35
private:
sl@0
    36
	CPlayTimer(RTestVclnt2Subtitle& aTestStep);
sl@0
    37
	
sl@0
    38
private:
sl@0
    39
	RTestVclnt2Subtitle& iTestStep;
sl@0
    40
	};
sl@0
    41
sl@0
    42
/**
sl@0
    43
 * MM-MMF-VCLNTAVI-I-0600-CP
sl@0
    44
 * MM-MMF-VCLNTAVI-I-0700-CP
sl@0
    45
 */
sl@0
    46
class RTestVclnt2Subtitle : public RTestVclnt2AviPlayerStep
sl@0
    47
	{
sl@0
    48
public:
sl@0
    49
	static RTestVclnt2Subtitle* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
    50
	
sl@0
    51
	virtual void DoBeforePlaybackActionsL();
sl@0
    52
	virtual void DoDuringPlaybackActionsL();
sl@0
    53
	
sl@0
    54
	void FailTest(TInt aError);
sl@0
    55
	
sl@0
    56
protected:
sl@0
    57
	RTestVclnt2Subtitle(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
    58
	
sl@0
    59
	// from RTestStep
sl@0
    60
	TVerdict DoTestStepPreambleL();
sl@0
    61
	TVerdict DoTestStepPostambleL();
sl@0
    62
	virtual TInt SetCacheSize();
sl@0
    63
	virtual TInt CheckCacheError(TInt aError);
sl@0
    64
	virtual TInt RevertCacheSize();
sl@0
    65
	
sl@0
    66
	void FsmL(TVclntTestPlayEvents aEventCode);	
sl@0
    67
protected:
sl@0
    68
	CPlayTimer* iPlayTimer;
sl@0
    69
	};
sl@0
    70
sl@0
    71
/**
sl@0
    72
 * MM-MMF-VCLNTAVI-I-0602-CP
sl@0
    73
 */
sl@0
    74
class RTestVclnt2SubtitleEnableDuringPlayback : public RTestVclnt2Subtitle
sl@0
    75
	{
sl@0
    76
public:
sl@0
    77
	static RTestVclnt2SubtitleEnableDuringPlayback* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
    78
	void DoBeforePlaybackActionsL();
sl@0
    79
	void DoDuringPlaybackActionsL();
sl@0
    80
	
sl@0
    81
private:
sl@0
    82
	RTestVclnt2SubtitleEnableDuringPlayback(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
    83
	};
sl@0
    84
sl@0
    85
/**
sl@0
    86
 * MM-MMF-VCLNTAVI-I-0603-CP
sl@0
    87
 */
sl@0
    88
class RTestVclnt2SubtitleDisableDuringPlayback : public RTestVclnt2Subtitle
sl@0
    89
	{
sl@0
    90
public:
sl@0
    91
	static RTestVclnt2SubtitleDisableDuringPlayback* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
    92
	void DoDuringPlaybackActionsL();
sl@0
    93
	
sl@0
    94
private:
sl@0
    95
	RTestVclnt2SubtitleDisableDuringPlayback(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
    96
	};
sl@0
    97
sl@0
    98
/**
sl@0
    99
 * MM-MMF-VCLNTAVI-I-0605-CP
sl@0
   100
 */
sl@0
   101
class RTestVclnt2SubtitleDisableTwice : public RTestVclnt2Subtitle
sl@0
   102
	{
sl@0
   103
public:
sl@0
   104
	static RTestVclnt2SubtitleDisableTwice* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   105
	void DoBeforePlaybackActionsL();
sl@0
   106
	void DoDuringPlaybackActionsL();
sl@0
   107
	
sl@0
   108
private:
sl@0
   109
	RTestVclnt2SubtitleDisableTwice(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   110
	};
sl@0
   111
	
sl@0
   112
/**
sl@0
   113
 * MM-MMF-VCLNTAVI-I-0606-CP
sl@0
   114
 */
sl@0
   115
class RTestVclnt2SubtitleWindowClipBefore : public RTestVclnt2Subtitle
sl@0
   116
	{
sl@0
   117
public:
sl@0
   118
	static RTestVclnt2SubtitleWindowClipBefore* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   119
	void DoBeforePlaybackActionsL();
sl@0
   120
	
sl@0
   121
private:
sl@0
   122
	RTestVclnt2SubtitleWindowClipBefore(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   123
	};
sl@0
   124
sl@0
   125
/**
sl@0
   126
 * MM-MMF-VCLNTAVI-I-0607-CP
sl@0
   127
 */
sl@0
   128
class RTestVclnt2SubtitleWindowClipDuring : public RTestVclnt2Subtitle
sl@0
   129
	{
sl@0
   130
public:
sl@0
   131
	static RTestVclnt2SubtitleWindowClipDuring* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   132
	void DoDuringPlaybackActionsL();
sl@0
   133
	
sl@0
   134
private:
sl@0
   135
	RTestVclnt2SubtitleWindowClipDuring(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   136
	};
sl@0
   137
sl@0
   138
/**
sl@0
   139
 * MM-MMF-VCLNTAVI-I-0608-CP
sl@0
   140
 */
sl@0
   141
class RTestVclnt2SubtitleRotateBefore : public RTestVclnt2Subtitle
sl@0
   142
	{
sl@0
   143
public:
sl@0
   144
	static RTestVclnt2SubtitleRotateBefore* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   145
	void DoBeforePlaybackActionsL();
sl@0
   146
	
sl@0
   147
private:
sl@0
   148
	RTestVclnt2SubtitleRotateBefore(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   149
	};
sl@0
   150
sl@0
   151
/**
sl@0
   152
 * MM-MMF-VCLNTAVI-I-0609-CP
sl@0
   153
 */
sl@0
   154
class RTestVclnt2SubtitleRotateDuring : public RTestVclnt2Subtitle
sl@0
   155
	{
sl@0
   156
public:
sl@0
   157
	static RTestVclnt2SubtitleRotateDuring* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   158
	void DoDuringPlaybackActionsL();
sl@0
   159
	
sl@0
   160
private:
sl@0
   161
	RTestVclnt2SubtitleRotateDuring(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   162
	};
sl@0
   163
sl@0
   164
/**
sl@0
   165
 * MM-MMF-VCLNTAVI-I-0613-CP
sl@0
   166
 */
sl@0
   167
class RTestVclnt2SubtitleRemoveDisplayDuring : public RTestVclnt2Subtitle
sl@0
   168
	{
sl@0
   169
public:
sl@0
   170
	static RTestVclnt2SubtitleRemoveDisplayDuring* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   171
	void DoDuringPlaybackActionsL();
sl@0
   172
	
sl@0
   173
private:
sl@0
   174
	RTestVclnt2SubtitleRemoveDisplayDuring(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   175
	};
sl@0
   176
sl@0
   177
/**
sl@0
   178
 * MM-MMF-VCLNTAVI-I-0701-CP
sl@0
   179
 */
sl@0
   180
class RTestVclnt2SubtitleNotAvailable : public RTestVclnt2Subtitle
sl@0
   181
	{
sl@0
   182
public:
sl@0
   183
	static RTestVclnt2SubtitleNotAvailable* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   184
	void DoBeforePlaybackActionsL();
sl@0
   185
	
sl@0
   186
private:
sl@0
   187
	RTestVclnt2SubtitleNotAvailable(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   188
	};
sl@0
   189
sl@0
   190
/**
sl@0
   191
 * MM-MMF-VCLNTAVI-I-0705-CP
sl@0
   192
 */
sl@0
   193
class RTestVclnt2SubtitleLanguage : public RTestVclnt2Subtitle
sl@0
   194
	{
sl@0
   195
public:
sl@0
   196
	static RTestVclnt2SubtitleLanguage* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   197
	void DoBeforePlaybackActionsL();
sl@0
   198
	
sl@0
   199
private:
sl@0
   200
	RTestVclnt2SubtitleLanguage(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   201
	};
sl@0
   202
sl@0
   203
/**
sl@0
   204
 * MM-MMF-VCLNTAVI-I-0610-CP
sl@0
   205
 */
sl@0
   206
class RTestVclnt2SubtitleRedraw: public RTestVclnt2Subtitle
sl@0
   207
	{
sl@0
   208
public:
sl@0
   209
	static RTestVclnt2SubtitleRedraw* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError, TBool aEnableSubtitles=ETrue);
sl@0
   210
	void DoBeforePlaybackActionsL();
sl@0
   211
	void DoDuringPlaybackActionsL();
sl@0
   212
	
sl@0
   213
private:
sl@0
   214
	RTestVclnt2SubtitleRedraw(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError, TBool aEnableSubtitles);
sl@0
   215
sl@0
   216
private:
sl@0
   217
	TBool iEnableSubtitles;
sl@0
   218
	};
sl@0
   219
sl@0
   220
/**
sl@0
   221
 * MM-MMF-VCLNTAVI-I-0611-CP
sl@0
   222
 */
sl@0
   223
class RTestVclnt2SubtitleRotateClipRedraw: public RTestVclnt2Subtitle
sl@0
   224
	{
sl@0
   225
public:
sl@0
   226
	static RTestVclnt2SubtitleRotateClipRedraw* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   227
	void DoBeforePlaybackActionsL();
sl@0
   228
	void DoDuringPlaybackActionsL();
sl@0
   229
	
sl@0
   230
private:
sl@0
   231
	RTestVclnt2SubtitleRotateClipRedraw(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   232
	};
sl@0
   233
sl@0
   234
/**
sl@0
   235
 * MM-MMF-VCLNTAVI-I-0708-CP
sl@0
   236
 */
sl@0
   237
class RTestVclnt2SubtitleMultipleWindows: public RTestVclnt2Subtitle
sl@0
   238
	{
sl@0
   239
public:
sl@0
   240
	static RTestVclnt2SubtitleMultipleWindows* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   241
	void DoBeforePlaybackActionsL();
sl@0
   242
	
sl@0
   243
protected:
sl@0
   244
	// from RTestStep
sl@0
   245
	TVerdict DoTestStepPreambleL();
sl@0
   246
	TVerdict DoTestStepPostambleL();
sl@0
   247
	
sl@0
   248
private:
sl@0
   249
	RTestVclnt2SubtitleMultipleWindows(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   250
	
sl@0
   251
private:
sl@0
   252
	RWindow* iSecondaryWin;
sl@0
   253
	};
sl@0
   254
sl@0
   255
/**
sl@0
   256
 * MM-MMF-VCLNTAVI-I-0707-CP
sl@0
   257
 */
sl@0
   258
class RTestVclnt2SubtitleEnableTwice: public RTestVclnt2Subtitle
sl@0
   259
	{
sl@0
   260
public:
sl@0
   261
	static RTestVclnt2SubtitleEnableTwice* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   262
	void DoBeforePlaybackActionsL();
sl@0
   263
	
sl@0
   264
private:
sl@0
   265
	RTestVclnt2SubtitleEnableTwice(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   266
	};
sl@0
   267
sl@0
   268
/**
sl@0
   269
 * MM-MMF-VCLNTAVI-I-0612-CP
sl@0
   270
 */
sl@0
   271
class RTestVclnt2SubtitleEnableDisableStress: public RTestVclnt2Subtitle
sl@0
   272
	{
sl@0
   273
public:
sl@0
   274
	static RTestVclnt2SubtitleEnableDisableStress* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   275
	void DoBeforePlaybackActionsL();
sl@0
   276
	void DoDuringPlaybackActionsL();
sl@0
   277
	
sl@0
   278
private:
sl@0
   279
	RTestVclnt2SubtitleEnableDisableStress(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   280
sl@0
   281
private:
sl@0
   282
	TBool iDisableNext;
sl@0
   283
	TBool iExpectAvailable;
sl@0
   284
	};
sl@0
   285
sl@0
   286
/**
sl@0
   287
 * MM-MMF-VCLNTAVI-I-0706-CP
sl@0
   288
 */
sl@0
   289
class RTestVclnt2SubtitleAlloc: public RTestVclnt2Subtitle
sl@0
   290
	{
sl@0
   291
public:
sl@0
   292
	static RTestVclnt2SubtitleAlloc* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   293
	
sl@0
   294
	TVerdict DoTestStepPreambleL();
sl@0
   295
	TVerdict DoTestStepPostambleL();
sl@0
   296
	TVerdict DoTestStepL();
sl@0
   297
sl@0
   298
private:
sl@0
   299
	RTestVclnt2SubtitleAlloc(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
sl@0
   300
	TVerdict PerformTestL();
sl@0
   301
	};
sl@0
   302
sl@0
   303
#endif //TESTVIDEOPLAYER_SUBTITLES_H