os/mm/mmlibs/mmfw/tsrc/mmfunittest/ctlfrm/TSU_MMF_CTLFRMSuite.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2002-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
// This is the main DLL entry point for the TSU_MMF_CTLFRM.dll
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
// EPOC includes
sl@0
    19
#include <e32base.h>
sl@0
    20
sl@0
    21
// Test system includes
sl@0
    22
#include "TSU_MMF_CTLFRMSuite.h"
sl@0
    23
#include "TSU_MMF_CTLFRM.h"
sl@0
    24
sl@0
    25
sl@0
    26
sl@0
    27
/**
sl@0
    28
 *
sl@0
    29
 * Create an instance of this test suite.
sl@0
    30
 *
sl@0
    31
 * NewTestSuiteL is exported at ordinal 1.
sl@0
    32
 * This provides the interface to allow the Test Framework
sl@0
    33
 * to create instances of this test suite.
sl@0
    34
 *
sl@0
    35
 * @return	"CTestSuite_MMF_CTLFRM*"
sl@0
    36
 *			The newly created test suite
sl@0
    37
 */
sl@0
    38
EXPORT_C CTestSuite_MMF_CTLFRM* NewTestSuiteL() 
sl@0
    39
    { 
sl@0
    40
	CTestSuite_MMF_CTLFRM* result = new (ELeave) CTestSuite_MMF_CTLFRM;
sl@0
    41
	CleanupStack::PushL(result);
sl@0
    42
	result->ConstructL();
sl@0
    43
	CleanupStack::Pop(); // result
sl@0
    44
	return result;
sl@0
    45
    }
sl@0
    46
sl@0
    47
/**
sl@0
    48
 *
sl@0
    49
 * CTestSuiteCTLFRMasses destructor
sl@0
    50
 *
sl@0
    51
 * @xxxx
sl@0
    52
 * 
sl@0
    53
 */
sl@0
    54
CTestSuite_MMF_CTLFRM::~CTestSuite_MMF_CTLFRM()
sl@0
    55
	{
sl@0
    56
	}
sl@0
    57
sl@0
    58
sl@0
    59
/**
sl@0
    60
 *
sl@0
    61
 * Get test suite version.
sl@0
    62
 *
sl@0
    63
 * @return	"TPtrC"
sl@0
    64
 *			The version string.
sl@0
    65
 *
sl@0
    66
 * @xxxx
sl@0
    67
 *
sl@0
    68
 */
sl@0
    69
_LIT(KTxtVersion,"0.1");
sl@0
    70
TPtrC CTestSuite_MMF_CTLFRM::GetVersion( void ) const
sl@0
    71
	{
sl@0
    72
sl@0
    73
	return KTxtVersion();
sl@0
    74
	}
sl@0
    75
sl@0
    76
/**
sl@0
    77
 *
sl@0
    78
 * Add a test step into the suite.
sl@0
    79
 *
sl@0
    80
 * @param	"CTestStepSelfTest* aPtrTestStep"
sl@0
    81
 *			The test step to be added.
sl@0
    82
 * @xxxx
sl@0
    83
 * 
sl@0
    84
 */
sl@0
    85
sl@0
    86
sl@0
    87
/**
sl@0
    88
 *
sl@0
    89
 * Initialiser for test suite.
sl@0
    90
 * This creates all the test steps and stores them
sl@0
    91
 * inside CTestSuiteCTLFRMasses
sl@0
    92
 *
sl@0
    93
 * @xxxx
sl@0
    94
 * 
sl@0
    95
 */
sl@0
    96
