First public contribution.
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.
19 // Test system includes
20 #include "TSU_MMF_ACOD.h"
21 #include "TSU_MMF_ACODSuite.h"
25 #include <mmf/plugin/mmfcodecimplementationuids.hrh>
29 _LIT(KSourceFilesDir, "c:\\mm\\mmf\\testfiles\\acod\\");
30 _LIT(KComparisonFilesDir, "c:\\mm\\mmf\\ref\\acod\\");
34 All source and comparison files need to be copied manually onto the flash card.
35 This code assumes the flash card is represented by drive E: on the target board.
36 If this is not the case, the KSourceFilesDir and KComparisonFilesDir strings
37 need to be changed accordingly.
39 _LIT(KSourceFilesDir, "e:\\");
40 _LIT(KComparisonFilesDir, "e:\\");
44 _LIT(KPCM16SourceFile,"PCM16Source.raw");
45 _LIT(KPCM16BSourceFile,"PCM16BSource.raw");
46 _LIT(KPCMU16SourceFile,"PCMU16Source.raw");
47 _LIT(KPCMU16BSourceFile,"PCMU16BSource.raw");
48 _LIT(KStereoPCM16SourceFile,"StereoPCM16Source.raw");
49 _LIT(KPCM8SourceFile,"PCM8Source.raw");
50 _LIT(KPCMU8SourceFile,"PCMU8Source.raw");
51 _LIT(KAlawSourceFile,"AlawSource.raw");
52 _LIT(KMulawSourceFile,"MulawSource.raw");
53 _LIT(KAdpcmSourceFile,"AdpcmSource.raw");
54 _LIT(KStereoAdpcmSourceFile,"StereoAdpcmSource.raw");
55 _LIT(KGSM610SourceFile,"GSM610Source.raw");
58 _LIT(KAlawToPCM16ComparisonFile,"AlawToPCM16Comparison.raw");
59 _LIT(KPCM16ToAlawComparisonFile,"PCM16ToAlawComparison.raw");
60 _LIT(KPCM8ToPCM16ComparisonFile,"PCM8ToPCM16Comparison.raw");
61 _LIT(KPCM16ToPCM8ComparisonFile,"PCM16ToPCM8Comparison.raw");
62 _LIT(KPCM16ToPCM16BComparisonFile,"PCM16ToPCM16BComparison.raw");
63 _LIT(KPCM16BToPCM16ComparisonFile,"PCM16BToPCM16Comparison.raw");
64 _LIT(KPCMU16ToPCMU16BComparisonFile,"PCMU16ToPCMU16BComparison.raw");
65 _LIT(KPCMU16BToPCMU16ComparisonFile,"PCMU16BToPCMU16Comparison.raw");
66 _LIT(KPCM16ToPCMU16BComparisonFile,"PCM16ToPCMU16BComparison.raw");
67 _LIT(KPCMU16BToPCM16ComparisonFile,"PCMU16BToPCM16Comparison.raw");
68 _LIT(KPCM16ToPCMU16ComparisonFile,"PCM16ToPCMU16Comparison.raw");
69 _LIT(KPCMU16ToPCM16ComparisonFile,"PCMU16ToPCM16Comparison.raw");
70 _LIT(KPCM16ToPCMU8ComparisonFile,"PCM16ToPCMU8Comparison.raw");
71 _LIT(KPCMU8ToPCM16ComparisonFile,"PCMU8ToPCM16Comparison.raw");
72 _LIT(KAdpcmToPCM16ComparisonFile,"AdpcmToPCM16Comparison.raw");
73 _LIT(KPCM16ToAdpcmComparisonFile,"PCM16ToAdpcmComparison.raw");
74 _LIT(KMulawToPCM16ComparisonFile,"MulawToPCM16Comparison.raw");
75 _LIT(KPCM16ToMulawComparisonFile,"PCM16ToMulawComparison.raw");
76 _LIT(KStereoAdpcmToPCM16ComparisonFile,"StereoAdpcmToPCM16Comparison.raw");
77 _LIT(KPCM16ToStereoAdpcmComparisonFile,"PCM16ToStereoAdpcmComparison.raw");
78 _LIT(KGSM610ToPCM16ComparisonFile,"GSM610ToPCM16Comparison.raw");
79 _LIT(KPCM16ToGSM610ComparisonFile,"PCM16ToGSM610Comparison.raw");
81 _LIT(KPreferredSupplierSourceFile,"AAAASource.raw");
82 _LIT(KPreferredSupplierComparisonFile,"AAAABBBBPrefSuppComparison.raw");
83 _LIT(KPreferredSupplier,"Preferred Supplier Test Codec 1");
86 const TUint32 KMMFFourCCCodeAAAA = 0x41414141; //"AAAA"
87 const TUint32 KMMFFourCCCodeBBBB = 0x42424242; //"BBBB"
89 CTestStep_MMF_ACOD::CTestStep_MMF_ACOD()
91 iExpectedLeaveErrorCode = KErrNone;
92 iSingleIteration = EFalse;
95 CTestStep_MMF_ACOD::~CTestStep_MMF_ACOD()
100 * This function gets the correct comparison filename for the codec specified.
102 * @param "TInt aCodecUID"
105 * Descriptor to contain the comparison filename string.
107 void CTestStep_MMF_ACOD::GetComparisonFilenameFromCodecUidL(TInt aCodecUID, TDes& aFilename)
111 case KMmfUidCodecAlawToPCM16:
112 aFilename.Copy(KComparisonFilesDir);
113 aFilename.Append(KAlawToPCM16ComparisonFile);
115 case KMmfUidCodecPCM16ToAlaw:
116 aFilename.Copy(KComparisonFilesDir);
117 aFilename.Append(KPCM16ToAlawComparisonFile);
119 case KMmfUidCodecPCM8ToPCM16:
120 aFilename.Copy(KComparisonFilesDir);
121 aFilename.Append(KPCM8ToPCM16ComparisonFile);
123 case KMmfUidCodecAudioS16ToPCMS8:
124 aFilename.Copy(KComparisonFilesDir);
125 aFilename.Append(KPCM16ToPCM8ComparisonFile);
127 //case KMMFUidCodecPCM16SwapEndian:
128 case KMMFUidCodecPCM16toPCM16B:
129 case KMMFUidCodecPCM16BtoPCM16:
130 case KMMFUidCodecPCMU16toPCMU16B:
131 case KMMFUidCodecPCMU16BtoPCMU16:
132 //This file is used for all swap endian tests other than instantiation.
133 //There is no need to test ProcessL for every swap endian combination.
134 aFilename.Copy(KComparisonFilesDir);
135 aFilename.Append(KPCM16ToPCM16BComparisonFile);
137 case KMmfUidCodecAudioS16ToPCMU16BE:
138 aFilename.Copy(KComparisonFilesDir);
139 aFilename.Append(KPCM16ToPCMU16BComparisonFile);
141 case KMmfUidCodecAudioU16BEToPCMS16:
142 aFilename.Copy(KComparisonFilesDir);
143 aFilename.Append(KPCMU16BToPCM16ComparisonFile);
145 case KMmfUidCodecAudioS16ToPCMU16:
146 aFilename.Copy(KComparisonFilesDir);
147 aFilename.Append(KPCM16ToPCMU16ComparisonFile);
149 case KMmfUidCodecAudioU16ToPCMS16:
150 aFilename.Copy(KComparisonFilesDir);
151 aFilename.Append(KPCMU16ToPCM16ComparisonFile);
153 case KMmfUidCodecAudioS16ToPCMU8:
154 aFilename.Copy(KComparisonFilesDir);
155 aFilename.Append(KPCM16ToPCMU8ComparisonFile);
157 case KMmfUidCodecAudioU8ToPCMS16:
158 aFilename.Copy(KComparisonFilesDir);
159 aFilename.Append(KPCMU8ToPCM16ComparisonFile);
161 case KMmfUidCodecIMAADPCMToPCM16:
162 aFilename.Copy(KComparisonFilesDir);
163 aFilename.Append(KAdpcmToPCM16ComparisonFile);
165 case KMmfUidCodecPCM16ToIMAADPCM:
166 aFilename.Copy(KComparisonFilesDir);
167 aFilename.Append(KPCM16ToAdpcmComparisonFile);
169 case KMmfUidCodecMulawToPCM16:
170 aFilename.Copy(KComparisonFilesDir);
171 aFilename.Append(KMulawToPCM16ComparisonFile);
173 case KMmfUidCodecPCM16ToMulaw:
174 aFilename.Copy(KComparisonFilesDir);
175 aFilename.Append(KPCM16ToMulawComparisonFile);
177 case KMmfUidCodecIMAADPCMToPCM16Stereo:
178 aFilename.Copy(KComparisonFilesDir);
179 aFilename.Append(KStereoAdpcmToPCM16ComparisonFile);
181 case KMmfUidCodecPCM16ToIMAADPCMStereo:
182 aFilename.Copy(KComparisonFilesDir);
183 aFilename.Append(KPCM16ToStereoAdpcmComparisonFile);
185 case KMmfUidCodecGSM610ToPCM16:
186 aFilename.Copy(KComparisonFilesDir);
187 aFilename.Append(KGSM610ToPCM16ComparisonFile);
189 case KMmfUidCodecPCM16ToGSM610:
190 aFilename.Copy(KComparisonFilesDir);
191 aFilename.Append(KPCM16ToGSM610ComparisonFile);
194 User::Leave(KErrNotSupported);
200 * This function gets the correct comparison filename for the fourCC codes specified.
202 * @param "const TFourCC& aSrcFourCC"
203 * Source fourCC code.
204 * "const TFourCC& aDstFourCC"
205 * Destination fourCC code.
207 * Descriptor to contain the comparison filename string.
209 void CTestStep_MMF_ACOD::GetComparisonFilenameFromFourCCL(const TFourCC& aSrcFourCC, const TFourCC& aDstFourCC, TDes& aFilename)
211 if (aSrcFourCC == KMMFFourCCCodePCM16)
213 if (aDstFourCC == KMMFFourCCCodeALAW)
215 aFilename.Copy(KComparisonFilesDir);
216 aFilename.Append(KPCM16ToAlawComparisonFile);
218 else if (aDstFourCC == KMMFFourCCCodePCM16B)
220 aFilename.Copy(KComparisonFilesDir);
221 aFilename.Append(KPCM16ToPCM16BComparisonFile);
223 else if (aDstFourCC == KMMFFourCCCodePCM8)
225 aFilename.Copy(KComparisonFilesDir);
226 aFilename.Append(KPCM16ToPCM8ComparisonFile);
228 else if (aDstFourCC == KMMFFourCCCodePCMU16B)
230 aFilename.Copy(KComparisonFilesDir);
231 aFilename.Append(KPCM16ToPCMU16BComparisonFile);
233 else if (aDstFourCC == KMMFFourCCCodePCMU16)
235 aFilename.Copy(KComparisonFilesDir);
236 aFilename.Append(KPCM16ToPCMU16ComparisonFile);
238 else if (aDstFourCC == KMMFFourCCCodePCMU8)
240 aFilename.Copy(KComparisonFilesDir);
241 aFilename.Append(KPCM16ToPCMU8ComparisonFile);
243 else if (aDstFourCC == KMMFFourCCCodeIMAD)
245 aFilename.Copy(KComparisonFilesDir);
246 aFilename.Append(KPCM16ToAdpcmComparisonFile);
248 else if (aDstFourCC == KMMFFourCCCodeMuLAW)
250 aFilename.Copy(KComparisonFilesDir);
251 aFilename.Append(KPCM16ToMulawComparisonFile);
253 else if (aDstFourCC == KMMFFourCCCodeIMAS)
255 aFilename.Copy(KComparisonFilesDir);
256 aFilename.Append(KPCM16ToStereoAdpcmComparisonFile);
258 else if (aDstFourCC == KMMFFourCCCodeGSM610)
260 aFilename.Copy(KComparisonFilesDir);
261 aFilename.Append(KPCM16ToGSM610ComparisonFile);
264 else if (aDstFourCC == KMMFFourCCCodePCM16)
266 if (aSrcFourCC == KMMFFourCCCodeALAW)
268 aFilename.Copy(KComparisonFilesDir);
269 aFilename.Append(KAlawToPCM16ComparisonFile);
271 if (aSrcFourCC == KMMFFourCCCodePCM8)
273 aFilename.Copy(KComparisonFilesDir);
274 aFilename.Append(KPCM8ToPCM16ComparisonFile);
276 if (aSrcFourCC == KMMFFourCCCodePCM16B)
278 aFilename.Copy(KComparisonFilesDir);
279 aFilename.Append(KPCM16BToPCM16ComparisonFile);
281 if (aSrcFourCC == KMMFFourCCCodePCMU16B)
283 aFilename.Copy(KComparisonFilesDir);
284 aFilename.Append(KPCMU16BToPCM16ComparisonFile);
286 if (aSrcFourCC == KMMFFourCCCodePCMU16)
288 aFilename.Copy(KComparisonFilesDir);
289 aFilename.Append(KPCMU16ToPCM16ComparisonFile);
291 if (aSrcFourCC == KMMFFourCCCodePCMU8)
293 aFilename.Copy(KComparisonFilesDir);
294 aFilename.Append(KPCMU8ToPCM16ComparisonFile);
296 if (aSrcFourCC == KMMFFourCCCodeIMAD)
298 aFilename.Copy(KComparisonFilesDir);
299 aFilename.Append(KAdpcmToPCM16ComparisonFile);
301 if (aSrcFourCC == KMMFFourCCCodeMuLAW)
303 aFilename.Copy(KComparisonFilesDir);
304 aFilename.Append(KMulawToPCM16ComparisonFile);
306 if (aSrcFourCC == KMMFFourCCCodeIMAS)
308 aFilename.Copy(KComparisonFilesDir);
309 aFilename.Append(KStereoAdpcmToPCM16ComparisonFile);
311 if (aSrcFourCC == KMMFFourCCCodeGSM610)
313 aFilename.Copy(KComparisonFilesDir);
314 aFilename.Append(KGSM610ToPCM16ComparisonFile);
317 else if ((aSrcFourCC == KMMFFourCCCodePCMU16) &&
318 (aDstFourCC == KMMFFourCCCodePCMU16B))
320 aFilename.Copy(KComparisonFilesDir);
321 aFilename.Append(KPCMU16ToPCMU16BComparisonFile);
323 else if ((aSrcFourCC == KMMFFourCCCodePCMU16B) &&
324 (aDstFourCC == KMMFFourCCCodePCMU16))
326 aFilename.Copy(KComparisonFilesDir);
327 aFilename.Append(KPCMU16BToPCMU16ComparisonFile);
330 User::Leave(KErrNotSupported);
334 * This function gets the correct source filename for the codec specified.
336 * @param "TInt aCodecUID"
339 * Descriptor to contain the source filename string.
341 void CTestStep_MMF_ACOD::GetSourceFilenameFromCodecUidL(TInt aCodecUID, TDes& aFilename)
345 case KMmfUidCodecAlawToPCM16:
346 aFilename.Copy(KSourceFilesDir);
347 aFilename.Append(KAlawSourceFile);
349 case KMmfUidCodecPCM16ToAlaw:
350 aFilename.Copy(KSourceFilesDir);
351 aFilename.Append(KPCM16SourceFile);
353 case KMmfUidCodecPCM8ToPCM16:
354 aFilename.Copy(KSourceFilesDir);
355 aFilename.Append(KPCM8SourceFile);
357 case KMmfUidCodecAudioS16ToPCMS8:
358 aFilename.Copy(KSourceFilesDir);
359 aFilename.Append(KPCM16SourceFile);
361 //case KMMFUidCodecPCM16SwapEndian:
362 case KMMFUidCodecPCM16toPCM16B:
363 case KMMFUidCodecPCM16BtoPCM16:
364 case KMMFUidCodecPCMU16toPCMU16B:
365 case KMMFUidCodecPCMU16BtoPCMU16:
366 //this file is used for all swap endian tests other than instantiation.
367 //there is no need to test ProcessL for every swap endian combination.
368 aFilename.Copy(KSourceFilesDir);
369 aFilename.Append(KPCM16SourceFile);
371 case KMmfUidCodecAudioS16ToPCMU16BE:
372 aFilename.Copy(KSourceFilesDir);
373 aFilename.Append(KPCM16SourceFile);
375 case KMmfUidCodecAudioU16BEToPCMS16:
376 aFilename.Copy(KSourceFilesDir);
377 aFilename.Append(KPCMU16BSourceFile);
379 case KMmfUidCodecAudioS16ToPCMU16:
380 aFilename.Copy(KSourceFilesDir);
381 aFilename.Append(KPCM16SourceFile);
383 case KMmfUidCodecAudioU16ToPCMS16:
384 aFilename.Copy(KSourceFilesDir);
385 aFilename.Append(KPCMU16SourceFile);
387 case KMmfUidCodecAudioS16ToPCMU8:
388 aFilename.Copy(KSourceFilesDir);
389 aFilename.Append(KPCM16SourceFile);
391 case KMmfUidCodecAudioU8ToPCMS16:
392 aFilename.Copy(KSourceFilesDir);
393 aFilename.Append(KPCMU8SourceFile);
395 case KMmfUidCodecIMAADPCMToPCM16:
396 aFilename.Copy(KSourceFilesDir);
397 aFilename.Append(KAdpcmSourceFile);
399 case KMmfUidCodecPCM16ToIMAADPCM:
400 aFilename.Copy(KSourceFilesDir);
401 aFilename.Append(KPCM16SourceFile);
403 case KMmfUidCodecMulawToPCM16:
404 aFilename.Copy(KSourceFilesDir);
405 aFilename.Append(KMulawSourceFile);
407 case KMmfUidCodecPCM16ToMulaw:
408 aFilename.Copy(KSourceFilesDir);
409 aFilename.Append(KPCM16SourceFile);
411 case KMmfUidCodecIMAADPCMToPCM16Stereo:
412 aFilename.Copy(KSourceFilesDir);
413 aFilename.Append(KStereoAdpcmSourceFile);
415 case KMmfUidCodecPCM16ToIMAADPCMStereo:
416 aFilename.Copy(KSourceFilesDir);
417 aFilename.Append(KStereoPCM16SourceFile);
419 case KMmfUidCodecGSM610ToPCM16:
420 aFilename.Copy(KSourceFilesDir);
421 aFilename.Append(KGSM610SourceFile);
423 case KMmfUidCodecPCM16ToGSM610:
424 aFilename.Copy(KSourceFilesDir);
425 aFilename.Append(KPCM16SourceFile);
428 User::Leave(KErrNotSupported);
434 * This function gets the correct source filename for the fourCC codes specified.
436 * @param "const TFourCC& aSrcFourCC"
437 * Source fourCC code.
438 * "const TFourCC& aDstFourCC"
439 * Destination fourCC code.
441 * Descriptor to contain the source filename string.
443 void CTestStep_MMF_ACOD::GetSourceFilenameFromFourCCL(const TFourCC& aSrcFourCC, const TFourCC& aDstFourCC, TDes& aFilename)
445 aFilename.Copy(KSourceFilesDir);
446 if (aSrcFourCC == KMMFFourCCCodePCM16)
448 if (aDstFourCC == KMMFFourCCCodeIMAS)
449 aFilename.Append(KStereoPCM16SourceFile);
451 aFilename.Append(KPCM16SourceFile);
453 else if (aSrcFourCC == KMMFFourCCCodeALAW)
454 aFilename.Append(KAlawSourceFile);
455 else if (aSrcFourCC == KMMFFourCCCodePCM8)
456 aFilename.Append(KPCM8SourceFile);
457 else if (aSrcFourCC == KMMFFourCCCodePCM16B)
458 aFilename.Append(KPCM16BSourceFile);
459 else if (aSrcFourCC == KMMFFourCCCodePCMU16B)
460 aFilename.Append(KPCMU16BSourceFile);
461 else if (aSrcFourCC == KMMFFourCCCodePCMU16)
462 aFilename.Append(KPCMU16SourceFile);
463 else if (aSrcFourCC == KMMFFourCCCodePCMU8)
464 aFilename.Append(KPCMU8SourceFile);
465 else if (aSrcFourCC == KMMFFourCCCodeIMAD)
466 aFilename.Append(KAdpcmSourceFile);
467 else if (aSrcFourCC == KMMFFourCCCodeMuLAW)
468 aFilename.Append(KMulawSourceFile);
469 else if (aSrcFourCC == KMMFFourCCCodeIMAS)
470 aFilename.Append(KStereoAdpcmSourceFile);
471 else if (aSrcFourCC == KMMFFourCCCodeGSM610)
472 aFilename.Append(KGSM610SourceFile);
474 User::Leave(KErrNotSupported);
478 * This function checks the data in iOutputDataBuffer against data in a comparison
481 * @param "const TDesC& aFilename"
482 * Full path of the comparison file to compare against.
484 * File position from which to read the comparison data.
486 * ETrue if the output is the same as the comparison data
487 * EFalse if the output is different to the comparison data
489 TBool CTestStep_MMF_ACOD::CheckOutputAgainstComparisonFileL(const TDesC& aFilename, TUint aPosition)
492 User::LeaveIfError(fs.Connect());
493 CleanupClosePushL(fs);
496 User::LeaveIfError(file.Open(fs, aFilename, EFileRead|EFileShareAny));
497 CleanupClosePushL(file);
499 RFileReadStream fileReadStream(file, aPosition);
500 CleanupClosePushL(fileReadStream);
502 //read data from comparison file into descriptor
503 HBufC8* compBuffer = HBufC8::NewL(iOutputDataBuffer->Length());
504 CleanupStack::PushL(compBuffer);
505 TPtr8 compBufferPtr = compBuffer->Des();
506 TRAPD(err, fileReadStream.ReadL(compBufferPtr, iOutputDataBuffer->Length()));
507 if ((err != KErrNone) && (err != KErrEof)) User::LeaveIfError(err); //EOF not an error ?
509 //compare destination buffer with comparison descriptor
510 TInt result = iOutputDataBuffer->Compare(*compBuffer);
513 INFO_PRINTF3(_L(">> iOutputDataBuffer size is %d, Comparison buffer size is %d"), iOutputDataBuffer->Length(), compBuffer->Length());
515 CleanupStack::PopAndDestroy(4); //compBuffer, fileReadStream, file, fs
524 * This function checks the number of source bytes processed against
525 * iExpectedSrcBytesProcessed.
527 * @param "TUint aCount"
528 * Index in the iExpectedSrcBytesProcessed array to check the value against.
530 * ETrue if the source bytes processed is as expected.
531 * EFalse if the source bytes processed is not as expected.
533 TBool CTestStep_MMF_ACOD::CheckSrcBytesProcessedL(TUint aCount)
535 if (iCodecProcessResult.iSrcBytesProcessed == iExpectedSrcBytesProcessed[aCount])
537 else if (STATIC_CAST(TUint, iFileDataLeft) < iExpectedSrcBytesProcessed[aCount])
539 INFO_PRINTF4(_L(">> TCodecProcessResult::iSrcBytesProcessed is %d, Not enough source data available in file. iFileDataLeft for LOOP %d is %d"), iCodecProcessResult.iSrcBytesProcessed, aCount, iFileDataLeft);
540 if (iCodecProcessResult.iSrcBytesProcessed == STATIC_CAST(TUint, iFileDataLeft))
547 INFO_PRINTF4(_L(">> TCodecProcessResult::iSrcBytesProcessed is %d, iExpectedSrcBytesProcessed for LOOP %d is %d"), iCodecProcessResult.iSrcBytesProcessed, aCount, iExpectedSrcBytesProcessed[aCount]);
553 * This function checks the number of destination bytes added against
554 * iExpectedDstBytesAdded.
556 * @param "TUint aCount"
557 * Index of the iExpectedDstBytesAdded array to check the value against.
559 * ETrue if the dest bytes added is as expected.
560 * EFalse if the dest bytes added is not as expected.
562 TBool CTestStep_MMF_ACOD::CheckDstBytesAddedL(TUint aCount)
564 if (iCodecProcessResult.iDstBytesAdded == iExpectedDstBytesAdded[aCount])
566 else if (STATIC_CAST(TUint, iFileDataLeft) < iExpectedSrcBytesProcessed[aCount])
568 INFO_PRINTF4(_L(">> TCodecProcessResult::iDstBytesAdded is %d, Not enough source data available in file. iFileDataLeft for LOOP %d is %d"), iCodecProcessResult.iDstBytesAdded, aCount, iFileDataLeft);
573 INFO_PRINTF4(_L(">> TCodecProcessResult::iDstBytesAdded is %d, iExpectedDstBytesAdded for LOOP %d is %d"), iCodecProcessResult.iDstBytesAdded, aCount, iExpectedDstBytesAdded[aCount]);
579 * This function checks the length of iOutputDataBuffer against iTotalDstBytesAdded.
582 * ETrue if the values are the same.
583 * EFalse if the values are different.
585 TBool CTestStep_MMF_ACOD::CheckOutputDataBufferSizeAgainstTotalDstBytesAddedL()
587 if (iOutputDataBuffer->Length() == STATIC_CAST(TInt, iTotalDstBytesAdded))
591 INFO_PRINTF3(_L(">> Output Data Buffer Length is %d, iTotalDstBytesAdded is %d"), iOutputDataBuffer->Length(), iTotalDstBytesAdded);
597 * Checks the current return value against iExpectedReturnValue.
599 * @param "TUint aCount"
600 * Index of the iExpectedReturnValue array to check the value against.
602 * ETrue if the return value is as expected.
603 * EFalse if the return value is not as expected.
605 TBool CTestStep_MMF_ACOD::CheckReturnValueL(TUint aCount)
608 User::Leave(KErrArgument);
610 if (iCodecProcessResult.iStatus == iExpectedReturnValue[aCount].iStatus)
616 INFO_PRINTF4(_L(">> TCodecProcessResult::iStatus is %d, iExpectedReturnValue for LOOP %d is %d"), iCodecProcessResult.iStatus, aCount, iExpectedReturnValue[aCount].iStatus);
622 * This function fills the source buffer with data from the file specified.
624 * @param "CMMFBuffer* aSrcBuffer"
625 * Buffer to contain the data read from the source file.
626 * "const TDesC& aFileName"
627 * Name of source file to use.
629 * Position in the file from which to read the data.
631 void CTestStep_MMF_ACOD::FillSourceBufferFromSourceFileL(CMMFBuffer* aSrcBuffer, const TDesC& aFilename, TUint aPosition)
634 User::LeaveIfError(fs.Connect());
635 CleanupClosePushL(fs);
638 User::LeaveIfError(file.Open(fs, aFilename, EFileRead|EFileShareAny));
639 CleanupClosePushL(file);
642 file.Size(iFileDataLeft);
643 if (STATIC_CAST(TInt, aPosition) < iFileDataLeft)
644 iFileDataLeft -= aPosition;
645 else User::Leave(KErrEof);
647 RFileReadStream fileReadStream(file, aPosition);
648 CleanupClosePushL(fileReadStream);
650 TInt srcBufferLength = STATIC_CAST(CMMFDataBuffer*, aSrcBuffer)->Data().MaxLength();
652 //read data from source file into source buffer
653 if(iFileDataLeft < srcBufferLength)
654 fileReadStream.ReadL(STATIC_CAST(CMMFDataBuffer*, aSrcBuffer)->Data(), iFileDataLeft);
656 fileReadStream.ReadL(STATIC_CAST(CMMFDataBuffer*, aSrcBuffer)->Data());
658 CleanupStack::PopAndDestroy(3); //filereadstream, file, fs
662 * This function tests the functionality of ProcessL for the codec specified.
664 * @param "TUid aCodecUID"
665 * Uid of the codec under test.
666 * "TUint aSrcBufferSize"
667 * Size of source buffer to test the codec with.
668 * "TUint aDstBufferSize"
669 * Size of destination buffer to test the codec with.
670 * "TUint aSrcBufferLength"
671 * Length of source buffer to test the codec with if less than the maxLength.
672 * aSrcBufferLength defaults to zero. It is not used unless a value is
673 * specified. A value should only be specified in cases where the buffer
674 * length is less than the maxlength.
676 * ETrue if the test passes.
677 * EFalse if the test fails.
679 TBool CTestStep_MMF_ACOD::TestProcessL(TUid aCodecUID, TUint aSrcBufferSize, TUint aDstBufferSize, TUint aSrcBufferLength)
682 CMMFDataBuffer *srcBuffer = CMMFDataBuffer::NewL(aSrcBufferSize);
683 CleanupStack::PushL(srcBuffer);
684 CMMFDataBuffer *dstBuffer = CMMFDataBuffer::NewL(aDstBufferSize);
685 CleanupStack::PushL(dstBuffer);
687 //Fill source buffer with data
688 HBufC* srcFilename = HBufC::NewLC(KMaxPath);
689 TPtr ptrSrcFilename = srcFilename->Des();
690 GetSourceFilenameFromCodecUidL(aCodecUID.iUid, ptrSrcFilename);
691 FillSourceBufferFromSourceFileL(srcBuffer, ptrSrcFilename, 0);
693 //if source buffer has different length to max length, crop data
694 if (aSrcBufferLength > 0)
696 srcBuffer->Data().SetLength(aSrcBufferLength);
700 CMMFCodec* codec = CMMFCodec::NewL(aCodecUID);
701 CleanupStack::PushL(codec);
703 TBool testOK = ETrue;
704 TRAPD(err, iCodecProcessResult = codec->ProcessL(*srcBuffer, *dstBuffer));
707 ERR_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestProcessL Leave occurred in ProcessL, error code %d"), err);
712 //copy data to iOutputDataBuffer
713 iOutputDataBuffer = HBufC8::NewL(dstBuffer->Data().Length());
714 TPtr8 outputDataBufferPtr = iOutputDataBuffer->Des();
715 outputDataBufferPtr.Append(dstBuffer->Data());
717 iTotalDstBytesAdded = iCodecProcessResult.iDstBytesAdded;
718 iTotalSrcBytesProcessed = iCodecProcessResult.iSrcBytesProcessed;
720 //investigate results
721 HBufC* filename = HBufC::NewLC(KMaxPath);
722 TPtr ptrFilename = filename->Des();
723 GetComparisonFilenameFromCodecUidL(aCodecUID.iUid, ptrFilename);
725 if (!CheckOutputAgainstComparisonFileL(ptrFilename, 0))
727 ERR_PRINTF1(_L(">> CTestStep_MMF_ACOD::TestProcessL CheckOutputAgainstComparisonFileL returned EFalse"));
730 if (!CheckDstBytesAddedL(0))
732 ERR_PRINTF1(_L(">> CTestStep_MMF_ACOD::TestProcessL CheckDstBytesAddedL returned EFalse"));
735 if (!CheckSrcBytesProcessedL(0))
737 ERR_PRINTF1(_L(">> CTestStep_MMF_ACOD::TestProcessL CheckSrcBytesProcessedL returned EFalse"));
740 if (!CheckOutputDataBufferSizeAgainstTotalDstBytesAddedL())
742 ERR_PRINTF1(_L(">> CTestStep_MMF_ACOD::TestProcessL CheckOutputDataBufferSizeAgainstTotalDstBytesAddedL returned EFalse"));
745 if (!CheckReturnValueL(0))
747 ERR_PRINTF1(_L(">> CTestStep_MMF_ACOD::TestProcessL CheckReturnValue returned EFalse"));
752 CleanupStack::PopAndDestroy(); //filename
753 delete iOutputDataBuffer;
754 iOutputDataBuffer = NULL;
757 CleanupStack::PopAndDestroy(4); //codec, srcFilename, dstBuffer, srcBuffer
767 * This function tests the functionality of ProcessL for the codec specified.
768 * It mimics the datapath by calling ProcessL five times in a loop, checking the
769 * return value each time and passing in new buffers accordlingly.
771 * @param "TUid aCodecUID"
772 * Uid of the codec under test.
773 * "TUint aSrcBufferSize"
774 * Size of source buffers to test the codec with.
775 * "TUint aDstBufferSize"
776 * Size of destination buffers to test the codec with.
777 * "TUint aSrcBufferLength"
778 * Length of source buffer to test the codec with if less than the maxLength.
779 * aSrcBufferLength defaults to zero and is not used unless a value is
780 * specified.A value should only be specified if the buffer length is less
781 * than the maxlength.
782 * "TBool aCheckExpectedBytesProcessed"
783 * Boolean value to determine whether to check the srcBytesProcessed and
784 * dstBytesAdded against their expected values. This defaults to true,
785 * but allows for the tests to be bypassed for non-linear codecs where the
786 * expected values are difficult to determine.
788 * ETrue if the test passes.
789 * EFalse if the test fails.
791 TBool CTestStep_MMF_ACOD::TestProcessLLoopFiveTimesL(TUid aCodecUID, TUint aSrcBufferSize, TUint aDstBufferSize, TUint aSrcBufferLength, TBool aCheckExpectedBytesProcessed)
794 CMMFDataBuffer *srcBuffer = CMMFDataBuffer::NewL(aSrcBufferSize);
795 CleanupStack::PushL(srcBuffer);
796 CMMFDataBuffer *dstBuffer = CMMFDataBuffer::NewL(aDstBufferSize);
797 CleanupStack::PushL(dstBuffer);
799 //read first buffer of data
800 HBufC* srcFilename = HBufC::NewLC(KMaxPath);
801 TPtr ptrSrcFilename = srcFilename->Des();
802 GetSourceFilenameFromCodecUidL(aCodecUID.iUid, ptrSrcFilename);
803 TRAPD(srcFileError, FillSourceBufferFromSourceFileL(srcBuffer, ptrSrcFilename, 0));
804 TBool endOfFile = EFalse;
805 if (srcFileError == KErrEof)
807 else if (srcFileError)
808 User::Leave(srcFileError);
811 //if source buffer has different length to max length, crop data
812 if (aSrcBufferLength > 0)
814 srcBuffer->Data().SetLength(aSrcBufferLength);
818 CMMFCodec* codec = CMMFCodec::NewL(aCodecUID);
819 CleanupStack::PushL(codec);
821 TBool testOK = ETrue;
822 TRAPD(err, iOutputDataBuffer = HBufC8::NewL(aDstBufferSize*5));
823 User::LeaveIfError(err);
824 TPtr8 outputDataBufferPtr = iOutputDataBuffer->Des();
837 for (TUint i=0; i</*5*/maxIters; i++)
839 TRAPD(err, iCodecProcessResult = codec->ProcessL(*srcBuffer, *dstBuffer));
842 if (err == iExpectedLeaveErrorCode)
846 ERR_PRINTF3(_L(">> CTestStep_MMF_ACOD::TestProcessLLoopFiveTimesL LOOP %d Leave occurred in ProcessL, error code %d"), i, err);
851 else if (iExpectedLeaveErrorCode)
853 ERR_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestProcessLLoopFiveTimesL LOOP %d A leave was expected in ProcessL, but this didn't occur"), i);
858 iTotalDstBytesAdded += iCodecProcessResult.iDstBytesAdded;
859 iTotalSrcBytesProcessed += iCodecProcessResult.iSrcBytesProcessed;
863 switch (iCodecProcessResult.iStatus)
865 case TCodecProcessResult::EProcessComplete:
867 outputDataBufferPtr.Append(dstBuffer->Data());
868 dstBuffer->SetPosition(0);
869 if (!CheckOutputDataBufferSizeAgainstTotalDstBytesAddedL())
871 ERR_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestProcessLLoopFiveTimesL LOOP %d CheckOutputDataBufferSizeAgainstTotalDstBytesAddedL returned EFalse"), i);
874 srcBuffer->SetPosition(0);
875 srcBuffer->NextFrame();
879 TRAP(srcFileError, FillSourceBufferFromSourceFileL(srcBuffer, ptrSrcFilename, iTotalSrcBytesProcessed));
880 if (srcFileError == KErrEof)
882 else if (srcFileError)
883 User::Leave(srcFileError);
885 if (aSrcBufferLength > 0)
886 srcBuffer->Data().SetLength(aSrcBufferLength);
889 case TCodecProcessResult::EProcessIncomplete:
891 outputDataBufferPtr.Append(dstBuffer->Data());
892 dstBuffer->SetPosition(0);
893 if (!CheckOutputDataBufferSizeAgainstTotalDstBytesAddedL())
895 ERR_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestProcessLLoopFiveTimesL LOOP %d CheckOutputDataBufferSizeAgainstTotalDstBytesAddedL returned EFalse"), i);
898 srcBuffer->SetPosition(iCodecProcessResult.iSrcBytesProcessed + srcBuffer->Position());
901 case TCodecProcessResult::EDstNotFilled:
903 dstBuffer->SetPosition(iCodecProcessResult.iDstBytesAdded + dstBuffer->Position());
907 TRAP(srcFileError, FillSourceBufferFromSourceFileL(srcBuffer, ptrSrcFilename, iTotalSrcBytesProcessed));
908 if (srcFileError == KErrEof)
910 else if (srcFileError)
911 User::Leave(srcFileError);
913 if (aSrcBufferLength > 0)
914 srcBuffer->Data().SetLength(aSrcBufferLength);
918 User::Leave(KErrCorrupt); //should never get here
923 outputDataBufferPtr.Append(dstBuffer->Data());
924 if (!CheckOutputDataBufferSizeAgainstTotalDstBytesAddedL())
926 ERR_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestProcessLLoopFiveTimesL LOOP %d CheckOutputDataBufferSizeAgainstTotalDstBytesAddedL returned EFalse"), i);
931 if (!CheckReturnValueL(i))
933 ERR_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestProcessLLoopFiveTimesL LOOP %d CheckReturnValue returned EFalse"), i);
936 if (aCheckExpectedBytesProcessed)
938 if (!CheckDstBytesAddedL(i))
940 ERR_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestProcessLLoopFiveTimesL LOOP %d CheckDstBytesAddedL returned EFalse"), i);
943 if (!CheckSrcBytesProcessedL(i))
945 ERR_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestProcessLLoopFiveTimesL LOOP %d CheckSrcBytesProcessedL returned EFalse"), i);
956 HBufC* filename = HBufC::NewLC(KMaxPath);
957 TPtr ptrFilename = filename->Des();
958 GetComparisonFilenameFromCodecUidL(aCodecUID.iUid, ptrFilename);
960 if (!CheckOutputAgainstComparisonFileL(ptrFilename, 0))
962 ERR_PRINTF1(_L(">> CTestStep_MMF_ACOD::TestProcessLLoopFiveTimesL CheckOutputAgainstComparisonFileL returned EFalse"));
966 CleanupStack::PopAndDestroy(); //filename
970 delete iOutputDataBuffer;
971 iOutputDataBuffer = NULL;
972 CleanupStack::PopAndDestroy(4); //codec, srcFilename, dstBuffer, srcBuffer
981 * This function tests how the codec handles a reposition. This test is only really
982 * relevant to codecs that store data between calls to ProcessL. When a reposition
983 * occurs the stored data should be flushed.
985 * ProcessL is called 3 times:
986 * After the first call the frame number is increased by one;
987 * After the second call the output data is checked to ensure that extra data HAS been
988 * written to the output buffer; The frame number is set to 5 to mimic a reposition.
989 * After the third call the output data is checked to ensure that extra data HAS NOT
990 * been written to the output buffer.
992 * Note: It is important to use buffer sizes that will force the codec to store extra
993 * data and return EProcessComplete or EDstNotFilled each time around the loop.
995 * @param "TUid aCodecUID"
996 * Uid of the codec under test.
997 * "TUint aSrcBufferSize"
998 * Size of source buffer to test the codec with.
999 * "TUint aDstBufferSize"
1000 * Size of destination buffer to test the codec with.
1002 * ETrue if the test passes.
1003 * EFalse if the test fails.
1005 TBool CTestStep_MMF_ACOD::TestRepositionL(TUid aCodecUID, TUint aSrcBufferSize, TUint aDstBufferSize)
1008 CMMFDataBuffer *srcBuffer = CMMFDataBuffer::NewL(aSrcBufferSize);
1009 CleanupStack::PushL(srcBuffer);
1011 CMMFDataBuffer *dstBuffer = CMMFDataBuffer::NewL(aDstBufferSize);
1012 CleanupStack::PushL(dstBuffer);
1014 //read first buffer of data
1015 HBufC* srcFilename = HBufC::NewLC(KMaxPath);
1016 TPtr ptrSrcFilename = srcFilename->Des();
1017 GetSourceFilenameFromCodecUidL(aCodecUID.iUid, ptrSrcFilename);
1018 FillSourceBufferFromSourceFileL(srcBuffer, ptrSrcFilename, 0);
1021 CMMFCodec* codec = NULL;
1022 TRAPD(err, codec = CMMFCodec::NewL(aCodecUID));
1025 ERR_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestRepositionL Leave occurred in NewL, error code %d"), err);
1030 CleanupStack::PushL(codec);
1033 TBool testOK = ETrue;
1034 iOutputDataBuffer = HBufC8::NewL(aDstBufferSize);
1035 TPtr8 outputDataBufferPtr = iOutputDataBuffer->Des();
1037 HBufC* filename = HBufC::NewLC(KMaxPath);
1038 TPtr ptrFilename = filename->Des();
1039 GetComparisonFilenameFromCodecUidL(aCodecUID.iUid, ptrFilename);
1041 for (TUint i=0; i<3; i++)
1043 iCodecProcessResult = codec->ProcessL(*srcBuffer, *dstBuffer);
1045 if ((iCodecProcessResult.iStatus == TCodecProcessResult::EProcessComplete) ||
1046 (iCodecProcessResult.iStatus == TCodecProcessResult::EDstNotFilled))
1052 srcBuffer->SetPosition(0);
1053 srcBuffer->SetFrameNumber(5);
1054 dstBuffer->SetPosition(0);
1060 srcBuffer->SetPosition(0);
1061 srcBuffer->SetFrameNumber(0);
1062 dstBuffer->SetPosition(0);
1064 outputDataBufferPtr.Copy(dstBuffer->Data());
1065 if (CheckOutputAgainstComparisonFileL(ptrFilename, 0))
1067 INFO_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestRepositionL CheckOutputAgainstComparisonFileL returned ETrue for LOOP %d."), i);
1068 INFO_PRINTF1(_L(">> If the codec stores left over data from the previous call to ProcessL, this may indicate that the test is invalid."));
1069 INFO_PRINTF1(_L(">> Try using different buffer sizes."));
1075 outputDataBufferPtr.Copy(dstBuffer->Data());
1076 if (!CheckOutputAgainstComparisonFileL(ptrFilename, 0))
1078 ERR_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestRepositionL CheckOutputAgainstComparisonFileL returned EFalse for LOOP %d"), i);
1089 INFO_PRINTF3(_L(">> CTestStep_MMF_ACOD::TestRepositionL Return code was %d for LOOP %d."), iCodecProcessResult.iStatus, i);
1090 INFO_PRINTF1(_L(">> This indicates that the test is invalid. Try using different buffer sizes."));
1096 delete iOutputDataBuffer;
1097 iOutputDataBuffer = NULL;
1098 CleanupStack::PopAndDestroy(5); //filename, codec, srcFilename, dstBuffer, srcBuffer
1107 * This function tests codec instantiation by Uid.
1109 * @param "TUid aCodecUID"
1110 * Uid of the codec under test.
1112 * ETrue if the test passes.
1113 * EFalse if the test fails.
1115 TBool CTestStep_MMF_ACOD::TestNewL(TUid aCodecUID)
1118 CMMFDataBuffer *srcBuffer = CMMFDataBuffer::NewL(KDefaultBufferSize);
1119 CleanupStack::PushL(srcBuffer);
1120 CMMFDataBuffer *dstBuffer = CMMFDataBuffer::NewL(KDefaultBufferSize);
1121 CleanupStack::PushL(dstBuffer);
1123 //Fill source buffer with data
1124 HBufC* srcFilename = HBufC::NewLC(KMaxPath);
1125 TPtr ptrSrcFilename = srcFilename->Des();
1126 GetSourceFilenameFromCodecUidL(aCodecUID.iUid, ptrSrcFilename);
1127 FillSourceBufferFromSourceFileL(srcBuffer, ptrSrcFilename, 0);
1129 TBool testOK = ETrue;
1130 //create codec from uid
1131 CMMFCodec* codec = NULL;
1132 TRAPD(err, codec = CMMFCodec::NewL(aCodecUID));
1135 ERR_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestNewL Leave occurred in NewL, error code %d"), err);
1140 CleanupStack::PushL(codec);
1142 //Check codec is non-null
1145 ERR_PRINTF1(_L(">> CTestStep_MMF_ACOD::TestNewL NewL returned NULL"));
1150 //Process one buffer of data
1151 iCodecProcessResult = codec->ProcessL(*srcBuffer, *dstBuffer);
1153 //copy data to iOutputDataBuffer
1154 iOutputDataBuffer = HBufC8::NewL(dstBuffer->Data().Length());
1155 TPtr8 outputDataBufferPtr = iOutputDataBuffer->Des();
1156 outputDataBufferPtr.Append(dstBuffer->Data());
1158 //investigate results
1159 HBufC* filename = HBufC::NewLC(KMaxPath);
1160 TPtr ptrFilename = filename->Des();
1161 GetComparisonFilenameFromCodecUidL(aCodecUID.iUid, ptrFilename);
1163 if (!CheckOutputAgainstComparisonFileL(ptrFilename, 0))
1165 ERR_PRINTF1(_L(">> CTestStep_MMF_ACOD::TestNewL CheckOutputAgainstComparisonFileL returned EFalse"));
1168 CleanupStack::PopAndDestroy(); //filename
1171 CleanupStack::PopAndDestroy(); //codec
1172 delete iOutputDataBuffer;
1173 iOutputDataBuffer = NULL;
1176 CleanupStack::PopAndDestroy(3); //srcFilename, dstBuffer, srcBuffer
1185 * This function tests codec instantiation by fourCC codes.
1187 * @param "const TFourCC& aSrcFourCC"
1188 * Source fourCC code of the codec under test.
1189 * "const TFourCC& aDstFourCC"
1190 * Destination fourCC code of the codec under test.
1192 * ETrue if the test passes.
1193 * EFalse if the test fails.
1195 TBool CTestStep_MMF_ACOD::TestNewL(const TFourCC& aSrcFourCC, const TFourCC& aDstFourCC)
1198 CMMFDataBuffer *srcBuffer = CMMFDataBuffer::NewL(KDefaultBufferSize);
1199 CleanupStack::PushL(srcBuffer);
1200 CMMFDataBuffer *dstBuffer = CMMFDataBuffer::NewL(KDefaultBufferSize);
1201 CleanupStack::PushL(dstBuffer);
1203 //Fill source buffer with data
1204 HBufC* srcFilename = HBufC::NewLC(KMaxPath);
1205 TPtr ptrSrcFilename = srcFilename->Des();
1206 GetSourceFilenameFromFourCCL(aSrcFourCC, aDstFourCC, ptrSrcFilename);
1207 FillSourceBufferFromSourceFileL(srcBuffer, ptrSrcFilename, 0);
1209 TBool testOK = ETrue;
1211 //create codec from uid
1212 CMMFCodec* codec = NULL;
1213 TRAPD(err, codec = CMMFCodec::NewL(aSrcFourCC, aDstFourCC));
1216 ERR_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestNewL Leave occurred in NewL, error code %d"), err);
1221 CleanupStack::PushL(codec);
1223 //Check codec is non-null
1226 ERR_PRINTF1(_L(">> CTestStep_MMF_ACOD::TestNewL NULL CMMFCodec returned from NewL"));
1231 //Process one buffer of data
1232 iCodecProcessResult = codec->ProcessL(*srcBuffer, *dstBuffer);
1234 //copy data to iOutputDataBuffer
1235 iOutputDataBuffer = HBufC8::NewL(dstBuffer->Data().Length());
1236 TPtr8 outputDataBufferPtr = iOutputDataBuffer->Des();
1237 outputDataBufferPtr.Append(dstBuffer->Data());
1239 //investigate results
1240 HBufC* filename = HBufC::NewLC(KMaxPath);
1241 TPtr ptrFilename = filename->Des();
1242 GetComparisonFilenameFromFourCCL(aSrcFourCC, aDstFourCC, ptrFilename);
1244 if (!CheckOutputAgainstComparisonFileL(ptrFilename, 0))
1246 ERR_PRINTF1(_L(">> CTestStep_MMF_ACOD::TestNewL CheckOutputAgainstComparisonFileL returned EFalse"));
1249 CleanupStack::PopAndDestroy(); //filename
1252 CleanupStack::PopAndDestroy(); //codec
1253 delete iOutputDataBuffer;
1254 iOutputDataBuffer = NULL;
1257 CleanupStack::PopAndDestroy(3); //srcFilename, dstBuffer, srcBuffer
1266 * This function tests codec instantiation by fourCC codes and preferred supplier.
1267 * Two new codecs have been created for the purpose of this test. They take the same
1268 * fourCC codes (AAAA and BBBB) but have different suppliers.
1271 * ETrue if the test passes.
1272 * EFalse if the test fails.
1274 TBool CTestStep_MMF_ACOD::TestNewLPreferredSupplierL()
1277 CMMFDataBuffer *srcBuffer = CMMFDataBuffer::NewL(KDefaultBufferSize);
1278 CleanupStack::PushL(srcBuffer);
1279 CMMFDataBuffer *dstBuffer = CMMFDataBuffer::NewL(KDefaultBufferSize);
1280 CleanupStack::PushL(dstBuffer);
1282 //Fill source buffer with data
1283 HBufC* srcFilename = HBufC::NewLC(KMaxPath);
1284 TPtr ptrSrcFilename = srcFilename->Des();
1285 ptrSrcFilename.Copy(KSourceFilesDir);
1286 ptrSrcFilename.Append(KPreferredSupplierSourceFile);
1287 FillSourceBufferFromSourceFileL(srcBuffer, ptrSrcFilename, 0);
1289 TBool testOK = ETrue;
1291 //create codec from uid and preferredSupplier
1292 CMMFCodec* codec = NULL;
1293 TRAPD(err, codec = CMMFCodec::NewL(KMMFFourCCCodeAAAA, KMMFFourCCCodeBBBB, KPreferredSupplier));
1296 ERR_PRINTF2(_L(">> CTestStep_MMF_ACOD::TestNewLPreferredSupplierL Leave occurred in NewL, error code %d"), err);
1301 CleanupStack::PushL(codec);
1303 //Check codec is non-null
1306 ERR_PRINTF1(_L(">> CTestStep_MMF_ACOD::TestNewLPreferredSupplierL NULL CMMFCodec returned from NewL"));
1311 //Process one buffer of data
1312 iCodecProcessResult = codec->ProcessL(*srcBuffer, *dstBuffer);
1314 //copy data to iOutputDataBuffer
1315 iOutputDataBuffer = HBufC8::NewL(dstBuffer->Data().Length());
1316 TPtr8 outputDataBufferPtr = iOutputDataBuffer->Des();
1317 outputDataBufferPtr.Append(dstBuffer->Data());
1319 //investigate results
1320 HBufC* filename = HBufC::NewLC(KMaxPath);
1321 TPtr ptrFilename = filename->Des();
1322 ptrFilename.Copy(KComparisonFilesDir);
1323 ptrFilename.Append(KPreferredSupplierComparisonFile);
1325 if (!CheckOutputAgainstComparisonFileL(ptrFilename, 0))
1327 ERR_PRINTF1(_L(">> CTestStep_MMF_ACOD::TestNewLPreferredSupplierL CheckOutputAgainstComparisonFileL returned EFalse"));
1331 CleanupStack::PopAndDestroy(filename);
1334 CleanupStack::PopAndDestroy(codec);
1335 delete iOutputDataBuffer;
1336 iOutputDataBuffer = NULL;
1339 CleanupStack::PopAndDestroy(3, srcBuffer); //srcFilename, dstBuffer, srcBuffer
1348 * This functionality isn't implemented yet
1350 TBool CTestStep_MMF_ACOD::TestMemoryScribbleL(TUid aCodecUID)
1352 aCodecUID = aCodecUID;
1354 INFO_PRINTF1(_L(">> This test has not been implemented, as it has not yet been determined how to test for memory scribbles."));
1360 * This function panics if any memory leaks occur during the calls to NewL or ProcessL.
1362 * @param "TUid aCodecUID"
1363 * Uid of codec under test.
1365 * ETrue if the test passes.
1366 * EFalse if the test fails.
1368 TBool CTestStep_MMF_ACOD::TestMemoryLeakL(TUid aCodecUID)
1371 CMMFDataBuffer *srcBuffer = CMMFDataBuffer::NewL(KDefaultBufferSize);
1372 CleanupStack::PushL(srcBuffer);
1373 CMMFDataBuffer *dstBuffer = CMMFDataBuffer::NewL(KDefaultBufferSize);
1374 CleanupStack::PushL(dstBuffer);
1376 //Fill source buffer with data
1377 HBufC* srcFilename = HBufC::NewLC(KMaxPath);
1378 TPtr ptrSrcFilename = srcFilename->Des();
1379 GetSourceFilenameFromCodecUidL(aCodecUID.iUid, ptrSrcFilename);
1380 FillSourceBufferFromSourceFileL(srcBuffer, ptrSrcFilename, 0);
1384 CMMFCodec* codec = CMMFCodec::NewL(aCodecUID);
1385 CleanupStack::PushL(codec);
1387 iCodecProcessResult = codec->ProcessL(*srcBuffer, *dstBuffer);
1389 CleanupStack::PopAndDestroy(4); //codec, srcFilename, dstBuffer, srcBuffer
1397 * This function tests how NewL deals with a memory allocation failure.
1398 * This test will pass if NewL leaves with the correct error code on every
1399 * memory allocation.
1401 * @param "TUid aCodecUID"
1402 * Uid of codec under test.
1404 * ETrue if the test passes.
1405 * EFalse if the test fails.
1407 TBool CTestStep_MMF_ACOD::TestNewLOutOfMemoryL(TUid aCodecUID)
1409 aCodecUID = aCodecUID;
1410 CMMFCodec* codec = NULL;
1412 TBool testComplete = EFalse;
1413 TBool testOK = ETrue;
1415 while (!testComplete)
1418 __UHEAP_FAILNEXT(failCount);
1421 TRAP(err, codec = CMMFCodec::NewL(aCodecUID));
1429 //attempt to allocate another cell. If this fails, we have tested all
1430 //of the memory allocs carried out by NewL.
1431 TAny *testAlloc = User::Alloc(1);
1432 if (testAlloc==NULL)
1434 testComplete = ETrue;
1438 User::Free(testAlloc);
1447 testComplete = ETrue;
1465 * This function tests how ProcessL would deal with a memory allocation failure.
1466 * For most of the codecs ProcessL doesn't allocate any memory, so this test will
1467 * pass when ProcessL succeeds as well as when ProcessL leaves with the correct code.
1469 * @param "TUid aCodecUID"
1470 * Uid of codec under test.
1472 * ETrue if the test passes.
1473 * EFalse if the test fails.
1475 TBool CTestStep_MMF_ACOD::TestProcessLOutOfMemoryL(TUid aCodecUID)
1478 CMMFDataBuffer *srcBuffer = CMMFDataBuffer::NewL(KDefaultBufferSize);
1479 CleanupStack::PushL(srcBuffer);
1480 CMMFDataBuffer *dstBuffer = CMMFDataBuffer::NewL(KDefaultBufferSize);
1481 CleanupStack::PushL(dstBuffer);
1483 //Fill source buffer with data
1484 HBufC* srcFilename = HBufC::NewLC(KMaxPath);
1485 TPtr ptrSrcFilename = srcFilename->Des();
1486 GetSourceFilenameFromCodecUidL(aCodecUID.iUid, ptrSrcFilename);
1487 FillSourceBufferFromSourceFileL(srcBuffer, ptrSrcFilename, 0);
1490 CMMFCodec* codec = CMMFCodec::NewL(aCodecUID);
1491 CleanupStack::PushL(codec);
1492 TBool testOK = ETrue;
1493 TUint failCount = 1;
1494 TBool testComplete = EFalse;
1496 while (!testComplete)
1498 __UHEAP_FAILNEXT(failCount);
1500 TRAPD(err, iCodecProcessResult = codec->ProcessL(*srcBuffer, *dstBuffer));
1508 //attempt to allocate another cell. If this fails, we have tested all
1509 //of the memory allocs carried out by ProcessL.
1510 TAny *testAlloc = User::Alloc(1);
1511 if (testAlloc==NULL)
1513 testComplete = ETrue;
1517 User::Free(testAlloc);
1523 testComplete = ETrue;
1533 CleanupStack::PopAndDestroy(4); //codec, srcFilename, dstBuffer, srcBuffer
1541 //------------------------------------------------------------------
1542 // ** TEST MMF_ACOD STEPS ***
1544 //------------------------------------------------------------------
1549 CTest_MMF_ACOD_U_0001::CTest_MMF_ACOD_U_0001()
1551 // store the name of this test case
1552 // this is the name that is used by the script file
1553 // Each test step initialises it's own name
1554 iTestStepName = _L("MM-MMF-ACOD-U-0001-HP");
1558 * Instantiate a codec by FourCC Codes and preferred supplier
1559 * @test Req. under test REQ172.6.3
1561 TVerdict CTest_MMF_ACOD_U_0001::DoTestStepL()
1563 TBool testOK = EFalse;
1564 TRAPD(err, testOK = TestNewLPreferredSupplierL());
1568 INFO_PRINTF2(_L("Test left with status %d"), err);
1573 INFO_PRINTF1(_L("Test failed"));
1579 //------------------------------------------------------------------
1584 CTest_MMF_ACOD_U_0002::CTest_MMF_ACOD_U_0002()
1586 // store the name of this test case
1587 // this is the name that is used by the script file
1588 // Each test step initialises it's own name
1589 iTestStepName = _L("MM-MMF-ACOD-U-0002-HP");
1593 * ALAW To PCM16 Instantiate codec by FourCC Codes
1594 * @test Req. under test REQ172.6.2, REQ172.11.1
1596 TVerdict CTest_MMF_ACOD_U_0002::DoTestStepL()
1598 TBool testOK = EFalse;
1599 TRAPD(err, testOK = TestNewL(KMMFFourCCCodeALAW, KMMFFourCCCodePCM16));
1603 INFO_PRINTF2(_L("Test left with status %d"), err);
1608 INFO_PRINTF1(_L("Test failed"));
1615 //------------------------------------------------------------------
1620 CTest_MMF_ACOD_U_0003::CTest_MMF_ACOD_U_0003()
1622 // store the name of this test case
1623 // this is the name that is used by the script file
1624 // Each test step initialises it's own name
1625 iTestStepName = _L("MM-MMF-ACOD-U-0003-HP");
1629 * ALAW To PCM16 Instantiate codec by UID
1630 * @test Req. under test REQ172.6.1, REQ172.11.1
1632 TVerdict CTest_MMF_ACOD_U_0003::DoTestStepL()
1634 const TUid codecUid = {KMmfUidCodecAlawToPCM16};
1635 TBool testOK = EFalse;
1636 TRAPD(err, testOK = TestNewL(codecUid));
1640 INFO_PRINTF2(_L("Test left with status %d"), err);
1645 INFO_PRINTF1(_L("Test failed"));
1652 //------------------------------------------------------------------
1657 CTest_MMF_ACOD_U_0004::CTest_MMF_ACOD_U_0004()
1659 // store the name of this test case
1660 // this is the name that is used by the script file
1661 // Each test step initialises it's own name
1662 iTestStepName = _L("MM-MMF-ACOD-U-0004-HP");
1664 for (TUint i=0; i<5; i++)
1666 iExpectedSrcBytesProcessed[i] = 50;
1667 iExpectedDstBytesAdded[i] = 100;
1668 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
1673 * ALAW To PCM16 Pass in small source buffers
1674 * @test Req. under test REQ172.6.4, REQ172.6.5
1676 TVerdict CTest_MMF_ACOD_U_0004::DoTestStepL()
1678 const TUid codecUid = {KMmfUidCodecAlawToPCM16};
1679 TBool testOK = EFalse;
1680 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KAlawToPCM16OptimumDst));
1684 INFO_PRINTF2(_L("Test left with status %d"), err);
1689 INFO_PRINTF1(_L("Test failed"));
1696 //------------------------------------------------------------------
1701 CTest_MMF_ACOD_U_0005::CTest_MMF_ACOD_U_0005()
1703 // store the name of this test case
1704 // this is the name that is used by the script file
1705 // Each test step initialises it's own name
1706 iTestStepName = _L("MM-MMF-ACOD-U-0005-HP");
1708 for (TUint i=0; i<5; i++)
1710 iExpectedSrcBytesProcessed[i] = 25;
1711 iExpectedDstBytesAdded[i] = 50;
1712 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
1717 * ALAW To PCM16 Pass in small dest buffers
1718 * @test Req. under test REQ172.6.4, REQ172.6.5
1720 TVerdict CTest_MMF_ACOD_U_0005::DoTestStepL()
1722 const TUid codecUid = {KMmfUidCodecAlawToPCM16};
1723 TBool testOK = EFalse;
1724 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAlawToPCM16OptimumSrc, KSmallBufferSize));
1728 INFO_PRINTF2(_L("Test left with status %d"), err);
1733 INFO_PRINTF1(_L("Test failed"));
1740 //------------------------------------------------------------------
1745 CTest_MMF_ACOD_U_0006::CTest_MMF_ACOD_U_0006()
1747 // store the name of this test case
1748 // this is the name that is used by the script file
1749 // Each test step initialises it's own name
1750 iTestStepName = _L("MM-MMF-ACOD-U-0006-HP");
1751 iHeapSize = 0x20000;
1753 for (TUint i=0; i<5; i++)
1755 iExpectedSrcBytesProcessed[i] = 5000;
1756 iExpectedDstBytesAdded[i] = 10000;
1758 if((i%2)==0)//even i
1759 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
1761 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1766 * ALAW To PCM16 Pass in large buffers
1767 * @test Req. under test REQ172.6.4, REQ172.6.5
1769 TVerdict CTest_MMF_ACOD_U_0006::DoTestStepL()
1771 const TUid codecUid = {KMmfUidCodecAlawToPCM16};
1772 TBool testOK = EFalse;
1773 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
1777 INFO_PRINTF2(_L("Test left with status %d"), err);
1782 INFO_PRINTF1(_L("Test failed"));
1789 //------------------------------------------------------------------
1794 CTest_MMF_ACOD_U_0007::CTest_MMF_ACOD_U_0007()
1796 // store the name of this test case
1797 // this is the name that is used by the script file
1798 // Each test step initialises it's own name
1799 iTestStepName = _L("MM-MMF-ACOD-U-0007-HP");
1801 for (TUint i=0; i<5; i++)
1803 iExpectedSrcBytesProcessed[i] = 0x800;
1804 iExpectedDstBytesAdded[i] = 0x1000;
1806 if((i%2)==0)//even i
1807 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
1809 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1814 * ALAW To PCM16 Pass in default sized buffers
1815 * @test Req. under test REQ172.6.4, REQ172.6.5
1817 TVerdict CTest_MMF_ACOD_U_0007::DoTestStepL()
1819 const TUid codecUid = {KMmfUidCodecAlawToPCM16};
1820 TBool testOK = EFalse;
1821 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
1825 INFO_PRINTF2(_L("Test left with status %d"), err);
1830 INFO_PRINTF1(_L("Test failed"));
1837 //------------------------------------------------------------------
1842 CTest_MMF_ACOD_U_0008::CTest_MMF_ACOD_U_0008()
1844 // store the name of this test case
1845 // this is the name that is used by the script file
1846 // Each test step initialises it's own name
1847 iTestStepName = _L("MM-MMF-ACOD-U-0008-HP");
1849 for (TUint i=0; i<5; i++)
1851 iExpectedSrcBytesProcessed[i] = 0x800;
1852 iExpectedDstBytesAdded[i] = 0x1000;
1854 if((i%2)==0)//even i
1855 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
1857 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1862 * ALAW To PCM16 Pass in buffers with different max length and length
1863 * @test Req. under test REQ172.6.4, REQ172.6.5
1865 TVerdict CTest_MMF_ACOD_U_0008::DoTestStepL()
1867 const TUid codecUid = {KMmfUidCodecAlawToPCM16};
1868 TBool testOK = EFalse;
1869 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
1873 INFO_PRINTF2(_L("Test left with status %d"), err);
1878 INFO_PRINTF1(_L("Test failed"));
1885 //------------------------------------------------------------------
1890 CTest_MMF_ACOD_U_0009::CTest_MMF_ACOD_U_0009()
1892 // store the name of this test case
1893 // this is the name that is used by the script file
1894 // Each test step initialises it's own name
1895 iTestStepName = _L("MM-MMF-ACOD-U-0009-HP");
1897 for (TUint i=0; i<5; i++)
1899 iExpectedSrcBytesProcessed[i] = 0x800;
1900 iExpectedDstBytesAdded[i] = 0x1000;
1901 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1906 * ALAW To PCM16 Pass in buffers of optimum size
1907 * @test Req. under test REQ172.6.4, REQ172.6.5
1909 TVerdict CTest_MMF_ACOD_U_0009::DoTestStepL()
1911 const TUid codecUid = {KMmfUidCodecAlawToPCM16};
1912 TBool testOK = EFalse;
1913 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAlawToPCM16OptimumSrc, KAlawToPCM16OptimumDst));
1917 INFO_PRINTF2(_L("Test left with status %d"), err);
1922 INFO_PRINTF1(_L("Test failed"));
1929 //------------------------------------------------------------------
1934 CTest_MMF_ACOD_U_0010::CTest_MMF_ACOD_U_0010()
1936 // store the name of this test case
1937 // this is the name that is used by the script file
1938 // Each test step initialises it's own name
1939 iTestStepName = _L("MM-MMF-ACOD-U-0010-HP");
1940 // iHeapSize = 0x20000;
1944 * ALAW To PCM16 Reposition source pointer during conversion
1945 * @test Req. under test REQ172.11
1947 TVerdict CTest_MMF_ACOD_U_0010::DoTestStepL()
1949 const TUid codecUid = {KMmfUidCodecAlawToPCM16};
1950 TBool testOK = EFalse;
1951 INFO_PRINTF1(_L(">> The ALAW to PCM16 codec doesn't currently store data between calls to ProcessL"));
1953 TRAPD(err, testOK = TestRepositionL(codecUid, KAlawToPCM16OptimumSrc, KAlawToPCM16OptimumDst+30));
1957 INFO_PRINTF2(_L("Test left with status %d"), err);
1962 INFO_PRINTF1(_L("Test failed"));
1969 //------------------------------------------------------------------
1974 CTest_MMF_ACOD_U_0011::CTest_MMF_ACOD_U_0011()
1976 // store the name of this test case
1977 // this is the name that is used by the script file
1978 // Each test step initialises it's own name
1979 iTestStepName = _L("MM-MMF-ACOD-U-0011-HP");
1983 * PCM16 To ALAW Instantiate codec by FourCC Codes
1984 * @test Req. under test REQ172.6.2, REQ172.11.3
1986 TVerdict CTest_MMF_ACOD_U_0011::DoTestStepL()
1988 TBool testOK = EFalse;
1989 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeALAW));
1993 INFO_PRINTF2(_L("Test left with status %d"), err);
1998 INFO_PRINTF1(_L("Test failed"));
2005 //------------------------------------------------------------------
2010 CTest_MMF_ACOD_U_0012::CTest_MMF_ACOD_U_0012()
2012 // store the name of this test case
2013 // this is the name that is used by the script file
2014 // Each test step initialises it's own name
2015 iTestStepName = _L("MM-MMF-ACOD-U-0012-HP");
2019 * PCM16 To ALAW Instantiate codec by UID
2020 * @test Req. under test REQ172.6.1, REQ172.11.3
2022 TVerdict CTest_MMF_ACOD_U_0012::DoTestStepL()
2024 const TUid codecUid = {KMmfUidCodecPCM16ToAlaw};
2025 TBool testOK = EFalse;
2026 TRAPD(err, testOK = TestNewL(codecUid));
2030 INFO_PRINTF2(_L("Test left with status %d"), err);
2035 INFO_PRINTF1(_L("Test failed"));
2042 //------------------------------------------------------------------
2047 CTest_MMF_ACOD_U_0013::CTest_MMF_ACOD_U_0013()
2049 // store the name of this test case
2050 // this is the name that is used by the script file
2051 // Each test step initialises it's own name
2052 iTestStepName = _L("MM-MMF-ACOD-U-0013-HP");
2054 for (TUint i=0; i<5; i++)
2056 iExpectedSrcBytesProcessed[i] = 50;
2057 iExpectedDstBytesAdded[i] = 25;
2058 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
2063 * PCM16 To ALAW Pass in small source buffers
2064 * @test Req. under test REQ172.6.4, REQ172.6.5
2066 TVerdict CTest_MMF_ACOD_U_0013::DoTestStepL()
2068 const TUid codecUid = {KMmfUidCodecPCM16ToAlaw};
2069 TBool testOK = EFalse;
2070 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToAlawOptimumDst));
2074 INFO_PRINTF2(_L("Test left with status %d"), err);
2079 INFO_PRINTF1(_L("Test failed"));
2086 //------------------------------------------------------------------
2091 CTest_MMF_ACOD_U_0014::CTest_MMF_ACOD_U_0014()
2093 // store the name of this test case
2094 // this is the name that is used by the script file
2095 // Each test step initialises it's own name
2096 iTestStepName = _L("MM-MMF-ACOD-U-0014-HP");
2098 for (TUint i=0; i<5; i++)
2100 iExpectedSrcBytesProcessed[i] = 100;
2101 iExpectedDstBytesAdded[i] = 50;
2102 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
2107 * PCM16 To ALAW Pass in small dest buffers
2108 * @test Req. under test REQ172.6.4, REQ172.6.5
2110 TVerdict CTest_MMF_ACOD_U_0014::DoTestStepL()
2112 const TUid codecUid = {KMmfUidCodecPCM16ToAlaw};
2113 TBool testOK = EFalse;
2114 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAlawOptimumSrc, KSmallBufferSize));
2118 INFO_PRINTF2(_L("Test left with status %d"), err);
2123 INFO_PRINTF1(_L("Test failed"));
2130 //------------------------------------------------------------------
2135 CTest_MMF_ACOD_U_0015::CTest_MMF_ACOD_U_0015()
2137 // store the name of this test case
2138 // this is the name that is used by the script file
2139 // Each test step initialises it's own name
2140 iTestStepName = _L("MM-MMF-ACOD-U-0015-HP");
2141 iHeapSize = 0x20000;
2143 for (TUint i=0; i<5; i++)
2145 iExpectedSrcBytesProcessed[i] = 10000;
2146 iExpectedDstBytesAdded[i] = 5000;
2148 if((i%2)==0)//even i
2149 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
2151 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2156 * PCM16 To ALAW Pass in large buffers
2157 * @test Req. under test REQ172.6.4, REQ172.6.5
2159 TVerdict CTest_MMF_ACOD_U_0015::DoTestStepL()
2161 const TUid codecUid = {KMmfUidCodecPCM16ToAlaw};
2162 TBool testOK = EFalse;
2163 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
2167 INFO_PRINTF2(_L("Test left with status %d"), err);
2172 INFO_PRINTF1(_L("Test failed"));
2179 //------------------------------------------------------------------
2184 CTest_MMF_ACOD_U_0016::CTest_MMF_ACOD_U_0016()
2186 // store the name of this test case
2187 // this is the name that is used by the script file
2188 // Each test step initialises it's own name
2189 iTestStepName = _L("MM-MMF-ACOD-U-0016-HP");
2191 for (TUint i=0; i<5; i++)
2193 iExpectedSrcBytesProcessed[i] = 0x1000;
2194 iExpectedDstBytesAdded[i] = 0x800;
2196 if((i%2)==0)//even i
2197 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
2199 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2204 * PCM16 To ALAW Pass in default sized buffers
2205 * @test Req. under test REQ172.6.4, REQ172.6.5
2207 TVerdict CTest_MMF_ACOD_U_0016::DoTestStepL()
2209 const TUid codecUid = {KMmfUidCodecPCM16ToAlaw};
2210 TBool testOK = EFalse;
2211 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
2215 INFO_PRINTF2(_L("Test left with status %d"), err);
2220 INFO_PRINTF1(_L("Test failed"));
2227 //------------------------------------------------------------------
2232 CTest_MMF_ACOD_U_0017::CTest_MMF_ACOD_U_0017()
2234 // store the name of this test case
2235 // this is the name that is used by the script file
2236 // Each test step initialises it's own name
2237 iTestStepName = _L("MM-MMF-ACOD-U-0017-HP");
2239 for (TUint i=0; i<5; i++)
2241 iExpectedSrcBytesProcessed[i] = 0x1000;
2242 iExpectedDstBytesAdded[i] = 0x800;
2244 if((i%2)==0)//even i
2245 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
2247 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2252 * PCM16 To ALAW Pass in buffers with different max length and length
2253 * @test Req. under test REQ172.6.4, REQ172.6.5
2255 TVerdict CTest_MMF_ACOD_U_0017::DoTestStepL()
2257 const TUid codecUid = {KMmfUidCodecPCM16ToAlaw};
2258 TBool testOK = EFalse;
2259 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
2263 INFO_PRINTF2(_L("Test left with status %d"), err);
2268 INFO_PRINTF1(_L("Test failed"));
2275 //------------------------------------------------------------------
2280 CTest_MMF_ACOD_U_0018::CTest_MMF_ACOD_U_0018()
2282 // store the name of this test case
2283 // this is the name that is used by the script file
2284 // Each test step initialises it's own name
2285 iTestStepName = _L("MM-MMF-ACOD-U-0018-HP");
2287 for (TUint i=0; i<5; i++)
2289 iExpectedSrcBytesProcessed[i] = 0x1000;
2290 iExpectedDstBytesAdded[i] = 0x800;
2291 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2296 * PCM16 To ALAW Pass in buffers of optimum size
2297 * @test Req. under test REQ172.6.4, REQ172.6.5
2299 TVerdict CTest_MMF_ACOD_U_0018::DoTestStepL()
2301 const TUid codecUid = {KMmfUidCodecPCM16ToAlaw};
2302 TBool testOK = EFalse;
2303 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAlawOptimumSrc, KPCM16ToAlawOptimumDst));
2307 INFO_PRINTF2(_L("Test left with status %d"), err);
2312 INFO_PRINTF1(_L("Test failed"));
2319 //------------------------------------------------------------------
2324 CTest_MMF_ACOD_U_0019::CTest_MMF_ACOD_U_0019()
2326 // store the name of this test case
2327 // this is the name that is used by the script file
2328 // Each test step initialises it's own name
2329 iTestStepName = _L("MM-MMF-ACOD-U-0019-HP");
2330 // iHeapSize = 0x20000;
2334 * PCM16 To ALAW Reposition source pointer during conversion
2335 * @test Req. under test REQ172.11
2337 TVerdict CTest_MMF_ACOD_U_0019::DoTestStepL()
2339 const TUid codecUid = {KMmfUidCodecPCM16ToAlaw};
2340 TBool testOK = EFalse;
2342 INFO_PRINTF1(_L(">> The PCM16 to ALAW codec doesn't currently store data between calls to ProcessL"));
2343 TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
2347 INFO_PRINTF2(_L("Test left with status %d"), err);
2352 INFO_PRINTF1(_L("Test failed"));
2359 //------------------------------------------------------------------
2364 CTest_MMF_ACOD_U_0020::CTest_MMF_ACOD_U_0020()
2366 // store the name of this test case
2367 // this is the name that is used by the script file
2368 // Each test step initialises it's own name
2369 iTestStepName = _L("MM-MMF-ACOD-U-0020-HP");
2373 * PCM8 To PCM16 Instantiate codec by FourCC Codes
2374 * @test Req. under test REQ172.6.2, REQ172.11.4
2376 TVerdict CTest_MMF_ACOD_U_0020::DoTestStepL()
2378 TBool testOK = EFalse;
2379 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM8, KMMFFourCCCodePCM16));
2383 INFO_PRINTF2(_L("Test left with status %d"), err);
2388 INFO_PRINTF1(_L("Test failed"));
2395 //------------------------------------------------------------------
2400 CTest_MMF_ACOD_U_0021::CTest_MMF_ACOD_U_0021()
2402 // store the name of this test case
2403 // this is the name that is used by the script file
2404 // Each test step initialises it's own name
2405 iTestStepName = _L("MM-MMF-ACOD-U-0021-HP");
2409 * PCM8 To PCM16 Instantiate codec by UID
2410 * @test Req. under test REQ172.6.1, REQ172.11.4
2412 TVerdict CTest_MMF_ACOD_U_0021::DoTestStepL()
2414 const TUid codecUid = {KMmfUidCodecPCM8ToPCM16};
2415 TBool testOK = EFalse;
2416 TRAPD(err, testOK = TestNewL(codecUid));
2420 INFO_PRINTF2(_L("Test left with status %d"), err);
2425 INFO_PRINTF1(_L("Test failed"));
2432 //------------------------------------------------------------------
2437 CTest_MMF_ACOD_U_0022::CTest_MMF_ACOD_U_0022()
2439 // store the name of this test case
2440 // this is the name that is used by the script file
2441 // Each test step initialises it's own name
2442 iTestStepName = _L("MM-MMF-ACOD-U-0022-HP");
2444 for (TUint i=0; i<5; i++)
2446 iExpectedSrcBytesProcessed[i] = 50;
2447 iExpectedDstBytesAdded[i] = 100;
2448 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
2453 * PCM8 To PCM16 Pass in small source buffers
2454 * @test Req. under test REQ172.6.4, REQ172.6.5
2456 TVerdict CTest_MMF_ACOD_U_0022::DoTestStepL()
2458 const TUid codecUid = {KMmfUidCodecPCM8ToPCM16};
2459 TBool testOK = EFalse;
2460 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM8ToPCM16OptimumDst));
2464 INFO_PRINTF2(_L("Test left with status %d"), err);
2469 INFO_PRINTF1(_L("Test failed"));
2476 //------------------------------------------------------------------
2481 CTest_MMF_ACOD_U_0023::CTest_MMF_ACOD_U_0023()
2483 // store the name of this test case
2484 // this is the name that is used by the script file
2485 // Each test step initialises it's own name
2486 iTestStepName = _L("MM-MMF-ACOD-U-0023-HP");
2488 for (TUint i=0; i<5; i++)
2490 iExpectedSrcBytesProcessed[i] = 25;
2491 iExpectedDstBytesAdded[i] = 50;
2492 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
2497 * PCM8 To PCM16 Pass in small dest buffers
2498 * @test Req. under test REQ172.6.4, REQ172.6.5
2500 TVerdict CTest_MMF_ACOD_U_0023::DoTestStepL()
2502 const TUid codecUid = {KMmfUidCodecPCM8ToPCM16};
2503 TBool testOK = EFalse;
2504 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM8ToPCM16OptimumSrc, KSmallBufferSize));
2508 INFO_PRINTF2(_L("Test left with status %d"), err);
2513 INFO_PRINTF1(_L("Test failed"));
2520 //------------------------------------------------------------------
2525 CTest_MMF_ACOD_U_0024::CTest_MMF_ACOD_U_0024()
2527 // store the name of this test case
2528 // this is the name that is used by the script file
2529 // Each test step initialises it's own name
2530 iTestStepName = _L("MM-MMF-ACOD-U-0024-HP");
2531 iHeapSize = 0x20000;
2533 for (TUint i=0; i<5; i++)
2535 iExpectedSrcBytesProcessed[i] = 5000;
2536 iExpectedDstBytesAdded[i] = 10000;
2538 if((i%2)==0)//even i
2539 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
2541 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2546 * PCM8 To PCM16 Pass in large buffers
2547 * @test Req. under test REQ172.6.4, REQ172.6.5
2549 TVerdict CTest_MMF_ACOD_U_0024::DoTestStepL()
2551 const TUid codecUid = {KMmfUidCodecPCM8ToPCM16};
2552 TBool testOK = EFalse;
2553 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
2557 INFO_PRINTF2(_L("Test left with status %d"), err);
2562 INFO_PRINTF1(_L("Test failed"));
2569 //------------------------------------------------------------------
2574 CTest_MMF_ACOD_U_0025::CTest_MMF_ACOD_U_0025()
2576 // store the name of this test case
2577 // this is the name that is used by the script file
2578 // Each test step initialises it's own name
2579 iTestStepName = _L("MM-MMF-ACOD-U-0025-HP");
2581 for (TUint i=0; i<5; i++)
2583 iExpectedSrcBytesProcessed[i] = 0x800;
2584 iExpectedDstBytesAdded[i] = 0x1000;
2586 if((i%2)==0)//even i
2587 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
2589 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2594 * PCM8 To PCM16 Pass in default sized buffers
2595 * @test Req. under test REQ172.6.4, REQ172.6.5
2597 TVerdict CTest_MMF_ACOD_U_0025::DoTestStepL()
2599 const TUid codecUid = {KMmfUidCodecPCM8ToPCM16};
2600 TBool testOK = EFalse;
2601 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
2605 INFO_PRINTF2(_L("Test left with status %d"), err);
2610 INFO_PRINTF1(_L("Test failed"));
2617 //------------------------------------------------------------------
2622 CTest_MMF_ACOD_U_0026::CTest_MMF_ACOD_U_0026()
2624 // store the name of this test case
2625 // this is the name that is used by the script file
2626 // Each test step initialises it's own name
2627 iTestStepName = _L("MM-MMF-ACOD-U-0026-HP");
2629 for (TUint i=0; i<5; i++)
2631 iExpectedSrcBytesProcessed[i] = 0x800;
2632 iExpectedDstBytesAdded[i] = 0x1000;
2634 if((i%2)==0)//even i
2635 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
2637 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2642 * PCM8 To PCM16 Pass in buffers with different max length and length
2643 * @test Req. under test REQ172.6.4, REQ172.6.5
2645 TVerdict CTest_MMF_ACOD_U_0026::DoTestStepL()
2647 const TUid codecUid = {KMmfUidCodecPCM8ToPCM16};
2648 TBool testOK = EFalse;
2649 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
2653 INFO_PRINTF2(_L("Test left with status %d"), err);
2658 INFO_PRINTF1(_L("Test failed"));
2665 //------------------------------------------------------------------
2670 CTest_MMF_ACOD_U_0027::CTest_MMF_ACOD_U_0027()
2672 // store the name of this test case
2673 // this is the name that is used by the script file
2674 // Each test step initialises it's own name
2675 iTestStepName = _L("MM-MMF-ACOD-U-0027-HP");
2677 for (TUint i=0; i<5; i++)
2679 iExpectedSrcBytesProcessed[i] = 0x800;
2680 iExpectedDstBytesAdded[i] = 0x1000;
2681 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2686 * PCM8 To PCM16 Pass in buffers of optimum size
2687 * @test Req. under test REQ172.6.4, REQ172.6.5
2689 TVerdict CTest_MMF_ACOD_U_0027::DoTestStepL()
2691 const TUid codecUid = {KMmfUidCodecPCM8ToPCM16};
2692 TBool testOK = EFalse;
2693 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM8ToPCM16OptimumSrc, KPCM8ToPCM16OptimumDst));
2697 INFO_PRINTF2(_L("Test left with status %d"), err);
2702 INFO_PRINTF1(_L("Test failed"));
2709 //------------------------------------------------------------------
2714 CTest_MMF_ACOD_U_0028::CTest_MMF_ACOD_U_0028()
2716 // store the name of this test case
2717 // this is the name that is used by the script file
2718 // Each test step initialises it's own name
2719 iTestStepName = _L("MM-MMF-ACOD-U-0028-HP");
2720 // iHeapSize = 0x20000;
2724 * PCM8 To PCM16 Reposition source pointer during conversion
2725 * @test Req. under test REQ172.11
2727 TVerdict CTest_MMF_ACOD_U_0028::DoTestStepL()
2729 const TUid codecUid = {KMmfUidCodecPCM8ToPCM16};
2730 TBool testOK = EFalse;
2732 INFO_PRINTF1(_L(">> The PCM8 to PCM16 codec doesn't currently store data between calls to ProcessL"));
2733 TRAPD(err, testOK = TestRepositionL(codecUid, KPCM8ToPCM16OptimumSrc, KPCM8ToPCM16OptimumDst+30));
2737 INFO_PRINTF2(_L("Test left with status %d"), err);
2742 INFO_PRINTF1(_L("Test failed"));
2749 //------------------------------------------------------------------
2754 CTest_MMF_ACOD_U_0029::CTest_MMF_ACOD_U_0029()
2756 // store the name of this test case
2757 // this is the name that is used by the script file
2758 // Each test step initialises it's own name
2759 iTestStepName = _L("MM-MMF-ACOD-U-0029-HP");
2763 * PCM16 To PCM8 Instantiate codec by FourCC Codes
2764 * @test Req. under test REQ172.6.2, REQ172.11.5
2766 TVerdict CTest_MMF_ACOD_U_0029::DoTestStepL()
2768 TBool testOK = EFalse;
2769 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCM8));
2773 INFO_PRINTF2(_L("Test left with status %d"), err);
2778 INFO_PRINTF1(_L("Test failed"));
2785 //------------------------------------------------------------------
2790 CTest_MMF_ACOD_U_0030::CTest_MMF_ACOD_U_0030()
2792 // store the name of this test case
2793 // this is the name that is used by the script file
2794 // Each test step initialises it's own name
2795 iTestStepName = _L("MM-MMF-ACOD-U-0030-HP");
2799 * PCM16 To PCM8 Instantiate codec by UID
2800 * @test Req. under test REQ172.6.1, REQ172.11.5
2802 TVerdict CTest_MMF_ACOD_U_0030::DoTestStepL()
2804 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMS8};
2805 TBool testOK = EFalse;
2806 TRAPD(err, testOK = TestNewL(codecUid));
2810 INFO_PRINTF2(_L("Test left with status %d"), err);
2815 INFO_PRINTF1(_L("Test failed"));
2822 //------------------------------------------------------------------
2827 CTest_MMF_ACOD_U_0031::CTest_MMF_ACOD_U_0031()
2829 // store the name of this test case
2830 // this is the name that is used by the script file
2831 // Each test step initialises it's own name
2832 iTestStepName = _L("MM-MMF-ACOD-U-0031-HP");
2834 for (TUint i=0; i<5; i++)
2836 iExpectedSrcBytesProcessed[i] = 50;
2837 iExpectedDstBytesAdded[i] = 25;
2838 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
2843 * PCM16 To PCM8 Pass in small source buffers
2844 * @test Req. under test REQ172.6.4, REQ172.6.5
2846 TVerdict CTest_MMF_ACOD_U_0031::DoTestStepL()
2848 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMS8};
2849 TBool testOK = EFalse;
2850 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCM8OptimumDst));
2854 INFO_PRINTF2(_L("Test left with status %d"), err);
2859 INFO_PRINTF1(_L("Test failed"));
2866 //------------------------------------------------------------------
2871 CTest_MMF_ACOD_U_0032::CTest_MMF_ACOD_U_0032()
2873 // store the name of this test case
2874 // this is the name that is used by the script file
2875 // Each test step initialises it's own name
2876 iTestStepName = _L("MM-MMF-ACOD-U-0032-HP");
2878 for (TUint i=0; i<5; i++)
2880 iExpectedSrcBytesProcessed[i] = 100;
2881 iExpectedDstBytesAdded[i] = 50;
2882 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
2887 * PCM16 To PCM8 Pass in small dest buffers
2888 * @test Req. under test REQ172.6.4, REQ172.6.5
2890 TVerdict CTest_MMF_ACOD_U_0032::DoTestStepL()
2892 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMS8};
2893 TBool testOK = EFalse;
2894 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM8OptimumSrc, KSmallBufferSize));
2898 INFO_PRINTF2(_L("Test left with status %d"), err);
2903 INFO_PRINTF1(_L("Test failed"));
2910 //------------------------------------------------------------------
2915 CTest_MMF_ACOD_U_0033::CTest_MMF_ACOD_U_0033()
2917 // store the name of this test case
2918 // this is the name that is used by the script file
2919 // Each test step initialises it's own name
2920 iTestStepName = _L("MM-MMF-ACOD-U-0033-HP");
2921 iHeapSize = 0x20000;
2923 for (TUint i=0; i<5; i++)
2925 iExpectedSrcBytesProcessed[i] = 10000;
2926 iExpectedDstBytesAdded[i] = 5000;
2928 if((i%2)==0)//even i
2929 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
2931 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2936 * PCM16 To PCM8 Pass in large buffers
2937 * @test Req. under test REQ172.6.4, REQ172.6.5
2939 TVerdict CTest_MMF_ACOD_U_0033::DoTestStepL()
2941 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMS8};
2942 TBool testOK = EFalse;
2943 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
2947 INFO_PRINTF2(_L("Test left with status %d"), err);
2952 INFO_PRINTF1(_L("Test failed"));
2959 //------------------------------------------------------------------
2964 CTest_MMF_ACOD_U_0034::CTest_MMF_ACOD_U_0034()
2966 // store the name of this test case
2967 // this is the name that is used by the script file
2968 // Each test step initialises it's own name
2969 iTestStepName = _L("MM-MMF-ACOD-U-0034-HP");
2971 for (TUint i=0; i<5; i++)
2973 iExpectedSrcBytesProcessed[i] = 0x1000;
2974 iExpectedDstBytesAdded[i] = 0x800;
2976 if((i%2)==0)//even i
2977 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
2979 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2984 * PCM16 To PCM8 Pass in default sized buffers
2985 * @test Req. under test REQ172.6.4, REQ172.6.5
2987 TVerdict CTest_MMF_ACOD_U_0034::DoTestStepL()
2989 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMS8};
2990 TBool testOK = EFalse;
2991 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
2995 INFO_PRINTF2(_L("Test left with status %d"), err);
3000 INFO_PRINTF1(_L("Test failed"));
3007 //------------------------------------------------------------------
3012 CTest_MMF_ACOD_U_0035::CTest_MMF_ACOD_U_0035()
3014 // store the name of this test case
3015 // this is the name that is used by the script file
3016 // Each test step initialises it's own name
3017 iTestStepName = _L("MM-MMF-ACOD-U-0035-HP");
3019 for (TUint i=0; i<5; i++)
3021 iExpectedSrcBytesProcessed[i] = 0x1000;
3022 iExpectedDstBytesAdded[i] = 0x800;
3024 if((i%2)==0)//even i
3025 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
3027 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3032 * PCM16 To PCM8 Pass in buffers with different max length and length
3033 * @test Req. under test REQ172.6.4, REQ172.6.5
3035 TVerdict CTest_MMF_ACOD_U_0035::DoTestStepL()
3037 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMS8};
3038 TBool testOK = EFalse;
3039 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
3043 INFO_PRINTF2(_L("Test left with status %d"), err);
3048 INFO_PRINTF1(_L("Test failed"));
3055 //------------------------------------------------------------------
3060 CTest_MMF_ACOD_U_0036::CTest_MMF_ACOD_U_0036()
3062 // store the name of this test case
3063 // this is the name that is used by the script file
3064 // Each test step initialises it's own name
3065 iTestStepName = _L("MM-MMF-ACOD-U-0036-HP");
3067 for (TUint i=0; i<5; i++)
3069 iExpectedSrcBytesProcessed[i] = 0x1000;
3070 iExpectedDstBytesAdded[i] = 0x800;
3071 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3076 * PCM16 To PCM8 Pass in buffers of optimum size
3077 * @test Req. under test REQ172.6.4, REQ172.6.5
3079 TVerdict CTest_MMF_ACOD_U_0036::DoTestStepL()
3081 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMS8};
3082 TBool testOK = EFalse;
3083 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM8OptimumSrc, KPCM16ToPCM8OptimumDst));
3087 INFO_PRINTF2(_L("Test left with status %d"), err);
3092 INFO_PRINTF1(_L("Test failed"));
3099 //------------------------------------------------------------------
3104 CTest_MMF_ACOD_U_0037::CTest_MMF_ACOD_U_0037()
3106 // store the name of this test case
3107 // this is the name that is used by the script file
3108 // Each test step initialises it's own name
3109 iTestStepName = _L("MM-MMF-ACOD-U-0037-HP");
3113 * PCM16 To PCM8 Reposition source pointer during conversion
3114 * @test Req. under test REQ172.11
3116 TVerdict CTest_MMF_ACOD_U_0037::DoTestStepL()
3118 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMS8};
3119 TBool testOK = EFalse;
3121 INFO_PRINTF1(_L(">> The PCM16 to PCM8 codec doesn't currently store data between calls to ProcessL"));
3122 TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
3126 INFO_PRINTF2(_L("Test left with status %d"), err);
3131 INFO_PRINTF1(_L("Test failed"));
3138 //------------------------------------------------------------------
3143 CTest_MMF_ACOD_U_0038::CTest_MMF_ACOD_U_0038()
3145 // store the name of this test case
3146 // this is the name that is used by the script file
3147 // Each test step initialises it's own name
3148 iTestStepName = _L("MM-MMF-ACOD-U-0038-HP");
3152 * PCM16 To PCM16B Instantiate codec by FourCC Codes
3153 * @test Req. under test REQ172.6.2, REQ172.11.6
3155 TVerdict CTest_MMF_ACOD_U_0038::DoTestStepL()
3157 TBool testOK = EFalse;
3158 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCM16B));
3162 INFO_PRINTF2(_L("Test left with status %d"), err);
3167 INFO_PRINTF1(_L("Test failed"));
3174 //------------------------------------------------------------------
3179 CTest_MMF_ACOD_U_0039::CTest_MMF_ACOD_U_0039()
3181 // store the name of this test case
3182 // this is the name that is used by the script file
3183 // Each test step initialises it's own name
3184 iTestStepName = _L("MM-MMF-ACOD-U-0039-HP");
3188 * PCM16B To PCM16 Instantiate codec by FourCC Codes
3189 * @test Req. under test REQ172.6.2, REQ172.11.6
3191 TVerdict CTest_MMF_ACOD_U_0039::DoTestStepL()
3193 TBool testOK = EFalse;
3194 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16B, KMMFFourCCCodePCM16));
3198 INFO_PRINTF2(_L("Test left with status %d"), err);
3203 INFO_PRINTF1(_L("Test failed"));
3210 //------------------------------------------------------------------
3215 CTest_MMF_ACOD_U_0040::CTest_MMF_ACOD_U_0040()
3217 // store the name of this test case
3218 // this is the name that is used by the script file
3219 // Each test step initialises it's own name
3220 iTestStepName = _L("MM-MMF-ACOD-U-0040-HP");
3224 * PCMU16 To PCMU16B Instantiate codec by FourCC Codes
3225 * @test Req. under test REQ172.6.2, REQ172.11.6
3227 TVerdict CTest_MMF_ACOD_U_0040::DoTestStepL()
3229 TBool testOK = EFalse;
3230 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU16, KMMFFourCCCodePCMU16B));
3234 INFO_PRINTF2(_L("Test left with status %d"), err);
3239 INFO_PRINTF1(_L("Test failed"));
3246 //------------------------------------------------------------------
3251 CTest_MMF_ACOD_U_0041::CTest_MMF_ACOD_U_0041()
3253 // store the name of this test case
3254 // this is the name that is used by the script file
3255 // Each test step initialises it's own name
3256 iTestStepName = _L("MM-MMF-ACOD-U-0041-HP");
3260 * PCMU16B To PCMU16 Instantiate codec by FourCC Codes
3261 * @test Req. under test REQ172.6.2, REQ172.11.6
3263 TVerdict CTest_MMF_ACOD_U_0041::DoTestStepL()
3265 TBool testOK = EFalse;
3266 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU16B, KMMFFourCCCodePCMU16));
3270 INFO_PRINTF2(_L("Test left with status %d"), err);
3275 INFO_PRINTF1(_L("Test failed"));
3282 //------------------------------------------------------------------
3287 CTest_MMF_ACOD_U_0042::CTest_MMF_ACOD_U_0042()
3289 // store the name of this test case
3290 // this is the name that is used by the script file
3291 // Each test step initialises it's own name
3292 iTestStepName = _L("MM-MMF-ACOD-U-0042-HP");
3296 * PCM16 To PCM16B Instantiate codec by UID
3297 * @test Req. under test REQ172.6.1, REQ172.11.6
3299 TVerdict CTest_MMF_ACOD_U_0042::DoTestStepL()
3301 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
3302 const TUid codecUid = {KMMFUidCodecPCM16toPCM16B};
3303 TBool testOK = EFalse;
3304 TRAPD(err, testOK = TestNewL(codecUid));
3308 INFO_PRINTF2(_L("Test left with status %d"), err);
3313 INFO_PRINTF1(_L("Test failed"));
3320 //------------------------------------------------------------------
3325 CTest_MMF_ACOD_U_0043::CTest_MMF_ACOD_U_0043()
3327 // store the name of this test case
3328 // this is the name that is used by the script file
3329 // Each test step initialises it's own name
3330 iTestStepName = _L("MM-MMF-ACOD-U-0043-HP");
3332 for (TUint i=0; i<5; i++)
3334 iExpectedSrcBytesProcessed[i] = 50;
3335 iExpectedDstBytesAdded[i] = 50;
3336 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
3341 * PCM16 To PCM16B Pass in small source buffers
3342 * @test Req. under test REQ172.6.4, REQ172.6.5
3344 TVerdict CTest_MMF_ACOD_U_0043::DoTestStepL()
3346 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
3347 const TUid codecUid = {KMMFUidCodecPCM16toPCM16B};
3348 TBool testOK = EFalse;
3349 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCM16BOptimumDst));
3353 INFO_PRINTF2(_L("Test left with status %d"), err);
3358 INFO_PRINTF1(_L("Test failed"));
3365 //------------------------------------------------------------------
3370 CTest_MMF_ACOD_U_0044::CTest_MMF_ACOD_U_0044()
3372 // store the name of this test case
3373 // this is the name that is used by the script file
3374 // Each test step initialises it's own name
3375 iTestStepName = _L("MM-MMF-ACOD-U-0044-HP");
3376 iHeapSize = 0x20000;
3377 for (TUint i=0; i<5; i++)
3379 iExpectedSrcBytesProcessed[i] = 50;
3380 iExpectedDstBytesAdded[i] = 50;
3381 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
3386 * PCM16 To PCM16B Pass in small dest buffers
3387 * @test Req. under test REQ172.6.4, REQ172.6.5
3389 TVerdict CTest_MMF_ACOD_U_0044::DoTestStepL()
3391 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
3392 const TUid codecUid = {KMMFUidCodecPCM16toPCM16B};
3393 TBool testOK = EFalse;
3394 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM16BOptimumSrc, KSmallBufferSize));
3398 INFO_PRINTF2(_L("Test left with status %d"), err);
3403 INFO_PRINTF1(_L("Test failed"));
3410 //------------------------------------------------------------------
3415 CTest_MMF_ACOD_U_0045::CTest_MMF_ACOD_U_0045()
3417 // store the name of this test case
3418 // this is the name that is used by the script file
3419 // Each test step initialises it's own name
3420 iTestStepName = _L("MM-MMF-ACOD-U-0045-HP");
3421 iHeapSize = 0x20000;
3422 for (TUint i=0; i<5; i++)
3424 iExpectedSrcBytesProcessed[i] = 10000;
3425 iExpectedDstBytesAdded[i] = 10000;
3426 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3431 * PCM16 To PCM16B Pass in large buffers
3432 * @test Req. under test REQ172.6.4, REQ172.6.5
3434 TVerdict CTest_MMF_ACOD_U_0045::DoTestStepL()
3436 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
3437 const TUid codecUid = {KMMFUidCodecPCM16toPCM16B};
3438 TBool testOK = EFalse;
3439 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
3443 INFO_PRINTF2(_L("Test left with status %d"), err);
3448 INFO_PRINTF1(_L("Test failed"));
3455 //------------------------------------------------------------------
3460 CTest_MMF_ACOD_U_0046::CTest_MMF_ACOD_U_0046()
3462 // store the name of this test case
3463 // this is the name that is used by the script file
3464 // Each test step initialises it's own name
3465 iTestStepName = _L("MM-MMF-ACOD-U-0046-HP");
3467 for (TUint i=0; i<5; i++)
3469 iExpectedSrcBytesProcessed[i] = 0x1000;
3470 iExpectedDstBytesAdded[i] = 0x1000;
3471 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3476 * PCM16 To PCM16B Pass in default sized buffers
3477 * @test Req. under test REQ172.6.4, REQ172.6.5
3479 TVerdict CTest_MMF_ACOD_U_0046::DoTestStepL()
3481 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
3482 const TUid codecUid = {KMMFUidCodecPCM16toPCM16B};
3483 TBool testOK = EFalse;
3484 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
3488 INFO_PRINTF2(_L("Test left with status %d"), err);
3493 INFO_PRINTF1(_L("Test failed"));
3500 //------------------------------------------------------------------
3505 CTest_MMF_ACOD_U_0047::CTest_MMF_ACOD_U_0047()
3507 // store the name of this test case
3508 // this is the name that is used by the script file
3509 // Each test step initialises it's own name
3510 iTestStepName = _L("MM-MMF-ACOD-U-0047-HP");
3512 for (TUint i=0; i<5; i++)
3514 iExpectedSrcBytesProcessed[i] = 0x1000;
3515 iExpectedDstBytesAdded[i] = 0x1000;
3516 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3521 * PCM16 To PCM16B Pass in buffers with different max length and length
3522 * @test Req. under test REQ172.6.4, REQ172.6.5
3524 TVerdict CTest_MMF_ACOD_U_0047::DoTestStepL()
3526 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
3527 const TUid codecUid = {KMMFUidCodecPCM16toPCM16B};
3528 TBool testOK = EFalse;
3529 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
3533 INFO_PRINTF2(_L("Test left with status %d"), err);
3538 INFO_PRINTF1(_L("Test failed"));
3545 //------------------------------------------------------------------
3550 CTest_MMF_ACOD_U_0048::CTest_MMF_ACOD_U_0048()
3552 // store the name of this test case
3553 // this is the name that is used by the script file
3554 // Each test step initialises it's own name
3555 iTestStepName = _L("MM-MMF-ACOD-U-0048-HP");
3557 for (TUint i=0; i<5; i++)
3559 iExpectedSrcBytesProcessed[i] = 0x1000;
3560 iExpectedDstBytesAdded[i] = 0x1000;
3561 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3566 * PCM16 To PCM16B Pass in buffers of optimum size
3567 * @test Req. under test REQ172.6.4, REQ172.6.5
3569 TVerdict CTest_MMF_ACOD_U_0048::DoTestStepL()
3571 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
3572 const TUid codecUid = {KMMFUidCodecPCM16toPCM16B};
3573 TBool testOK = EFalse;
3574 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM16BOptimumSrc, KPCM16ToPCM16BOptimumDst));
3578 INFO_PRINTF2(_L("Test left with status %d"), err);
3583 INFO_PRINTF1(_L("Test failed"));
3590 //------------------------------------------------------------------
3595 CTest_MMF_ACOD_U_0049::CTest_MMF_ACOD_U_0049()
3597 // store the name of this test case
3598 // this is the name that is used by the script file
3599 // Each test step initialises it's own name
3600 iTestStepName = _L("MM-MMF-ACOD-U-0049-HP");
3604 * PCM16 To PCM16B Reposition source pointer during conversion
3605 * @test Req. under test REQ172.11
3607 TVerdict CTest_MMF_ACOD_U_0049::DoTestStepL()
3609 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
3610 const TUid codecUid = {KMMFUidCodecPCM16toPCM16B};
3611 TBool testOK = EFalse;
3613 INFO_PRINTF1(_L(">> The PCM16 to PCM16B codec doesn't currently store data between calls to ProcessL"));
3614 TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
3618 INFO_PRINTF2(_L("Test left with status %d"), err);
3623 INFO_PRINTF1(_L("Test failed"));
3630 //------------------------------------------------------------------
3635 CTest_MMF_ACOD_U_0050::CTest_MMF_ACOD_U_0050()
3637 // store the name of this test case
3638 // this is the name that is used by the script file
3639 // Each test step initialises it's own name
3640 iTestStepName = _L("MM-MMF-ACOD-U-0050-HP");
3644 * PCM16 To PCMU16B Instantiate codec by FourCC Codes
3645 * @test Req. under test REQ172.6.2
3647 TVerdict CTest_MMF_ACOD_U_0050::DoTestStepL()
3649 TBool testOK = EFalse;
3650 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCMU16B));
3654 INFO_PRINTF2(_L("Test left with status %d"), err);
3659 INFO_PRINTF1(_L("Test failed"));
3666 //------------------------------------------------------------------
3671 CTest_MMF_ACOD_U_0051::CTest_MMF_ACOD_U_0051()
3673 // store the name of this test case
3674 // this is the name that is used by the script file
3675 // Each test step initialises it's own name
3676 iTestStepName = _L("MM-MMF-ACOD-U-0051-HP");
3680 * PCM16 To PCMU16B Instantiate codec by UID
3681 * @test Req. under test REQ172.6.1
3683 TVerdict CTest_MMF_ACOD_U_0051::DoTestStepL()
3685 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16BE};
3686 TBool testOK = EFalse;
3687 TRAPD(err, testOK = TestNewL(codecUid));
3691 INFO_PRINTF2(_L("Test left with status %d"), err);
3696 INFO_PRINTF1(_L("Test failed"));
3703 //------------------------------------------------------------------
3708 CTest_MMF_ACOD_U_0052::CTest_MMF_ACOD_U_0052()
3710 // store the name of this test case
3711 // this is the name that is used by the script file
3712 // Each test step initialises it's own name
3713 iTestStepName = _L("MM-MMF-ACOD-U-0052-HP");
3715 for (TUint i=0; i<5; i++)
3717 iExpectedSrcBytesProcessed[i] = 50;
3718 iExpectedDstBytesAdded[i] = 50;
3719 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
3724 * PCM16 To PCMU16B Pass in small source buffers
3725 * @test Req. under test REQ172.6.4, REQ172.6.5
3727 TVerdict CTest_MMF_ACOD_U_0052::DoTestStepL()
3729 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16BE};
3730 TBool testOK = EFalse;
3731 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCMU16BOptimumDst));
3735 INFO_PRINTF2(_L("Test left with status %d"), err);
3740 INFO_PRINTF1(_L("Test failed"));
3747 //------------------------------------------------------------------
3752 CTest_MMF_ACOD_U_0053::CTest_MMF_ACOD_U_0053()
3754 // store the name of this test case
3755 // this is the name that is used by the script file
3756 // Each test step initialises it's own name
3757 iTestStepName = _L("MM-MMF-ACOD-U-0053-HP");
3759 for (TUint i=0; i<5; i++)
3761 iExpectedSrcBytesProcessed[i] = 50;
3762 iExpectedDstBytesAdded[i] = 50;
3763 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
3768 * PCM16 To PCMU16B Pass in small dest buffers
3769 * @test Req. under test REQ172.6.4, REQ172.6.5
3771 TVerdict CTest_MMF_ACOD_U_0053::DoTestStepL()
3773 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16BE};
3774 TBool testOK = EFalse;
3775 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16BOptimumSrc, KSmallBufferSize));
3779 INFO_PRINTF2(_L("Test left with status %d"), err);
3784 INFO_PRINTF1(_L("Test failed"));
3791 //------------------------------------------------------------------
3796 CTest_MMF_ACOD_U_0054::CTest_MMF_ACOD_U_0054()
3798 // store the name of this test case
3799 // this is the name that is used by the script file
3800 // Each test step initialises it's own name
3801 iTestStepName = _L("MM-MMF-ACOD-U-0054-HP");
3802 iHeapSize = 0x20000;
3803 for (TUint i=0; i<5; i++)
3805 iExpectedSrcBytesProcessed[i] = 10000;
3806 iExpectedDstBytesAdded[i] = 10000;
3807 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3812 * PCM16 To PCMU16B Pass in large buffers
3813 * @test Req. under test REQ172.6.4, REQ172.6.5
3815 TVerdict CTest_MMF_ACOD_U_0054::DoTestStepL()
3817 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16BE};
3818 TBool testOK = EFalse;
3819 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
3823 INFO_PRINTF2(_L("Test left with status %d"), err);
3828 INFO_PRINTF1(_L("Test failed"));
3835 //------------------------------------------------------------------
3840 CTest_MMF_ACOD_U_0055::CTest_MMF_ACOD_U_0055()
3842 // store the name of this test case
3843 // this is the name that is used by the script file
3844 // Each test step initialises it's own name
3845 iTestStepName = _L("MM-MMF-ACOD-U-0055-HP");
3847 for (TUint i=0; i<5; i++)
3849 iExpectedSrcBytesProcessed[i] = 0x1000;
3850 iExpectedDstBytesAdded[i] = 0x1000;
3851 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3856 * PCM16 To PCMU16B Pass in default sized buffers
3857 * @test Req. under test REQ172.6.4, REQ172.6.5
3859 TVerdict CTest_MMF_ACOD_U_0055::DoTestStepL()
3861 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16BE};
3862 TBool testOK = EFalse;
3863 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
3867 INFO_PRINTF2(_L("Test left with status %d"), err);
3872 INFO_PRINTF1(_L("Test failed"));
3879 //------------------------------------------------------------------
3884 CTest_MMF_ACOD_U_0056::CTest_MMF_ACOD_U_0056()
3886 // store the name of this test case
3887 // this is the name that is used by the script file
3888 // Each test step initialises it's own name
3889 iTestStepName = _L("MM-MMF-ACOD-U-0056-HP");
3891 for (TUint i=0; i<5; i++)
3893 iExpectedSrcBytesProcessed[i] = 0x1000;
3894 iExpectedDstBytesAdded[i] = 0x1000;
3895 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3900 * PCM16 To PCMU16B Pass in buffers with different max length and length
3901 * @test Req. under test REQ172.6.4, REQ172.6.5
3903 TVerdict CTest_MMF_ACOD_U_0056::DoTestStepL()
3905 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16BE};
3906 TBool testOK = EFalse;
3907 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
3911 INFO_PRINTF2(_L("Test left with status %d"), err);
3916 INFO_PRINTF1(_L("Test failed"));
3923 //------------------------------------------------------------------
3928 CTest_MMF_ACOD_U_0057::CTest_MMF_ACOD_U_0057()
3930 // store the name of this test case
3931 // this is the name that is used by the script file
3932 // Each test step initialises it's own name
3933 iTestStepName = _L("MM-MMF-ACOD-U-0057-HP");
3935 for (TUint i=0; i<5; i++)
3937 iExpectedSrcBytesProcessed[i] = 0x1000;
3938 iExpectedDstBytesAdded[i] = 0x1000;
3939 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3944 * PCM16 To PCMU16B Pass in buffers of optimum size
3945 * @test Req. under test REQ172.6.4, REQ172.6.5
3947 TVerdict CTest_MMF_ACOD_U_0057::DoTestStepL()
3949 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16BE};
3950 TBool testOK = EFalse;
3951 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16BOptimumSrc, KPCM16ToPCMU16BOptimumDst));
3955 INFO_PRINTF2(_L("Test left with status %d"), err);
3960 INFO_PRINTF1(_L("Test failed"));
3967 //------------------------------------------------------------------
3972 CTest_MMF_ACOD_U_0058::CTest_MMF_ACOD_U_0058()
3974 // store the name of this test case
3975 // this is the name that is used by the script file
3976 // Each test step initialises it's own name
3977 iTestStepName = _L("MM-MMF-ACOD-U-0058-HP");
3981 * PCM16 To PCMU16B Reposition source pointer during conversion
3982 * @test Req. under test REQ172.11
3984 TVerdict CTest_MMF_ACOD_U_0058::DoTestStepL()
3986 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16BE};
3987 TBool testOK = EFalse;
3989 INFO_PRINTF1(_L(">> The PCM16 to PCMU16B codec doesn't currently store data between calls to ProcessL"));
3990 TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
3994 INFO_PRINTF2(_L("Test left with status %d"), err);
3999 INFO_PRINTF1(_L("Test failed"));
4006 //------------------------------------------------------------------
4011 CTest_MMF_ACOD_U_0059::CTest_MMF_ACOD_U_0059()
4013 // store the name of this test case
4014 // this is the name that is used by the script file
4015 // Each test step initialises it's own name
4016 iTestStepName = _L("MM-MMF-ACOD-U-0059-HP");
4020 * PCM16 To PCMU16 Instantiate codec by FourCC Codes
4021 * @test Req. under test REQ172.6.2, REQ172.11.7
4023 TVerdict CTest_MMF_ACOD_U_0059::DoTestStepL()
4025 TBool testOK = EFalse;
4026 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCMU16));
4030 INFO_PRINTF2(_L("Test left with status %d"), err);
4035 INFO_PRINTF1(_L("Test failed"));
4042 //------------------------------------------------------------------
4047 CTest_MMF_ACOD_U_0060::CTest_MMF_ACOD_U_0060()
4049 // store the name of this test case
4050 // this is the name that is used by the script file
4051 // Each test step initialises it's own name
4052 iTestStepName = _L("MM-MMF-ACOD-U-0060-HP");
4056 * PCM16 To PCMU16 Instantiate codec by UID
4057 * @test Req. under test REQ172.6.1, REQ172.11.7
4059 TVerdict CTest_MMF_ACOD_U_0060::DoTestStepL()
4061 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16};
4062 TBool testOK = EFalse;
4063 TRAPD(err, testOK = TestNewL(codecUid));
4067 INFO_PRINTF2(_L("Test left with status %d"), err);
4072 INFO_PRINTF1(_L("Test failed"));
4079 //------------------------------------------------------------------
4084 CTest_MMF_ACOD_U_0061::CTest_MMF_ACOD_U_0061()
4086 // store the name of this test case
4087 // this is the name that is used by the script file
4088 // Each test step initialises it's own name
4089 iTestStepName = _L("MM-MMF-ACOD-U-0061-HP");
4091 for (TUint i=0; i<5; i++)
4093 iExpectedSrcBytesProcessed[i] = 50;
4094 iExpectedDstBytesAdded[i] = 50;
4095 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
4100 * PCM16 To PCMU16 Pass in small source buffers
4101 * @test Req. under test REQ172.6.4, REQ172.6.5
4103 TVerdict CTest_MMF_ACOD_U_0061::DoTestStepL()
4105 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16};
4106 TBool testOK = EFalse;
4107 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCMU16OptimumDst));
4111 INFO_PRINTF2(_L("Test left with status %d"), err);
4116 INFO_PRINTF1(_L("Test failed"));
4123 //------------------------------------------------------------------
4128 CTest_MMF_ACOD_U_0062::CTest_MMF_ACOD_U_0062()
4130 // store the name of this test case
4131 // this is the name that is used by the script file
4132 // Each test step initialises it's own name
4133 iTestStepName = _L("MM-MMF-ACOD-U-0062-HP");
4135 for (TUint i=0; i<5; i++)
4137 iExpectedSrcBytesProcessed[i] = 50;
4138 iExpectedDstBytesAdded[i] = 50;
4139 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
4144 * PCM16 To PCMU16 Pass in small dest buffers
4145 * @test Req. under test REQ172.6.4, REQ172.6.5
4147 TVerdict CTest_MMF_ACOD_U_0062::DoTestStepL()
4149 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16};
4150 TBool testOK = EFalse;
4151 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16OptimumSrc, KSmallBufferSize));
4155 INFO_PRINTF2(_L("Test left with status %d"), err);
4160 INFO_PRINTF1(_L("Test failed"));
4167 //------------------------------------------------------------------
4172 CTest_MMF_ACOD_U_0063::CTest_MMF_ACOD_U_0063()
4174 // store the name of this test case
4175 // this is the name that is used by the script file
4176 // Each test step initialises it's own name
4177 iTestStepName = _L("MM-MMF-ACOD-U-0063-HP");
4178 iHeapSize = 0x20000;
4180 for (TUint i=0; i<5; i++)
4182 iExpectedSrcBytesProcessed[i] = 10000;
4183 iExpectedDstBytesAdded[i] = 10000;
4184 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4189 * PCM16 To PCMU16 Pass in large buffers
4190 * @test Req. under test REQ172.6.4, REQ172.6.5
4192 TVerdict CTest_MMF_ACOD_U_0063::DoTestStepL()
4194 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16};
4195 TBool testOK = EFalse;
4196 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
4200 INFO_PRINTF2(_L("Test left with status %d"), err);
4205 INFO_PRINTF1(_L("Test failed"));
4212 //------------------------------------------------------------------
4217 CTest_MMF_ACOD_U_0064::CTest_MMF_ACOD_U_0064()
4219 // store the name of this test case
4220 // this is the name that is used by the script file
4221 // Each test step initialises it's own name
4222 iTestStepName = _L("MM-MMF-ACOD-U-0064-HP");
4224 for (TUint i=0; i<5; i++)
4226 iExpectedSrcBytesProcessed[i] = 0x1000;
4227 iExpectedDstBytesAdded[i] = 0x1000;
4228 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4233 * PCM16 To PCMU16 Pass in default sized buffers
4234 * @test Req. under test REQ172.6.4, REQ172.6.5
4236 TVerdict CTest_MMF_ACOD_U_0064::DoTestStepL()
4238 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16};
4239 TBool testOK = EFalse;
4240 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
4244 INFO_PRINTF2(_L("Test left with status %d"), err);
4249 INFO_PRINTF1(_L("Test failed"));
4256 //------------------------------------------------------------------
4261 CTest_MMF_ACOD_U_0065::CTest_MMF_ACOD_U_0065()
4263 // store the name of this test case
4264 // this is the name that is used by the script file
4265 // Each test step initialises it's own name
4266 iTestStepName = _L("MM-MMF-ACOD-U-0065-HP");
4268 for (TUint i=0; i<5; i++)
4270 iExpectedSrcBytesProcessed[i] = 0x1000;
4271 iExpectedDstBytesAdded[i] = 0x1000;
4272 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4277 * PCM16 To PCMU16 Pass in buffers with different max length and length
4278 * @test Req. under test REQ172.6.4, REQ172.6.5
4280 TVerdict CTest_MMF_ACOD_U_0065::DoTestStepL()
4282 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16};
4283 TBool testOK = EFalse;
4284 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
4288 INFO_PRINTF2(_L("Test left with status %d"), err);
4293 INFO_PRINTF1(_L("Test failed"));
4300 //------------------------------------------------------------------
4305 CTest_MMF_ACOD_U_0066::CTest_MMF_ACOD_U_0066()
4307 // store the name of this test case
4308 // this is the name that is used by the script file
4309 // Each test step initialises it's own name
4310 iTestStepName = _L("MM-MMF-ACOD-U-0066-HP");
4312 for (TUint i=0; i<5; i++)
4314 iExpectedSrcBytesProcessed[i] = 0x1000;
4315 iExpectedDstBytesAdded[i] = 0x1000;
4316 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4321 * PCM16 To PCMU16 Pass in buffers of optimum size
4322 * @test Req. under test REQ172.6.4, REQ172.6.5
4324 TVerdict CTest_MMF_ACOD_U_0066::DoTestStepL()
4326 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16};
4327 TBool testOK = EFalse;
4328 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16OptimumSrc, KPCM16ToPCMU16OptimumDst));
4332 INFO_PRINTF2(_L("Test left with status %d"), err);
4337 INFO_PRINTF1(_L("Test failed"));
4344 //------------------------------------------------------------------
4349 CTest_MMF_ACOD_U_0067::CTest_MMF_ACOD_U_0067()
4351 // store the name of this test case
4352 // this is the name that is used by the script file
4353 // Each test step initialises it's own name
4354 iTestStepName = _L("MM-MMF-ACOD-U-0067-HP");
4358 * PCM16 To PCMU16 Reposition source pointer during conversion
4359 * @test Req. under test REQ172.11
4361 TVerdict CTest_MMF_ACOD_U_0067::DoTestStepL()
4363 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16};
4364 TBool testOK = EFalse;
4366 INFO_PRINTF1(_L(">> The PCM16 to PCMU16 codec doesn't currently store data between calls to ProcessL"));
4367 TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
4371 INFO_PRINTF2(_L("Test left with status %d"), err);
4376 INFO_PRINTF1(_L("Test failed"));
4383 //------------------------------------------------------------------
4388 CTest_MMF_ACOD_U_0068::CTest_MMF_ACOD_U_0068()
4390 // store the name of this test case
4391 // this is the name that is used by the script file
4392 // Each test step initialises it's own name
4393 iTestStepName = _L("MM-MMF-ACOD-U-0068-HP");
4397 * PCM16 To PCMU8 Instantiate codec by FourCC Codes
4398 * @test Req. under test REQ172.6.2, REQ172.11.8
4400 TVerdict CTest_MMF_ACOD_U_0068::DoTestStepL()
4402 TBool testOK = EFalse;
4403 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCMU8));
4407 INFO_PRINTF2(_L("Test left with status %d"), err);
4412 INFO_PRINTF1(_L("Test failed"));
4419 //------------------------------------------------------------------
4424 CTest_MMF_ACOD_U_0069::CTest_MMF_ACOD_U_0069()
4426 // store the name of this test case
4427 // this is the name that is used by the script file
4428 // Each test step initialises it's own name
4429 iTestStepName = _L("MM-MMF-ACOD-U-0069-HP");
4433 * PCM16 To PCMU8 Instantiate codec by UID
4434 * @test Req. under test REQ172.6.1, REQ172.11.8
4436 TVerdict CTest_MMF_ACOD_U_0069::DoTestStepL()
4438 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU8};
4439 TBool testOK = EFalse;
4440 TRAPD(err, testOK = TestNewL(codecUid));
4444 INFO_PRINTF2(_L("Test left with status %d"), err);
4449 INFO_PRINTF1(_L("Test failed"));
4456 //------------------------------------------------------------------
4461 CTest_MMF_ACOD_U_0070::CTest_MMF_ACOD_U_0070()
4463 // store the name of this test case
4464 // this is the name that is used by the script file
4465 // Each test step initialises it's own name
4466 iTestStepName = _L("MM-MMF-ACOD-U-0070-HP");
4468 for (TUint i=0; i<5; i++)
4470 iExpectedSrcBytesProcessed[i] = 50;
4471 iExpectedDstBytesAdded[i] = 25;
4472 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
4477 * PCM16 To PCMU8 Pass in small source buffers
4478 * @test Req. under test REQ172.6.4, REQ172.6.5
4480 TVerdict CTest_MMF_ACOD_U_0070::DoTestStepL()
4482 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU8};
4483 TBool testOK = EFalse;
4484 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCMU8OptimumDst));
4488 INFO_PRINTF2(_L("Test left with status %d"), err);
4493 INFO_PRINTF1(_L("Test failed"));
4500 //------------------------------------------------------------------
4505 CTest_MMF_ACOD_U_0071::CTest_MMF_ACOD_U_0071()
4507 // store the name of this test case
4508 // this is the name that is used by the script file
4509 // Each test step initialises it's own name
4510 iTestStepName = _L("MM-MMF-ACOD-U-0071-HP");
4512 for (TUint i=0; i<5; i++)
4514 iExpectedSrcBytesProcessed[i] = 100;
4515 iExpectedDstBytesAdded[i] = 50;
4516 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
4521 * PCM16 To PCMU8 Pass in small dest buffers
4522 * @test Req. under test REQ172.6.4, REQ172.6.5
4524 TVerdict CTest_MMF_ACOD_U_0071::DoTestStepL()
4526 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU8};
4527 TBool testOK = EFalse;
4528 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU8OptimumSrc, KSmallBufferSize));
4532 INFO_PRINTF2(_L("Test left with status %d"), err);
4537 INFO_PRINTF1(_L("Test failed"));
4544 //------------------------------------------------------------------
4549 CTest_MMF_ACOD_U_0072::CTest_MMF_ACOD_U_0072()
4551 // store the name of this test case
4552 // this is the name that is used by the script file
4553 // Each test step initialises it's own name
4554 iTestStepName = _L("MM-MMF-ACOD-U-0072-HP");
4555 iHeapSize = 0x20000;
4557 for (TUint i=0; i<5; i++)
4559 iExpectedSrcBytesProcessed[i] = 10000;
4560 iExpectedDstBytesAdded[i] = 5000;
4562 if((i%2)==0)//even i
4563 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
4565 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4570 * PCM16 To PCMU8 Pass in large buffers
4571 * @test Req. under test REQ172.6.4, REQ172.6.5
4573 TVerdict CTest_MMF_ACOD_U_0072::DoTestStepL()
4575 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU8};
4576 TBool testOK = EFalse;
4577 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
4581 INFO_PRINTF2(_L("Test left with status %d"), err);
4586 INFO_PRINTF1(_L("Test failed"));
4593 //------------------------------------------------------------------
4598 CTest_MMF_ACOD_U_0073::CTest_MMF_ACOD_U_0073()
4600 // store the name of this test case
4601 // this is the name that is used by the script file
4602 // Each test step initialises it's own name
4603 iTestStepName = _L("MM-MMF-ACOD-U-0073-HP");
4605 for (TUint i=0; i<5; i++)
4607 iExpectedSrcBytesProcessed[i] = 0x1000;
4608 iExpectedDstBytesAdded[i] = 0x800;
4610 if((i%2)==0)//even i
4611 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
4613 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4618 * PCM16 To PCMU8 Pass in default sized buffers
4619 * @test Req. under test REQ172.6.4, REQ172.6.5
4621 TVerdict CTest_MMF_ACOD_U_0073::DoTestStepL()
4623 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU8};
4624 TBool testOK = EFalse;
4625 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
4629 INFO_PRINTF2(_L("Test left with status %d"), err);
4634 INFO_PRINTF1(_L("Test failed"));
4641 //------------------------------------------------------------------
4646 CTest_MMF_ACOD_U_0074::CTest_MMF_ACOD_U_0074()
4648 // store the name of this test case
4649 // this is the name that is used by the script file
4650 // Each test step initialises it's own name
4651 iTestStepName = _L("MM-MMF-ACOD-U-0074-HP");
4653 for (TUint i=0; i<5; i++)
4655 iExpectedSrcBytesProcessed[i] = 0x1000;
4656 iExpectedDstBytesAdded[i] = 0x800;
4658 if((i%2)==0)//even i
4659 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
4661 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4666 * PCM16 To PCMU8 Pass in buffers with different max length and length
4667 * @test Req. under test REQ172.6.4, REQ172.6.5
4669 TVerdict CTest_MMF_ACOD_U_0074::DoTestStepL()
4671 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU8};
4672 TBool testOK = EFalse;
4673 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
4677 INFO_PRINTF2(_L("Test left with status %d"), err);
4682 INFO_PRINTF1(_L("Test failed"));
4689 //------------------------------------------------------------------
4694 CTest_MMF_ACOD_U_0075::CTest_MMF_ACOD_U_0075()
4696 // store the name of this test case
4697 // this is the name that is used by the script file
4698 // Each test step initialises it's own name
4699 iTestStepName = _L("MM-MMF-ACOD-U-0075-HP");
4701 for (TUint i=0; i<5; i++)
4703 iExpectedSrcBytesProcessed[i] = 0x1000;
4704 iExpectedDstBytesAdded[i] = 0x800;
4705 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4710 * PCM16 To PCMU8 Pass in buffers of optimum size
4711 * @test Req. under test REQ172.6.4, REQ172.6.5
4713 TVerdict CTest_MMF_ACOD_U_0075::DoTestStepL()
4715 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU8};
4716 TBool testOK = EFalse;
4717 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU8OptimumSrc, KPCM16ToPCMU8OptimumDst));
4721 INFO_PRINTF2(_L("Test left with status %d"), err);
4726 INFO_PRINTF1(_L("Test failed"));
4733 //------------------------------------------------------------------
4738 CTest_MMF_ACOD_U_0076::CTest_MMF_ACOD_U_0076()
4740 // store the name of this test case
4741 // this is the name that is used by the script file
4742 // Each test step initialises it's own name
4743 iTestStepName = _L("MM-MMF-ACOD-U-0076-HP");
4747 * PCM16 To PCMU8 Reposition source pointer during conversion
4748 * @test Req. under test REQ172.11
4750 TVerdict CTest_MMF_ACOD_U_0076::DoTestStepL()
4752 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU8};
4753 TBool testOK = EFalse;
4755 INFO_PRINTF1(_L(">> The PCM16 to PCMU8 codec doesn't currently store data between calls to ProcessL"));
4756 TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
4760 INFO_PRINTF2(_L("Test left with status %d"), err);
4765 INFO_PRINTF1(_L("Test failed"));
4772 //-----------------------------------------------------------------
4777 CTest_MMF_ACOD_U_0077::CTest_MMF_ACOD_U_0077()
4779 // store the name of this test case
4780 // this is the name that is used by the script file
4781 // Each test step initialises it's own name
4782 iTestStepName = _L("MM-MMF-ACOD-U-0077-HP");
4786 * PCMU16B To PCM16 Instantiate codec by FourCC Codes
4787 * @test Req. under test REQ172.6.2, REQ172.11.9
4789 TVerdict CTest_MMF_ACOD_U_0077::DoTestStepL()
4791 TBool testOK = EFalse;
4792 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU16B, KMMFFourCCCodePCM16));
4796 INFO_PRINTF2(_L("Test left with status %d"), err);
4801 INFO_PRINTF1(_L("Test failed"));
4808 //------------------------------------------------------------------
4813 CTest_MMF_ACOD_U_0078::CTest_MMF_ACOD_U_0078()
4815 // store the name of this test case
4816 // this is the name that is used by the script file
4817 // Each test step initialises it's own name
4818 iTestStepName = _L("MM-MMF-ACOD-U-0078-HP");
4822 * PCMU16B To PCM16 Instantiate codec by UID
4823 * @test Req. under test REQ172.6.1, REQ172.11.9
4825 TVerdict CTest_MMF_ACOD_U_0078::DoTestStepL()
4827 const TUid codecUid = {KMmfUidCodecAudioU16BEToPCMS16};
4828 TBool testOK = EFalse;
4829 TRAPD(err, testOK = TestNewL(codecUid));
4833 INFO_PRINTF2(_L("Test left with status %d"), err);
4838 INFO_PRINTF1(_L("Test failed"));
4845 //------------------------------------------------------------------
4850 CTest_MMF_ACOD_U_0079::CTest_MMF_ACOD_U_0079()
4852 // store the name of this test case
4853 // this is the name that is used by the script file
4854 // Each test step initialises it's own name
4855 iTestStepName = _L("MM-MMF-ACOD-U-0079-HP");
4857 for (TUint i=0; i<5; i++)
4859 iExpectedSrcBytesProcessed[i] = 50;
4860 iExpectedDstBytesAdded[i] = 50;
4861 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
4866 * PCMU16B To PCM16 Pass in small source buffers
4867 * @test Req. under test REQ172.6.4, REQ172.6.5
4869 TVerdict CTest_MMF_ACOD_U_0079::DoTestStepL()
4871 const TUid codecUid = {KMmfUidCodecAudioU16BEToPCMS16};
4872 TBool testOK = EFalse;
4873 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCMU16BToPCM16OptimumDst));
4877 INFO_PRINTF2(_L("Test left with status %d"), err);
4882 INFO_PRINTF1(_L("Test failed"));
4889 //------------------------------------------------------------------
4894 CTest_MMF_ACOD_U_0080::CTest_MMF_ACOD_U_0080()
4896 // store the name of this test case
4897 // this is the name that is used by the script file
4898 // Each test step initialises it's own name
4899 iTestStepName = _L("MM-MMF-ACOD-U-0080-HP");
4901 for (TUint i=0; i<5; i++)
4903 iExpectedSrcBytesProcessed[i] = 50;
4904 iExpectedDstBytesAdded[i] = 50;
4905 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
4910 * PCMU16B To PCM16 Pass in small dest buffers
4911 * @test Req. under test REQ172.6.4, REQ172.6.5
4913 TVerdict CTest_MMF_ACOD_U_0080::DoTestStepL()
4915 const TUid codecUid = {KMmfUidCodecAudioU16BEToPCMS16};
4916 TBool testOK = EFalse;
4917 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16BToPCM16OptimumSrc, KSmallBufferSize));
4921 INFO_PRINTF2(_L("Test left with status %d"), err);
4926 INFO_PRINTF1(_L("Test failed"));
4933 //------------------------------------------------------------------
4938 CTest_MMF_ACOD_U_0081::CTest_MMF_ACOD_U_0081()
4940 // store the name of this test case
4941 // this is the name that is used by the script file
4942 // Each test step initialises it's own name
4943 iTestStepName = _L("MM-MMF-ACOD-U-0081-HP");
4944 iHeapSize = 0x20000;
4946 for (TUint i=0; i<5; i++)
4948 iExpectedSrcBytesProcessed[i] = 10000;
4949 iExpectedDstBytesAdded[i] = 10000;
4950 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4955 * PCMU16B To PCM16 Pass in large buffers
4956 * @test Req. under test REQ172.6.4, REQ172.6.5
4958 TVerdict CTest_MMF_ACOD_U_0081::DoTestStepL()
4960 const TUid codecUid = {KMmfUidCodecAudioU16BEToPCMS16};
4961 TBool testOK = EFalse;
4962 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
4966 INFO_PRINTF2(_L("Test left with status %d"), err);
4971 INFO_PRINTF1(_L("Test failed"));
4978 //------------------------------------------------------------------
4983 CTest_MMF_ACOD_U_0082::CTest_MMF_ACOD_U_0082()
4985 // store the name of this test case
4986 // this is the name that is used by the script file
4987 // Each test step initialises it's own name
4988 iTestStepName = _L("MM-MMF-ACOD-U-0082-HP");
4990 for (TUint i=0; i<5; i++)
4992 iExpectedSrcBytesProcessed[i] = 0x1000;
4993 iExpectedDstBytesAdded[i] = 0x1000;
4994 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4999 * PCMU16B To PCM16 Pass in default sized buffers
5000 * @test Req. under test REQ172.6.4, REQ172.6.5
5002 TVerdict CTest_MMF_ACOD_U_0082::DoTestStepL()
5004 const TUid codecUid = {KMmfUidCodecAudioU16BEToPCMS16};
5005 TBool testOK = EFalse;
5006 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
5010 INFO_PRINTF2(_L("Test left with status %d"), err);
5015 INFO_PRINTF1(_L("Test failed"));
5022 //------------------------------------------------------------------
5027 CTest_MMF_ACOD_U_0083::CTest_MMF_ACOD_U_0083()
5029 // store the name of this test case
5030 // this is the name that is used by the script file
5031 // Each test step initialises it's own name
5032 iTestStepName = _L("MM-MMF-ACOD-U-0083-HP");
5034 for (TUint i=0; i<5; i++)
5036 iExpectedSrcBytesProcessed[i] = 0x1000;
5037 iExpectedDstBytesAdded[i] = 0x1000;
5038 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5043 * PCMU16B To PCM16 Pass in buffers with different max length and length
5044 * @test Req. under test REQ172.6.4, REQ172.6.5
5046 TVerdict CTest_MMF_ACOD_U_0083::DoTestStepL()
5048 const TUid codecUid = {KMmfUidCodecAudioU16BEToPCMS16};
5049 TBool testOK = EFalse;
5050 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
5054 INFO_PRINTF2(_L("Test left with status %d"), err);
5059 INFO_PRINTF1(_L("Test failed"));
5066 //------------------------------------------------------------------
5071 CTest_MMF_ACOD_U_0084::CTest_MMF_ACOD_U_0084()
5073 // store the name of this test case
5074 // this is the name that is used by the script file
5075 // Each test step initialises it's own name
5076 iTestStepName = _L("MM-MMF-ACOD-U-0084-HP");
5078 for (TUint i=0; i<5; i++)
5080 iExpectedSrcBytesProcessed[i] = 0x1000;
5081 iExpectedDstBytesAdded[i] = 0x1000;
5082 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5087 * PCMU16B To PCM16 Pass in buffers of optimum size
5088 * @test Req. under test REQ172.6.4, REQ172.6.5
5090 TVerdict CTest_MMF_ACOD_U_0084::DoTestStepL()
5092 const TUid codecUid = {KMmfUidCodecAudioU16BEToPCMS16};
5093 TBool testOK = EFalse;
5094 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16BToPCM16OptimumSrc, KPCMU16BToPCM16OptimumDst));
5098 INFO_PRINTF2(_L("Test left with status %d"), err);
5103 INFO_PRINTF1(_L("Test failed"));
5110 //------------------------------------------------------------------
5115 CTest_MMF_ACOD_U_0085::CTest_MMF_ACOD_U_0085()
5117 // store the name of this test case
5118 // this is the name that is used by the script file
5119 // Each test step initialises it's own name
5120 iTestStepName = _L("MM-MMF-ACOD-U-0085-HP");
5124 * PCMU16B To PCM16 Reposition source pointer during conversion
5125 * @test Req. under test REQ172.11
5127 TVerdict CTest_MMF_ACOD_U_0085::DoTestStepL()
5129 const TUid codecUid = {KMmfUidCodecAudioU16BEToPCMS16};
5130 TBool testOK = EFalse;
5132 INFO_PRINTF1(_L(">> The PCMU16B to PCM16 codec doesn't currently store data between calls to ProcessL"));
5133 TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
5137 INFO_PRINTF2(_L("Test left with status %d"), err);
5142 INFO_PRINTF1(_L("Test failed"));
5149 //------------------------------------------------------------------
5154 CTest_MMF_ACOD_U_0086::CTest_MMF_ACOD_U_0086()
5156 // store the name of this test case
5157 // this is the name that is used by the script file
5158 // Each test step initialises it's own name
5159 iTestStepName = _L("MM-MMF-ACOD-U-0086-HP");
5163 * PCMU16 To PCM16 Instantiate codec by FourCC Codes
5164 * @test Req. under test REQ172.6.2, REQ172.11.25
5166 TVerdict CTest_MMF_ACOD_U_0086::DoTestStepL()
5168 TBool testOK = EFalse;
5169 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU16, KMMFFourCCCodePCM16));
5173 INFO_PRINTF2(_L("Test left with status %d"), err);
5178 INFO_PRINTF1(_L("Test failed"));
5185 //------------------------------------------------------------------
5190 CTest_MMF_ACOD_U_0087::CTest_MMF_ACOD_U_0087()
5192 // store the name of this test case
5193 // this is the name that is used by the script file
5194 // Each test step initialises it's own name
5195 iTestStepName = _L("MM-MMF-ACOD-U-0087-HP");
5199 * PCMU16 To PCM16 Instantiate codec by UID
5200 * @test Req. under test REQ172.6.1, REQ172.11.25
5202 TVerdict CTest_MMF_ACOD_U_0087::DoTestStepL()
5204 const TUid codecUid = {KMmfUidCodecAudioU16ToPCMS16};
5205 TBool testOK = EFalse;
5206 TRAPD(err, testOK = TestNewL(codecUid));
5210 INFO_PRINTF2(_L("Test left with status %d"), err);
5215 INFO_PRINTF1(_L("Test failed"));
5222 //------------------------------------------------------------------
5227 CTest_MMF_ACOD_U_0088::CTest_MMF_ACOD_U_0088()
5229 // store the name of this test case
5230 // this is the name that is used by the script file
5231 // Each test step initialises it's own name
5232 iTestStepName = _L("MM-MMF-ACOD-U-0088-HP");
5234 for (TUint i=0; i<5; i++)
5236 iExpectedSrcBytesProcessed[i] = 50;
5237 iExpectedDstBytesAdded[i] = 50;
5238 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
5243 * PCMU16 To PCM16 Pass in small source buffers
5244 * @test Req. under test REQ172.6.4, REQ172.6.5
5246 TVerdict CTest_MMF_ACOD_U_0088::DoTestStepL()
5248 const TUid codecUid = {KMmfUidCodecAudioU16ToPCMS16};
5249 TBool testOK = EFalse;
5250 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCMU16ToPCM16OptimumDst));
5254 INFO_PRINTF2(_L("Test left with status %d"), err);
5259 INFO_PRINTF1(_L("Test failed"));
5266 //------------------------------------------------------------------
5271 CTest_MMF_ACOD_U_0089::CTest_MMF_ACOD_U_0089()
5273 // store the name of this test case
5274 // this is the name that is used by the script file
5275 // Each test step initialises it's own name
5276 iTestStepName = _L("MM-MMF-ACOD-U-0089-HP");
5278 for (TUint i=0; i<5; i++)
5280 iExpectedSrcBytesProcessed[i] = 50;
5281 iExpectedDstBytesAdded[i] = 50;
5282 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
5287 * PCMU16 To PCM16 Pass in small dest buffers
5288 * @test Req. under test REQ172.6.4, REQ172.6.5
5290 TVerdict CTest_MMF_ACOD_U_0089::DoTestStepL()
5292 const TUid codecUid = {KMmfUidCodecAudioU16ToPCMS16};
5293 TBool testOK = EFalse;
5294 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16ToPCM16OptimumSrc, KSmallBufferSize));
5298 INFO_PRINTF2(_L("Test left with status %d"), err);
5303 INFO_PRINTF1(_L("Test failed"));
5310 //------------------------------------------------------------------
5315 CTest_MMF_ACOD_U_0090::CTest_MMF_ACOD_U_0090()
5317 // store the name of this test case
5318 // this is the name that is used by the script file
5319 // Each test step initialises it's own name
5320 iTestStepName = _L("MM-MMF-ACOD-U-0090-HP");
5321 iHeapSize = 0x20000;
5322 for (TUint i=0; i<5; i++)
5324 iExpectedSrcBytesProcessed[i] = 10000;
5325 iExpectedDstBytesAdded[i] = 10000;
5326 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5331 * PCMU16 To PCM16 Pass in large buffers
5332 * @test Req. under test REQ172.6.4, REQ172.6.5
5334 TVerdict CTest_MMF_ACOD_U_0090::DoTestStepL()
5336 const TUid codecUid = {KMmfUidCodecAudioU16ToPCMS16};
5337 TBool testOK = EFalse;
5338 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
5342 INFO_PRINTF2(_L("Test left with status %d"), err);
5347 INFO_PRINTF1(_L("Test failed"));
5354 //------------------------------------------------------------------
5359 CTest_MMF_ACOD_U_0091::CTest_MMF_ACOD_U_0091()
5361 // store the name of this test case
5362 // this is the name that is used by the script file
5363 // Each test step initialises it's own name
5364 iTestStepName = _L("MM-MMF-ACOD-U-0091-HP");
5366 for (TUint i=0; i<5; i++)
5368 iExpectedSrcBytesProcessed[i] = 0x1000;
5369 iExpectedDstBytesAdded[i] = 0x1000;
5370 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5375 * PCMU16 To PCM16 Pass in default sized buffers
5376 * @test Req. under test REQ172.6.4, REQ172.6.5
5378 TVerdict CTest_MMF_ACOD_U_0091::DoTestStepL()
5380 const TUid codecUid = {KMmfUidCodecAudioU16ToPCMS16};
5381 TBool testOK = EFalse;
5382 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
5386 INFO_PRINTF2(_L("Test left with status %d"), err);
5391 INFO_PRINTF1(_L("Test failed"));
5398 //------------------------------------------------------------------
5403 CTest_MMF_ACOD_U_0092::CTest_MMF_ACOD_U_0092()
5405 // store the name of this test case
5406 // this is the name that is used by the script file
5407 // Each test step initialises it's own name
5408 iTestStepName = _L("MM-MMF-ACOD-U-0092-HP");
5410 for (TUint i=0; i<5; i++)
5412 iExpectedSrcBytesProcessed[i] = 0x1000;
5413 iExpectedDstBytesAdded[i] = 0x1000;
5414 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5419 * PCMU16 To PCM16 Pass in buffers with different max length and length
5420 * @test Req. under test REQ172.6.4, REQ172.6.5
5422 TVerdict CTest_MMF_ACOD_U_0092::DoTestStepL()
5424 const TUid codecUid = {KMmfUidCodecAudioU16ToPCMS16};
5425 TBool testOK = EFalse;
5426 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
5430 INFO_PRINTF2(_L("Test left with status %d"), err);
5435 INFO_PRINTF1(_L("Test failed"));
5442 //------------------------------------------------------------------
5447 CTest_MMF_ACOD_U_0093::CTest_MMF_ACOD_U_0093()
5449 // store the name of this test case
5450 // this is the name that is used by the script file
5451 // Each test step initialises it's own name
5452 iTestStepName = _L("MM-MMF-ACOD-U-0093-HP");
5454 for (TUint i=0; i<5; i++)
5456 iExpectedSrcBytesProcessed[i] = 0x1000;
5457 iExpectedDstBytesAdded[i] = 0x1000;
5458 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5463 * PCMU16 To PCM16 Pass in buffers of optimum size
5464 * @test Req. under test REQ172.6.4, REQ172.6.5
5466 TVerdict CTest_MMF_ACOD_U_0093::DoTestStepL()
5468 const TUid codecUid = {KMmfUidCodecAudioU16ToPCMS16};
5469 TBool testOK = EFalse;
5470 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16ToPCM16OptimumSrc, KPCMU16ToPCM16OptimumDst));
5474 INFO_PRINTF2(_L("Test left with status %d"), err);
5479 INFO_PRINTF1(_L("Test failed"));
5486 //------------------------------------------------------------------
5491 CTest_MMF_ACOD_U_0094::CTest_MMF_ACOD_U_0094()
5493 // store the name of this test case
5494 // this is the name that is used by the script file
5495 // Each test step initialises it's own name
5496 iTestStepName = _L("MM-MMF-ACOD-U-0094-HP");
5500 * PCMU16 To PCM16 Reposition source pointer during conversion
5501 * @test Req. under test REQ172.11
5503 TVerdict CTest_MMF_ACOD_U_0094::DoTestStepL()
5505 const TUid codecUid = {KMmfUidCodecAudioU16ToPCMS16};
5506 TBool testOK = EFalse;
5508 INFO_PRINTF1(_L(">> The PCMU16 to PCM16 codec doesn't currently store data between calls to ProcessL"));
5509 TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
5513 INFO_PRINTF2(_L("Test left with status %d"), err);
5518 INFO_PRINTF1(_L("Test failed"));
5525 //------------------------------------------------------------------
5530 CTest_MMF_ACOD_U_0095::CTest_MMF_ACOD_U_0095()
5532 // store the name of this test case
5533 // this is the name that is used by the script file
5534 // Each test step initialises it's own name
5535 iTestStepName = _L("MM-MMF-ACOD-U-0095-HP");
5539 * PCMU8 To PCM16 Instantiate codec by FourCC Codes
5540 * @test Req. under test REQ172.6.2, REQ172.11.11
5542 TVerdict CTest_MMF_ACOD_U_0095::DoTestStepL()
5544 TBool testOK = EFalse;
5545 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU8, KMMFFourCCCodePCM16));
5549 INFO_PRINTF2(_L("Test left with status %d"), err);
5554 INFO_PRINTF1(_L("Test failed"));
5561 //------------------------------------------------------------------
5566 CTest_MMF_ACOD_U_0096::CTest_MMF_ACOD_U_0096()
5568 // store the name of this test case
5569 // this is the name that is used by the script file
5570 // Each test step initialises it's own name
5571 iTestStepName = _L("MM-MMF-ACOD-U-0096-HP");
5575 * PCMU8 To PCM16 Instantiate codec by UID
5576 * @test Req. under test REQ172.6.1, REQ172.11.11
5578 TVerdict CTest_MMF_ACOD_U_0096::DoTestStepL()
5580 const TUid codecUid = {KMmfUidCodecAudioU8ToPCMS16};
5581 TBool testOK = EFalse;
5582 TRAPD(err, testOK = TestNewL(codecUid));
5586 INFO_PRINTF2(_L("Test left with status %d"), err);
5591 INFO_PRINTF1(_L("Test failed"));
5598 //------------------------------------------------------------------
5603 CTest_MMF_ACOD_U_0097::CTest_MMF_ACOD_U_0097()
5605 // store the name of this test case
5606 // this is the name that is used by the script file
5607 // Each test step initialises it's own name
5608 iTestStepName = _L("MM-MMF-ACOD-U-0097-HP");
5610 for (TUint i=0; i<5; i++)
5612 iExpectedSrcBytesProcessed[i] = 50;
5613 iExpectedDstBytesAdded[i] = 100;
5614 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
5619 * PCMU8 To PCM16 Pass in small source buffers
5620 * @test Req. under test REQ172.6.4, REQ172.6.5
5622 TVerdict CTest_MMF_ACOD_U_0097::DoTestStepL()
5624 const TUid codecUid = {KMmfUidCodecAudioU8ToPCMS16};
5625 TBool testOK = EFalse;
5626 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCMU8ToPCM16OptimumDst));
5630 INFO_PRINTF2(_L("Test left with status %d"), err);
5635 INFO_PRINTF1(_L("Test failed"));
5642 //------------------------------------------------------------------
5647 CTest_MMF_ACOD_U_0098::CTest_MMF_ACOD_U_0098()
5649 // store the name of this test case
5650 // this is the name that is used by the script file
5651 // Each test step initialises it's own name
5652 iTestStepName = _L("MM-MMF-ACOD-U-0098-HP");
5654 for (TUint i=0; i<5; i++)
5656 iExpectedSrcBytesProcessed[i] = 25;
5657 iExpectedDstBytesAdded[i] = 50;
5658 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
5663 * PCMU8 To PCM16 Pass in small dest buffers
5664 * @test Req. under test REQ172.6.4, REQ172.6.5
5666 TVerdict CTest_MMF_ACOD_U_0098::DoTestStepL()
5668 const TUid codecUid = {KMmfUidCodecAudioU8ToPCMS16};
5669 TBool testOK = EFalse;
5670 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU8ToPCM16OptimumSrc, KSmallBufferSize));
5674 INFO_PRINTF2(_L("Test left with status %d"), err);
5679 INFO_PRINTF1(_L("Test failed"));
5686 //------------------------------------------------------------------
5691 CTest_MMF_ACOD_U_0099::CTest_MMF_ACOD_U_0099()
5693 // store the name of this test case
5694 // this is the name that is used by the script file
5695 // Each test step initialises it's own name
5696 iTestStepName = _L("MM-MMF-ACOD-U-0099-HP");
5697 iHeapSize = 0x20000;
5698 for (TUint i=0; i<5; i++)
5700 iExpectedSrcBytesProcessed[i] = 5000;
5701 iExpectedDstBytesAdded[i] = 10000;
5703 if((i%2)==0)//even i
5704 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
5706 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5711 * PCMU8 To PCM16 Pass in large buffers
5712 * @test Req. under test REQ172.6.4, REQ172.6.5
5714 TVerdict CTest_MMF_ACOD_U_0099::DoTestStepL()
5716 const TUid codecUid = {KMmfUidCodecAudioU8ToPCMS16};
5717 TBool testOK = EFalse;
5718 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
5722 INFO_PRINTF2(_L("Test left with status %d"), err);
5727 INFO_PRINTF1(_L("Test failed"));
5734 //------------------------------------------------------------------
5739 CTest_MMF_ACOD_U_0100::CTest_MMF_ACOD_U_0100()
5741 // store the name of this test case
5742 // this is the name that is used by the script file
5743 // Each test step initialises it's own name
5744 iTestStepName = _L("MM-MMF-ACOD-U-0100-HP");
5746 for (TUint i=0; i<5; i++)
5748 iExpectedSrcBytesProcessed[i] = 0x800;
5749 iExpectedDstBytesAdded[i] = 0x1000;
5751 if((i%2)==0)//even i
5752 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
5754 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5759 * PCMU8 To PCM16 Pass in default sized buffers
5760 * @test Req. under test REQ172.6.4, REQ172.6.5
5762 TVerdict CTest_MMF_ACOD_U_0100::DoTestStepL()
5764 const TUid codecUid = {KMmfUidCodecAudioU8ToPCMS16};
5765 TBool testOK = EFalse;
5766 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
5770 INFO_PRINTF2(_L("Test left with status %d"), err);
5775 INFO_PRINTF1(_L("Test failed"));
5782 //------------------------------------------------------------------
5787 CTest_MMF_ACOD_U_0101::CTest_MMF_ACOD_U_0101()
5789 // store the name of this test case
5790 // this is the name that is used by the script file
5791 // Each test step initialises it's own name
5792 iTestStepName = _L("MM-MMF-ACOD-U-0101-HP");
5794 for (TUint i=0; i<5; i++)
5796 iExpectedSrcBytesProcessed[i] = 0x800;
5797 iExpectedDstBytesAdded[i] = 0x1000;
5799 if((i%2)==0)//even i
5800 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
5802 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5807 * PCMU8 To PCM16 Pass in buffers with different max length and length
5808 * @test Req. under test REQ172.6.4, REQ172.6.5
5810 TVerdict CTest_MMF_ACOD_U_0101::DoTestStepL()
5812 const TUid codecUid = {KMmfUidCodecAudioU8ToPCMS16};
5813 TBool testOK = EFalse;
5814 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
5818 INFO_PRINTF2(_L("Test left with status %d"), err);
5823 INFO_PRINTF1(_L("Test failed"));
5830 //------------------------------------------------------------------
5835 CTest_MMF_ACOD_U_0102::CTest_MMF_ACOD_U_0102()
5837 // store the name of this test case
5838 // this is the name that is used by the script file
5839 // Each test step initialises it's own name
5840 iTestStepName = _L("MM-MMF-ACOD-U-0102-HP");
5842 for (TUint i=0; i<5; i++)
5844 iExpectedSrcBytesProcessed[i] = 0x800;
5845 iExpectedDstBytesAdded[i] = 0x1000;
5846 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5851 * PCMU8 To PCM16 Pass in buffers of optimum size
5852 * @test Req. under test REQ172.6.4, REQ172.6.5
5854 TVerdict CTest_MMF_ACOD_U_0102::DoTestStepL()
5856 const TUid codecUid = {KMmfUidCodecAudioU8ToPCMS16};
5857 TBool testOK = EFalse;
5858 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU8ToPCM16OptimumSrc, KPCMU8ToPCM16OptimumDst));
5862 INFO_PRINTF2(_L("Test left with status %d"), err);
5867 INFO_PRINTF1(_L("Test failed"));
5874 //------------------------------------------------------------------
5879 CTest_MMF_ACOD_U_0103::CTest_MMF_ACOD_U_0103()
5881 // store the name of this test case
5882 // this is the name that is used by the script file
5883 // Each test step initialises it's own name
5884 iTestStepName = _L("MM-MMF-ACOD-U-0103-HP");
5888 * PCMU8 To PCM16 Reposition source pointer during conversion
5889 * @test Req. under test REQ172.11
5891 TVerdict CTest_MMF_ACOD_U_0103::DoTestStepL()
5893 const TUid codecUid = {KMmfUidCodecAudioU8ToPCMS16};
5894 TBool testOK = EFalse;
5895 INFO_PRINTF1(_L(">> The PCMU8 to PCM16 codec doesn't currently store data between calls to ProcessL"));
5897 TRAPD(err, testOK = TestRepositionL(codecUid, KPCMU8ToPCM16OptimumSrc, KPCMU8ToPCM16OptimumDst+30));
5901 INFO_PRINTF2(_L("Test left with status %d"), err);
5906 INFO_PRINTF1(_L("Test failed"));
5913 //------------------------------------------------------------------
5919 CTest_MMF_ACOD_U_0104::CTest_MMF_ACOD_U_0104()
5921 // store the name of this test case
5922 // this is the name that is used by the script file
5923 // Each test step initialises it's own name
5924 iTestStepName = _L("MM-MMF-ACOD-U-0104-HP");
5928 * MULAW To PCM16 Instantiate codec by FourCC Codes
5929 * @test Req. under test REQ172.6.2, REQ172.11.13
5931 TVerdict CTest_MMF_ACOD_U_0104::DoTestStepL()
5933 TBool testOK = EFalse;
5934 TRAPD(err, testOK = TestNewL(KMMFFourCCCodeMuLAW, KMMFFourCCCodePCM16));
5938 INFO_PRINTF2(_L("Test left with status %d"), err);
5943 INFO_PRINTF1(_L("Test failed"));
5950 //------------------------------------------------------------------
5955 CTest_MMF_ACOD_U_0105::CTest_MMF_ACOD_U_0105()
5957 // store the name of this test case
5958 // this is the name that is used by the script file
5959 // Each test step initialises it's own name
5960 iTestStepName = _L("MM-MMF-ACOD-U-0105-HP");
5964 * MULAW To PCM16 Instantiate codec by UID
5965 * @test Req. under test REQ172.6.1, REQ172.11.13
5967 TVerdict CTest_MMF_ACOD_U_0105::DoTestStepL()
5969 const TUid codecUid = {KMmfUidCodecMulawToPCM16};
5970 TBool testOK = EFalse;
5971 TRAPD(err, testOK = TestNewL(codecUid));
5975 INFO_PRINTF2(_L("Test left with status %d"), err);
5980 INFO_PRINTF1(_L("Test failed"));
5987 //------------------------------------------------------------------
5992 CTest_MMF_ACOD_U_0106::CTest_MMF_ACOD_U_0106()
5994 // store the name of this test case
5995 // this is the name that is used by the script file
5996 // Each test step initialises it's own name
5997 iTestStepName = _L("MM-MMF-ACOD-U-0106-HP");
5999 for (TUint i=0; i<5; i++)
6001 iExpectedSrcBytesProcessed[i] = 50;
6002 iExpectedDstBytesAdded[i] = 100;
6003 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
6008 * MULAW To PCM16 Pass in small source buffers
6009 * @test Req. under test REQ172.6.4, REQ172.6.5
6011 TVerdict CTest_MMF_ACOD_U_0106::DoTestStepL()
6013 const TUid codecUid = {KMmfUidCodecMulawToPCM16};
6014 TBool testOK = EFalse;
6015 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KMulawToPCM16OptimumDst));
6019 INFO_PRINTF2(_L("Test left with status %d"), err);
6024 INFO_PRINTF1(_L("Test failed"));
6031 //------------------------------------------------------------------
6036 CTest_MMF_ACOD_U_0107::CTest_MMF_ACOD_U_0107()
6038 // store the name of this test case
6039 // this is the name that is used by the script file
6040 // Each test step initialises it's own name
6041 iTestStepName = _L("MM-MMF-ACOD-U-0107-HP");
6043 for (TUint i=0; i<5; i++)
6045 iExpectedSrcBytesProcessed[i] = 25;
6046 iExpectedDstBytesAdded[i] = 50;
6047 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
6052 * MULAW To PCM16 Pass in small dest buffers
6053 * @test Req. under test REQ172.6.4, REQ172.6.5
6055 TVerdict CTest_MMF_ACOD_U_0107::DoTestStepL()
6057 const TUid codecUid = {KMmfUidCodecMulawToPCM16};
6058 TBool testOK = EFalse;
6059 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMulawToPCM16OptimumSrc, KSmallBufferSize));
6063 INFO_PRINTF2(_L("Test left with status %d"), err);
6068 INFO_PRINTF1(_L("Test failed"));
6075 //------------------------------------------------------------------
6080 CTest_MMF_ACOD_U_0108::CTest_MMF_ACOD_U_0108()
6082 // store the name of this test case
6083 // this is the name that is used by the script file
6084 // Each test step initialises it's own name
6085 iTestStepName = _L("MM-MMF-ACOD-U-0108-HP");
6086 iHeapSize = 0x20000;
6087 for (TUint i=0; i<5; i++)
6089 iExpectedSrcBytesProcessed[i] = 5000;
6090 iExpectedDstBytesAdded[i] = 10000;
6092 if((i%2)==0)//even i
6093 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
6095 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
6100 * MULAW To PCM16 Pass in large buffers
6101 * @test Req. under test REQ172.6.4, REQ172.6.5
6103 TVerdict CTest_MMF_ACOD_U_0108::DoTestStepL()
6105 const TUid codecUid = {KMmfUidCodecMulawToPCM16};
6106 TBool testOK = EFalse;
6107 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
6111 INFO_PRINTF2(_L("Test left with status %d"), err);
6116 INFO_PRINTF1(_L("Test failed"));
6123 //------------------------------------------------------------------
6128 CTest_MMF_ACOD_U_0109::CTest_MMF_ACOD_U_0109()
6130 // store the name of this test case
6131 // this is the name that is used by the script file
6132 // Each test step initialises it's own name
6133 iTestStepName = _L("MM-MMF-ACOD-U-0109-HP");
6135 for (TUint i=0; i<5; i++)
6137 iExpectedSrcBytesProcessed[i] = 0x800;
6138 iExpectedDstBytesAdded[i] = 0x1000;
6140 if((i%2)==0)//even i
6141 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
6143 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
6148 * MULAW To PCM16 Pass in default sized buffers
6149 * @test Req. under test REQ172.6.4, REQ172.6.5
6151 TVerdict CTest_MMF_ACOD_U_0109::DoTestStepL()
6153 const TUid codecUid = {KMmfUidCodecMulawToPCM16};
6154 TBool testOK = EFalse;
6155 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
6159 INFO_PRINTF2(_L("Test left with status %d"), err);
6164 INFO_PRINTF1(_L("Test failed"));
6171 //------------------------------------------------------------------
6176 CTest_MMF_ACOD_U_0110::CTest_MMF_ACOD_U_0110()
6178 // store the name of this test case
6179 // this is the name that is used by the script file
6180 // Each test step initialises it's own name
6181 iTestStepName = _L("MM-MMF-ACOD-U-0110-HP");
6183 for (TUint i=0; i<5; i++)
6185 iExpectedSrcBytesProcessed[i] = 0x800;
6186 iExpectedDstBytesAdded[i] = 0x1000;
6188 if((i%2)==0)//even i
6189 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
6191 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
6196 * MULAW To PCM16 Pass in buffers with different max length and length
6197 * @test Req. under test REQ172.6.4, REQ172.6.5
6199 TVerdict CTest_MMF_ACOD_U_0110::DoTestStepL()
6201 const TUid codecUid = {KMmfUidCodecMulawToPCM16};
6202 TBool testOK = EFalse;
6203 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
6207 INFO_PRINTF2(_L("Test left with status %d"), err);
6212 INFO_PRINTF1(_L("Test failed"));
6219 //------------------------------------------------------------------
6224 CTest_MMF_ACOD_U_0111::CTest_MMF_ACOD_U_0111()
6226 // store the name of this test case
6227 // this is the name that is used by the script file
6228 // Each test step initialises it's own name
6229 iTestStepName = _L("MM-MMF-ACOD-U-0111-HP");
6231 for (TUint i=0; i<5; i++)
6233 iExpectedSrcBytesProcessed[i] = 0x800;
6234 iExpectedDstBytesAdded[i] = 0x1000;
6235 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
6240 * MULAW To PCM16 Pass in buffers of optimum size
6241 * @test Req. under test REQ172.6.4, REQ172.6.5
6243 TVerdict CTest_MMF_ACOD_U_0111::DoTestStepL()
6245 const TUid codecUid = {KMmfUidCodecMulawToPCM16};
6246 TBool testOK = EFalse;
6247 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMulawToPCM16OptimumSrc, KMulawToPCM16OptimumDst));
6251 INFO_PRINTF2(_L("Test left with status %d"), err);
6256 INFO_PRINTF1(_L("Test failed"));
6263 //------------------------------------------------------------------
6268 CTest_MMF_ACOD_U_0112::CTest_MMF_ACOD_U_0112()
6270 // store the name of this test case
6271 // this is the name that is used by the script file
6272 // Each test step initialises it's own name
6273 iTestStepName = _L("MM-MMF-ACOD-U-0112-HP");
6277 * MULAW To PCM16 Reposition source pointer during conversion
6278 * @test Req. under test REQ172.11
6280 TVerdict CTest_MMF_ACOD_U_0112::DoTestStepL()
6282 const TUid codecUid = {KMmfUidCodecMulawToPCM16};
6283 TBool testOK = EFalse;
6284 INFO_PRINTF1(_L(">> The MULAW To PCM16 codec doesn't currently store data between calls to ProcessL"));
6286 TRAPD(err, testOK = TestRepositionL(codecUid, KMulawToPCM16OptimumSrc, KMulawToPCM16OptimumDst+30));
6290 INFO_PRINTF2(_L("Test left with status %d"), err);
6295 INFO_PRINTF1(_L("Test failed"));
6302 //------------------------------------------------------------------
6307 CTest_MMF_ACOD_U_0113::CTest_MMF_ACOD_U_0113()
6309 // store the name of this test case
6310 // this is the name that is used by the script file
6311 // Each test step initialises it's own name
6312 iTestStepName = _L("MM-MMF-ACOD-U-0113-HP");
6316 * PCM16 To MULAW Instantiate codec by FourCC Codes
6317 * @test Req. under test REQ172.6.2, REQ172.11.15
6319 TVerdict CTest_MMF_ACOD_U_0113::DoTestStepL()
6321 TBool testOK = EFalse;
6322 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeMuLAW));
6326 INFO_PRINTF2(_L("Test left with status %d"), err);
6331 INFO_PRINTF1(_L("Test failed"));
6338 //------------------------------------------------------------------
6343 CTest_MMF_ACOD_U_0114::CTest_MMF_ACOD_U_0114()
6345 // store the name of this test case
6346 // this is the name that is used by the script file
6347 // Each test step initialises it's own name
6348 iTestStepName = _L("MM-MMF-ACOD-U-0114-HP");
6352 * PCM16 To MULAW Instantiate codec by UID
6353 * @test Req. under test REQ172.6.1, REQ172.11.15
6355 TVerdict CTest_MMF_ACOD_U_0114::DoTestStepL()
6357 const TUid codecUid = {KMmfUidCodecPCM16ToMulaw};
6358 TBool testOK = EFalse;
6359 TRAPD(err, testOK = TestNewL(codecUid));
6363 INFO_PRINTF2(_L("Test left with status %d"), err);
6368 INFO_PRINTF1(_L("Test failed"));
6375 //------------------------------------------------------------------
6380 CTest_MMF_ACOD_U_0115::CTest_MMF_ACOD_U_0115()
6382 // store the name of this test case
6383 // this is the name that is used by the script file
6384 // Each test step initialises it's own name
6385 iTestStepName = _L("MM-MMF-ACOD-U-0115-HP");
6387 for (TUint i=0; i<5; i++)
6389 iExpectedSrcBytesProcessed[i] = 50;
6390 iExpectedDstBytesAdded[i] = 25;
6391 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
6396 * PCM16 To MULAW Pass in small source buffers
6397 * @test Req. under test REQ172.6.4, REQ172.6.5
6399 TVerdict CTest_MMF_ACOD_U_0115::DoTestStepL()
6401 const TUid codecUid = {KMmfUidCodecPCM16ToMulaw};
6402 TBool testOK = EFalse;
6403 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToMulawOptimumDst));
6407 INFO_PRINTF2(_L("Test left with status %d"), err);
6412 INFO_PRINTF1(_L("Test failed"));
6419 //------------------------------------------------------------------
6424 CTest_MMF_ACOD_U_0116::CTest_MMF_ACOD_U_0116()
6426 // store the name of this test case
6427 // this is the name that is used by the script file
6428 // Each test step initialises it's own name
6429 iTestStepName = _L("MM-MMF-ACOD-U-0116-HP");
6431 for (TUint i=0; i<5; i++)
6433 iExpectedSrcBytesProcessed[i] = 100;
6434 iExpectedDstBytesAdded[i] = 50;
6435 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
6440 * PCM16 To MULAW Pass in small dest buffers
6441 * @test Req. under test REQ172.6.4, REQ172.6.5
6443 TVerdict CTest_MMF_ACOD_U_0116::DoTestStepL()
6445 const TUid codecUid = {KMmfUidCodecPCM16ToMulaw};
6446 TBool testOK = EFalse;
6447 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToMulawOptimumSrc, KSmallBufferSize));
6451 INFO_PRINTF2(_L("Test left with status %d"), err);
6456 INFO_PRINTF1(_L("Test failed"));
6463 //------------------------------------------------------------------
6468 CTest_MMF_ACOD_U_0117::CTest_MMF_ACOD_U_0117()
6470 // store the name of this test case
6471 // this is the name that is used by the script file
6472 // Each test step initialises it's own name
6473 iTestStepName = _L("MM-MMF-ACOD-U-0117-HP");
6474 iHeapSize = 0x20000;
6476 for (TUint i=0; i<5; i++)
6478 iExpectedSrcBytesProcessed[i] = 10000;
6479 iExpectedDstBytesAdded[i] = 5000;
6481 if((i%2)==0)//even i
6482 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
6484 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
6489 * PCM16 To MULAW Pass in large buffers
6490 * @test Req. under test REQ172.6.4, REQ172.6.5
6492 TVerdict CTest_MMF_ACOD_U_0117::DoTestStepL()
6494 const TUid codecUid = {KMmfUidCodecPCM16ToMulaw};
6495 TBool testOK = EFalse;
6496 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
6500 INFO_PRINTF2(_L("Test left with status %d"), err);
6505 INFO_PRINTF1(_L("Test failed"));
6512 //------------------------------------------------------------------
6517 CTest_MMF_ACOD_U_0118::CTest_MMF_ACOD_U_0118()
6519 // store the name of this test case
6520 // this is the name that is used by the script file
6521 // Each test step initialises it's own name
6522 iTestStepName = _L("MM-MMF-ACOD-U-0118-HP");
6524 for (TUint i=0; i<5; i++)
6526 iExpectedSrcBytesProcessed[i] = 0x1000;
6527 iExpectedDstBytesAdded[i] = 0x800;
6529 if((i%2)==0)//even i
6530 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
6532 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
6537 * PCM16 To MULAW Pass in default sized buffers
6538 * @test Req. under test REQ172.6.4, REQ172.6.5
6540 TVerdict CTest_MMF_ACOD_U_0118::DoTestStepL()
6542 const TUid codecUid = {KMmfUidCodecPCM16ToMulaw};
6543 TBool testOK = EFalse;
6544 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
6548 INFO_PRINTF2(_L("Test left with status %d"), err);
6553 INFO_PRINTF1(_L("Test failed"));
6560 //------------------------------------------------------------------
6565 CTest_MMF_ACOD_U_0119::CTest_MMF_ACOD_U_0119()
6567 // store the name of this test case
6568 // this is the name that is used by the script file
6569 // Each test step initialises it's own name
6570 iTestStepName = _L("MM-MMF-ACOD-U-0119-HP");
6572 for (TUint i=0; i<5; i++)
6574 iExpectedSrcBytesProcessed[i] = 0x1000;
6575 iExpectedDstBytesAdded[i] = 0x800;
6577 if((i%2)==0)//even i
6578 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
6580 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
6585 * PCM16 To MULAW Pass in buffers with different max length and length
6586 * @test Req. under test REQ172.6.4, REQ172.6.5
6588 TVerdict CTest_MMF_ACOD_U_0119::DoTestStepL()
6590 const TUid codecUid = {KMmfUidCodecPCM16ToMulaw};
6591 TBool testOK = EFalse;
6592 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
6596 INFO_PRINTF2(_L("Test left with status %d"), err);
6601 INFO_PRINTF1(_L("Test failed"));
6608 //------------------------------------------------------------------
6613 CTest_MMF_ACOD_U_0120::CTest_MMF_ACOD_U_0120()
6615 // store the name of this test case
6616 // this is the name that is used by the script file
6617 // Each test step initialises it's own name
6618 iTestStepName = _L("MM-MMF-ACOD-U-0120-HP");
6620 for (TUint i=0; i<5; i++)
6622 iExpectedSrcBytesProcessed[i] = 0x1000;
6623 iExpectedDstBytesAdded[i] = 0x800;
6624 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
6629 * PCM16 To MULAW Pass in buffers of optimum size
6630 * @test Req. under test REQ172.6.4, REQ172.6.5
6632 TVerdict CTest_MMF_ACOD_U_0120::DoTestStepL()
6634 const TUid codecUid = {KMmfUidCodecPCM16ToMulaw};
6635 TBool testOK = EFalse;
6636 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToMulawOptimumSrc, KPCM16ToMulawOptimumDst));
6640 INFO_PRINTF2(_L("Test left with status %d"), err);
6645 INFO_PRINTF1(_L("Test failed"));
6652 //------------------------------------------------------------------
6657 CTest_MMF_ACOD_U_0121::CTest_MMF_ACOD_U_0121()
6659 // store the name of this test case
6660 // this is the name that is used by the script file
6661 // Each test step initialises it's own name
6662 iTestStepName = _L("MM-MMF-ACOD-U-0121-HP");
6666 * PCM16 To MULAW Reposition source pointer during conversion
6667 * @test Req. under test REQ172.11
6669 TVerdict CTest_MMF_ACOD_U_0121::DoTestStepL()
6671 const TUid codecUid = {KMmfUidCodecPCM16ToMulaw};
6672 TBool testOK = EFalse;
6674 INFO_PRINTF1(_L(">> The PCM16 to MULAW codec doesn't currently store data between calls to ProcessL"));
6675 TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
6679 INFO_PRINTF2(_L("Test left with status %d"), err);
6684 INFO_PRINTF1(_L("Test failed"));
6691 //------------------------------------------------------------------
6696 CTest_MMF_ACOD_U_0122::CTest_MMF_ACOD_U_0122()
6698 // store the name of this test case
6699 // this is the name that is used by the script file
6700 // Each test step initialises it's own name
6701 iTestStepName = _L("MM-MMF-ACOD-U-0122-HP");
6705 * IMAD to PCM16 Instantiate codec by FourCC Codes
6706 * @test Req. under test REQ172.6.2, REQ172.11.12
6708 TVerdict CTest_MMF_ACOD_U_0122::DoTestStepL()
6710 TBool testOK = EFalse;
6711 TRAPD(err, testOK = TestNewL(KMMFFourCCCodeIMAD, KMMFFourCCCodePCM16));
6715 INFO_PRINTF2(_L("Test left with status %d"), err);
6720 INFO_PRINTF1(_L("Test failed"));
6727 //------------------------------------------------------------------
6732 CTest_MMF_ACOD_U_0123::CTest_MMF_ACOD_U_0123()
6734 // store the name of this test case
6735 // this is the name that is used by the script file
6736 // Each test step initialises it's own name
6737 iTestStepName = _L("MM-MMF-ACOD-U-0123-HP");
6741 * IMAD to PCM16 Instantiate codec by UID
6742 * @test Req. under test REQ172.6.1, REQ172.11.12
6744 TVerdict CTest_MMF_ACOD_U_0123::DoTestStepL()
6746 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16};
6747 TBool testOK = EFalse;
6748 TRAPD(err, testOK = TestNewL(codecUid));
6752 INFO_PRINTF2(_L("Test left with status %d"), err);
6757 INFO_PRINTF1(_L("Test failed"));
6764 //------------------------------------------------------------------
6769 CTest_MMF_ACOD_U_0124::CTest_MMF_ACOD_U_0124()
6771 // store the name of this test case
6772 // this is the name that is used by the script file
6773 // Each test step initialises it's own name
6774 iTestStepName = _L("MM-MMF-ACOD-U-0124-HP");
6776 for (TUint i=0; i<5; i++)
6778 iExpectedSrcBytesProcessed[i] = 50;
6779 iExpectedDstBytesAdded[i] = 0;
6780 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
6785 * IMAD to PCM16 Pass in small source buffers
6786 * @test Req. under test REQ172.6.4, REQ172.6.5
6788 TVerdict CTest_MMF_ACOD_U_0124::DoTestStepL()
6790 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16};
6791 TBool testOK = EFalse;
6792 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KAdpcmToPCM16OptimumDst));
6796 INFO_PRINTF2(_L("Test left with status %d"), err);
6801 INFO_PRINTF1(_L("Test failed"));
6808 //------------------------------------------------------------------
6813 CTest_MMF_ACOD_U_0125::CTest_MMF_ACOD_U_0125()
6815 // store the name of this test case
6816 // this is the name that is used by the script file
6817 // Each test step initialises it's own name
6818 iTestStepName = _L("MM-MMF-ACOD-U-0125-HP");
6820 iExpectedLeaveErrorCode = KErrArgument;
6824 * IMAD to PCM16 Pass in small dest buffers
6825 * @test Req. under test REQ172.6.4, REQ172.6.5
6827 TVerdict CTest_MMF_ACOD_U_0125::DoTestStepL()
6829 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16};
6830 TBool testOK = EFalse;
6831 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAdpcmToPCM16OptimumSrc, KSmallBufferSize));
6835 INFO_PRINTF2(_L("Test left with status %d"), err);
6840 INFO_PRINTF1(_L("Test failed"));
6847 //------------------------------------------------------------------
6852 CTest_MMF_ACOD_U_0126::CTest_MMF_ACOD_U_0126()
6854 // store the name of this test case
6855 // this is the name that is used by the script file
6856 // Each test step initialises it's own name
6857 iTestStepName = _L("MM-MMF-ACOD-U-0126-HP");
6858 iHeapSize = 0x20000;
6860 for (TUint i=0; i<5; i++)
6863 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
6865 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
6870 * IMAD to PCM16 Pass in large buffers
6871 * @test Req. under test REQ172.6.4, REQ172.6.5
6873 TVerdict CTest_MMF_ACOD_U_0126::DoTestStepL()
6875 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16};
6876 TBool testOK = EFalse;
6877 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
6881 INFO_PRINTF2(_L("Test left with status %d"), err);
6886 INFO_PRINTF1(_L("Test failed"));
6893 //------------------------------------------------------------------
6898 CTest_MMF_ACOD_U_0127::CTest_MMF_ACOD_U_0127()
6900 // store the name of this test case
6901 // this is the name that is used by the script file
6902 // Each test step initialises it's own name
6903 iTestStepName = _L("MM-MMF-ACOD-U-0127-HP");
6905 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EProcessIncomplete;
6906 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EProcessIncomplete;
6907 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EProcessIncomplete;
6908 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessComplete;
6909 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EProcessIncomplete;
6913 * IMAD to PCM16 Pass in default sized buffers
6914 * @test Req. under test REQ172.6.4, REQ172.6.5
6916 TVerdict CTest_MMF_ACOD_U_0127::DoTestStepL()
6918 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16};
6919 TBool testOK = EFalse;
6920 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
6924 INFO_PRINTF2(_L("Test left with status %d"), err);
6929 INFO_PRINTF1(_L("Test failed"));
6936 //------------------------------------------------------------------
6941 CTest_MMF_ACOD_U_0128::CTest_MMF_ACOD_U_0128()
6943 // store the name of this test case
6944 // this is the name that is used by the script file
6945 // Each test step initialises it's own name
6946 iTestStepName = _L("MM-MMF-ACOD-U-0128-HP");
6948 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EProcessIncomplete;
6949 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EProcessIncomplete;
6950 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EProcessIncomplete;
6951 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessComplete;
6952 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EProcessIncomplete;
6956 * IMAD to PCM16 Pass in buffers with different max length and length
6957 * @test Req. under test REQ172.6.4, REQ172.6.5
6959 TVerdict CTest_MMF_ACOD_U_0128::DoTestStepL()
6961 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16};
6962 TBool testOK = EFalse;
6963 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
6967 INFO_PRINTF2(_L("Test left with status %d"), err);
6972 INFO_PRINTF1(_L("Test failed"));
6979 //------------------------------------------------------------------
6984 CTest_MMF_ACOD_U_0129::CTest_MMF_ACOD_U_0129()
6986 // store the name of this test case
6987 // this is the name that is used by the script file
6988 // Each test step initialises it's own name
6989 iTestStepName = _L("MM-MMF-ACOD-U-0129-HP");
6991 for (TUint i=0; i<5; i++)
6993 iExpectedSrcBytesProcessed[i] = 0x400;
6994 iExpectedDstBytesAdded[i] = 0xFC8;
6995 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
7000 * IMAD to PCM16 Pass in buffers of optimum size
7001 * @test Req. under test REQ172.6.4, REQ172.6.5
7003 TVerdict CTest_MMF_ACOD_U_0129::DoTestStepL()
7005 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16};
7006 TBool testOK = EFalse;
7007 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAdpcmToPCM16OptimumSrc, KAdpcmToPCM16OptimumDst));
7011 INFO_PRINTF2(_L("Test left with status %d"), err);
7016 INFO_PRINTF1(_L("Test failed"));
7023 //------------------------------------------------------------------
7028 CTest_MMF_ACOD_U_0130::CTest_MMF_ACOD_U_0130()
7030 // store the name of this test case
7031 // this is the name that is used by the script file
7032 // Each test step initialises it's own name
7033 iTestStepName = _L("MM-MMF-ACOD-U-0130-HP");
7037 * IMAD to PCM16 Reposition source pointer during conversion
7038 * @test Req. under test REQ172.11
7040 TVerdict CTest_MMF_ACOD_U_0130::DoTestStepL()
7042 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16};
7043 TBool testOK = EFalse;
7045 TUint src = (KAdpcmToPCM16OptimumSrc/4) + 10;
7047 INFO_PRINTF1(_L(">> The IMAD to PCM16 codec stores data between calls to ProcessL"));
7048 TRAPD(err, testOK = TestRepositionL(codecUid, src, KAdpcmToPCM16OptimumDst));
7052 INFO_PRINTF2(_L("Test left with status %d"), err);
7057 INFO_PRINTF1(_L("Test failed"));
7064 //------------------------------------------------------------------
7069 CTest_MMF_ACOD_U_0131::CTest_MMF_ACOD_U_0131()
7071 // store the name of this test case
7072 // this is the name that is used by the script file
7073 // Each test step initialises it's own name
7074 iTestStepName = _L("MM-MMF-ACOD-U-0131-HP");
7078 * PCM16 to IMAD Instantiate codec by FourCC Codes
7079 * @test Req. under test REQ172.6.2, REQ172.11.14
7081 TVerdict CTest_MMF_ACOD_U_0131::DoTestStepL()
7083 TBool testOK = EFalse;
7084 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeIMAD));
7088 INFO_PRINTF2(_L("Test left with status %d"), err);
7093 INFO_PRINTF1(_L("Test failed"));
7100 //------------------------------------------------------------------
7105 CTest_MMF_ACOD_U_0132::CTest_MMF_ACOD_U_0132()
7107 // store the name of this test case
7108 // this is the name that is used by the script file
7109 // Each test step initialises it's own name
7110 iTestStepName = _L("MM-MMF-ACOD-U-0132-HP");
7114 * PCM16 to IMAD Instantiate codec by UID
7115 * @test Req. under test REQ172.6.1, REQ172.11.14
7117 TVerdict CTest_MMF_ACOD_U_0132::DoTestStepL()
7119 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCM};
7120 TBool testOK = EFalse;
7121 TRAPD(err, testOK = TestNewL(codecUid));
7125 INFO_PRINTF2(_L("Test left with status %d"), err);
7130 INFO_PRINTF1(_L("Test failed"));
7137 //------------------------------------------------------------------
7142 CTest_MMF_ACOD_U_0133::CTest_MMF_ACOD_U_0133()
7144 // store the name of this test case
7145 // this is the name that is used by the script file
7146 // Each test step initialises it's own name
7147 iTestStepName = _L("MM-MMF-ACOD-U-0133-HP");
7149 for (TUint i=0; i<5; i++)
7151 iExpectedSrcBytesProcessed[i] = 50;
7152 iExpectedDstBytesAdded[i] = 0;
7153 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
7158 * IMAD to PCM16 Pass in small source buffers
7159 * @test Req. under test REQ172.6.4, REQ172.6.5
7161 TVerdict CTest_MMF_ACOD_U_0133::DoTestStepL()
7163 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCM};
7164 TBool testOK = EFalse;
7165 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToAdpcmOptimumDst));
7169 INFO_PRINTF2(_L("Test left with status %d"), err);
7174 INFO_PRINTF1(_L("Test failed"));
7181 //------------------------------------------------------------------
7186 CTest_MMF_ACOD_U_0134::CTest_MMF_ACOD_U_0134()
7188 // store the name of this test case
7189 // this is the name that is used by the script file
7190 // Each test step initialises it's own name
7191 iTestStepName = _L("MM-MMF-ACOD-U-0134-HP");
7193 iExpectedLeaveErrorCode = KErrArgument;
7197 * PCM16 to IMAD Pass in small dest buffers
7198 * @test Req. under test REQ172.6.4, REQ172.6.5
7200 TVerdict CTest_MMF_ACOD_U_0134::DoTestStepL()
7202 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCM};
7203 TBool testOK = EFalse;
7204 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAdpcmOptimumSrc, KSmallBufferSize));
7208 INFO_PRINTF2(_L("Test left with status %d"), err);
7213 INFO_PRINTF1(_L("Test failed"));
7220 //------------------------------------------------------------------
7225 CTest_MMF_ACOD_U_0135::CTest_MMF_ACOD_U_0135()
7227 // store the name of this test case
7228 // this is the name that is used by the script file
7229 // Each test step initialises it's own name
7230 iTestStepName = _L("MM-MMF-ACOD-U-0135-HP");
7231 iHeapSize = 0x20000;
7232 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EDstNotFilled;
7233 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EDstNotFilled;
7234 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EDstNotFilled;
7235 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessIncomplete;
7236 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EDstNotFilled;
7240 * PCM16 to IMAD Pass in large buffers
7241 * @test Req. under test REQ172.6.4, REQ172.6.5
7243 TVerdict CTest_MMF_ACOD_U_0135::DoTestStepL()
7245 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCM};
7246 TBool testOK = EFalse;
7247 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
7251 INFO_PRINTF2(_L("Test left with status %d"), err);
7256 INFO_PRINTF1(_L("Test failed"));
7263 //------------------------------------------------------------------
7268 CTest_MMF_ACOD_U_0136::CTest_MMF_ACOD_U_0136()
7270 // store the name of this test case
7271 // this is the name that is used by the script file
7272 // Each test step initialises it's own name
7273 iTestStepName = _L("MM-MMF-ACOD-U-0136-HP");
7275 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EDstNotFilled;
7276 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EDstNotFilled;
7277 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EDstNotFilled;
7278 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessIncomplete;
7279 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EDstNotFilled;
7283 * PCM16 to IMAD Pass in default sized buffers
7284 * @test Req. under test REQ172.6.4, REQ172.6.5
7286 TVerdict CTest_MMF_ACOD_U_0136::DoTestStepL()
7288 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCM};
7289 TBool testOK = EFalse;
7290 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
7294 INFO_PRINTF2(_L("Test left with status %d"), err);
7299 INFO_PRINTF1(_L("Test failed"));
7306 //------------------------------------------------------------------
7311 CTest_MMF_ACOD_U_0137::CTest_MMF_ACOD_U_0137()
7313 // store the name of this test case
7314 // this is the name that is used by the script file
7315 // Each test step initialises it's own name
7316 iTestStepName = _L("MM-MMF-ACOD-U-0137-HP");
7318 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EDstNotFilled;
7319 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EDstNotFilled;
7320 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EDstNotFilled;
7321 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessIncomplete;
7322 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EDstNotFilled;
7326 * PCM16 to IMAD Pass in buffers with different max length and length
7327 * @test Req. under test REQ172.6.4, REQ172.6.5
7329 TVerdict CTest_MMF_ACOD_U_0137::DoTestStepL()
7331 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCM};
7332 TBool testOK = EFalse;
7333 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
7337 INFO_PRINTF2(_L("Test left with status %d"), err);
7342 INFO_PRINTF1(_L("Test failed"));
7349 //------------------------------------------------------------------
7354 CTest_MMF_ACOD_U_0138::CTest_MMF_ACOD_U_0138()
7356 // store the name of this test case
7357 // this is the name that is used by the script file
7358 // Each test step initialises it's own name
7359 iTestStepName = _L("MM-MMF-ACOD-U-0138-HP");
7361 for (TUint i=0; i<5; i++)
7363 iExpectedSrcBytesProcessed[i] = 0xFC8;
7364 iExpectedDstBytesAdded[i] = 0x400;
7365 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
7370 * PCM16 to IMAD Pass in buffers of optimum size
7371 * @test Req. under test REQ172.6.4, REQ172.6.5
7373 TVerdict CTest_MMF_ACOD_U_0138::DoTestStepL()
7375 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCM};
7376 TBool testOK = EFalse;
7377 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAdpcmOptimumSrc, KPCM16ToAdpcmOptimumDst));
7381 INFO_PRINTF2(_L("Test left with status %d"), err);
7386 INFO_PRINTF1(_L("Test failed"));
7393 //------------------------------------------------------------------
7398 CTest_MMF_ACOD_U_0139::CTest_MMF_ACOD_U_0139()
7400 // store the name of this test case
7401 // this is the name that is used by the script file
7402 // Each test step initialises it's own name
7403 iTestStepName = _L("MM-MMF-ACOD-U-0139-HP");
7407 * PCM16 to IMAD Reposition source pointer during conversion
7408 * @test Req. under test REQ172.11
7410 TVerdict CTest_MMF_ACOD_U_0139::DoTestStepL()
7412 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCM};
7413 TBool testOK = EFalse;
7415 TUint src = (KPCM16ToAdpcmOptimumSrc/4) + 10;
7417 INFO_PRINTF1(_L(">> The PCM16 to IMAD codec stores data between calls to ProcessL"));
7418 TRAPD(err, testOK = TestRepositionL(codecUid, src, KPCM16ToAdpcmOptimumDst));
7422 INFO_PRINTF2(_L("Test left with status %d"), err);
7427 INFO_PRINTF1(_L("Test failed"));
7434 //------------------------------------------------------------------
7439 CTest_MMF_ACOD_U_0140::CTest_MMF_ACOD_U_0140()
7441 // store the name of this test case
7442 // this is the name that is used by the script file
7443 // Each test step initialises it's own name
7444 iTestStepName = _L("MM-MMF-ACOD-U-0140-HP");
7448 * IMAS to PCM16 Instantiate codec by FourCC Codes
7449 * @test Req. under test REQ172.6.2, REQ172.11.17
7451 TVerdict CTest_MMF_ACOD_U_0140::DoTestStepL()
7453 TBool testOK = EFalse;
7454 TRAPD(err, testOK = TestNewL(KMMFFourCCCodeIMAS, KMMFFourCCCodePCM16));
7458 INFO_PRINTF2(_L("Test left with status %d"), err);
7463 INFO_PRINTF1(_L("Test failed"));
7470 //------------------------------------------------------------------
7475 CTest_MMF_ACOD_U_0141::CTest_MMF_ACOD_U_0141()
7477 // store the name of this test case
7478 // this is the name that is used by the script file
7479 // Each test step initialises it's own name
7480 iTestStepName = _L("MM-MMF-ACOD-U-0141-HP");
7484 * IMAS to PCM16 Instantiate codec by UID
7485 * @test Req. under test REQ172.6.1, REQ172.11.17
7487 TVerdict CTest_MMF_ACOD_U_0141::DoTestStepL()
7489 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16Stereo};
7490 TBool testOK = EFalse;
7491 TRAPD(err, testOK = TestNewL(codecUid));
7495 INFO_PRINTF2(_L("Test left with status %d"), err);
7500 INFO_PRINTF1(_L("Test failed"));
7507 //------------------------------------------------------------------
7512 CTest_MMF_ACOD_U_0142::CTest_MMF_ACOD_U_0142()
7514 // store the name of this test case
7515 // this is the name that is used by the script file
7516 // Each test step initialises it's own name
7517 iTestStepName = _L("MM-MMF-ACOD-U-0142-HP");
7519 for (TUint i=0; i<5; i++)
7521 iExpectedSrcBytesProcessed[i] = 50;
7522 iExpectedDstBytesAdded[i] = 0;
7523 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
7528 * IMAS to PCM16 Pass in small source buffers
7529 * @test Req. under test REQ172.6.4, REQ172.6.5
7531 TVerdict CTest_MMF_ACOD_U_0142::DoTestStepL()
7533 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16Stereo};
7534 TBool testOK = EFalse;
7535 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KStereoAdpcmToPCM16OptimumDst));
7539 INFO_PRINTF2(_L("Test left with status %d"), err);
7544 INFO_PRINTF1(_L("Test failed"));
7551 //------------------------------------------------------------------
7556 CTest_MMF_ACOD_U_0143::CTest_MMF_ACOD_U_0143()
7558 // store the name of this test case
7559 // this is the name that is used by the script file
7560 // Each test step initialises it's own name
7561 iTestStepName = _L("MM-MMF-ACOD-U-0143-HP");
7563 iExpectedLeaveErrorCode = KErrArgument;
7567 * IMAS to PCM16 Pass in small dest buffers
7568 * @test Req. under test REQ172.6.4, REQ172.6.5
7570 TVerdict CTest_MMF_ACOD_U_0143::DoTestStepL()
7572 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16Stereo};
7573 TBool testOK = EFalse;
7574 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KStereoAdpcmToPCM16OptimumSrc, KSmallBufferSize));
7578 INFO_PRINTF2(_L("Test left with status %d"), err);
7583 INFO_PRINTF1(_L("Test failed"));
7590 //------------------------------------------------------------------
7595 CTest_MMF_ACOD_U_0144::CTest_MMF_ACOD_U_0144()
7597 // store the name of this test case
7598 // this is the name that is used by the script file
7599 // Each test step initialises it's own name
7600 iTestStepName = _L("MM-MMF-ACOD-U-0144-HP");
7601 iHeapSize = 0x20000;
7602 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EProcessIncomplete;
7603 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EProcessIncomplete;
7604 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EProcessIncomplete;
7605 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EDstNotFilled;
7606 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EProcessIncomplete;
7610 * IMAS to PCM16 Pass in large buffers
7611 * @test Req. under test REQ172.6.4, REQ172.6.5
7613 TVerdict CTest_MMF_ACOD_U_0144::DoTestStepL()
7615 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16Stereo};
7616 TBool testOK = EFalse;
7617 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
7621 INFO_PRINTF2(_L("Test left with status %d"), err);
7626 INFO_PRINTF1(_L("Test failed"));
7633 //------------------------------------------------------------------
7638 CTest_MMF_ACOD_U_0145::CTest_MMF_ACOD_U_0145()
7640 // store the name of this test case
7641 // this is the name that is used by the script file
7642 // Each test step initialises it's own name
7643 iTestStepName = _L("MM-MMF-ACOD-U-0145-HP");
7645 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EProcessIncomplete;
7646 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EProcessIncomplete;
7647 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EProcessIncomplete;
7648 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessComplete;
7649 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EProcessIncomplete;
7653 * IMAS to PCM16 Pass in default sized buffers
7654 * @test Req. under test REQ172.6.4, REQ172.6.5
7656 TVerdict CTest_MMF_ACOD_U_0145::DoTestStepL()
7658 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16Stereo};
7659 TBool testOK = EFalse;
7660 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
7664 INFO_PRINTF2(_L("Test left with status %d"), err);
7669 INFO_PRINTF1(_L("Test failed"));
7676 //------------------------------------------------------------------
7681 CTest_MMF_ACOD_U_0146::CTest_MMF_ACOD_U_0146()
7683 // store the name of this test case
7684 // this is the name that is used by the script file
7685 // Each test step initialises it's own name
7686 iTestStepName = _L("MM-MMF-ACOD-U-0146-HP");
7688 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EProcessIncomplete;
7689 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EProcessIncomplete;
7690 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EProcessIncomplete;
7691 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessComplete;
7692 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EProcessIncomplete;
7696 * IMAS to PCM16 Pass in buffers with different max length and length
7697 * @test Req. under test REQ172.6.4, REQ172.6.5
7699 TVerdict CTest_MMF_ACOD_U_0146::DoTestStepL()
7701 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16Stereo};
7702 TBool testOK = EFalse;
7703 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
7707 INFO_PRINTF2(_L("Test left with status %d"), err);
7712 INFO_PRINTF1(_L("Test failed"));
7719 //------------------------------------------------------------------
7724 CTest_MMF_ACOD_U_0147::CTest_MMF_ACOD_U_0147()
7726 // store the name of this test case
7727 // this is the name that is used by the script file
7728 // Each test step initialises it's own name
7729 iTestStepName = _L("MM-MMF-ACOD-U-0147-HP");
7731 for (TUint i=0; i<5; i++)
7733 iExpectedSrcBytesProcessed[i] = 0x400;
7734 iExpectedDstBytesAdded[i] = 0xF90;
7735 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
7740 * IMAS to PCM16 Pass in buffers of optimum size
7741 * @test Req. under test REQ172.6.4, REQ172.6.5
7743 TVerdict CTest_MMF_ACOD_U_0147::DoTestStepL()
7745 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16Stereo};
7746 TBool testOK = EFalse;
7747 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KStereoAdpcmToPCM16OptimumSrc, KStereoAdpcmToPCM16OptimumDst));
7751 INFO_PRINTF2(_L("Test left with status %d"), err);
7756 INFO_PRINTF1(_L("Test failed"));
7763 //------------------------------------------------------------------
7768 CTest_MMF_ACOD_U_0148::CTest_MMF_ACOD_U_0148()
7770 // store the name of this test case
7771 // this is the name that is used by the script file
7772 // Each test step initialises it's own name
7773 iTestStepName = _L("MM-MMF-ACOD-U-0148-HP");
7777 * IMAS to PCM16 Reposition source pointer during conversion
7778 * @test Req. under test REQ172.11
7780 TVerdict CTest_MMF_ACOD_U_0148::DoTestStepL()
7782 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16Stereo};
7783 TBool testOK = EFalse;
7785 TUint src = (KStereoAdpcmToPCM16OptimumSrc/4) + 10;
7787 INFO_PRINTF1(_L(">> The IMAS to PCM16 codec stores data between calls to ProcessL"));
7788 TRAPD(err, testOK = TestRepositionL(codecUid, src, KStereoAdpcmToPCM16OptimumDst));
7792 INFO_PRINTF2(_L("Test left with status %d"), err);
7797 INFO_PRINTF1(_L("Test failed"));
7804 //------------------------------------------------------------------
7809 CTest_MMF_ACOD_U_0149::CTest_MMF_ACOD_U_0149()
7811 // store the name of this test case
7812 // this is the name that is used by the script file
7813 // Each test step initialises it's own name
7814 iTestStepName = _L("MM-MMF-ACOD-U-0149-HP");
7818 * PCM16 to IMAS Instantiate codec by FourCC Codes
7819 * @test Req. under test REQ172.6.2, REQ172.11.18
7821 TVerdict CTest_MMF_ACOD_U_0149::DoTestStepL()
7823 TBool testOK = EFalse;
7824 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeIMAS));
7828 INFO_PRINTF2(_L("Test left with status %d"), err);
7833 INFO_PRINTF1(_L("Test failed"));
7840 //------------------------------------------------------------------
7845 CTest_MMF_ACOD_U_0150::CTest_MMF_ACOD_U_0150()
7847 // store the name of this test case
7848 // this is the name that is used by the script file
7849 // Each test step initialises it's own name
7850 iTestStepName = _L("MM-MMF-ACOD-U-0150-HP");
7854 * PCM16 to IMAS Instantiate codec by UID
7855 * @test Req. under test REQ172.6.1, REQ172.11.18
7857 TVerdict CTest_MMF_ACOD_U_0150::DoTestStepL()
7859 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCMStereo};
7860 TBool testOK = EFalse;
7861 TRAPD(err, testOK = TestNewL(codecUid));
7865 INFO_PRINTF2(_L("Test left with status %d"), err);
7870 INFO_PRINTF1(_L("Test failed"));
7877 //------------------------------------------------------------------
7882 CTest_MMF_ACOD_U_0151::CTest_MMF_ACOD_U_0151()
7884 // store the name of this test case
7885 // this is the name that is used by the script file
7886 // Each test step initialises it's own name
7887 iTestStepName = _L("MM-MMF-ACOD-U-0151-HP");
7889 for (TUint i=0; i<5; i++)
7891 iExpectedSrcBytesProcessed[i] = 50;
7892 iExpectedDstBytesAdded[i] = 0;
7893 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
7898 * IMAS to PCM16 Pass in small source buffers
7899 * @test Req. under test REQ172.6.4, REQ172.6.5
7901 TVerdict CTest_MMF_ACOD_U_0151::DoTestStepL()
7903 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCMStereo};
7904 TBool testOK = EFalse;
7905 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToStereoAdpcmOptimumDst));
7909 INFO_PRINTF2(_L("Test left with status %d"), err);
7914 INFO_PRINTF1(_L("Test failed"));
7921 //------------------------------------------------------------------
7926 CTest_MMF_ACOD_U_0152::CTest_MMF_ACOD_U_0152()
7928 // store the name of this test case
7929 // this is the name that is used by the script file
7930 // Each test step initialises it's own name
7931 iTestStepName = _L("MM-MMF-ACOD-U-0152-HP");
7933 iExpectedLeaveErrorCode = KErrArgument;
7937 * PCM16 to IMAS Pass in small dest buffers
7938 * @test Req. under test REQ172.6.4, REQ172.6.5
7940 TVerdict CTest_MMF_ACOD_U_0152::DoTestStepL()
7942 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCMStereo};
7943 TBool testOK = EFalse;
7944 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToStereoAdpcmOptimumSrc, KSmallBufferSize));
7948 INFO_PRINTF2(_L("Test left with status %d"), err);
7953 INFO_PRINTF1(_L("Test failed"));
7960 //------------------------------------------------------------------
7965 CTest_MMF_ACOD_U_0153::CTest_MMF_ACOD_U_0153()
7967 // store the name of this test case
7968 // this is the name that is used by the script file
7969 // Each test step initialises it's own name
7970 iTestStepName = _L("MM-MMF-ACOD-U-0153-HP");
7971 iHeapSize = 0x20000;
7972 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EDstNotFilled;
7973 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EDstNotFilled;
7974 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EDstNotFilled;
7975 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessIncomplete;
7976 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EDstNotFilled;
7980 * PCM16 to IMAS Pass in large buffers
7981 * @test Req. under test REQ172.6.4, REQ172.6.5
7983 TVerdict CTest_MMF_ACOD_U_0153::DoTestStepL()
7985 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCMStereo};
7986 TBool testOK = EFalse;
7987 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
7991 INFO_PRINTF2(_L("Test left with status %d"), err);
7996 INFO_PRINTF1(_L("Test failed"));
8003 //------------------------------------------------------------------
8008 CTest_MMF_ACOD_U_0154::CTest_MMF_ACOD_U_0154()
8010 // store the name of this test case
8011 // this is the name that is used by the script file
8012 // Each test step initialises it's own name
8013 iTestStepName = _L("MM-MMF-ACOD-U-0154-HP");
8015 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EDstNotFilled;
8016 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EDstNotFilled;
8017 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EDstNotFilled;
8018 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessComplete;
8019 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EDstNotFilled;
8023 * PCM16 to IMAS Pass in default sized buffers
8024 * @test Req. under test REQ172.6.4, REQ172.6.5
8026 TVerdict CTest_MMF_ACOD_U_0154::DoTestStepL()
8028 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCMStereo};
8029 TBool testOK = EFalse;
8030 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
8034 INFO_PRINTF2(_L("Test left with status %d"), err);
8039 INFO_PRINTF1(_L("Test failed"));
8046 //------------------------------------------------------------------
8051 CTest_MMF_ACOD_U_0155::CTest_MMF_ACOD_U_0155()
8053 // store the name of this test case
8054 // this is the name that is used by the script file
8055 // Each test step initialises it's own name
8056 iTestStepName = _L("MM-MMF-ACOD-U-0155-HP");
8058 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EDstNotFilled;
8059 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EDstNotFilled;
8060 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EDstNotFilled;
8061 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessComplete;
8062 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EDstNotFilled;
8066 * PCM16 to IMAS Pass in buffers with different max length and length
8067 * @test Req. under test REQ172.6.4, REQ172.6.5
8069 TVerdict CTest_MMF_ACOD_U_0155::DoTestStepL()
8071 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCMStereo};
8072 TBool testOK = EFalse;
8073 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
8077 INFO_PRINTF2(_L("Test left with status %d"), err);
8082 INFO_PRINTF1(_L("Test failed"));
8089 //------------------------------------------------------------------
8094 CTest_MMF_ACOD_U_0156::CTest_MMF_ACOD_U_0156()
8096 // store the name of this test case
8097 // this is the name that is used by the script file
8098 // Each test step initialises it's own name
8099 iTestStepName = _L("MM-MMF-ACOD-U-0156-HP");
8101 for (TUint i=0; i<5; i++)
8103 iExpectedSrcBytesProcessed[i] = 0xF90;
8104 iExpectedDstBytesAdded[i] = 0x400;
8105 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
8110 * PCM16 to IMAS Pass in buffers of optimum size
8111 * @test Req. under test REQ172.6.4, REQ172.6.5
8113 TVerdict CTest_MMF_ACOD_U_0156::DoTestStepL()
8115 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCMStereo};
8116 TBool testOK = EFalse;
8117 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToStereoAdpcmOptimumSrc, KPCM16ToStereoAdpcmOptimumDst));
8121 INFO_PRINTF2(_L("Test left with status %d"), err);
8126 INFO_PRINTF1(_L("Test failed"));
8133 //------------------------------------------------------------------
8138 CTest_MMF_ACOD_U_0157::CTest_MMF_ACOD_U_0157()
8140 // store the name of this test case
8141 // this is the name that is used by the script file
8142 // Each test step initialises it's own name
8143 iTestStepName = _L("MM-MMF-ACOD-U-0157-HP");
8147 * PCM16 to IMAS Reposition source pointer during conversion
8148 * @test Req. under test REQ172.11
8150 TVerdict CTest_MMF_ACOD_U_0157::DoTestStepL()
8152 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCMStereo};
8153 TBool testOK = EFalse;
8155 TUint src = (KPCM16ToStereoAdpcmOptimumSrc/4) + 10;
8157 INFO_PRINTF1(_L(">> The PCM16 to IMAS codec stores data between calls to ProcessL"));
8158 TRAPD(err, testOK = TestRepositionL(codecUid, src, KPCM16ToStereoAdpcmOptimumDst));
8162 INFO_PRINTF2(_L("Test left with status %d"), err);
8167 INFO_PRINTF1(_L("Test failed"));
8174 //------------------------------------------------------------------
8179 CTest_MMF_ACOD_U_0158::CTest_MMF_ACOD_U_0158()
8181 // store the name of this test case
8182 // this is the name that is used by the script file
8183 // Each test step initialises it's own name
8184 iTestStepName = _L("MM-MMF-ACOD-U-0158-HP");
8188 * GSM610 to PCM16 Instantiate codec by FourCC Codes
8189 * @test Req. under test REQ172.6.2, REQ172.11.19
8191 TVerdict CTest_MMF_ACOD_U_0158::DoTestStepL()
8193 TBool testOK = EFalse;
8194 TRAPD(err, testOK = TestNewL(KMMFFourCCCodeGSM610, KMMFFourCCCodePCM16));
8198 INFO_PRINTF2(_L("Test left with status %d"), err);
8203 INFO_PRINTF1(_L("Test failed"));
8210 //------------------------------------------------------------------
8215 CTest_MMF_ACOD_U_0159::CTest_MMF_ACOD_U_0159()
8217 // store the name of this test case
8218 // this is the name that is used by the script file
8219 // Each test step initialises it's own name
8220 iTestStepName = _L("MM-MMF-ACOD-U-0159-HP");
8224 * GSM610 to PCM16 Instantiate codec by UID
8225 * @test Req. under test REQ172.6.1, REQ172.11.19
8227 TVerdict CTest_MMF_ACOD_U_0159::DoTestStepL()
8229 const TUid codecUid = {KMmfUidCodecGSM610ToPCM16};
8230 TBool testOK = EFalse;
8231 TRAPD(err, testOK = TestNewL(codecUid));
8235 INFO_PRINTF2(_L("Test left with status %d"), err);
8240 INFO_PRINTF1(_L("Test failed"));
8247 //------------------------------------------------------------------
8252 CTest_MMF_ACOD_U_0160::CTest_MMF_ACOD_U_0160()
8254 // store the name of this test case
8255 // this is the name that is used by the script file
8256 // Each test step initialises it's own name
8257 iTestStepName = _L("MM-MMF-ACOD-U-0160-HP");
8258 iHeapSize = 0x200000;
8260 for (TUint i=0; i<5; i++)
8262 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
8268 * GSM610 to PCM16 Pass in small source buffers
8269 * @test Req. under test REQ172.6.4, REQ172.6.5
8271 TVerdict CTest_MMF_ACOD_U_0160::DoTestStepL()
8273 const TUid codecUid = {KMmfUidCodecGSM610ToPCM16};
8274 TBool testOK = EFalse;
8275 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSizeGSM, KGSM610ToPCM16OptimumDstGSM, 0, EFalse));
8279 INFO_PRINTF2(_L("Test left with status %d"), err);
8284 INFO_PRINTF1(_L("Test failed"));
8291 //------------------------------------------------------------------
8296 CTest_MMF_ACOD_U_0161::CTest_MMF_ACOD_U_0161()
8298 // store the name of this test case
8299 // this is the name that is used by the script file
8300 // Each test step initialises it's own name
8301 iTestStepName = _L("MM-MMF-ACOD-U-0161-HP");
8302 iHeapSize = 0x20000;
8304 for (TUint i=0; i<5; i++)
8306 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
8311 * GSM610 to PCM16 Pass in small dest buffers
8312 * @test Req. under test REQ172.6.4, REQ172.6.5
8314 TVerdict CTest_MMF_ACOD_U_0161::DoTestStepL()
8316 const TUid codecUid = {KMmfUidCodecGSM610ToPCM16};
8317 TBool testOK = EFalse;
8318 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KGSM610ToPCM16OptimumSrcGSM, KSmallBufferSizeGSM, 0, EFalse));
8322 INFO_PRINTF2(_L("Test left with status %d"), err);
8327 INFO_PRINTF1(_L("Test failed"));
8334 //------------------------------------------------------------------
8339 CTest_MMF_ACOD_U_0162::CTest_MMF_ACOD_U_0162()
8341 // store the name of this test case
8342 // this is the name that is used by the script file
8343 // Each test step initialises it's own name
8344 iTestStepName = _L("MM-MMF-ACOD-U-0162-HP");
8345 iHeapSize = 0x20000;
8346 for (TUint i=0; i<5; i++)
8348 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
8353 * GSM610 to PCM16 Pass in large buffers
8354 * @test Req. under test REQ172.6.4, REQ172.6.5
8356 TVerdict CTest_MMF_ACOD_U_0162::DoTestStepL()
8358 const TUid codecUid = {KMmfUidCodecGSM610ToPCM16};
8359 TBool testOK = EFalse;
8360 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
8364 INFO_PRINTF2(_L("Test left with status %d"), err);
8369 INFO_PRINTF1(_L("Test failed"));
8376 //------------------------------------------------------------------
8381 CTest_MMF_ACOD_U_0163::CTest_MMF_ACOD_U_0163()
8383 // store the name of this test case
8384 // this is the name that is used by the script file
8385 // Each test step initialises it's own name
8386 iTestStepName = _L("MM-MMF-ACOD-U-0163-HP");
8388 for (TUint i=0; i<5; i++)
8390 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
8395 * GSM610 to PCM16 Pass in default sized buffers
8396 * @test Req. under test REQ172.6.4, REQ172.6.5
8398 TVerdict CTest_MMF_ACOD_U_0163::DoTestStepL()
8400 const TUid codecUid = {KMmfUidCodecGSM610ToPCM16};
8401 TBool testOK = EFalse;
8402 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
8406 INFO_PRINTF2(_L("Test left with status %d"), err);
8411 INFO_PRINTF1(_L("Test failed"));
8418 //------------------------------------------------------------------
8423 CTest_MMF_ACOD_U_0164::CTest_MMF_ACOD_U_0164()
8425 // store the name of this test case
8426 // this is the name that is used by the script file
8427 // Each test step initialises it's own name
8428 iTestStepName = _L("MM-MMF-ACOD-U-0164-HP");
8430 for (TUint i=0; i<5; i++)
8432 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
8437 * GSM610 to PCM16 Pass in buffers with different max length and length
8438 * @test Req. under test REQ172.6.4, REQ172.6.5
8440 TVerdict CTest_MMF_ACOD_U_0164::DoTestStepL()
8442 const TUid codecUid = {KMmfUidCodecGSM610ToPCM16};
8443 TBool testOK = EFalse;
8444 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
8448 INFO_PRINTF2(_L("Test left with status %d"), err);
8453 INFO_PRINTF1(_L("Test failed"));
8460 //------------------------------------------------------------------
8465 CTest_MMF_ACOD_U_0165::CTest_MMF_ACOD_U_0165()
8467 // store the name of this test case
8468 // this is the name that is used by the script file
8469 // Each test step initialises it's own name
8470 iTestStepName = _L("MM-MMF-ACOD-U-0165-HP");
8471 iSingleIteration = ETrue;
8473 for (TUint i=0; i<5; i++)
8475 iExpectedSrcBytesProcessed[i] = 0x104;
8476 iExpectedDstBytesAdded[i] = 0xA00;
8477 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
8482 * GSM610 to PCM16 Pass in buffers of optimum size
8483 * @test Req. under test REQ172.6.4, REQ172.6.5
8485 TVerdict CTest_MMF_ACOD_U_0165::DoTestStepL()
8487 const TUid codecUid = {KMmfUidCodecGSM610ToPCM16};
8488 TBool testOK = EFalse;
8489 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KGSM610ToPCM16OptimumSrc, KGSM610ToPCM16OptimumDst));
8493 INFO_PRINTF2(_L("Test left with status %d"), err);
8498 INFO_PRINTF1(_L("Test failed"));
8505 //------------------------------------------------------------------
8510 CTest_MMF_ACOD_U_0166::CTest_MMF_ACOD_U_0166()
8512 // store the name of this test case
8513 // this is the name that is used by the script file
8514 // Each test step initialises it's own name
8515 iTestStepName = _L("MM-MMF-ACOD-U-0166-HP");
8519 * GSM610 to PCM16 Reposition source pointer during conversion
8520 * @test Req. under test REQ172.11
8522 TVerdict CTest_MMF_ACOD_U_0166::DoTestStepL()
8524 const TUid codecUid = {KMmfUidCodecGSM610ToPCM16};
8525 TBool testOK = EFalse;
8527 TUint src = (KGSM610ToPCM16OptimumSrc/4) + 10;
8529 INFO_PRINTF1(_L(">> The GSM610 to PCM16 codec stores data between calls to ProcessL"));
8530 TRAPD(err, testOK = TestRepositionL(codecUid, src, KGSM610ToPCM16OptimumDst));
8534 INFO_PRINTF2(_L("Test left with status %d"), err);
8539 INFO_PRINTF1(_L("Test failed"));
8546 //------------------------------------------------------------------
8551 CTest_MMF_ACOD_U_0167::CTest_MMF_ACOD_U_0167()
8553 // store the name of this test case
8554 // this is the name that is used by the script file
8555 // Each test step initialises it's own name
8556 iTestStepName = _L("MM-MMF-ACOD-U-0167-HP");
8560 * PCM16 to GSM610 Instantiate codec by FourCC Codes
8561 * @test Req. under test REQ172.6.2, REQ172.11.20
8563 TVerdict CTest_MMF_ACOD_U_0167::DoTestStepL()
8565 TBool testOK = EFalse;
8566 TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeGSM610));
8570 INFO_PRINTF2(_L("Test left with status %d"), err);
8575 INFO_PRINTF1(_L("Test failed"));
8582 //------------------------------------------------------------------
8587 CTest_MMF_ACOD_U_0168::CTest_MMF_ACOD_U_0168()
8589 // store the name of this test case
8590 // this is the name that is used by the script file
8591 // Each test step initialises it's own name
8592 iTestStepName = _L("MM-MMF-ACOD-U-0168-HP");
8596 * PCM16 to GSM610 Instantiate codec by UID
8597 * @test Req. under test REQ172.6.1, REQ172.11.20
8599 TVerdict CTest_MMF_ACOD_U_0168::DoTestStepL()
8601 const TUid codecUid = {KMmfUidCodecPCM16ToGSM610};
8602 TBool testOK = EFalse;
8603 TRAPD(err, testOK = TestNewL(codecUid));
8607 INFO_PRINTF2(_L("Test left with status %d"), err);
8612 INFO_PRINTF1(_L("Test failed"));
8619 //------------------------------------------------------------------
8624 CTest_MMF_ACOD_U_0169::CTest_MMF_ACOD_U_0169()
8626 // store the name of this test case
8627 // this is the name that is used by the script file
8628 // Each test step initialises it's own name
8629 iTestStepName = _L("MM-MMF-ACOD-U-0169-HP");
8630 iHeapSize = 0x20000;
8632 for (TUint i=0; i<5; i++)
8634 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
8639 * GSM610 to PCM16 Pass in small source buffers
8640 * @test Req. under test REQ172.6.4, REQ172.6.5
8642 TVerdict CTest_MMF_ACOD_U_0169::DoTestStepL()
8644 const TUid codecUid = {KMmfUidCodecPCM16ToGSM610};
8645 TBool testOK = EFalse;
8646 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSizeGSM, KPCM16ToGSM610OptimumDstGSM, 0, EFalse));
8650 INFO_PRINTF2(_L("Test left with status %d"), err);
8655 INFO_PRINTF1(_L("Test failed"));
8662 //------------------------------------------------------------------
8667 CTest_MMF_ACOD_U_0170::CTest_MMF_ACOD_U_0170()
8669 // store the name of this test case
8670 // this is the name that is used by the script file
8671 // Each test step initialises it's own name
8672 iTestStepName = _L("MM-MMF-ACOD-U-0170-HP");
8674 iExpectedLeaveErrorCode = KErrArgument;
8678 * PCM16 to GSM610 Pass in small dest buffers
8679 * @test Req. under test REQ172.6.4, REQ172.6.5
8681 TVerdict CTest_MMF_ACOD_U_0170::DoTestStepL()
8683 const TUid codecUid = {KMmfUidCodecPCM16ToGSM610};
8684 TBool testOK = EFalse;
8685 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToGSM610OptimumSrc, KSmallBufferSize, 0, EFalse));
8689 INFO_PRINTF2(_L("Test left with status %d"), err);
8694 INFO_PRINTF1(_L("Test failed"));
8701 //------------------------------------------------------------------
8706 CTest_MMF_ACOD_U_0171::CTest_MMF_ACOD_U_0171()
8708 // store the name of this test case
8709 // this is the name that is used by the script file
8710 // Each test step initialises it's own name
8711 iTestStepName = _L("MM-MMF-ACOD-U-0171-HP");
8712 iHeapSize = 0x20000;
8713 for (TUint i=0; i<5; i++)
8715 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
8720 * PCM16 to GSM610 Pass in large buffers
8721 * @test Req. under test REQ172.6.4, REQ172.6.5
8723 TVerdict CTest_MMF_ACOD_U_0171::DoTestStepL()
8725 const TUid codecUid = {KMmfUidCodecPCM16ToGSM610};
8726 TBool testOK = EFalse;
8727 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
8731 INFO_PRINTF2(_L("Test left with status %d"), err);
8736 INFO_PRINTF1(_L("Test failed"));
8743 //------------------------------------------------------------------
8748 CTest_MMF_ACOD_U_0172::CTest_MMF_ACOD_U_0172()
8750 // store the name of this test case
8751 // this is the name that is used by the script file
8752 // Each test step initialises it's own name
8753 iTestStepName = _L("MM-MMF-ACOD-U-0172-HP");
8755 for (TUint i=0; i<5; i++)
8757 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
8762 * PCM16 to GSM610 Pass in default sized buffers
8763 * @test Req. under test REQ172.6.4, REQ172.6.5
8765 TVerdict CTest_MMF_ACOD_U_0172::DoTestStepL()
8767 const TUid codecUid = {KMmfUidCodecPCM16ToGSM610};
8768 TBool testOK = EFalse;
8769 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
8773 INFO_PRINTF2(_L("Test left with status %d"), err);
8778 INFO_PRINTF1(_L("Test failed"));
8785 //------------------------------------------------------------------
8790 CTest_MMF_ACOD_U_0173::CTest_MMF_ACOD_U_0173()
8792 // store the name of this test case
8793 // this is the name that is used by the script file
8794 // Each test step initialises it's own name
8795 iTestStepName = _L("MM-MMF-ACOD-U-0173-HP");
8797 for (TUint i=0; i<5; i++)
8799 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
8804 * PCM16 to GSM610 Pass in buffers with different max length and length
8805 * @test Req. under test REQ172.6.4, REQ172.6.5
8807 TVerdict CTest_MMF_ACOD_U_0173::DoTestStepL()
8809 const TUid codecUid = {KMmfUidCodecPCM16ToGSM610};
8810 TBool testOK = EFalse;
8811 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
8815 INFO_PRINTF2(_L("Test left with status %d"), err);
8820 INFO_PRINTF1(_L("Test failed"));
8827 //------------------------------------------------------------------
8832 CTest_MMF_ACOD_U_0174::CTest_MMF_ACOD_U_0174()
8834 // store the name of this test case
8835 // this is the name that is used by the script file
8836 // Each test step initialises it's own name
8837 iTestStepName = _L("MM-MMF-ACOD-U-0174-HP");
8838 iSingleIteration = ETrue;
8840 for (TUint i=0; i<5; i++)
8842 iExpectedSrcBytesProcessed[i] = 0xA00;
8843 iExpectedDstBytesAdded[i] = 0x104;
8844 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
8849 * PCM16 to GSM610 Pass in buffers of optimum size
8850 * @test Req. under test REQ172.6.4, REQ172.6.5
8852 TVerdict CTest_MMF_ACOD_U_0174::DoTestStepL()
8854 const TUid codecUid = {KMmfUidCodecPCM16ToGSM610};
8855 TBool testOK = EFalse;
8856 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToGSM610OptimumSrc, KPCM16ToGSM610OptimumDst));
8860 INFO_PRINTF2(_L("Test left with status %d"), err);
8865 INFO_PRINTF1(_L("Test failed"));
8872 //------------------------------------------------------------------
8877 CTest_MMF_ACOD_U_0175::CTest_MMF_ACOD_U_0175()
8879 // store the name of this test case
8880 // this is the name that is used by the script file
8881 // Each test step initialises it's own name
8882 iTestStepName = _L("MM-MMF-ACOD-U-0175-HP");
8886 * PCM16 to GSM610 Reposition source pointer during conversion
8887 * @test Req. under test REQ172.11
8889 TVerdict CTest_MMF_ACOD_U_0175::DoTestStepL()
8891 const TUid codecUid = {KMmfUidCodecPCM16ToGSM610};
8892 TBool testOK = EFalse;
8894 TUint src = (KPCM16ToGSM610OptimumSrc/4) + 10;
8896 INFO_PRINTF1(_L(">> The PCM16 to GSM610 codec stores data between calls to ProcessL"));
8897 TRAPD(err, testOK = TestRepositionL(codecUid, src, KPCM16ToGSM610OptimumDst));
8901 INFO_PRINTF2(_L("Test left with status %d"), err);
8906 INFO_PRINTF1(_L("Test failed"));
8913 //------------------------------------------------------------------
8918 CTest_MMF_ACOD_U_0176::CTest_MMF_ACOD_U_0176()
8920 // store the name of this test case
8921 // this is the name that is used by the script file
8922 // Each test step initialises it's own name
8923 iTestStepName = _L("MM-MMF-ACOD-U-0176-HP");
8927 * Instantiate codec that doesn't exist
8928 * @test Req. under test REQ172.11
8930 TVerdict CTest_MMF_ACOD_U_0176::DoTestStepL()
8932 // CMMFCodec* codec = NULL;
8933 // TRAPD(err, codec = CMMFCodec::NewL(KMMFFourCCCodeALAW, KMMFFourCCCodePCMU16B));
8934 TRAPD(err, CMMFCodec::NewL(KMMFFourCCCodeALAW, KMMFFourCCCodePCMU16B)); // EABI warning removal - "variable was set but never used"
8936 if (err == KErrNone || err == KErrNotSupported)
8940 ERR_PRINTF2(_L(">> CTest_MMF_ACOD_U_0176::DoTestStepL Leave occurred in NewL, error code %d"), err);
8944 //------------------------------------------------------------------
8949 CTest_MMF_ACOD_U_0177::CTest_MMF_ACOD_U_0177()
8951 // store the name of this test case
8952 // this is the name that is used by the script file
8953 // Each test step initialises it's own name
8954 iTestStepName = _L("MM-MMF-ACOD-U-0177-HP");
8958 * Instantiate codec from fourCC codes that don't exist
8959 * @test Req. under test REQ172.11
8961 TVerdict CTest_MMF_ACOD_U_0177::DoTestStepL()
8963 const TUint32 KFourCCCodeP1B = 0x42315020; //(' ', 'P', '1', 'B')
8964 const TUint32 KFourCCCodePS16 = 0x36315350; //('P', 'S', '1', '6')
8966 // CMMFCodec* codec = NULL;
8967 // TRAPD(err, codec = CMMFCodec::NewL(KFourCCCodeP1B, KFourCCCodePS16));
8968 TRAPD(err, CMMFCodec::NewL(KFourCCCodeP1B, KFourCCCodePS16)); // EABI warning removal "variable was set but never used"
8970 if (err == KErrNone || err == KErrNotSupported)
8974 ERR_PRINTF2(_L(">> CTest_MMF_ACOD_U_0177::DoTestStepL Leave occurred in NewL, error code %d"), err);
8978 //------------------------------------------------------------------
8983 CTest_MMF_ACOD_U_0178::CTest_MMF_ACOD_U_0178()
8985 // store the name of this test case
8986 // this is the name that is used by the script file
8987 // Each test step initialises it's own name
8988 iTestStepName = _L("MM-MMF-ACOD-U-0178-HP");
8992 * Test out of memory in NewL
8993 * @test Req. under test REQ172.11
8995 TVerdict CTest_MMF_ACOD_U_0178::DoTestStepL()
8997 // CMMFCodec* codec = NULL;
8998 __UHEAP_FAILNEXT(1);
8999 // TRAPD(err, codec = CMMFCodec::NewL(KMMFFourCCCodePCMU8, KMMFFourCCCodePCM16));
9000 TRAPD(err, CMMFCodec::NewL(KMMFFourCCCodePCMU8, KMMFFourCCCodePCM16)); // EABI warning removal - "variable was set but never used"
9002 if (err == KErrNoMemory)
9006 ERR_PRINTF2(_L(">> CTest_MMF_ACOD_U_0178::DoTestStepL Leave occurred in NewL, error code %d"), err);
9010 //------------------------------------------------------------------
9015 CTest_MMF_ACOD_U_0179::CTest_MMF_ACOD_U_0179()
9017 // store the name of this test case
9018 // this is the name that is used by the script file
9019 // Each test step initialises it's own name
9020 iTestStepName = _L("MM-MMF-ACOD-U-0179-HP");
9022 for (TUint i=0; i<5; i++)
9024 iExpectedSrcBytesProcessed[i] = 0;
9025 iExpectedDstBytesAdded[i] = 0;
9026 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
9031 * ALAW To PCM16 Pass in zero sized source buffer
9032 * @test Req. under test REQ172.6.4, REQ172.6.5
9034 TVerdict CTest_MMF_ACOD_U_0179::DoTestStepL()
9036 const TUid codecUid = {KMmfUidCodecAlawToPCM16};
9037 TBool testOK = EFalse;
9038 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KAlawToPCM16OptimumDst));
9042 INFO_PRINTF2(_L("Test left with status %d"), err);
9047 INFO_PRINTF1(_L("Test failed"));
9054 //------------------------------------------------------------------
9059 CTest_MMF_ACOD_U_0180::CTest_MMF_ACOD_U_0180()
9061 // store the name of this test case
9062 // this is the name that is used by the script file
9063 // Each test step initialises it's own name
9064 iTestStepName = _L("MM-MMF-ACOD-U-0180-HP");
9066 iExpectedLeaveErrorCode = KErrArgument;
9070 * ALAW To PCM16 Pass in zero sized destination buffer
9071 * @test Req. under test REQ172.6.4, REQ172.6.5
9073 TVerdict CTest_MMF_ACOD_U_0180::DoTestStepL()
9075 const TUid codecUid = {KMmfUidCodecAlawToPCM16};
9076 TBool testOK = EFalse;
9077 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAlawToPCM16OptimumSrc, 0));
9081 INFO_PRINTF2(_L("Test left with status %d"), err);
9086 INFO_PRINTF1(_L("Test failed"));
9093 //------------------------------------------------------------------
9098 CTest_MMF_ACOD_U_0181::CTest_MMF_ACOD_U_0181()
9100 // store the name of this test case
9101 // this is the name that is used by the script file
9102 // Each test step initialises it's own name
9103 iTestStepName = _L("MM-MMF-ACOD-U-0181-HP");
9107 * ALAW To PCM16 Test out of memory
9108 * @test Req. under test REQ172.11
9110 TVerdict CTest_MMF_ACOD_U_0181::DoTestStepL()
9112 const TUid codecUid = {KMmfUidCodecAlawToPCM16};
9113 TBool testOK = EFalse;
9115 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
9116 if (err==KErrNone && testOK)
9117 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
9121 INFO_PRINTF2(_L("Test left with status %d"), err);
9126 INFO_PRINTF1(_L("Test failed"));
9133 //------------------------------------------------------------------
9139 CTest_MMF_ACOD_U_0182::CTest_MMF_ACOD_U_0182()
9141 // store the name of this test case
9142 // this is the name that is used by the script file
9143 // Each test step initialises it's own name
9144 iTestStepName = _L("MM-MMF-ACOD-U-0182-HP");
9148 * ALAW To PCM16 Test for memory leaks
9149 * @test Req. under test REQ172.11
9151 TVerdict CTest_MMF_ACOD_U_0182::DoTestStepL()
9153 const TUid codecUid = {KMmfUidCodecAlawToPCM16};
9154 TBool testOK = EFalse;
9155 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
9159 INFO_PRINTF2(_L("Test left with status %d"), err);
9164 INFO_PRINTF1(_L("Test failed"));
9171 //------------------------------------------------------------------
9177 CTest_MMF_ACOD_U_0183::CTest_MMF_ACOD_U_0183()
9179 // store the name of this test case
9180 // this is the name that is used by the script file
9181 // Each test step initialises it's own name
9182 iTestStepName = _L("MM-MMF-ACOD-U-0183-HP");
9186 * ALAW To PCM16 Test for memory scribbles
9187 * @test Req. under test REQ172.11
9189 TVerdict CTest_MMF_ACOD_U_0183::DoTestStepL()
9191 const TUid codecUid = {KMmfUidCodecAlawToPCM16};
9192 TBool testOK = EFalse;
9193 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
9197 INFO_PRINTF2(_L("Test left with status %d"), err);
9202 INFO_PRINTF1(_L("Test failed"));
9209 //------------------------------------------------------------------
9214 CTest_MMF_ACOD_U_0184::CTest_MMF_ACOD_U_0184()
9216 // store the name of this test case
9217 // this is the name that is used by the script file
9218 // Each test step initialises it's own name
9219 iTestStepName = _L("MM-MMF-ACOD-U-0184-HP");
9221 for (TUint i=0; i<5; i++)
9223 iExpectedSrcBytesProcessed[i] = 0;
9224 iExpectedDstBytesAdded[i] = 0;
9225 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
9230 * PCM16 to ALAW Pass in zero sized source buffer
9231 * @test Req. under test REQ172.6.4, REQ172.6.5
9233 TVerdict CTest_MMF_ACOD_U_0184::DoTestStepL()
9235 const TUid codecUid = {KMmfUidCodecPCM16ToAlaw};
9236 TBool testOK = EFalse;
9237 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToAlawOptimumDst));
9241 INFO_PRINTF2(_L("Test left with status %d"), err);
9246 INFO_PRINTF1(_L("Test failed"));
9253 //------------------------------------------------------------------
9258 CTest_MMF_ACOD_U_0185::CTest_MMF_ACOD_U_0185()
9260 // store the name of this test case
9261 // this is the name that is used by the script file
9262 // Each test step initialises it's own name
9263 iTestStepName = _L("MM-MMF-ACOD-U-0185-HP");
9265 iExpectedLeaveErrorCode = KErrArgument;
9269 * PCM16 to ALAW Pass in zero sized destination buffer
9270 * @test Req. under test REQ172.6.4, REQ172.6.5
9272 TVerdict CTest_MMF_ACOD_U_0185::DoTestStepL()
9274 const TUid codecUid = {KMmfUidCodecPCM16ToAlaw};
9275 TBool testOK = EFalse;
9276 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAlawOptimumSrc, 0));
9280 INFO_PRINTF2(_L("Test left with status %d"), err);
9285 INFO_PRINTF1(_L("Test failed"));
9292 //------------------------------------------------------------------
9297 CTest_MMF_ACOD_U_0186::CTest_MMF_ACOD_U_0186()
9299 // store the name of this test case
9300 // this is the name that is used by the script file
9301 // Each test step initialises it's own name
9302 iTestStepName = _L("MM-MMF-ACOD-U-0186-HP");
9306 * PCM16 to ALAW Test out of memory
9307 * @test Req. under test REQ172.11
9309 TVerdict CTest_MMF_ACOD_U_0186::DoTestStepL()
9311 const TUid codecUid = {KMmfUidCodecPCM16ToAlaw};
9312 TBool testOK = EFalse;
9314 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
9315 if (err==KErrNone && testOK)
9316 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
9320 INFO_PRINTF2(_L("Test left with status %d"), err);
9325 INFO_PRINTF1(_L("Test failed"));
9332 //------------------------------------------------------------------
9338 CTest_MMF_ACOD_U_0187::CTest_MMF_ACOD_U_0187()
9340 // store the name of this test case
9341 // this is the name that is used by the script file
9342 // Each test step initialises it's own name
9343 iTestStepName = _L("MM-MMF-ACOD-U-0187-HP");
9347 * PCM16 to ALAW Test for memory leaks
9348 * @test Req. under test REQ172.11
9350 TVerdict CTest_MMF_ACOD_U_0187::DoTestStepL()
9352 const TUid codecUid = {KMmfUidCodecPCM16ToAlaw};
9353 TBool testOK = EFalse;
9354 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
9358 INFO_PRINTF2(_L("Test left with status %d"), err);
9363 INFO_PRINTF1(_L("Test failed"));
9370 //------------------------------------------------------------------
9376 CTest_MMF_ACOD_U_0188::CTest_MMF_ACOD_U_0188()
9378 // store the name of this test case
9379 // this is the name that is used by the script file
9380 // Each test step initialises it's own name
9381 iTestStepName = _L("MM-MMF-ACOD-U-0188-HP");
9385 * PCM16 to ALAW Test for memory scribbles
9386 * @test Req. under test REQ172.11
9388 TVerdict CTest_MMF_ACOD_U_0188::DoTestStepL()
9390 const TUid codecUid = {KMmfUidCodecPCM16ToAlaw};
9391 TBool testOK = EFalse;
9392 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
9396 INFO_PRINTF2(_L("Test left with status %d"), err);
9401 INFO_PRINTF1(_L("Test failed"));
9408 //------------------------------------------------------------------
9413 CTest_MMF_ACOD_U_0189::CTest_MMF_ACOD_U_0189()
9415 // store the name of this test case
9416 // this is the name that is used by the script file
9417 // Each test step initialises it's own name
9418 iTestStepName = _L("MM-MMF-ACOD-U-0189-HP");
9420 for (TUint i=0; i<5; i++)
9422 iExpectedSrcBytesProcessed[i] = 0;
9423 iExpectedDstBytesAdded[i] = 0;
9424 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
9429 * PCM8 To PCM16 Pass in zero sized source buffer
9430 * @test Req. under test REQ172.6.4, REQ172.6.5
9432 TVerdict CTest_MMF_ACOD_U_0189::DoTestStepL()
9434 const TUid codecUid = {KMmfUidCodecPCM8ToPCM16};
9435 TBool testOK = EFalse;
9436 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM8ToPCM16OptimumDst));
9440 INFO_PRINTF2(_L("Test left with status %d"), err);
9445 INFO_PRINTF1(_L("Test failed"));
9452 //------------------------------------------------------------------
9457 CTest_MMF_ACOD_U_0190::CTest_MMF_ACOD_U_0190()
9459 // store the name of this test case
9460 // this is the name that is used by the script file
9461 // Each test step initialises it's own name
9462 iTestStepName = _L("MM-MMF-ACOD-U-0190-HP");
9464 iExpectedLeaveErrorCode = KErrArgument;
9468 * PCM8 To PCM16 Pass in zero sized destination buffer
9469 * @test Req. under test REQ172.6.4, REQ172.6.5
9471 TVerdict CTest_MMF_ACOD_U_0190::DoTestStepL()
9473 const TUid codecUid = {KMmfUidCodecPCM8ToPCM16};
9474 TBool testOK = EFalse;
9475 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM8ToPCM16OptimumSrc, 0));
9479 INFO_PRINTF2(_L("Test left with status %d"), err);
9484 INFO_PRINTF1(_L("Test failed"));
9491 //------------------------------------------------------------------
9496 CTest_MMF_ACOD_U_0191::CTest_MMF_ACOD_U_0191()
9498 // store the name of this test case
9499 // this is the name that is used by the script file
9500 // Each test step initialises it's own name
9501 iTestStepName = _L("MM-MMF-ACOD-U-0191-HP");
9505 * PCM8 To PCM16 Test out of memory
9506 * @test Req. under test REQ172.11
9508 TVerdict CTest_MMF_ACOD_U_0191::DoTestStepL()
9510 const TUid codecUid = {KMmfUidCodecPCM8ToPCM16};
9511 TBool testOK = EFalse;
9513 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
9514 if (err==KErrNone && testOK)
9515 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
9519 INFO_PRINTF2(_L("Test left with status %d"), err);
9524 INFO_PRINTF1(_L("Test failed"));
9531 //------------------------------------------------------------------
9537 CTest_MMF_ACOD_U_0192::CTest_MMF_ACOD_U_0192()
9539 // store the name of this test case
9540 // this is the name that is used by the script file
9541 // Each test step initialises it's own name
9542 iTestStepName = _L("MM-MMF-ACOD-U-0192-HP");
9546 * PCM8 To PCM16 Test for memory leaks
9547 * @test Req. under test REQ172.11
9549 TVerdict CTest_MMF_ACOD_U_0192::DoTestStepL()
9551 const TUid codecUid = {KMmfUidCodecPCM8ToPCM16};
9552 TBool testOK = EFalse;
9553 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
9557 INFO_PRINTF2(_L("Test left with status %d"), err);
9562 INFO_PRINTF1(_L("Test failed"));
9569 //------------------------------------------------------------------
9575 CTest_MMF_ACOD_U_0193::CTest_MMF_ACOD_U_0193()
9577 // store the name of this test case
9578 // this is the name that is used by the script file
9579 // Each test step initialises it's own name
9580 iTestStepName = _L("MM-MMF-ACOD-U-0193-HP");
9584 * PCM8 To PCM16 Test for memory scribbles
9585 * @test Req. under test REQ172.11
9587 TVerdict CTest_MMF_ACOD_U_0193::DoTestStepL()
9589 const TUid codecUid = {KMmfUidCodecPCM8ToPCM16};
9590 TBool testOK = EFalse;
9591 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
9595 INFO_PRINTF2(_L("Test left with status %d"), err);
9600 INFO_PRINTF1(_L("Test failed"));
9607 //------------------------------------------------------------------
9612 CTest_MMF_ACOD_U_0194::CTest_MMF_ACOD_U_0194()
9614 // store the name of this test case
9615 // this is the name that is used by the script file
9616 // Each test step initialises it's own name
9617 iTestStepName = _L("MM-MMF-ACOD-U-0194-HP");
9619 for (TUint i=0; i<5; i++)
9621 iExpectedSrcBytesProcessed[i] = 0;
9622 iExpectedDstBytesAdded[i] = 0;
9623 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
9628 * PCM16 to PCM8 Pass in zero sized source buffer
9629 * @test Req. under test REQ172.6.4, REQ172.6.5
9631 TVerdict CTest_MMF_ACOD_U_0194::DoTestStepL()
9633 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMS8};
9634 TBool testOK = EFalse;
9635 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToPCM8OptimumDst));
9639 INFO_PRINTF2(_L("Test left with status %d"), err);
9644 INFO_PRINTF1(_L("Test failed"));
9651 //------------------------------------------------------------------
9656 CTest_MMF_ACOD_U_0195::CTest_MMF_ACOD_U_0195()
9658 // store the name of this test case
9659 // this is the name that is used by the script file
9660 // Each test step initialises it's own name
9661 iTestStepName = _L("MM-MMF-ACOD-U-0195-HP");
9663 iExpectedLeaveErrorCode = KErrArgument;
9667 * PCM16 to PCM8 Pass in zero sized destination buffer
9668 * @test Req. under test REQ172.6.4, REQ172.6.5
9670 TVerdict CTest_MMF_ACOD_U_0195::DoTestStepL()
9672 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMS8};
9673 TBool testOK = EFalse;
9674 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM8OptimumSrc, 0));
9678 INFO_PRINTF2(_L("Test left with status %d"), err);
9683 INFO_PRINTF1(_L("Test failed"));
9690 //------------------------------------------------------------------
9695 CTest_MMF_ACOD_U_0196::CTest_MMF_ACOD_U_0196()
9697 // store the name of this test case
9698 // this is the name that is used by the script file
9699 // Each test step initialises it's own name
9700 iTestStepName = _L("MM-MMF-ACOD-U-0196-HP");
9704 * PCM16 to PCM8 Test out of memory
9705 * @test Req. under test REQ172.11
9707 TVerdict CTest_MMF_ACOD_U_0196::DoTestStepL()
9709 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMS8};
9710 TBool testOK = EFalse;
9712 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
9713 if (err==KErrNone && testOK)
9714 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
9718 INFO_PRINTF2(_L("Test left with status %d"), err);
9723 INFO_PRINTF1(_L("Test failed"));
9730 //------------------------------------------------------------------
9736 CTest_MMF_ACOD_U_0197::CTest_MMF_ACOD_U_0197()
9738 // store the name of this test case
9739 // this is the name that is used by the script file
9740 // Each test step initialises it's own name
9741 iTestStepName = _L("MM-MMF-ACOD-U-0197-HP");
9745 * PCM16 to PCM8 Test for memory leaks
9746 * @test Req. under test REQ172.11
9748 TVerdict CTest_MMF_ACOD_U_0197::DoTestStepL()
9750 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMS8};
9751 TBool testOK = EFalse;
9752 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
9756 INFO_PRINTF2(_L("Test left with status %d"), err);
9761 INFO_PRINTF1(_L("Test failed"));
9768 //------------------------------------------------------------------
9774 CTest_MMF_ACOD_U_0198::CTest_MMF_ACOD_U_0198()
9776 // store the name of this test case
9777 // this is the name that is used by the script file
9778 // Each test step initialises it's own name
9779 iTestStepName = _L("MM-MMF-ACOD-U-0198-HP");
9783 * PCM16 to PCM8 Test for memory scribbles
9784 * @test Req. under test REQ172.11
9786 TVerdict CTest_MMF_ACOD_U_0198::DoTestStepL()
9788 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMS8};
9789 TBool testOK = EFalse;
9790 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
9794 INFO_PRINTF2(_L("Test left with status %d"), err);
9799 INFO_PRINTF1(_L("Test failed"));
9806 //------------------------------------------------------------------
9811 CTest_MMF_ACOD_U_0199::CTest_MMF_ACOD_U_0199()
9813 // store the name of this test case
9814 // this is the name that is used by the script file
9815 // Each test step initialises it's own name
9816 iTestStepName = _L("MM-MMF-ACOD-U-0199-HP");
9818 for (TUint i=0; i<5; i++)
9820 iExpectedSrcBytesProcessed[i] = 0;
9821 iExpectedDstBytesAdded[i] = 0;
9822 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
9827 * Swap Endian Pass in zero sized source buffer
9828 * @test Req. under test REQ172.6.4, REQ172.6.5
9830 TVerdict CTest_MMF_ACOD_U_0199::DoTestStepL()
9832 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
9833 const TUid codecUid = {KMMFUidCodecPCM16toPCM16B};
9834 TBool testOK = EFalse;
9835 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToPCM16BOptimumDst));
9839 INFO_PRINTF2(_L("Test left with status %d"), err);
9844 INFO_PRINTF1(_L("Test failed"));
9851 //------------------------------------------------------------------
9856 CTest_MMF_ACOD_U_0200::CTest_MMF_ACOD_U_0200()
9858 // store the name of this test case
9859 // this is the name that is used by the script file
9860 // Each test step initialises it's own name
9861 iTestStepName = _L("MM-MMF-ACOD-U-0200-HP");
9863 iExpectedLeaveErrorCode = KErrArgument;
9867 * Swap Endian Pass in zero sized destination buffer
9868 * @test Req. under test REQ172.6.4, REQ172.6.5
9870 TVerdict CTest_MMF_ACOD_U_0200::DoTestStepL()
9872 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
9873 const TUid codecUid = {KMMFUidCodecPCM16toPCM16B};
9874 TBool testOK = EFalse;
9875 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM16BOptimumSrc, 0));
9879 INFO_PRINTF2(_L("Test left with status %d"), err);
9884 INFO_PRINTF1(_L("Test failed"));
9891 //------------------------------------------------------------------
9896 CTest_MMF_ACOD_U_0201::CTest_MMF_ACOD_U_0201()
9898 // store the name of this test case
9899 // this is the name that is used by the script file
9900 // Each test step initialises it's own name
9901 iTestStepName = _L("MM-MMF-ACOD-U-0201-HP");
9905 * Swap Endian Test out of memory
9906 * @test Req. under test REQ172.11
9908 TVerdict CTest_MMF_ACOD_U_0201::DoTestStepL()
9910 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
9911 const TUid codecUid = {KMMFUidCodecPCM16toPCM16B};
9912 TBool testOK = EFalse;
9914 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
9915 if (err==KErrNone && testOK)
9916 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
9920 INFO_PRINTF2(_L("Test left with status %d"), err);
9925 INFO_PRINTF1(_L("Test failed"));
9932 //------------------------------------------------------------------
9938 CTest_MMF_ACOD_U_0202::CTest_MMF_ACOD_U_0202()
9940 // store the name of this test case
9941 // this is the name that is used by the script file
9942 // Each test step initialises it's own name
9943 iTestStepName = _L("MM-MMF-ACOD-U-0202-HP");
9947 * Swap Endian Test for memory leaks
9948 * @test Req. under test REQ172.11
9950 TVerdict CTest_MMF_ACOD_U_0202::DoTestStepL()
9952 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
9953 const TUid codecUid = {KMMFUidCodecPCM16toPCM16B};
9954 TBool testOK = EFalse;
9955 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
9959 INFO_PRINTF2(_L("Test left with status %d"), err);
9964 INFO_PRINTF1(_L("Test failed"));
9971 //------------------------------------------------------------------
9977 CTest_MMF_ACOD_U_0203::CTest_MMF_ACOD_U_0203()
9979 // store the name of this test case
9980 // this is the name that is used by the script file
9981 // Each test step initialises it's own name
9982 iTestStepName = _L("MM-MMF-ACOD-U-0203-HP");
9986 * Swap Endian Test for memory scribbles
9987 * @test Req. under test REQ172.11
9989 TVerdict CTest_MMF_ACOD_U_0203::DoTestStepL()
9991 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
9992 const TUid codecUid = {KMMFUidCodecPCM16toPCM16B};
9993 TBool testOK = EFalse;
9994 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
9998 INFO_PRINTF2(_L("Test left with status %d"), err);
10003 INFO_PRINTF1(_L("Test failed"));
10010 //------------------------------------------------------------------
10015 CTest_MMF_ACOD_U_0204::CTest_MMF_ACOD_U_0204()
10017 // store the name of this test case
10018 // this is the name that is used by the script file
10019 // Each test step initialises it's own name
10020 iTestStepName = _L("MM-MMF-ACOD-U-0204-HP");
10022 for (TUint i=0; i<5; i++)
10024 iExpectedSrcBytesProcessed[i] = 0;
10025 iExpectedDstBytesAdded[i] = 0;
10026 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
10031 * PCM16 to PCMU16BE Pass in zero sized source buffer
10032 * @test Req. under test REQ172.6.4, REQ172.6.5
10034 TVerdict CTest_MMF_ACOD_U_0204::DoTestStepL()
10036 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16BE};
10037 TBool testOK = EFalse;
10038 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToPCMU16BOptimumDst));
10042 INFO_PRINTF2(_L("Test left with status %d"), err);
10047 INFO_PRINTF1(_L("Test failed"));
10054 //------------------------------------------------------------------
10059 CTest_MMF_ACOD_U_0205::CTest_MMF_ACOD_U_0205()
10061 // store the name of this test case
10062 // this is the name that is used by the script file
10063 // Each test step initialises it's own name
10064 iTestStepName = _L("MM-MMF-ACOD-U-0205-HP");
10066 iExpectedLeaveErrorCode = KErrArgument;
10070 * PCM16 to PCMU16BE Pass in zero sized destination buffer
10071 * @test Req. under test REQ172.6.4, REQ172.6.5
10073 TVerdict CTest_MMF_ACOD_U_0205::DoTestStepL()
10075 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16BE};
10076 TBool testOK = EFalse;
10077 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16BOptimumSrc, 0));
10081 INFO_PRINTF2(_L("Test left with status %d"), err);
10086 INFO_PRINTF1(_L("Test failed"));
10093 //------------------------------------------------------------------
10098 CTest_MMF_ACOD_U_0206::CTest_MMF_ACOD_U_0206()
10100 // store the name of this test case
10101 // this is the name that is used by the script file
10102 // Each test step initialises it's own name
10103 iTestStepName = _L("MM-MMF-ACOD-U-0206-HP");
10107 * PCM16 to PCMU16BE Test out of memory
10108 * @test Req. under test REQ172.11
10110 TVerdict CTest_MMF_ACOD_U_0206::DoTestStepL()
10112 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16BE};
10113 TBool testOK = EFalse;
10115 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
10116 if (err==KErrNone && testOK)
10117 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
10121 INFO_PRINTF2(_L("Test left with status %d"), err);
10126 INFO_PRINTF1(_L("Test failed"));
10133 //------------------------------------------------------------------
10139 CTest_MMF_ACOD_U_0207::CTest_MMF_ACOD_U_0207()
10141 // store the name of this test case
10142 // this is the name that is used by the script file
10143 // Each test step initialises it's own name
10144 iTestStepName = _L("MM-MMF-ACOD-U-0207-HP");
10148 * PCM16 to PCMU16BE Test for memory leaks
10149 * @test Req. under test REQ172.11
10151 TVerdict CTest_MMF_ACOD_U_0207::DoTestStepL()
10153 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16BE};
10154 TBool testOK = EFalse;
10155 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
10159 INFO_PRINTF2(_L("Test left with status %d"), err);
10164 INFO_PRINTF1(_L("Test failed"));
10171 //------------------------------------------------------------------
10177 CTest_MMF_ACOD_U_0208::CTest_MMF_ACOD_U_0208()
10179 // store the name of this test case
10180 // this is the name that is used by the script file
10181 // Each test step initialises it's own name
10182 iTestStepName = _L("MM-MMF-ACOD-U-0208-HP");
10186 * PCM16 to PCMU16BE Test for memory scribbles
10187 * @test Req. under test REQ172.11
10189 TVerdict CTest_MMF_ACOD_U_0208::DoTestStepL()
10191 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16BE};
10192 TBool testOK = EFalse;
10193 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
10197 INFO_PRINTF2(_L("Test left with status %d"), err);
10202 INFO_PRINTF1(_L("Test failed"));
10209 //------------------------------------------------------------------
10214 CTest_MMF_ACOD_U_0209::CTest_MMF_ACOD_U_0209()
10216 // store the name of this test case
10217 // this is the name that is used by the script file
10218 // Each test step initialises it's own name
10219 iTestStepName = _L("MM-MMF-ACOD-U-0209-HP");
10221 for (TUint i=0; i<5; i++)
10223 iExpectedSrcBytesProcessed[i] = 0;
10224 iExpectedDstBytesAdded[i] = 0;
10225 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
10230 * PCM16 to PCMU16 Pass in zero sized source buffer
10231 * @test Req. under test REQ172.6.4, REQ172.6.5
10233 TVerdict CTest_MMF_ACOD_U_0209::DoTestStepL()
10235 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16};
10236 TBool testOK = EFalse;
10237 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToPCMU16OptimumDst));
10241 INFO_PRINTF2(_L("Test left with status %d"), err);
10246 INFO_PRINTF1(_L("Test failed"));
10253 //------------------------------------------------------------------
10258 CTest_MMF_ACOD_U_0210::CTest_MMF_ACOD_U_0210()
10260 // store the name of this test case
10261 // this is the name that is used by the script file
10262 // Each test step initialises it's own name
10263 iTestStepName = _L("MM-MMF-ACOD-U-0210-HP");
10265 iExpectedLeaveErrorCode = KErrArgument;
10269 * PCM16 to PCMU16 Pass in zero sized destination buffer
10270 * @test Req. under test REQ172.6.4, REQ172.6.5
10272 TVerdict CTest_MMF_ACOD_U_0210::DoTestStepL()
10274 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16};
10275 TBool testOK = EFalse;
10276 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16OptimumSrc, 0));
10280 INFO_PRINTF2(_L("Test left with status %d"), err);
10285 INFO_PRINTF1(_L("Test failed"));
10292 //------------------------------------------------------------------
10297 CTest_MMF_ACOD_U_0211::CTest_MMF_ACOD_U_0211()
10299 // store the name of this test case
10300 // this is the name that is used by the script file
10301 // Each test step initialises it's own name
10302 iTestStepName = _L("MM-MMF-ACOD-U-0211-HP");
10306 * PCM16 to PCMU16 Test out of memory
10307 * @test Req. under test REQ172.11
10309 TVerdict CTest_MMF_ACOD_U_0211::DoTestStepL()
10311 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16};
10312 TBool testOK = EFalse;
10314 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
10315 if (err==KErrNone && testOK)
10316 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
10320 INFO_PRINTF2(_L("Test left with status %d"), err);
10325 INFO_PRINTF1(_L("Test failed"));
10332 //------------------------------------------------------------------
10338 CTest_MMF_ACOD_U_0212::CTest_MMF_ACOD_U_0212()
10340 // store the name of this test case
10341 // this is the name that is used by the script file
10342 // Each test step initialises it's own name
10343 iTestStepName = _L("MM-MMF-ACOD-U-0212-HP");
10347 * PCM16 to PCMU16 Test for memory leaks
10348 * @test Req. under test REQ172.11
10350 TVerdict CTest_MMF_ACOD_U_0212::DoTestStepL()
10352 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16};
10353 TBool testOK = EFalse;
10354 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
10358 INFO_PRINTF2(_L("Test left with status %d"), err);
10363 INFO_PRINTF1(_L("Test failed"));
10370 //------------------------------------------------------------------
10376 CTest_MMF_ACOD_U_0213::CTest_MMF_ACOD_U_0213()
10378 // store the name of this test case
10379 // this is the name that is used by the script file
10380 // Each test step initialises it's own name
10381 iTestStepName = _L("MM-MMF-ACOD-U-0213-HP");
10385 * PCM16 to PCMU16 Test for memory scribbles
10386 * @test Req. under test REQ172.11
10388 TVerdict CTest_MMF_ACOD_U_0213::DoTestStepL()
10390 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU16};
10391 TBool testOK = EFalse;
10392 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
10396 INFO_PRINTF2(_L("Test left with status %d"), err);
10401 INFO_PRINTF1(_L("Test failed"));
10408 //------------------------------------------------------------------
10412 CTest_MMF_ACOD_U_0214::CTest_MMF_ACOD_U_0214()
10414 // store the name of this test case
10415 // this is the name that is used by the script file
10416 // Each test step initialises it's own name
10417 iTestStepName = _L("MM-MMF-ACOD-U-0214-HP");
10419 for (TUint i=0; i<5; i++)
10421 iExpectedSrcBytesProcessed[i] = 0;
10422 iExpectedDstBytesAdded[i] = 0;
10423 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
10428 * PCM16 to PCMU8 Pass in zero sized source buffer
10429 * @test Req. under test REQ172.6.4, REQ172.6.5
10431 TVerdict CTest_MMF_ACOD_U_0214::DoTestStepL()
10433 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU8};
10434 TBool testOK = EFalse;
10435 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToPCMU8OptimumDst));
10439 INFO_PRINTF2(_L("Test left with status %d"), err);
10444 INFO_PRINTF1(_L("Test failed"));
10451 //------------------------------------------------------------------
10456 CTest_MMF_ACOD_U_0215::CTest_MMF_ACOD_U_0215()
10458 // store the name of this test case
10459 // this is the name that is used by the script file
10460 // Each test step initialises it's own name
10461 iTestStepName = _L("MM-MMF-ACOD-U-0215-HP");
10463 iExpectedLeaveErrorCode = KErrArgument;
10467 * PCM16 to PCMU8 Pass in zero sized destination buffer
10468 * @test Req. under test REQ172.6.4, REQ172.6.5
10470 TVerdict CTest_MMF_ACOD_U_0215::DoTestStepL()
10472 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU8};
10473 TBool testOK = EFalse;
10474 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU8OptimumSrc, 0));
10478 INFO_PRINTF2(_L("Test left with status %d"), err);
10483 INFO_PRINTF1(_L("Test failed"));
10490 //------------------------------------------------------------------
10495 CTest_MMF_ACOD_U_0216::CTest_MMF_ACOD_U_0216()
10497 // store the name of this test case
10498 // this is the name that is used by the script file
10499 // Each test step initialises it's own name
10500 iTestStepName = _L("MM-MMF-ACOD-U-0216-HP");
10504 * PCM16 to PCMU8 Test out of memory
10505 * @test Req. under test REQ172.11
10507 TVerdict CTest_MMF_ACOD_U_0216::DoTestStepL()
10509 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU8};
10510 TBool testOK = EFalse;
10512 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
10513 if (err==KErrNone && testOK)
10514 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
10518 INFO_PRINTF2(_L("Test left with status %d"), err);
10523 INFO_PRINTF1(_L("Test failed"));
10530 //------------------------------------------------------------------
10536 CTest_MMF_ACOD_U_0217::CTest_MMF_ACOD_U_0217()
10538 // store the name of this test case
10539 // this is the name that is used by the script file
10540 // Each test step initialises it's own name
10541 iTestStepName = _L("MM-MMF-ACOD-U-0217-HP");
10545 * PCM16 to PCMU8 Test for memory leaks
10546 * @test Req. under test REQ172.11
10548 TVerdict CTest_MMF_ACOD_U_0217::DoTestStepL()
10550 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU8};
10551 TBool testOK = EFalse;
10552 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
10556 INFO_PRINTF2(_L("Test left with status %d"), err);
10561 INFO_PRINTF1(_L("Test failed"));
10568 //------------------------------------------------------------------
10574 CTest_MMF_ACOD_U_0218::CTest_MMF_ACOD_U_0218()
10576 // store the name of this test case
10577 // this is the name that is used by the script file
10578 // Each test step initialises it's own name
10579 iTestStepName = _L("MM-MMF-ACOD-U-0218-HP");
10583 * PCM16 to PCMU8 Test for memory scribbles
10584 * @test Req. under test REQ172.11
10586 TVerdict CTest_MMF_ACOD_U_0218::DoTestStepL()
10588 const TUid codecUid = {KMmfUidCodecAudioS16ToPCMU8};
10589 TBool testOK = EFalse;
10590 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
10594 INFO_PRINTF2(_L("Test left with status %d"), err);
10599 INFO_PRINTF1(_L("Test failed"));
10606 //------------------------------------------------------------------
10611 CTest_MMF_ACOD_U_0219::CTest_MMF_ACOD_U_0219()
10613 // store the name of this test case
10614 // this is the name that is used by the script file
10615 // Each test step initialises it's own name
10616 iTestStepName = _L("MM-MMF-ACOD-U-0219-HP");
10618 for (TUint i=0; i<5; i++)
10620 iExpectedSrcBytesProcessed[i] = 0;
10621 iExpectedDstBytesAdded[i] = 0;
10622 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
10627 * PCMU16BE to PCM16 Pass in zero sized source buffer
10628 * @test Req. under test REQ172.6.4, REQ172.6.5
10630 TVerdict CTest_MMF_ACOD_U_0219::DoTestStepL()
10632 const TUid codecUid = {KMmfUidCodecAudioU16BEToPCMS16};
10633 TBool testOK = EFalse;
10634 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCMU16BToPCM16OptimumDst));
10638 INFO_PRINTF2(_L("Test left with status %d"), err);
10643 INFO_PRINTF1(_L("Test failed"));
10650 //------------------------------------------------------------------
10655 CTest_MMF_ACOD_U_0220::CTest_MMF_ACOD_U_0220()
10657 // store the name of this test case
10658 // this is the name that is used by the script file
10659 // Each test step initialises it's own name
10660 iTestStepName = _L("MM-MMF-ACOD-U-0220-HP");
10662 iExpectedLeaveErrorCode = KErrArgument;
10666 * PCMU16BE to PCM16 Pass in zero sized destination buffer
10667 * @test Req. under test REQ172.6.4, REQ172.6.5
10669 TVerdict CTest_MMF_ACOD_U_0220::DoTestStepL()
10671 const TUid codecUid = {KMmfUidCodecAudioU16BEToPCMS16};
10672 TBool testOK = EFalse;
10673 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16BToPCM16OptimumSrc, 0));
10677 INFO_PRINTF2(_L("Test left with status %d"), err);
10682 INFO_PRINTF1(_L("Test failed"));
10689 //------------------------------------------------------------------
10694 CTest_MMF_ACOD_U_0221::CTest_MMF_ACOD_U_0221()
10696 // store the name of this test case
10697 // this is the name that is used by the script file
10698 // Each test step initialises it's own name
10699 iTestStepName = _L("MM-MMF-ACOD-U-0221-HP");
10703 * PCMU16BE to PCM16 Test out of memory
10704 * @test Req. under test REQ172.11
10706 TVerdict CTest_MMF_ACOD_U_0221::DoTestStepL()
10708 const TUid codecUid = {KMmfUidCodecAudioU16BEToPCMS16};
10709 TBool testOK = EFalse;
10711 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
10712 if (err==KErrNone && testOK)
10713 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
10717 INFO_PRINTF2(_L("Test left with status %d"), err);
10722 INFO_PRINTF1(_L("Test failed"));
10729 //------------------------------------------------------------------
10735 CTest_MMF_ACOD_U_0222::CTest_MMF_ACOD_U_0222()
10737 // store the name of this test case
10738 // this is the name that is used by the script file
10739 // Each test step initialises it's own name
10740 iTestStepName = _L("MM-MMF-ACOD-U-0222-HP");
10744 * PCMU16BE to PCM16 Test for memory leaks
10745 * @test Req. under test REQ172.11
10747 TVerdict CTest_MMF_ACOD_U_0222::DoTestStepL()
10749 const TUid codecUid = {KMmfUidCodecAudioU16BEToPCMS16};
10750 TBool testOK = EFalse;
10751 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
10755 INFO_PRINTF2(_L("Test left with status %d"), err);
10760 INFO_PRINTF1(_L("Test failed"));
10767 //------------------------------------------------------------------
10773 CTest_MMF_ACOD_U_0223::CTest_MMF_ACOD_U_0223()
10775 // store the name of this test case
10776 // this is the name that is used by the script file
10777 // Each test step initialises it's own name
10778 iTestStepName = _L("MM-MMF-ACOD-U-0223-HP");
10782 * PCMU16BE to PCM16 Test for memory scribbles
10783 * @test Req. under test REQ172.11
10785 TVerdict CTest_MMF_ACOD_U_0223::DoTestStepL()
10787 const TUid codecUid = {KMmfUidCodecAudioU16BEToPCMS16};
10788 TBool testOK = EFalse;
10789 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
10793 INFO_PRINTF2(_L("Test left with status %d"), err);
10798 INFO_PRINTF1(_L("Test failed"));
10805 //------------------------------------------------------------------
10810 CTest_MMF_ACOD_U_0224::CTest_MMF_ACOD_U_0224()
10812 // store the name of this test case
10813 // this is the name that is used by the script file
10814 // Each test step initialises it's own name
10815 iTestStepName = _L("MM-MMF-ACOD-U-0224-HP");
10817 for (TUint i=0; i<5; i++)
10819 iExpectedSrcBytesProcessed[i] = 0;
10820 iExpectedDstBytesAdded[i] = 0;
10821 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
10826 * PCMU16 to PCM16 Pass in zero sized source buffer
10827 * @test Req. under test REQ172.6.4, REQ172.6.5
10829 TVerdict CTest_MMF_ACOD_U_0224::DoTestStepL()
10831 const TUid codecUid = {KMmfUidCodecAudioU16ToPCMS16};
10832 TBool testOK = EFalse;
10833 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCMU16ToPCM16OptimumDst));
10837 INFO_PRINTF2(_L("Test left with status %d"), err);
10842 INFO_PRINTF1(_L("Test failed"));
10849 //------------------------------------------------------------------
10854 CTest_MMF_ACOD_U_0225::CTest_MMF_ACOD_U_0225()
10856 // store the name of this test case
10857 // this is the name that is used by the script file
10858 // Each test step initialises it's own name
10859 iTestStepName = _L("MM-MMF-ACOD-U-0225-HP");
10861 iExpectedLeaveErrorCode = KErrArgument;
10865 * PCMU16 to PCM16 Pass in zero sized destination buffer
10866 * @test Req. under test REQ172.6.4, REQ172.6.5
10868 TVerdict CTest_MMF_ACOD_U_0225::DoTestStepL()
10870 const TUid codecUid = {KMmfUidCodecAudioU16ToPCMS16};
10871 TBool testOK = EFalse;
10872 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16ToPCM16OptimumSrc, 0));
10876 INFO_PRINTF2(_L("Test left with status %d"), err);
10881 INFO_PRINTF1(_L("Test failed"));
10888 //------------------------------------------------------------------
10893 CTest_MMF_ACOD_U_0226::CTest_MMF_ACOD_U_0226()
10895 // store the name of this test case
10896 // this is the name that is used by the script file
10897 // Each test step initialises it's own name
10898 iTestStepName = _L("MM-MMF-ACOD-U-0226-HP");
10902 * PCMU16 to PCM16 Test out of memory
10903 * @test Req. under test REQ172.11
10905 TVerdict CTest_MMF_ACOD_U_0226::DoTestStepL()
10907 const TUid codecUid = {KMmfUidCodecAudioU16ToPCMS16};
10908 TBool testOK = EFalse;
10910 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
10911 if (err==KErrNone && testOK)
10912 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
10916 INFO_PRINTF2(_L("Test left with status %d"), err);
10921 INFO_PRINTF1(_L("Test failed"));
10928 //------------------------------------------------------------------
10933 CTest_MMF_ACOD_U_0227::CTest_MMF_ACOD_U_0227()
10935 // store the name of this test case
10936 // this is the name that is used by the script file
10937 // Each test step initialises it's own name
10938 iTestStepName = _L("MM-MMF-ACOD-U-0227-HP");
10942 * PCMU16 to PCM16 Test for memory leaks
10943 * @test Req. under test REQ172.11
10945 TVerdict CTest_MMF_ACOD_U_0227::DoTestStepL()
10947 const TUid codecUid = {KMmfUidCodecAudioU16ToPCMS16};
10948 TBool testOK = EFalse;
10949 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
10953 INFO_PRINTF2(_L("Test left with status %d"), err);
10958 INFO_PRINTF1(_L("Test failed"));
10965 //------------------------------------------------------------------
10970 CTest_MMF_ACOD_U_0228::CTest_MMF_ACOD_U_0228()
10972 // store the name of this test case
10973 // this is the name that is used by the script file
10974 // Each test step initialises it's own name
10975 iTestStepName = _L("MM-MMF-ACOD-U-0228-HP");
10979 * PCMU16 to PCM16 Test for memory scribbles
10980 * @test Req. under test REQ172.11
10982 TVerdict CTest_MMF_ACOD_U_0228::DoTestStepL()
10984 const TUid codecUid = {KMmfUidCodecAudioU16ToPCMS16};
10985 TBool testOK = EFalse;
10986 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
10990 INFO_PRINTF2(_L("Test left with status %d"), err);
10995 INFO_PRINTF1(_L("Test failed"));
11002 //------------------------------------------------------------------
11007 CTest_MMF_ACOD_U_0229::CTest_MMF_ACOD_U_0229()
11009 // store the name of this test case
11010 // this is the name that is used by the script file
11011 // Each test step initialises it's own name
11012 iTestStepName = _L("MM-MMF-ACOD-U-0229-HP");
11014 for (TUint i=0; i<5; i++)
11016 iExpectedSrcBytesProcessed[i] = 0;
11017 iExpectedDstBytesAdded[i] = 0;
11018 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
11023 * PCMU8 To PCM16 Pass in zero sized source buffer
11024 * @test Req. under test REQ172.6.4, REQ172.6.5
11026 TVerdict CTest_MMF_ACOD_U_0229::DoTestStepL()
11028 const TUid codecUid = {KMmfUidCodecAudioU8ToPCMS16};
11029 TBool testOK = EFalse;
11030 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCMU8ToPCM16OptimumDst));
11034 INFO_PRINTF2(_L("Test left with status %d"), err);
11039 INFO_PRINTF1(_L("Test failed"));
11046 //------------------------------------------------------------------
11051 CTest_MMF_ACOD_U_0230::CTest_MMF_ACOD_U_0230()
11053 // store the name of this test case
11054 // this is the name that is used by the script file
11055 // Each test step initialises it's own name
11056 iTestStepName = _L("MM-MMF-ACOD-U-0230-HP");
11058 iExpectedLeaveErrorCode = KErrArgument;
11062 * PCMU8 To PCM16 Pass in zero sized destination buffer
11063 * @test Req. under test REQ172.6.4, REQ172.6.5
11065 TVerdict CTest_MMF_ACOD_U_0230::DoTestStepL()
11067 const TUid codecUid = {KMmfUidCodecAudioU8ToPCMS16};
11068 TBool testOK = EFalse;
11069 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU8ToPCM16OptimumSrc, 0));
11073 INFO_PRINTF2(_L("Test left with status %d"), err);
11078 INFO_PRINTF1(_L("Test failed"));
11085 //------------------------------------------------------------------
11090 CTest_MMF_ACOD_U_0231::CTest_MMF_ACOD_U_0231()
11092 // store the name of this test case
11093 // this is the name that is used by the script file
11094 // Each test step initialises it's own name
11095 iTestStepName = _L("MM-MMF-ACOD-U-0231-HP");
11099 * PCMU8 To PCM16 Test out of memory
11100 * @test Req. under test REQ172.11
11102 TVerdict CTest_MMF_ACOD_U_0231::DoTestStepL()
11104 const TUid codecUid = {KMmfUidCodecAudioU8ToPCMS16};
11105 TBool testOK = EFalse;
11107 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
11108 if (err==KErrNone && testOK)
11109 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
11113 INFO_PRINTF2(_L("Test left with status %d"), err);
11118 INFO_PRINTF1(_L("Test failed"));
11125 //------------------------------------------------------------------
11131 CTest_MMF_ACOD_U_0232::CTest_MMF_ACOD_U_0232()
11133 // store the name of this test case
11134 // this is the name that is used by the script file
11135 // Each test step initialises it's own name
11136 iTestStepName = _L("MM-MMF-ACOD-U-0232-HP");
11140 * PCMU8 To PCM16 Test for memory leaks
11141 * @test Req. under test REQ172.11
11143 TVerdict CTest_MMF_ACOD_U_0232::DoTestStepL()
11145 const TUid codecUid = {KMmfUidCodecAudioU8ToPCMS16};
11146 TBool testOK = EFalse;
11147 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
11151 INFO_PRINTF2(_L("Test left with status %d"), err);
11156 INFO_PRINTF1(_L("Test failed"));
11163 //------------------------------------------------------------------
11169 CTest_MMF_ACOD_U_0233::CTest_MMF_ACOD_U_0233()
11171 // store the name of this test case
11172 // this is the name that is used by the script file
11173 // Each test step initialises it's own name
11174 iTestStepName = _L("MM-MMF-ACOD-U-0233-HP");
11178 * PCMU8 To PCM16 Test for memory scribbles
11179 * @test Req. under test REQ172.11
11181 TVerdict CTest_MMF_ACOD_U_0233::DoTestStepL()
11183 const TUid codecUid = {KMmfUidCodecAudioU8ToPCMS16};
11184 TBool testOK = EFalse;
11185 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
11189 INFO_PRINTF2(_L("Test left with status %d"), err);
11194 INFO_PRINTF1(_L("Test failed"));
11201 //------------------------------------------------------------------
11206 CTest_MMF_ACOD_U_0234::CTest_MMF_ACOD_U_0234()
11208 // store the name of this test case
11209 // this is the name that is used by the script file
11210 // Each test step initialises it's own name
11211 iTestStepName = _L("MM-MMF-ACOD-U-0234-HP");
11213 for (TUint i=0; i<5; i++)
11215 iExpectedSrcBytesProcessed[i] = 0;
11216 iExpectedDstBytesAdded[i] = 0;
11217 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
11222 * MULAW To PCM16 Pass in zero sized source buffer
11223 * @test Req. under test REQ172.6.4, REQ172.6.5
11225 TVerdict CTest_MMF_ACOD_U_0234::DoTestStepL()
11227 const TUid codecUid = {KMmfUidCodecMulawToPCM16};
11228 TBool testOK = EFalse;
11229 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KMulawToPCM16OptimumDst));
11233 INFO_PRINTF2(_L("Test left with status %d"), err);
11238 INFO_PRINTF1(_L("Test failed"));
11245 //------------------------------------------------------------------
11250 CTest_MMF_ACOD_U_0235::CTest_MMF_ACOD_U_0235()
11252 // store the name of this test case
11253 // this is the name that is used by the script file
11254 // Each test step initialises it's own name
11255 iTestStepName = _L("MM-MMF-ACOD-U-0235-HP");
11257 iExpectedLeaveErrorCode = KErrArgument;
11261 * MULAW To PCM16 Pass in zero sized destination buffer
11262 * @test Req. under test REQ172.6.4, REQ172.6.5
11264 TVerdict CTest_MMF_ACOD_U_0235::DoTestStepL()
11266 const TUid codecUid = {KMmfUidCodecMulawToPCM16};
11267 TBool testOK = EFalse;
11268 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMulawToPCM16OptimumSrc, 0));
11272 INFO_PRINTF2(_L("Test left with status %d"), err);
11277 INFO_PRINTF1(_L("Test failed"));
11284 //------------------------------------------------------------------
11289 CTest_MMF_ACOD_U_0236::CTest_MMF_ACOD_U_0236()
11291 // store the name of this test case
11292 // this is the name that is used by the script file
11293 // Each test step initialises it's own name
11294 iTestStepName = _L("MM-MMF-ACOD-U-0236-HP");
11298 * MULAW To PCM16 Test out of memory
11299 * @test Req. under test REQ172.11
11301 TVerdict CTest_MMF_ACOD_U_0236::DoTestStepL()
11303 const TUid codecUid = {KMmfUidCodecMulawToPCM16};
11304 TBool testOK = EFalse;
11306 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
11307 if (err==KErrNone && testOK)
11308 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
11312 INFO_PRINTF2(_L("Test left with status %d"), err);
11317 INFO_PRINTF1(_L("Test failed"));
11324 //------------------------------------------------------------------
11330 CTest_MMF_ACOD_U_0237::CTest_MMF_ACOD_U_0237()
11332 // store the name of this test case
11333 // this is the name that is used by the script file
11334 // Each test step initialises it's own name
11335 iTestStepName = _L("MM-MMF-ACOD-U-0237-HP");
11339 * MULAW To PCM16 Test for memory leaks
11340 * @test Req. under test REQ172.11
11342 TVerdict CTest_MMF_ACOD_U_0237::DoTestStepL()
11344 const TUid codecUid = {KMmfUidCodecMulawToPCM16};
11345 TBool testOK = EFalse;
11346 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
11350 INFO_PRINTF2(_L("Test left with status %d"), err);
11355 INFO_PRINTF1(_L("Test failed"));
11362 //------------------------------------------------------------------
11368 CTest_MMF_ACOD_U_0238::CTest_MMF_ACOD_U_0238()
11370 // store the name of this test case
11371 // this is the name that is used by the script file
11372 // Each test step initialises it's own name
11373 iTestStepName = _L("MM-MMF-ACOD-U-0238-HP");
11377 * MULAW To PCM16 Test for memory scribbles
11378 * @test Req. under test REQ172.11
11380 TVerdict CTest_MMF_ACOD_U_0238::DoTestStepL()
11382 const TUid codecUid = {KMmfUidCodecMulawToPCM16};
11383 TBool testOK = EFalse;
11384 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
11388 INFO_PRINTF2(_L("Test left with status %d"), err);
11393 INFO_PRINTF1(_L("Test failed"));
11400 //------------------------------------------------------------------
11405 CTest_MMF_ACOD_U_0239::CTest_MMF_ACOD_U_0239()
11407 // store the name of this test case
11408 // this is the name that is used by the script file
11409 // Each test step initialises it's own name
11410 iTestStepName = _L("MM-MMF-ACOD-U-0239-HP");
11412 for (TUint i=0; i<5; i++)
11414 iExpectedSrcBytesProcessed[i] = 0;
11415 iExpectedDstBytesAdded[i] = 0;
11416 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
11421 * PCM16 to MULAW Pass in zero sized source buffer
11422 * @test Req. under test REQ172.6.4, REQ172.6.5
11424 TVerdict CTest_MMF_ACOD_U_0239::DoTestStepL()
11426 const TUid codecUid = {KMmfUidCodecPCM16ToMulaw};
11427 TBool testOK = EFalse;
11428 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToMulawOptimumDst));
11432 INFO_PRINTF2(_L("Test left with status %d"), err);
11437 INFO_PRINTF1(_L("Test failed"));
11444 //------------------------------------------------------------------
11449 CTest_MMF_ACOD_U_0240::CTest_MMF_ACOD_U_0240()
11451 // store the name of this test case
11452 // this is the name that is used by the script file
11453 // Each test step initialises it's own name
11454 iTestStepName = _L("MM-MMF-ACOD-U-0240-HP");
11456 iExpectedLeaveErrorCode = KErrArgument;
11460 * PCM16 to MULAW Pass in zero sized destination buffer
11461 * @test Req. under test REQ172.6.4, REQ172.6.5
11463 TVerdict CTest_MMF_ACOD_U_0240::DoTestStepL()
11465 const TUid codecUid = {KMmfUidCodecPCM16ToMulaw};
11466 TBool testOK = EFalse;
11467 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToMulawOptimumSrc, 0));
11471 INFO_PRINTF2(_L("Test left with status %d"), err);
11476 INFO_PRINTF1(_L("Test failed"));
11483 //------------------------------------------------------------------
11488 CTest_MMF_ACOD_U_0241::CTest_MMF_ACOD_U_0241()
11490 // store the name of this test case
11491 // this is the name that is used by the script file
11492 // Each test step initialises it's own name
11493 iTestStepName = _L("MM-MMF-ACOD-U-0241-HP");
11497 * PCM16 to MULAW Test out of memory
11498 * @test Req. under test REQ172.11
11500 TVerdict CTest_MMF_ACOD_U_0241::DoTestStepL()
11502 const TUid codecUid = {KMmfUidCodecPCM16ToMulaw};
11503 TBool testOK = EFalse;
11505 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
11506 if (err==KErrNone && testOK)
11507 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
11511 INFO_PRINTF2(_L("Test left with status %d"), err);
11516 INFO_PRINTF1(_L("Test failed"));
11523 //------------------------------------------------------------------
11529 CTest_MMF_ACOD_U_0242::CTest_MMF_ACOD_U_0242()
11531 // store the name of this test case
11532 // this is the name that is used by the script file
11533 // Each test step initialises it's own name
11534 iTestStepName = _L("MM-MMF-ACOD-U-0242-HP");
11538 * PCM16 to MULAW Test for memory leaks
11539 * @test Req. under test REQ172.11
11541 TVerdict CTest_MMF_ACOD_U_0242::DoTestStepL()
11543 const TUid codecUid = {KMmfUidCodecPCM16ToMulaw};
11544 TBool testOK = EFalse;
11545 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
11549 INFO_PRINTF2(_L("Test left with status %d"), err);
11554 INFO_PRINTF1(_L("Test failed"));
11561 //------------------------------------------------------------------
11567 CTest_MMF_ACOD_U_0243::CTest_MMF_ACOD_U_0243()
11569 // store the name of this test case
11570 // this is the name that is used by the script file
11571 // Each test step initialises it's own name
11572 iTestStepName = _L("MM-MMF-ACOD-U-0243-HP");
11576 * PCM16 to MULAW Test for memory scribbles
11577 * @test Req. under test REQ172.11
11579 TVerdict CTest_MMF_ACOD_U_0243::DoTestStepL()
11581 const TUid codecUid = {KMmfUidCodecPCM16ToMulaw};
11582 TBool testOK = EFalse;
11583 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
11587 INFO_PRINTF2(_L("Test left with status %d"), err);
11592 INFO_PRINTF1(_L("Test failed"));
11599 //------------------------------------------------------------------
11604 CTest_MMF_ACOD_U_0244::CTest_MMF_ACOD_U_0244()
11606 // store the name of this test case
11607 // this is the name that is used by the script file
11608 // Each test step initialises it's own name
11609 iTestStepName = _L("MM-MMF-ACOD-U-0244-HP");
11611 for (TUint i=0; i<5; i++)
11613 iExpectedSrcBytesProcessed[i] = 0;
11614 iExpectedDstBytesAdded[i] = 0;
11615 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
11620 * IMAD To PCM16 Pass in zero sized source buffer
11621 * @test Req. under test REQ172.6.4, REQ172.6.5
11623 TVerdict CTest_MMF_ACOD_U_0244::DoTestStepL()
11625 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16};
11626 TBool testOK = EFalse;
11627 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KAdpcmToPCM16OptimumDst));
11631 INFO_PRINTF2(_L("Test left with status %d"), err);
11636 INFO_PRINTF1(_L("Test failed"));
11643 //------------------------------------------------------------------
11648 CTest_MMF_ACOD_U_0245::CTest_MMF_ACOD_U_0245()
11650 // store the name of this test case
11651 // this is the name that is used by the script file
11652 // Each test step initialises it's own name
11653 iTestStepName = _L("MM-MMF-ACOD-U-0245-HP");
11655 iExpectedLeaveErrorCode = KErrArgument;
11659 * IMAD To PCM16 Pass in zero sized destination buffer
11660 * @test Req. under test REQ172.6.4, REQ172.6.5
11662 TVerdict CTest_MMF_ACOD_U_0245::DoTestStepL()
11664 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16};
11665 TBool testOK = EFalse;
11666 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAdpcmToPCM16OptimumSrc, 0));
11670 INFO_PRINTF2(_L("Test left with status %d"), err);
11675 INFO_PRINTF1(_L("Test failed"));
11682 //------------------------------------------------------------------
11687 CTest_MMF_ACOD_U_0246::CTest_MMF_ACOD_U_0246()
11689 // store the name of this test case
11690 // this is the name that is used by the script file
11691 // Each test step initialises it's own name
11692 iTestStepName = _L("MM-MMF-ACOD-U-0246-HP");
11696 * IMAD To PCM16 Test out of memory
11697 * @test Req. under test REQ172.11
11699 TVerdict CTest_MMF_ACOD_U_0246::DoTestStepL()
11701 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16};
11702 TBool testOK = EFalse;
11704 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
11705 if (err==KErrNone && testOK)
11706 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
11710 INFO_PRINTF2(_L("Test left with status %d"), err);
11715 INFO_PRINTF1(_L("Test failed"));
11722 //------------------------------------------------------------------
11727 CTest_MMF_ACOD_U_0247::CTest_MMF_ACOD_U_0247()
11729 // store the name of this test case
11730 // this is the name that is used by the script file
11731 // Each test step initialises it's own name
11732 iTestStepName = _L("MM-MMF-ACOD-U-0247-HP");
11736 * IMAD To PCM16 Test for memory leaks
11737 * @test Req. under test REQ172.11
11739 TVerdict CTest_MMF_ACOD_U_0247::DoTestStepL()
11741 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16};
11742 TBool testOK = EFalse;
11743 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
11747 INFO_PRINTF2(_L("Test left with status %d"), err);
11752 INFO_PRINTF1(_L("Test failed"));
11759 //------------------------------------------------------------------
11764 CTest_MMF_ACOD_U_0248::CTest_MMF_ACOD_U_0248()
11766 // store the name of this test case
11767 // this is the name that is used by the script file
11768 // Each test step initialises it's own name
11769 iTestStepName = _L("MM-MMF-ACOD-U-0248-HP");
11773 * IMAD To PCM16 Test for memory scribbles
11774 * @test Req. under test REQ172.11
11776 TVerdict CTest_MMF_ACOD_U_0248::DoTestStepL()
11778 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16};
11779 TBool testOK = EFalse;
11780 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
11784 INFO_PRINTF2(_L("Test left with status %d"), err);
11789 INFO_PRINTF1(_L("Test failed"));
11796 //------------------------------------------------------------------
11801 CTest_MMF_ACOD_U_0249::CTest_MMF_ACOD_U_0249()
11803 // store the name of this test case
11804 // this is the name that is used by the script file
11805 // Each test step initialises it's own name
11806 iTestStepName = _L("MM-MMF-ACOD-U-0249-HP");
11808 for (TUint i=0; i<5; i++)
11810 iExpectedSrcBytesProcessed[i] = 0;
11811 iExpectedDstBytesAdded[i] = 0;
11812 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
11817 * PCM16 to IMAD Pass in zero sized source buffer
11818 * @test Req. under test REQ172.6.4, REQ172.6.5
11820 TVerdict CTest_MMF_ACOD_U_0249::DoTestStepL()
11822 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCM};
11823 TBool testOK = EFalse;
11824 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToAdpcmOptimumDst));
11828 INFO_PRINTF2(_L("Test left with status %d"), err);
11833 INFO_PRINTF1(_L("Test failed"));
11840 //------------------------------------------------------------------
11845 CTest_MMF_ACOD_U_0250::CTest_MMF_ACOD_U_0250()
11847 // store the name of this test case
11848 // this is the name that is used by the script file
11849 // Each test step initialises it's own name
11850 iTestStepName = _L("MM-MMF-ACOD-U-0250-HP");
11852 iExpectedLeaveErrorCode = KErrArgument;
11856 * PCM16 to IMAD Pass in zero sized destination buffer
11857 * @test Req. under test REQ172.6.4, REQ172.6.5
11859 TVerdict CTest_MMF_ACOD_U_0250::DoTestStepL()
11861 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCM};
11862 TBool testOK = EFalse;
11863 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAdpcmOptimumSrc, 0));
11867 INFO_PRINTF2(_L("Test left with status %d"), err);
11872 INFO_PRINTF1(_L("Test failed"));
11879 //------------------------------------------------------------------
11884 CTest_MMF_ACOD_U_0251::CTest_MMF_ACOD_U_0251()
11886 // store the name of this test case
11887 // this is the name that is used by the script file
11888 // Each test step initialises it's own name
11889 iTestStepName = _L("MM-MMF-ACOD-U-0251-HP");
11893 * PCM16 to IMAD Test out of memory
11894 * @test Req. under test REQ172.11
11896 TVerdict CTest_MMF_ACOD_U_0251::DoTestStepL()
11898 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCM};
11899 TBool testOK = EFalse;
11901 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
11902 if (err==KErrNone && testOK)
11903 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
11907 INFO_PRINTF2(_L("Test left with status %d"), err);
11912 INFO_PRINTF1(_L("Test failed"));
11919 //------------------------------------------------------------------
11925 CTest_MMF_ACOD_U_0252::CTest_MMF_ACOD_U_0252()
11927 // store the name of this test case
11928 // this is the name that is used by the script file
11929 // Each test step initialises it's own name
11930 iTestStepName = _L("MM-MMF-ACOD-U-0252-HP");
11934 * PCM16 to IMAD Test for memory leaks
11935 * @test Req. under test REQ172.11
11937 TVerdict CTest_MMF_ACOD_U_0252::DoTestStepL()
11939 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCM};
11940 TBool testOK = EFalse;
11941 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
11945 INFO_PRINTF2(_L("Test left with status %d"), err);
11950 INFO_PRINTF1(_L("Test failed"));
11957 //------------------------------------------------------------------
11962 CTest_MMF_ACOD_U_0253::CTest_MMF_ACOD_U_0253()
11964 // store the name of this test case
11965 // this is the name that is used by the script file
11966 // Each test step initialises it's own name
11967 iTestStepName = _L("MM-MMF-ACOD-U-0253-HP");
11971 * PCM16 to IMAD Test for memory scribbles
11972 * @test Req. under test REQ172.11
11974 TVerdict CTest_MMF_ACOD_U_0253::DoTestStepL()
11976 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCM};
11977 TBool testOK = EFalse;
11978 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
11982 INFO_PRINTF2(_L("Test left with status %d"), err);
11987 INFO_PRINTF1(_L("Test failed"));
11994 //------------------------------------------------------------------
11999 CTest_MMF_ACOD_U_0254::CTest_MMF_ACOD_U_0254()
12001 // store the name of this test case
12002 // this is the name that is used by the script file
12003 // Each test step initialises it's own name
12004 iTestStepName = _L("MM-MMF-ACOD-U-0254-HP");
12006 for (TUint i=0; i<5; i++)
12008 iExpectedSrcBytesProcessed[i] = 0;
12009 iExpectedDstBytesAdded[i] = 0;
12010 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
12015 * IMAS To PCM16 Pass in zero sized source buffer
12016 * @test Req. under test REQ172.6.4, REQ172.6.5
12018 TVerdict CTest_MMF_ACOD_U_0254::DoTestStepL()
12020 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16Stereo};
12021 TBool testOK = EFalse;
12022 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KStereoAdpcmToPCM16OptimumDst));
12026 INFO_PRINTF2(_L("Test left with status %d"), err);
12031 INFO_PRINTF1(_L("Test failed"));
12038 //------------------------------------------------------------------
12043 CTest_MMF_ACOD_U_0255::CTest_MMF_ACOD_U_0255()
12045 // store the name of this test case
12046 // this is the name that is used by the script file
12047 // Each test step initialises it's own name
12048 iTestStepName = _L("MM-MMF-ACOD-U-0255-HP");
12050 iExpectedLeaveErrorCode = KErrArgument;
12054 * IMAS To PCM16 Pass in zero sized destination buffer
12055 * @test Req. under test REQ172.6.4, REQ172.6.5
12057 TVerdict CTest_MMF_ACOD_U_0255::DoTestStepL()
12059 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16Stereo};
12060 TBool testOK = EFalse;
12061 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KStereoAdpcmToPCM16OptimumSrc, 0));
12065 INFO_PRINTF2(_L("Test left with status %d"), err);
12070 INFO_PRINTF1(_L("Test failed"));
12077 //------------------------------------------------------------------
12082 CTest_MMF_ACOD_U_0256::CTest_MMF_ACOD_U_0256()
12084 // store the name of this test case
12085 // this is the name that is used by the script file
12086 // Each test step initialises it's own name
12087 iTestStepName = _L("MM-MMF-ACOD-U-0256-HP");
12091 * IMAS To PCM16 Test out of memory
12092 * @test Req. under test REQ172.11
12094 TVerdict CTest_MMF_ACOD_U_0256::DoTestStepL()
12096 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16Stereo};
12097 TBool testOK = EFalse;
12099 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
12100 if (err==KErrNone && testOK)
12101 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
12105 INFO_PRINTF2(_L("Test left with status %d"), err);
12110 INFO_PRINTF1(_L("Test failed"));
12117 //------------------------------------------------------------------
12122 CTest_MMF_ACOD_U_0257::CTest_MMF_ACOD_U_0257()
12124 // store the name of this test case
12125 // this is the name that is used by the script file
12126 // Each test step initialises it's own name
12127 iTestStepName = _L("MM-MMF-ACOD-U-0257-HP");
12131 * IMAS To PCM16 Test for memory leaks
12132 * @test Req. under test REQ172.11
12134 TVerdict CTest_MMF_ACOD_U_0257::DoTestStepL()
12136 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16Stereo};
12137 TBool testOK = EFalse;
12138 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
12142 INFO_PRINTF2(_L("Test left with status %d"), err);
12147 INFO_PRINTF1(_L("Test failed"));
12154 //------------------------------------------------------------------
12159 CTest_MMF_ACOD_U_0258::CTest_MMF_ACOD_U_0258()
12161 // store the name of this test case
12162 // this is the name that is used by the script file
12163 // Each test step initialises it's own name
12164 iTestStepName = _L("MM-MMF-ACOD-U-0258-HP");
12168 * IMAS To PCM16 Test for memory scribbles
12169 * @test Req. under test REQ172.11
12171 TVerdict CTest_MMF_ACOD_U_0258::DoTestStepL()
12173 const TUid codecUid = {KMmfUidCodecIMAADPCMToPCM16Stereo};
12174 TBool testOK = EFalse;
12175 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
12179 INFO_PRINTF2(_L("Test left with status %d"), err);
12184 INFO_PRINTF1(_L("Test failed"));
12191 //------------------------------------------------------------------
12196 CTest_MMF_ACOD_U_0259::CTest_MMF_ACOD_U_0259()
12198 // store the name of this test case
12199 // this is the name that is used by the script file
12200 // Each test step initialises it's own name
12201 iTestStepName = _L("MM-MMF-ACOD-U-0259-HP");
12203 for (TUint i=0; i<5; i++)
12205 iExpectedSrcBytesProcessed[i] = 0;
12206 iExpectedDstBytesAdded[i] = 0;
12207 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
12212 * PCM16 to IMAS Pass in zero sized source buffer
12213 * @test Req. under test REQ172.6.4, REQ172.6.5
12215 TVerdict CTest_MMF_ACOD_U_0259::DoTestStepL()
12217 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCMStereo};
12218 TBool testOK = EFalse;
12219 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToStereoAdpcmOptimumDst));
12223 INFO_PRINTF2(_L("Test left with status %d"), err);
12228 INFO_PRINTF1(_L("Test failed"));
12235 //------------------------------------------------------------------
12240 CTest_MMF_ACOD_U_0260::CTest_MMF_ACOD_U_0260()
12242 // store the name of this test case
12243 // this is the name that is used by the script file
12244 // Each test step initialises it's own name
12245 iTestStepName = _L("MM-MMF-ACOD-U-0260-HP");
12247 iExpectedLeaveErrorCode = KErrArgument;
12251 * PCM16 to IMAS Pass in zero sized destination buffer
12252 * @test Req. under test REQ172.6.4, REQ172.6.5
12254 TVerdict CTest_MMF_ACOD_U_0260::DoTestStepL()
12256 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCMStereo};
12257 TBool testOK = EFalse;
12258 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToStereoAdpcmOptimumSrc, 0));
12262 INFO_PRINTF2(_L("Test left with status %d"), err);
12267 INFO_PRINTF1(_L("Test failed"));
12274 //------------------------------------------------------------------
12279 CTest_MMF_ACOD_U_0261::CTest_MMF_ACOD_U_0261()
12281 // store the name of this test case
12282 // this is the name that is used by the script file
12283 // Each test step initialises it's own name
12284 iTestStepName = _L("MM-MMF-ACOD-U-0261-HP");
12288 * PCM16 to IMAS Test out of memory
12289 * @test Req. under test REQ172.11
12291 TVerdict CTest_MMF_ACOD_U_0261::DoTestStepL()
12293 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCMStereo};
12294 TBool testOK = EFalse;
12296 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
12297 if (err==KErrNone && testOK)
12298 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
12302 INFO_PRINTF2(_L("Test left with status %d"), err);
12307 INFO_PRINTF1(_L("Test failed"));
12314 //------------------------------------------------------------------
12320 CTest_MMF_ACOD_U_0262::CTest_MMF_ACOD_U_0262()
12322 // store the name of this test case
12323 // this is the name that is used by the script file
12324 // Each test step initialises it's own name
12325 iTestStepName = _L("MM-MMF-ACOD-U-0262-HP");
12329 * PCM16 to IMAS Test for memory leaks
12330 * @test Req. under test REQ172.11
12332 TVerdict CTest_MMF_ACOD_U_0262::DoTestStepL()
12334 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCMStereo};
12335 TBool testOK = EFalse;
12336 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
12340 INFO_PRINTF2(_L("Test left with status %d"), err);
12345 INFO_PRINTF1(_L("Test failed"));
12352 //------------------------------------------------------------------
12357 CTest_MMF_ACOD_U_0263::CTest_MMF_ACOD_U_0263()
12359 // store the name of this test case
12360 // this is the name that is used by the script file
12361 // Each test step initialises it's own name
12362 iTestStepName = _L("MM-MMF-ACOD-U-0263-HP");
12366 * PCM16 to IMAS Test for memory scribbles
12367 * @test Req. under test REQ172.11
12369 TVerdict CTest_MMF_ACOD_U_0263::DoTestStepL()
12371 const TUid codecUid = {KMmfUidCodecPCM16ToIMAADPCMStereo};
12372 TBool testOK = EFalse;
12373 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
12377 INFO_PRINTF2(_L("Test left with status %d"), err);
12382 INFO_PRINTF1(_L("Test failed"));
12389 //------------------------------------------------------------------
12394 CTest_MMF_ACOD_U_0264::CTest_MMF_ACOD_U_0264()
12396 // store the name of this test case
12397 // this is the name that is used by the script file
12398 // Each test step initialises it's own name
12399 iTestStepName = _L("MM-MMF-ACOD-U-0264-HP");
12401 for (TUint i=0; i<5; i++)
12403 iExpectedSrcBytesProcessed[i] = 0;
12404 iExpectedDstBytesAdded[i] = 0;
12405 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
12410 * GSM610 To PCM16 Pass in zero sized source buffer
12411 * @test Req. under test REQ172.6.4, REQ172.6.5
12413 TVerdict CTest_MMF_ACOD_U_0264::DoTestStepL()
12415 const TUid codecUid = {KMmfUidCodecGSM610ToPCM16};
12416 TBool testOK = EFalse;
12417 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KGSM610ToPCM16OptimumDst));
12421 INFO_PRINTF2(_L("Test left with status %d"), err);
12426 INFO_PRINTF1(_L("Test failed"));
12433 //------------------------------------------------------------------
12438 CTest_MMF_ACOD_U_0265::CTest_MMF_ACOD_U_0265()
12440 // store the name of this test case
12441 // this is the name that is used by the script file
12442 // Each test step initialises it's own name
12443 iTestStepName = _L("MM-MMF-ACOD-U-0265-HP");
12445 iExpectedLeaveErrorCode = KErrArgument;
12449 * GSM610 To PCM16 Pass in zero sized destination buffer
12450 * @test Req. under test REQ172.6.4, REQ172.6.5
12452 TVerdict CTest_MMF_ACOD_U_0265::DoTestStepL()
12454 const TUid codecUid = {KMmfUidCodecGSM610ToPCM16};
12455 TBool testOK = EFalse;
12456 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KGSM610ToPCM16OptimumSrc, 0));
12460 INFO_PRINTF2(_L("Test left with status %d"), err);
12465 INFO_PRINTF1(_L("Test failed"));
12472 //------------------------------------------------------------------
12477 CTest_MMF_ACOD_U_0266::CTest_MMF_ACOD_U_0266()
12479 // store the name of this test case
12480 // this is the name that is used by the script file
12481 // Each test step initialises it's own name
12482 iTestStepName = _L("MM-MMF-ACOD-U-0266-HP");
12486 * GSM610 To PCM16 Test out of memory
12487 * @test Req. under test REQ172.11
12489 TVerdict CTest_MMF_ACOD_U_0266::DoTestStepL()
12491 const TUid codecUid = {KMmfUidCodecGSM610ToPCM16};
12492 TBool testOK = EFalse;
12494 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
12495 if (err==KErrNone && testOK)
12496 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
12500 INFO_PRINTF2(_L("Test left with status %d"), err);
12505 INFO_PRINTF1(_L("Test failed"));
12512 //------------------------------------------------------------------
12517 CTest_MMF_ACOD_U_0267::CTest_MMF_ACOD_U_0267()
12519 // store the name of this test case
12520 // this is the name that is used by the script file
12521 // Each test step initialises it's own name
12522 iTestStepName = _L("MM-MMF-ACOD-U-0267-HP");
12526 * GSM610 To PCM16 Test for memory leaks
12527 * @test Req. under test REQ172.11
12529 TVerdict CTest_MMF_ACOD_U_0267::DoTestStepL()
12531 const TUid codecUid = {KMmfUidCodecGSM610ToPCM16};
12532 TBool testOK = EFalse;
12533 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
12537 INFO_PRINTF2(_L("Test left with status %d"), err);
12542 INFO_PRINTF1(_L("Test failed"));
12549 //------------------------------------------------------------------
12554 CTest_MMF_ACOD_U_0268::CTest_MMF_ACOD_U_0268()
12556 // store the name of this test case
12557 // this is the name that is used by the script file
12558 // Each test step initialises it's own name
12559 iTestStepName = _L("MM-MMF-ACOD-U-0268-HP");
12563 * GSM610 To PCM16 Test for memory scribbles
12564 * @test Req. under test REQ172.11
12566 TVerdict CTest_MMF_ACOD_U_0268::DoTestStepL()
12568 const TUid codecUid = {KMmfUidCodecGSM610ToPCM16};
12569 TBool testOK = EFalse;
12570 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
12574 INFO_PRINTF2(_L("Test left with status %d"), err);
12579 INFO_PRINTF1(_L("Test failed"));
12586 //------------------------------------------------------------------
12591 CTest_MMF_ACOD_U_0269::CTest_MMF_ACOD_U_0269()
12593 // store the name of this test case
12594 // this is the name that is used by the script file
12595 // Each test step initialises it's own name
12596 iTestStepName = _L("MM-MMF-ACOD-U-0269-HP");
12598 for (TUint i=0; i<5; i++)
12600 iExpectedSrcBytesProcessed[i] = 0;
12601 iExpectedDstBytesAdded[i] = 0;
12602 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
12607 * PCM16 to GSM610 Pass in zero sized source buffer
12608 * @test Req. under test REQ172.6.4, REQ172.6.5
12610 TVerdict CTest_MMF_ACOD_U_0269::DoTestStepL()
12612 const TUid codecUid = {KMmfUidCodecPCM16ToGSM610};
12613 TBool testOK = EFalse;
12614 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToGSM610OptimumDst));
12618 INFO_PRINTF2(_L("Test left with status %d"), err);
12623 INFO_PRINTF1(_L("Test failed"));
12630 //------------------------------------------------------------------
12635 CTest_MMF_ACOD_U_0270::CTest_MMF_ACOD_U_0270()
12637 // store the name of this test case
12638 // this is the name that is used by the script file
12639 // Each test step initialises it's own name
12640 iTestStepName = _L("MM-MMF-ACOD-U-0270-HP");
12642 iExpectedLeaveErrorCode = KErrArgument;
12646 * PCM16 to GSM610 Pass in zero sized destination buffer
12647 * @test Req. under test REQ172.6.4, REQ172.6.5
12649 TVerdict CTest_MMF_ACOD_U_0270::DoTestStepL()
12651 const TUid codecUid = {KMmfUidCodecPCM16ToGSM610};
12652 TBool testOK = EFalse;
12653 TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToGSM610OptimumSrc, 0));
12657 INFO_PRINTF2(_L("Test left with status %d"), err);
12662 INFO_PRINTF1(_L("Test failed"));
12669 //------------------------------------------------------------------
12674 CTest_MMF_ACOD_U_0271::CTest_MMF_ACOD_U_0271()
12676 // store the name of this test case
12677 // this is the name that is used by the script file
12678 // Each test step initialises it's own name
12679 iTestStepName = _L("MM-MMF-ACOD-U-0271-HP");
12683 * PCM16 to GSM610 Test out of memory
12684 * @test Req. under test REQ172.11
12686 TVerdict CTest_MMF_ACOD_U_0271::DoTestStepL()
12688 const TUid codecUid = {KMmfUidCodecPCM16ToGSM610};
12689 TBool testOK = EFalse;
12691 TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
12692 if (err==KErrNone && testOK)
12693 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
12697 INFO_PRINTF2(_L("Test left with status %d"), err);
12702 INFO_PRINTF1(_L("Test failed"));
12709 //------------------------------------------------------------------
12715 CTest_MMF_ACOD_U_0272::CTest_MMF_ACOD_U_0272()
12717 // store the name of this test case
12718 // this is the name that is used by the script file
12719 // Each test step initialises it's own name
12720 iTestStepName = _L("MM-MMF-ACOD-U-0272-HP");
12724 * PCM16 to GSM610 Test for memory leaks
12725 * @test Req. under test REQ172.11
12727 TVerdict CTest_MMF_ACOD_U_0272::DoTestStepL()
12729 const TUid codecUid = {KMmfUidCodecPCM16ToGSM610};
12730 TBool testOK = EFalse;
12731 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
12735 INFO_PRINTF2(_L("Test left with status %d"), err);
12740 INFO_PRINTF1(_L("Test failed"));
12747 //------------------------------------------------------------------
12752 CTest_MMF_ACOD_U_0273::CTest_MMF_ACOD_U_0273()
12754 // store the name of this test case
12755 // this is the name that is used by the script file
12756 // Each test step initialises it's own name
12757 iTestStepName = _L("MM-MMF-ACOD-U-0273-HP");
12761 * PCM16 to GSM610 Test for memory scribbles
12762 * @test Req. under test REQ172.11
12764 TVerdict CTest_MMF_ACOD_U_0273::DoTestStepL()
12766 const TUid codecUid = {KMmfUidCodecPCM16ToGSM610};
12767 TBool testOK = EFalse;
12768 TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
12772 INFO_PRINTF2(_L("Test left with status %d"), err);
12777 INFO_PRINTF1(_L("Test failed"));
12784 //------------------------------------------------------------------