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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // This is the main DLL entry point for the TSU_MMF_CTLFRM.dll
21 // Test system includes
22 #include "TSU_MMF_CTLFRMSuite.h"
23 #include "TSU_MMF_CTLFRM.h"
29 * Create an instance of this test suite.
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.
35 * @return "CTestSuite_MMF_CTLFRM*"
36 * The newly created test suite
38 EXPORT_C CTestSuite_MMF_CTLFRM* NewTestSuiteL()
40 CTestSuite_MMF_CTLFRM* result = new (ELeave) CTestSuite_MMF_CTLFRM;
41 CleanupStack::PushL(result);
43 CleanupStack::Pop(); // result
49 * CTestSuiteCTLFRMasses destructor
54 CTestSuite_MMF_CTLFRM::~CTestSuite_MMF_CTLFRM()
61 * Get test suite version.
69 _LIT(KTxtVersion,"0.1");
70 TPtrC CTestSuite_MMF_CTLFRM::GetVersion( void ) const
78 * Add a test step into the suite.
80 * @param "CTestStepSelfTest* aPtrTestStep"
81 * The test step to be added.
89 * Initialiser for test suite.
90 * This creates all the test steps and stores them
91 * inside CTestSuiteCTLFRMasses
96 void CTestSuite_MMF_CTLFRM::InitialiseL( void )
99 // store the name of this test suite
100 iSuiteName = _L("TSU_MMF_CTLFRM");
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 );
133 // Standard Custom Commands
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 );
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 );
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 );
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 );
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 );
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) );
196 surfaceId.iInternal[0] = 88888;
197 AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0305(surfaceId, ETrue) );
198 #endif // SYMBIAN_BUILD_GCE
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
217 //-----------------------------------//
218 // Adding Multiple Sources and Sinks //
219 //-----------------------------------//
220 AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0100 );
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 );
232 //------------------------------------------//
233 // CMMFControllerPluginSelectionParameters //
234 //------------------------------------------//
235 AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0130 );
236 AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0131 );
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 );
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 );
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 );
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 );
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 );
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 );
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 );
310 //CR1655 - MMF support for configurable controller stack size
311 AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0300 );
315 // -------------------------