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