void CTestSuite_MMF_CTLFRM::InitialiseL( void )
sl@0
    97
	{
sl@0
    98
sl@0
    99
	// store the name of this test suite
sl@0
   100
	iSuiteName = _L("TSU_MMF_CTLFRM");
sl@0
   101
sl@0
   102
	// add test steps
sl@0
   103
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0001 );
sl@0
   104
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0007 );
sl@0
   105
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0008 );
sl@0
   106
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0009 );
sl@0
   107
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0010 );
sl@0
   108
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0011 );
sl@0
   109
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0012 );
sl@0
   110
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0013 );
sl@0
   111
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0014 );
sl@0
   112
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0015 );
sl@0
   113
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0016 );
sl@0
   114
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0017 );
sl@0
   115
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0018 );
sl@0
   116
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0019 );
sl@0
   117
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0020 );
sl@0
   118
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0021 );
sl@0
   119
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0022 );
sl@0
   120
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0023 );
sl@0
   121
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0024 );
sl@0
   122
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0027 );
sl@0
   123
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0028 );
sl@0
   124
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0029 );
sl@0
   125
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0030 );
sl@0
   126
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0031 );
sl@0
   127
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0032 );
sl@0
   128
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0033 );
sl@0
   129
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0034 );
sl@0
   130
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0035 );
sl@0
   131
sl@0
   132
sl@0
   133
	// Standard Custom Commands
sl@0
   134
sl@0
   135
	//------------------------------------//
sl@0
   136
	// Audio Play Device Custom Commands  //
sl@0
   137
	//------------------------------------//
sl@0
   138
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0040 );
sl@0
   139
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0041 );
sl@0
   140
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0042 );
sl@0
   141
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0043 );
sl@0
   142
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0044 );
sl@0
   143
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0045 );
sl@0
   144
sl@0
   145
	//------------------------------------//
sl@0
   146
	// Audio Record Device Custom Commands//
sl@0
   147
	//------------------------------------//
sl@0
   148
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0050 );
sl@0
   149
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0051 );
sl@0
   150
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0052 );
sl@0
   151
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0053 );
sl@0
   152
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0054 );
sl@0
   153
sl@0
   154
	//---------------------------------------//
sl@0
   155
	// Audio Play Controller Custom Commands //
sl@0
   156
	//---------------------------------------//
sl@0
   157
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0060 );
sl@0
   158
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0061 );
sl@0
   159
sl@0
   160
sl@0
   161
	//-----------------------------------------//
sl@0
   162
	// Audio Record Controller Custom Commands //
sl@0
   163
	//-----------------------------------------//
sl@0
   164
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0070 );
sl@0
   165
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0071 );
sl@0
   166
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0072 );
sl@0
   167
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0073 );
sl@0
   168
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0074 );
sl@0
   169
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0075 );
sl@0
   170
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0076 );
sl@0
   171
sl@0
   172
	//----------------------------------//
sl@0
   173
	// Audio Controller Custom Commands //
sl@0
   174
	//----------------------------------//
sl@0
   175
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0080 );
sl@0
   176
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0081 );
sl@0
   177
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0082 );
sl@0
   178
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0083 );
sl@0
   179
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0084 );
sl@0
   180
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0085 );
sl@0
   181
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0086 );
sl@0
   182
sl@0
   183
	//---------------------------------------//
sl@0
   184
	// Video Surface support Custom Commands //
sl@0
   185
	//---------------------------------------//
sl@0
   186
#ifdef SYMBIAN_BUILD_GCE
sl@0
   187
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0301 );
sl@0
   188
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0303 );
sl@0
   189
	TSurfaceId surfaceId;
sl@0
   190
	surfaceId.iInternal[0] = 11111;
sl@0
   191
	surfaceId.iInternal[1] = 22222;
sl@0
   192
	surfaceId.iInternal[2] = 33333;
sl@0
   193
	surfaceId.iInternal[3] = 44444;
sl@0
   194
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0305(surfaceId, EFalse) );
sl@0
   195
	// negative test
sl@0
   196
	surfaceId.iInternal[0] = 88888;
sl@0
   197
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0305(surfaceId, ETrue) );	
sl@0
   198
#endif // SYMBIAN_BUILD_GCE
sl@0
   199
	
sl@0
   200
	//----------------------------------//
sl@0
   201
	// Subtitle support Custom Commands //
sl@0
   202
	//----------------------------------//
sl@0
   203
#ifdef SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
sl@0
   204
	AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_400());
sl@0
   205
	AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_401());
sl@0
   206
	AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_402());
sl@0
   207
	AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_403());
sl@0
   208
	AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_404());
sl@0
   209
	AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_405());
sl@0
   210
	AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_406());
sl@0
   211
	AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_407());
sl@0
   212
	AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_408());
sl@0
   213
	AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_409());
sl@0
   214
	AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_410());
sl@0
   215
#endif //SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
sl@0
   216
sl@0
   217
	//-----------------------------------//
sl@0
   218
	// Adding Multiple Sources and Sinks //
sl@0
   219
	//-----------------------------------//
sl@0
   220
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0100 );
sl@0
   221
sl@0
   222
	//-------------------------------------//
sl@0
   223
	// CMMFFormatSelectionParameters       //
sl@0
   224
	//-------------------------------------//
sl@0
   225
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0120 );
sl@0
   226
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0121 );
sl@0
   227
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0122 );
sl@0
   228
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0123 );
sl@0
   229
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0124 );
sl@0
   230
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0125 );
sl@0
   231
sl@0
   232
	//------------------------------------------//
sl@0
   233
	// CMMFControllerPluginSelectionParameters  //
sl@0
   234
	//------------------------------------------//
sl@0
   235
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0130 );
sl@0
   236
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0131 );
sl@0
   237
sl@0
   238
	//-------------------------------------//
sl@0
   239
	// CMMFPluginImplementationInformation //
sl@0
   240
	//-------------------------------------//
sl@0
   241
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0140 );
sl@0
   242
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0141 );
sl@0
   243
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0142 );
sl@0
   244
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0143 );
sl@0
   245
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0144 );
sl@0
   246
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0145 );
sl@0
   247
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0146 );
sl@0
   248
sl@0
   249
	//------------------------------------------//
sl@0
   250
	// CMMFControllerImplementationInformation  //
sl@0
   251
	//------------------------------------------//
sl@0
   252
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0150 );
sl@0
   253
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0151 );
sl@0
   254
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0152 );
sl@0
   255
sl@0
   256
	//--------------------------------------//
sl@0
   257
	// CMMFFormatImplementationInformation  //
sl@0
   258
	//--------------------------------------//
sl@0
   259
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0160 );
sl@0
   260
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0161 );
sl@0
   261
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0162 );
sl@0
   262
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0163 );
sl@0
   263
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0164 );
sl@0
   264
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0165 );
sl@0
   265
sl@0
   266
    //-------------------------------------//
sl@0
   267
	// CMMFFormatPluginSelectionParameters //  (Encode)
sl@0
   268
	//-------------------------------------//
sl@0
   269
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0170 );
sl@0
   270
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0171 );
sl@0
   271
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0172 );
sl@0
   272
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0173 );
sl@0
   273
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0174 );
sl@0
   274
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0175 );
sl@0
   275
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0176 );
sl@0
   276
sl@0
   277
sl@0
   278
	//-----------------------------------------------//
sl@0
   279
	// CMMFFormatPluginSelectionParameters, Negative // 
sl@0
   280
	//-----------------------------------------------//
sl@0
   281
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0180 );
sl@0
   282
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0181 );
sl@0
   283
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0182 );
sl@0
   284
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0183 );
sl@0
   285
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0184 );
sl@0
   286
sl@0
   287
sl@0
   288
	//-------------------------------------//
sl@0
   289
	// CMMFFormatPluginSelectionParameters //  (Decode)
sl@0
   290
	//-------------------------------------//
sl@0
   291
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0190 );
sl@0
   292
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0191 );
sl@0
   293
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0192 );
sl@0
   294
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0193 );
sl@0
   295
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0194 );
sl@0
   296
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0195 );
sl@0
   297
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0196 );
sl@0
   298
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0197 );
sl@0
   299
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0198 );
sl@0
   300
	
sl@0
   301
	
sl@0
   302
	//--------------------------------//
sl@0
   303
	// CMMFTestTerminationController  //
sl@0
   304
	//--------------------------------//
sl@0
   305
	AddTestStepL( new(ELeave) RTestStep_MMF_CTLFRM_U_0200 );
sl@0
   306
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0201 );
sl@0
   307
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0202 );
sl@0
   308
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0203 );
sl@0
   309
sl@0
   310
	//CR1655 -  MMF support for configurable controller stack size
sl@0
   311
	AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0300 );
sl@0
   312
	}
sl@0
   313
sl@0
   314
sl@0
   315
// -------------------------