Update contrib.
1 // Copyright (c) 2003-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.
16 // TSU_MMF_ACOD_BASE.CPP
18 // Copyright (c) 2003 Symbian Ltd. All rights reserved.
24 // Test system includes
25 #include "TSU_MMF_ACOD.h"
26 #include "TSU_MMF_devicesuite.h"
30 #include <mmfhwdeviceimplementationUids.hrh>
34 _LIT(KSourceFilesDir, "c:\\mm\\mmf\\testfiles\\acod\\");
35 _LIT(KComparisonFilesDir, "c:\\mm\\mmf\\ref\\acod\\");
39 All source and comparison files need to be copied manually onto the flash card.
40 This code assumes the flash card is represented by drive E: on the target board.
41 If this is not the case, the KSourceFilesDir and KComparisonFilesDir strings
42 need to be changed accordingly.
44 _LIT(KSourceFilesDir, "e:\\");
45 _LIT(KComparisonFilesDir, "e:\\");
48 //------------------------------------------------------------------
49 // ** TEST MMF_ACOD STEPS ***
51 //------------------------------------------------------------------
56 CTest_MMF_ACOD_U_0001::CTest_MMF_ACOD_U_0001()
58 // store the name of this test case
59 // this is the name that is used by the script file
60 // Each test step initialises it's own name
61 iTestStepName = _L("MM-MMF-ACOD-U-0001-HP");
65 * Instantiate a codec by FourCC Codes and preferred supplier
66 * @test Req. under test REQ172.6.3
68 TVerdict CTest_MMF_ACOD_U_0001::DoTestStepL()
70 TBool testOK = EFalse;
71 //TRAPD(err, testOK = TestNewLPreferredSupplierL());
75 INFO_PRINTF2(_L("Test left with status %d"), err);
80 INFO_PRINTF1(_L("Test failed"));
86 //------------------------------------------------------------------
91 CTest_MMF_ACOD_U_0002::CTest_MMF_ACOD_U_0002()
93 // store the name of this test case
94 // this is the name that is used by the script file
95 // Each test step initialises it's own name
96 iTestStepName = _L("MM-MMF-ACOD-U-0002-HP");
100 * ALAW To PCM16 Instantiate codec by FourCC Codes
101 * @test Req. under test REQ172.6.2, REQ172.11.1
103 TVerdict CTest_MMF_ACOD_U_0002::DoTestStepL()
105 TBool testOK = EFalse;
106 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodeALAW, KMMFFourCCCodePCM16));
110 INFO_PRINTF2(_L("Test left with status %d"), err);
115 INFO_PRINTF1(_L("Test failed"));
122 //------------------------------------------------------------------
127 CTest_MMF_ACOD_U_0003::CTest_MMF_ACOD_U_0003()
129 // store the name of this test case
130 // this is the name that is used by the script file
131 // Each test step initialises it's own name
132 iTestStepName = _L("MM-MMF-ACOD-U-0003-HP");
136 * ALAW To PCM16 Instantiate codec by UID
137 * @test Req. under test REQ172.6.1, REQ172.11.1
139 TVerdict CTest_MMF_ACOD_U_0003::DoTestStepL()
141 /* const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
142 TBool testOK = EFalse;
143 TRAPD(err, testOK = TestNewL(codecUid));
148 INFO_PRINTF2(_L("Test left with status %d"), err);
153 INFO_PRINTF1(_L("Test failed"));
161 //------------------------------------------------------------------
166 CTest_MMF_ACOD_U_0004::CTest_MMF_ACOD_U_0004()
168 // store the name of this test case
169 // this is the name that is used by the script file
170 // Each test step initialises it's own name
171 iTestStepName = _L("MM-MMF-ACOD-U-0004-HP");
173 for (TUint i=0; i<5; i++)
175 iExpectedSrcBytesProcessed[i] = 50;
176 iExpectedDstBytesAdded[i] = 100;
177 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
182 * ALAW To PCM16 Pass in small source buffers
183 * @test Req. under test REQ172.6.4, REQ172.6.5
185 TVerdict CTest_MMF_ACOD_U_0004::DoTestStepL()
187 // const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
188 TBool testOK = EFalse;
189 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KAlawToPCM16OptimumDst));
190 TInt err = KErrNone ;
193 INFO_PRINTF2(_L("Test left with status %d"), err);
198 INFO_PRINTF1(_L("Test failed"));
205 //------------------------------------------------------------------
210 CTest_MMF_ACOD_U_0005::CTest_MMF_ACOD_U_0005()
212 // store the name of this test case
213 // this is the name that is used by the script file
214 // Each test step initialises it's own name
215 iTestStepName = _L("MM-MMF-ACOD-U-0005-HP");
217 for (TUint i=0; i<5; i++)
219 iExpectedSrcBytesProcessed[i] = 25;
220 iExpectedDstBytesAdded[i] = 50;
221 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
226 * ALAW To PCM16 Pass in small dest buffers
227 * @test Req. under test REQ172.6.4, REQ172.6.5
229 TVerdict CTest_MMF_ACOD_U_0005::DoTestStepL()
231 // const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
232 TBool testOK = EFalse;
233 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAlawToPCM16OptimumSrc, KSmallBufferSize));
234 TInt err = KErrNone ;
237 INFO_PRINTF2(_L("Test left with status %d"), err);
242 INFO_PRINTF1(_L("Test failed"));
249 //------------------------------------------------------------------
254 CTest_MMF_ACOD_U_0006::CTest_MMF_ACOD_U_0006()
256 // store the name of this test case
257 // this is the name that is used by the script file
258 // Each test step initialises it's own name
259 iTestStepName = _L("MM-MMF-ACOD-U-0006-HP");
262 for (TUint i=0; i<5; i++)
264 iExpectedSrcBytesProcessed[i] = 5000;
265 iExpectedDstBytesAdded[i] = 10000;
268 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
270 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
275 * ALAW To PCM16 Pass in large buffers
276 * @test Req. under test REQ172.6.4, REQ172.6.5
278 TVerdict CTest_MMF_ACOD_U_0006::DoTestStepL()
280 // const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
281 TBool testOK = EFalse;
282 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
283 TInt err = KErrNone ;
286 INFO_PRINTF2(_L("Test left with status %d"), err);
291 INFO_PRINTF1(_L("Test failed"));
298 //------------------------------------------------------------------
303 CTest_MMF_ACOD_U_0007::CTest_MMF_ACOD_U_0007()
305 // store the name of this test case
306 // this is the name that is used by the script file
307 // Each test step initialises it's own name
308 iTestStepName = _L("MM-MMF-ACOD-U-0007-HP");
310 for (TUint i=0; i<5; i++)
312 iExpectedSrcBytesProcessed[i] = 0x800;
313 iExpectedDstBytesAdded[i] = 0x1000;
316 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
318 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
323 * ALAW To PCM16 Pass in default sized buffers
324 * @test Req. under test REQ172.6.4, REQ172.6.5
326 TVerdict CTest_MMF_ACOD_U_0007::DoTestStepL()
328 // const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
329 TBool testOK = EFalse;
330 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
331 TInt err = KErrNone ;
334 INFO_PRINTF2(_L("Test left with status %d"), err);
339 INFO_PRINTF1(_L("Test failed"));
346 //------------------------------------------------------------------
351 CTest_MMF_ACOD_U_0008::CTest_MMF_ACOD_U_0008()
353 // store the name of this test case
354 // this is the name that is used by the script file
355 // Each test step initialises it's own name
356 iTestStepName = _L("MM-MMF-ACOD-U-0008-HP");
358 for (TUint i=0; i<5; i++)
360 iExpectedSrcBytesProcessed[i] = 0x800;
361 iExpectedDstBytesAdded[i] = 0x1000;
364 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
366 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
371 * ALAW To PCM16 Pass in buffers with different max length and length
372 * @test Req. under test REQ172.6.4, REQ172.6.5
374 TVerdict CTest_MMF_ACOD_U_0008::DoTestStepL()
376 // const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
377 TBool testOK = EFalse;
378 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
379 TInt err = KErrNone ;
382 INFO_PRINTF2(_L("Test left with status %d"), err);
387 INFO_PRINTF1(_L("Test failed"));
394 //------------------------------------------------------------------
399 CTest_MMF_ACOD_U_0009::CTest_MMF_ACOD_U_0009()
401 // store the name of this test case
402 // this is the name that is used by the script file
403 // Each test step initialises it's own name
404 iTestStepName = _L("MM-MMF-ACOD-U-0009-HP");
406 for (TUint i=0; i<5; i++)
408 iExpectedSrcBytesProcessed[i] = 0x800;
409 iExpectedDstBytesAdded[i] = 0x1000;
410 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
415 * ALAW To PCM16 Pass in buffers of optimum size
416 * @test Req. under test REQ172.6.4, REQ172.6.5
418 TVerdict CTest_MMF_ACOD_U_0009::DoTestStepL()
420 // const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
421 TBool testOK = EFalse;
422 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAlawToPCM16OptimumSrc, KAlawToPCM16OptimumDst));
423 TInt err = KErrNone ;
426 INFO_PRINTF2(_L("Test left with status %d"), err);
431 INFO_PRINTF1(_L("Test failed"));
438 //------------------------------------------------------------------
443 CTest_MMF_ACOD_U_0010::CTest_MMF_ACOD_U_0010()
445 // store the name of this test case
446 // this is the name that is used by the script file
447 // Each test step initialises it's own name
448 iTestStepName = _L("MM-MMF-ACOD-U-0010-HP");
449 // iHeapSize = 0x20000;
453 * ALAW To PCM16 Reposition source pointer during conversion
454 * @test Req. under test REQ172.11
456 TVerdict CTest_MMF_ACOD_U_0010::DoTestStepL()
458 // const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
459 TBool testOK = EFalse;
460 INFO_PRINTF1(_L(">> The ALAW to PCM16 codec doesn't currently store data between calls to ProcessL"));
462 // TRAPD(err, testOK = TestRepositionL(codecUid, KAlawToPCM16OptimumSrc, KAlawToPCM16OptimumDst+30));
463 TInt err = KErrNone ;
466 INFO_PRINTF2(_L("Test left with status %d"), err);
471 INFO_PRINTF1(_L("Test failed"));
478 //------------------------------------------------------------------
483 CTest_MMF_ACOD_U_0011::CTest_MMF_ACOD_U_0011()
485 // store the name of this test case
486 // this is the name that is used by the script file
487 // Each test step initialises it's own name
488 iTestStepName = _L("MM-MMF-ACOD-U-0011-HP");
492 * PCM16 To ALAW Instantiate codec by FourCC Codes
493 * @test Req. under test REQ172.6.2, REQ172.11.3
495 TVerdict CTest_MMF_ACOD_U_0011::DoTestStepL()
497 TBool testOK = EFalse;
498 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeALAW));
502 INFO_PRINTF2(_L("Test left with status %d"), err);
507 INFO_PRINTF1(_L("Test failed"));
514 //------------------------------------------------------------------
519 CTest_MMF_ACOD_U_0012::CTest_MMF_ACOD_U_0012()
521 // store the name of this test case
522 // this is the name that is used by the script file
523 // Each test step initialises it's own name
524 iTestStepName = _L("MM-MMF-ACOD-U-0012-HP");
528 * PCM16 To ALAW Instantiate codec by UID
529 * @test Req. under test REQ172.6.1, REQ172.11.3
531 TVerdict CTest_MMF_ACOD_U_0012::DoTestStepL()
533 // const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
534 TBool testOK = EFalse;
535 // TRAPD(err, testOK = TestNewL(codecUid));
536 TInt err = KErrNone ;
539 INFO_PRINTF2(_L("Test left with status %d"), err);
544 INFO_PRINTF1(_L("Test failed"));
551 //------------------------------------------------------------------
556 CTest_MMF_ACOD_U_0013::CTest_MMF_ACOD_U_0013()
558 // store the name of this test case
559 // this is the name that is used by the script file
560 // Each test step initialises it's own name
561 iTestStepName = _L("MM-MMF-ACOD-U-0013-HP");
563 for (TUint i=0; i<5; i++)
565 iExpectedSrcBytesProcessed[i] = 50;
566 iExpectedDstBytesAdded[i] = 25;
567 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
572 * PCM16 To ALAW Pass in small source buffers
573 * @test Req. under test REQ172.6.4, REQ172.6.5
575 TVerdict CTest_MMF_ACOD_U_0013::DoTestStepL()
577 // const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
578 TBool testOK = EFalse;
579 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToAlawOptimumDst));
580 TInt err = KErrNone ;
584 INFO_PRINTF2(_L("Test left with status %d"), err);
589 INFO_PRINTF1(_L("Test failed"));
596 //------------------------------------------------------------------
601 CTest_MMF_ACOD_U_0014::CTest_MMF_ACOD_U_0014()
603 // store the name of this test case
604 // this is the name that is used by the script file
605 // Each test step initialises it's own name
606 iTestStepName = _L("MM-MMF-ACOD-U-0014-HP");
608 for (TUint i=0; i<5; i++)
610 iExpectedSrcBytesProcessed[i] = 100;
611 iExpectedDstBytesAdded[i] = 50;
612 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
617 * PCM16 To ALAW Pass in small dest buffers
618 * @test Req. under test REQ172.6.4, REQ172.6.5
620 TVerdict CTest_MMF_ACOD_U_0014::DoTestStepL()
622 // const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
623 TBool testOK = EFalse;
624 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAlawOptimumSrc, KSmallBufferSize));
625 TInt err = KErrNone ;
629 INFO_PRINTF2(_L("Test left with status %d"), err);
634 INFO_PRINTF1(_L("Test failed"));
641 //------------------------------------------------------------------
646 CTest_MMF_ACOD_U_0015::CTest_MMF_ACOD_U_0015()
648 // store the name of this test case
649 // this is the name that is used by the script file
650 // Each test step initialises it's own name
651 iTestStepName = _L("MM-MMF-ACOD-U-0015-HP");
654 for (TUint i=0; i<5; i++)
656 iExpectedSrcBytesProcessed[i] = 10000;
657 iExpectedDstBytesAdded[i] = 5000;
660 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
662 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
667 * PCM16 To ALAW Pass in large buffers
668 * @test Req. under test REQ172.6.4, REQ172.6.5
670 TVerdict CTest_MMF_ACOD_U_0015::DoTestStepL()
672 // const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
673 TBool testOK = EFalse;
674 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
675 TInt err = KErrNone ;
678 INFO_PRINTF2(_L("Test left with status %d"), err);
683 INFO_PRINTF1(_L("Test failed"));
690 //------------------------------------------------------------------
695 CTest_MMF_ACOD_U_0016::CTest_MMF_ACOD_U_0016()
697 // store the name of this test case
698 // this is the name that is used by the script file
699 // Each test step initialises it's own name
700 iTestStepName = _L("MM-MMF-ACOD-U-0016-HP");
702 for (TUint i=0; i<5; i++)
704 iExpectedSrcBytesProcessed[i] = 0x1000;
705 iExpectedDstBytesAdded[i] = 0x800;
708 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
710 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
715 * PCM16 To ALAW Pass in default sized buffers
716 * @test Req. under test REQ172.6.4, REQ172.6.5
718 TVerdict CTest_MMF_ACOD_U_0016::DoTestStepL()
720 // const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
721 TBool testOK = EFalse;
722 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
723 TInt err = KErrNone ;
727 INFO_PRINTF2(_L("Test left with status %d"), err);
732 INFO_PRINTF1(_L("Test failed"));
739 //------------------------------------------------------------------
744 CTest_MMF_ACOD_U_0017::CTest_MMF_ACOD_U_0017()
746 // store the name of this test case
747 // this is the name that is used by the script file
748 // Each test step initialises it's own name
749 iTestStepName = _L("MM-MMF-ACOD-U-0017-HP");
751 for (TUint i=0; i<5; i++)
753 iExpectedSrcBytesProcessed[i] = 0x1000;
754 iExpectedDstBytesAdded[i] = 0x800;
757 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
759 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
764 * PCM16 To ALAW Pass in buffers with different max length and length
765 * @test Req. under test REQ172.6.4, REQ172.6.5
767 TVerdict CTest_MMF_ACOD_U_0017::DoTestStepL()
769 // const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
770 TBool testOK = EFalse;
771 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
772 TInt err = KErrNone ;
776 INFO_PRINTF2(_L("Test left with status %d"), err);
781 INFO_PRINTF1(_L("Test failed"));
788 //------------------------------------------------------------------
793 CTest_MMF_ACOD_U_0018::CTest_MMF_ACOD_U_0018()
795 // store the name of this test case
796 // this is the name that is used by the script file
797 // Each test step initialises it's own name
798 iTestStepName = _L("MM-MMF-ACOD-U-0018-HP");
800 for (TUint i=0; i<5; i++)
802 iExpectedSrcBytesProcessed[i] = 0x1000;
803 iExpectedDstBytesAdded[i] = 0x800;
804 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
809 * PCM16 To ALAW Pass in buffers of optimum size
810 * @test Req. under test REQ172.6.4, REQ172.6.5
812 TVerdict CTest_MMF_ACOD_U_0018::DoTestStepL()
814 // const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
815 TBool testOK = EFalse;
816 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAlawOptimumSrc, KPCM16ToAlawOptimumDst));
817 TInt err = KErrNone ;
820 INFO_PRINTF2(_L("Test left with status %d"), err);
825 INFO_PRINTF1(_L("Test failed"));
832 //------------------------------------------------------------------
837 CTest_MMF_ACOD_U_0019::CTest_MMF_ACOD_U_0019()
839 // store the name of this test case
840 // this is the name that is used by the script file
841 // Each test step initialises it's own name
842 iTestStepName = _L("MM-MMF-ACOD-U-0019-HP");
843 // iHeapSize = 0x20000;
847 * PCM16 To ALAW Reposition source pointer during conversion
848 * @test Req. under test REQ172.11
850 TVerdict CTest_MMF_ACOD_U_0019::DoTestStepL()
852 // const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
853 TBool testOK = EFalse;
855 INFO_PRINTF1(_L(">> The PCM16 to ALAW codec doesn't currently store data between calls to ProcessL"));
856 // TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
860 INFO_PRINTF2(_L("Test left with status %d"), err);
865 INFO_PRINTF1(_L("Test failed"));
872 //------------------------------------------------------------------
877 CTest_MMF_ACOD_U_0020::CTest_MMF_ACOD_U_0020()
879 // store the name of this test case
880 // this is the name that is used by the script file
881 // Each test step initialises it's own name
882 iTestStepName = _L("MM-MMF-ACOD-U-0020-HP");
886 * PCM8 To PCM16 Instantiate codec by FourCC Codes
887 * @test Req. under test REQ172.6.2, REQ172.11.4
889 TVerdict CTest_MMF_ACOD_U_0020::DoTestStepL()
891 TBool testOK = EFalse;
892 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM8, KMMFFourCCCodePCM16));
893 TInt err = KErrNone ;
896 INFO_PRINTF2(_L("Test left with status %d"), err);
901 INFO_PRINTF1(_L("Test failed"));
908 //------------------------------------------------------------------
913 CTest_MMF_ACOD_U_0021::CTest_MMF_ACOD_U_0021()
915 // store the name of this test case
916 // this is the name that is used by the script file
917 // Each test step initialises it's own name
918 iTestStepName = _L("MM-MMF-ACOD-U-0021-HP");
922 * PCM8 To PCM16 Instantiate codec by UID
923 * @test Req. under test REQ172.6.1, REQ172.11.4
925 TVerdict CTest_MMF_ACOD_U_0021::DoTestStepL()
927 // const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
928 TBool testOK = EFalse;
929 // TRAPD(err, testOK = TestNewL(codecUid));
930 TInt err = KErrNone ;
933 INFO_PRINTF2(_L("Test left with status %d"), err);
938 INFO_PRINTF1(_L("Test failed"));
945 //------------------------------------------------------------------
950 CTest_MMF_ACOD_U_0022::CTest_MMF_ACOD_U_0022()
952 // store the name of this test case
953 // this is the name that is used by the script file
954 // Each test step initialises it's own name
955 iTestStepName = _L("MM-MMF-ACOD-U-0022-HP");
957 for (TUint i=0; i<5; i++)
959 iExpectedSrcBytesProcessed[i] = 50;
960 iExpectedDstBytesAdded[i] = 100;
961 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
966 * PCM8 To PCM16 Pass in small source buffers
967 * @test Req. under test REQ172.6.4, REQ172.6.5
969 TVerdict CTest_MMF_ACOD_U_0022::DoTestStepL()
971 // const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
972 TBool testOK = EFalse;
973 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM8ToPCM16OptimumDst));
974 TInt err = KErrNone ;
977 INFO_PRINTF2(_L("Test left with status %d"), err);
982 INFO_PRINTF1(_L("Test failed"));
989 //------------------------------------------------------------------
994 CTest_MMF_ACOD_U_0023::CTest_MMF_ACOD_U_0023()
996 // store the name of this test case
997 // this is the name that is used by the script file
998 // Each test step initialises it's own name
999 iTestStepName = _L("MM-MMF-ACOD-U-0023-HP");
1001 for (TUint i=0; i<5; i++)
1003 iExpectedSrcBytesProcessed[i] = 25;
1004 iExpectedDstBytesAdded[i] = 50;
1005 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
1010 * PCM8 To PCM16 Pass in small dest buffers
1011 * @test Req. under test REQ172.6.4, REQ172.6.5
1013 TVerdict CTest_MMF_ACOD_U_0023::DoTestStepL()
1015 //const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
1016 TBool testOK = EFalse;
1017 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM8ToPCM16OptimumSrc, KSmallBufferSize));
1018 TInt err = KErrNone ;
1021 INFO_PRINTF2(_L("Test left with status %d"), err);
1026 INFO_PRINTF1(_L("Test failed"));
1033 //------------------------------------------------------------------
1038 CTest_MMF_ACOD_U_0024::CTest_MMF_ACOD_U_0024()
1040 // store the name of this test case
1041 // this is the name that is used by the script file
1042 // Each test step initialises it's own name
1043 iTestStepName = _L("MM-MMF-ACOD-U-0024-HP");
1044 iHeapSize = 0x20000;
1046 for (TUint i=0; i<5; i++)
1048 iExpectedSrcBytesProcessed[i] = 5000;
1049 iExpectedDstBytesAdded[i] = 10000;
1051 if((i%2)==0)//even i
1052 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
1054 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1059 * PCM8 To PCM16 Pass in large buffers
1060 * @test Req. under test REQ172.6.4, REQ172.6.5
1062 TVerdict CTest_MMF_ACOD_U_0024::DoTestStepL()
1064 // const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
1065 TBool testOK = EFalse;
1066 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
1067 TInt err = KErrNone ;
1070 INFO_PRINTF2(_L("Test left with status %d"), err);
1075 INFO_PRINTF1(_L("Test failed"));
1082 //------------------------------------------------------------------
1087 CTest_MMF_ACOD_U_0025::CTest_MMF_ACOD_U_0025()
1089 // store the name of this test case
1090 // this is the name that is used by the script file
1091 // Each test step initialises it's own name
1092 iTestStepName = _L("MM-MMF-ACOD-U-0025-HP");
1094 for (TUint i=0; i<5; i++)
1096 iExpectedSrcBytesProcessed[i] = 0x800;
1097 iExpectedDstBytesAdded[i] = 0x1000;
1099 if((i%2)==0)//even i
1100 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
1102 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1107 * PCM8 To PCM16 Pass in default sized buffers
1108 * @test Req. under test REQ172.6.4, REQ172.6.5
1110 TVerdict CTest_MMF_ACOD_U_0025::DoTestStepL()
1112 // const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
1113 TBool testOK = EFalse;
1114 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
1115 TInt err = KErrNone ;
1118 INFO_PRINTF2(_L("Test left with status %d"), err);
1123 INFO_PRINTF1(_L("Test failed"));
1130 //------------------------------------------------------------------
1135 CTest_MMF_ACOD_U_0026::CTest_MMF_ACOD_U_0026()
1137 // store the name of this test case
1138 // this is the name that is used by the script file
1139 // Each test step initialises it's own name
1140 iTestStepName = _L("MM-MMF-ACOD-U-0026-HP");
1142 for (TUint i=0; i<5; i++)
1144 iExpectedSrcBytesProcessed[i] = 0x800;
1145 iExpectedDstBytesAdded[i] = 0x1000;
1147 if((i%2)==0)//even i
1148 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
1150 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1155 * PCM8 To PCM16 Pass in buffers with different max length and length
1156 * @test Req. under test REQ172.6.4, REQ172.6.5
1158 TVerdict CTest_MMF_ACOD_U_0026::DoTestStepL()
1160 // const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
1161 TBool testOK = EFalse;
1162 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
1163 TInt err = KErrNone ;
1166 INFO_PRINTF2(_L("Test left with status %d"), err);
1171 INFO_PRINTF1(_L("Test failed"));
1178 //------------------------------------------------------------------
1183 CTest_MMF_ACOD_U_0027::CTest_MMF_ACOD_U_0027()
1185 // store the name of this test case
1186 // this is the name that is used by the script file
1187 // Each test step initialises it's own name
1188 iTestStepName = _L("MM-MMF-ACOD-U-0027-HP");
1190 for (TUint i=0; i<5; i++)
1192 iExpectedSrcBytesProcessed[i] = 0x800;
1193 iExpectedDstBytesAdded[i] = 0x1000;
1194 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1199 * PCM8 To PCM16 Pass in buffers of optimum size
1200 * @test Req. under test REQ172.6.4, REQ172.6.5
1202 TVerdict CTest_MMF_ACOD_U_0027::DoTestStepL()
1204 // const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
1205 TBool testOK = EFalse;
1206 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM8ToPCM16OptimumSrc, KPCM8ToPCM16OptimumDst));
1207 TInt err = KErrNone;
1210 INFO_PRINTF2(_L("Test left with status %d"), err);
1215 INFO_PRINTF1(_L("Test failed"));
1222 //------------------------------------------------------------------
1227 CTest_MMF_ACOD_U_0028::CTest_MMF_ACOD_U_0028()
1229 // store the name of this test case
1230 // this is the name that is used by the script file
1231 // Each test step initialises it's own name
1232 iTestStepName = _L("MM-MMF-ACOD-U-0028-HP");
1233 // iHeapSize = 0x20000;
1237 * PCM8 To PCM16 Reposition source pointer during conversion
1238 * @test Req. under test REQ172.11
1240 TVerdict CTest_MMF_ACOD_U_0028::DoTestStepL()
1242 // const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
1243 TBool testOK = EFalse;
1245 INFO_PRINTF1(_L(">> The PCM8 to PCM16 codec doesn't currently store data between calls to ProcessL"));
1246 // TRAPD(err, testOK = TestRepositionL(codecUid, KPCM8ToPCM16OptimumSrc, KPCM8ToPCM16OptimumDst+30));
1247 TInt err = KErrNone;
1250 INFO_PRINTF2(_L("Test left with status %d"), err);
1255 INFO_PRINTF1(_L("Test failed"));
1262 //------------------------------------------------------------------
1267 CTest_MMF_ACOD_U_0029::CTest_MMF_ACOD_U_0029()
1269 // store the name of this test case
1270 // this is the name that is used by the script file
1271 // Each test step initialises it's own name
1272 iTestStepName = _L("MM-MMF-ACOD-U-0029-HP");
1276 * PCM16 To PCM8 Instantiate codec by FourCC Codes
1277 * @test Req. under test REQ172.6.2, REQ172.11.5
1279 TVerdict CTest_MMF_ACOD_U_0029::DoTestStepL()
1281 TBool testOK = EFalse;
1282 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCM8));
1283 TInt err = KErrNone ;
1287 INFO_PRINTF2(_L("Test left with status %d"), err);
1292 INFO_PRINTF1(_L("Test failed"));
1299 //------------------------------------------------------------------
1304 CTest_MMF_ACOD_U_0030::CTest_MMF_ACOD_U_0030()
1306 // store the name of this test case
1307 // this is the name that is used by the script file
1308 // Each test step initialises it's own name
1309 iTestStepName = _L("MM-MMF-ACOD-U-0030-HP");
1313 * PCM16 To PCM8 Instantiate codec by UID
1314 * @test Req. under test REQ172.6.1, REQ172.11.5
1316 TVerdict CTest_MMF_ACOD_U_0030::DoTestStepL()
1318 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
1319 TBool testOK = EFalse;
1320 // TRAPD(err, testOK = TestNewL(codecUid));
1321 TInt err = KErrNone ;
1324 INFO_PRINTF2(_L("Test left with status %d"), err);
1329 INFO_PRINTF1(_L("Test failed"));
1336 //------------------------------------------------------------------
1341 CTest_MMF_ACOD_U_0031::CTest_MMF_ACOD_U_0031()
1343 // store the name of this test case
1344 // this is the name that is used by the script file
1345 // Each test step initialises it's own name
1346 iTestStepName = _L("MM-MMF-ACOD-U-0031-HP");
1348 for (TUint i=0; i<5; i++)
1350 iExpectedSrcBytesProcessed[i] = 50;
1351 iExpectedDstBytesAdded[i] = 25;
1352 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
1357 * PCM16 To PCM8 Pass in small source buffers
1358 * @test Req. under test REQ172.6.4, REQ172.6.5
1360 TVerdict CTest_MMF_ACOD_U_0031::DoTestStepL()
1362 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
1363 TBool testOK = EFalse;
1364 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCM8OptimumDst));
1365 TInt err = KErrNone ;
1368 INFO_PRINTF2(_L("Test left with status %d"), err);
1373 INFO_PRINTF1(_L("Test failed"));
1380 //------------------------------------------------------------------
1385 CTest_MMF_ACOD_U_0032::CTest_MMF_ACOD_U_0032()
1387 // store the name of this test case
1388 // this is the name that is used by the script file
1389 // Each test step initialises it's own name
1390 iTestStepName = _L("MM-MMF-ACOD-U-0032-HP");
1392 for (TUint i=0; i<5; i++)
1394 iExpectedSrcBytesProcessed[i] = 100;
1395 iExpectedDstBytesAdded[i] = 50;
1396 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
1401 * PCM16 To PCM8 Pass in small dest buffers
1402 * @test Req. under test REQ172.6.4, REQ172.6.5
1404 TVerdict CTest_MMF_ACOD_U_0032::DoTestStepL()
1406 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
1407 TBool testOK = EFalse;
1408 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM8OptimumSrc, KSmallBufferSize));
1409 TInt err = KErrNone;
1412 INFO_PRINTF2(_L("Test left with status %d"), err);
1417 INFO_PRINTF1(_L("Test failed"));
1424 //------------------------------------------------------------------
1429 CTest_MMF_ACOD_U_0033::CTest_MMF_ACOD_U_0033()
1431 // store the name of this test case
1432 // this is the name that is used by the script file
1433 // Each test step initialises it's own name
1434 iTestStepName = _L("MM-MMF-ACOD-U-0033-HP");
1435 iHeapSize = 0x20000;
1437 for (TUint i=0; i<5; i++)
1439 iExpectedSrcBytesProcessed[i] = 10000;
1440 iExpectedDstBytesAdded[i] = 5000;
1442 if((i%2)==0)//even i
1443 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
1445 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1450 * PCM16 To PCM8 Pass in large buffers
1451 * @test Req. under test REQ172.6.4, REQ172.6.5
1453 TVerdict CTest_MMF_ACOD_U_0033::DoTestStepL()
1455 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
1456 TBool testOK = EFalse;
1457 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
1458 TInt err = KErrNone;
1461 INFO_PRINTF2(_L("Test left with status %d"), err);
1466 INFO_PRINTF1(_L("Test failed"));
1473 //------------------------------------------------------------------
1478 CTest_MMF_ACOD_U_0034::CTest_MMF_ACOD_U_0034()
1480 // store the name of this test case
1481 // this is the name that is used by the script file
1482 // Each test step initialises it's own name
1483 iTestStepName = _L("MM-MMF-ACOD-U-0034-HP");
1485 for (TUint i=0; i<5; i++)
1487 iExpectedSrcBytesProcessed[i] = 0x1000;
1488 iExpectedDstBytesAdded[i] = 0x800;
1490 if((i%2)==0)//even i
1491 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
1493 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1498 * PCM16 To PCM8 Pass in default sized buffers
1499 * @test Req. under test REQ172.6.4, REQ172.6.5
1501 TVerdict CTest_MMF_ACOD_U_0034::DoTestStepL()
1503 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
1504 TBool testOK = EFalse;
1505 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
1506 TInt err = KErrNone;
1509 INFO_PRINTF2(_L("Test left with status %d"), err);
1514 INFO_PRINTF1(_L("Test failed"));
1521 //------------------------------------------------------------------
1526 CTest_MMF_ACOD_U_0035::CTest_MMF_ACOD_U_0035()
1528 // store the name of this test case
1529 // this is the name that is used by the script file
1530 // Each test step initialises it's own name
1531 iTestStepName = _L("MM-MMF-ACOD-U-0035-HP");
1533 for (TUint i=0; i<5; i++)
1535 iExpectedSrcBytesProcessed[i] = 0x1000;
1536 iExpectedDstBytesAdded[i] = 0x800;
1538 if((i%2)==0)//even i
1539 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
1541 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1546 * PCM16 To PCM8 Pass in buffers with different max length and length
1547 * @test Req. under test REQ172.6.4, REQ172.6.5
1549 TVerdict CTest_MMF_ACOD_U_0035::DoTestStepL()
1551 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
1552 TBool testOK = EFalse;
1553 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
1554 TInt err = KErrNone;
1557 INFO_PRINTF2(_L("Test left with status %d"), err);
1562 INFO_PRINTF1(_L("Test failed"));
1569 //------------------------------------------------------------------
1574 CTest_MMF_ACOD_U_0036::CTest_MMF_ACOD_U_0036()
1576 // store the name of this test case
1577 // this is the name that is used by the script file
1578 // Each test step initialises it's own name
1579 iTestStepName = _L("MM-MMF-ACOD-U-0036-HP");
1581 for (TUint i=0; i<5; i++)
1583 iExpectedSrcBytesProcessed[i] = 0x1000;
1584 iExpectedDstBytesAdded[i] = 0x800;
1585 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1590 * PCM16 To PCM8 Pass in buffers of optimum size
1591 * @test Req. under test REQ172.6.4, REQ172.6.5
1593 TVerdict CTest_MMF_ACOD_U_0036::DoTestStepL()
1595 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
1596 TBool testOK = EFalse;
1597 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM8OptimumSrc, KPCM16ToPCM8OptimumDst));
1598 TInt err = KErrNone;
1602 INFO_PRINTF2(_L("Test left with status %d"), err);
1607 INFO_PRINTF1(_L("Test failed"));
1614 //------------------------------------------------------------------
1619 CTest_MMF_ACOD_U_0037::CTest_MMF_ACOD_U_0037()
1621 // store the name of this test case
1622 // this is the name that is used by the script file
1623 // Each test step initialises it's own name
1624 iTestStepName = _L("MM-MMF-ACOD-U-0037-HP");
1628 * PCM16 To PCM8 Reposition source pointer during conversion
1629 * @test Req. under test REQ172.11
1631 TVerdict CTest_MMF_ACOD_U_0037::DoTestStepL()
1633 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
1634 TBool testOK = EFalse;
1636 INFO_PRINTF1(_L(">> The PCM16 to PCM8 codec doesn't currently store data between calls to ProcessL"));
1637 // TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
1638 TInt err = KErrNone;
1641 INFO_PRINTF2(_L("Test left with status %d"), err);
1646 INFO_PRINTF1(_L("Test failed"));
1653 //------------------------------------------------------------------
1658 CTest_MMF_ACOD_U_0038::CTest_MMF_ACOD_U_0038()
1660 // store the name of this test case
1661 // this is the name that is used by the script file
1662 // Each test step initialises it's own name
1663 iTestStepName = _L("MM-MMF-ACOD-U-0038-HP");
1667 * PCM16 To PCM16B Instantiate codec by FourCC Codes
1668 * @test Req. under test REQ172.6.2, REQ172.11.6
1670 TVerdict CTest_MMF_ACOD_U_0038::DoTestStepL()
1672 TBool testOK = EFalse;
1673 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCM16B));
1674 TInt err = KErrNone ;
1677 INFO_PRINTF2(_L("Test left with status %d"), err);
1682 INFO_PRINTF1(_L("Test failed"));
1689 //------------------------------------------------------------------
1694 CTest_MMF_ACOD_U_0039::CTest_MMF_ACOD_U_0039()
1696 // store the name of this test case
1697 // this is the name that is used by the script file
1698 // Each test step initialises it's own name
1699 iTestStepName = _L("MM-MMF-ACOD-U-0039-HP");
1703 * PCM16B To PCM16 Instantiate codec by FourCC Codes
1704 * @test Req. under test REQ172.6.2, REQ172.11.6
1706 TVerdict CTest_MMF_ACOD_U_0039::DoTestStepL()
1708 TBool testOK = EFalse;
1709 //TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16B, KMMFFourCCCodePCM16));
1710 TInt err = KErrNone ;
1713 INFO_PRINTF2(_L("Test left with status %d"), err);
1718 INFO_PRINTF1(_L("Test failed"));
1725 //------------------------------------------------------------------
1730 CTest_MMF_ACOD_U_0040::CTest_MMF_ACOD_U_0040()
1732 // store the name of this test case
1733 // this is the name that is used by the script file
1734 // Each test step initialises it's own name
1735 iTestStepName = _L("MM-MMF-ACOD-U-0040-HP");
1739 * PCMU16 To PCMU16B Instantiate codec by FourCC Codes
1740 * @test Req. under test REQ172.6.2, REQ172.11.6
1742 TVerdict CTest_MMF_ACOD_U_0040::DoTestStepL()
1744 TBool testOK = EFalse;
1745 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU16, KMMFFourCCCodePCMU16B));
1746 TInt err = KErrNone ;
1749 INFO_PRINTF2(_L("Test left with status %d"), err);
1754 INFO_PRINTF1(_L("Test failed"));
1761 //------------------------------------------------------------------
1766 CTest_MMF_ACOD_U_0041::CTest_MMF_ACOD_U_0041()
1768 // store the name of this test case
1769 // this is the name that is used by the script file
1770 // Each test step initialises it's own name
1771 iTestStepName = _L("MM-MMF-ACOD-U-0041-HP");
1775 * PCMU16B To PCMU16 Instantiate codec by FourCC Codes
1776 * @test Req. under test REQ172.6.2, REQ172.11.6
1778 TVerdict CTest_MMF_ACOD_U_0041::DoTestStepL()
1780 TBool testOK = EFalse;
1781 //TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU16B, KMMFFourCCCodePCMU16));
1785 INFO_PRINTF2(_L("Test left with status %d"), err);
1790 INFO_PRINTF1(_L("Test failed"));
1797 //------------------------------------------------------------------
1802 CTest_MMF_ACOD_U_0042::CTest_MMF_ACOD_U_0042()
1804 // store the name of this test case
1805 // this is the name that is used by the script file
1806 // Each test step initialises it's own name
1807 iTestStepName = _L("MM-MMF-ACOD-U-0042-HP");
1811 * PCM16 To PCM16B Instantiate codec by UID
1812 * @test Req. under test REQ172.6.1, REQ172.11.6
1814 TVerdict CTest_MMF_ACOD_U_0042::DoTestStepL()
1816 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
1817 // const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
1818 TBool testOK = EFalse;
1819 // TRAPD(err, testOK = TestNewL(codecUid));
1820 TInt err = KErrNone ;
1824 INFO_PRINTF2(_L("Test left with status %d"), err);
1829 INFO_PRINTF1(_L("Test failed"));
1836 //------------------------------------------------------------------
1841 CTest_MMF_ACOD_U_0043::CTest_MMF_ACOD_U_0043()
1843 // store the name of this test case
1844 // this is the name that is used by the script file
1845 // Each test step initialises it's own name
1846 iTestStepName = _L("MM-MMF-ACOD-U-0043-HP");
1848 for (TUint i=0; i<5; i++)
1850 iExpectedSrcBytesProcessed[i] = 50;
1851 iExpectedDstBytesAdded[i] = 50;
1852 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
1857 * PCM16 To PCM16B Pass in small source buffers
1858 * @test Req. under test REQ172.6.4, REQ172.6.5
1860 TVerdict CTest_MMF_ACOD_U_0043::DoTestStepL()
1862 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
1863 // const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
1864 TBool testOK = EFalse;
1865 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCM16BOptimumDst));
1866 TInt err = KErrNone;
1869 INFO_PRINTF2(_L("Test left with status %d"), err);
1874 INFO_PRINTF1(_L("Test failed"));
1881 //------------------------------------------------------------------
1886 CTest_MMF_ACOD_U_0044::CTest_MMF_ACOD_U_0044()
1888 // store the name of this test case
1889 // this is the name that is used by the script file
1890 // Each test step initialises it's own name
1891 iTestStepName = _L("MM-MMF-ACOD-U-0044-HP");
1892 iHeapSize = 0x20000;
1893 for (TUint i=0; i<5; i++)
1895 iExpectedSrcBytesProcessed[i] = 50;
1896 iExpectedDstBytesAdded[i] = 50;
1897 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
1902 * PCM16 To PCM16B Pass in small dest buffers
1903 * @test Req. under test REQ172.6.4, REQ172.6.5
1905 TVerdict CTest_MMF_ACOD_U_0044::DoTestStepL()
1907 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
1908 // const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
1909 TBool testOK = EFalse;
1910 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM16BOptimumSrc, KSmallBufferSize));
1911 TInt err = KErrNone;
1914 INFO_PRINTF2(_L("Test left with status %d"), err);
1919 INFO_PRINTF1(_L("Test failed"));
1926 //------------------------------------------------------------------
1931 CTest_MMF_ACOD_U_0045::CTest_MMF_ACOD_U_0045()
1933 // store the name of this test case
1934 // this is the name that is used by the script file
1935 // Each test step initialises it's own name
1936 iTestStepName = _L("MM-MMF-ACOD-U-0045-HP");
1937 iHeapSize = 0x20000;
1938 for (TUint i=0; i<5; i++)
1940 iExpectedSrcBytesProcessed[i] = 10000;
1941 iExpectedDstBytesAdded[i] = 10000;
1942 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1947 * PCM16 To PCM16B Pass in large buffers
1948 * @test Req. under test REQ172.6.4, REQ172.6.5
1950 TVerdict CTest_MMF_ACOD_U_0045::DoTestStepL()
1952 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
1953 // const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
1954 TBool testOK = EFalse;
1955 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
1956 TInt err = KErrNone;
1959 INFO_PRINTF2(_L("Test left with status %d"), err);
1964 INFO_PRINTF1(_L("Test failed"));
1971 //------------------------------------------------------------------
1976 CTest_MMF_ACOD_U_0046::CTest_MMF_ACOD_U_0046()
1978 // store the name of this test case
1979 // this is the name that is used by the script file
1980 // Each test step initialises it's own name
1981 iTestStepName = _L("MM-MMF-ACOD-U-0046-HP");
1983 for (TUint i=0; i<5; i++)
1985 iExpectedSrcBytesProcessed[i] = 0x1000;
1986 iExpectedDstBytesAdded[i] = 0x1000;
1987 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
1992 * PCM16 To PCM16B Pass in default sized buffers
1993 * @test Req. under test REQ172.6.4, REQ172.6.5
1995 TVerdict CTest_MMF_ACOD_U_0046::DoTestStepL()
1997 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
1998 // const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
1999 TBool testOK = EFalse;
2000 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
2001 TInt err = KErrNone;
2004 INFO_PRINTF2(_L("Test left with status %d"), err);
2009 INFO_PRINTF1(_L("Test failed"));
2016 //------------------------------------------------------------------
2021 CTest_MMF_ACOD_U_0047::CTest_MMF_ACOD_U_0047()
2023 // store the name of this test case
2024 // this is the name that is used by the script file
2025 // Each test step initialises it's own name
2026 iTestStepName = _L("MM-MMF-ACOD-U-0047-HP");
2028 for (TUint i=0; i<5; i++)
2030 iExpectedSrcBytesProcessed[i] = 0x1000;
2031 iExpectedDstBytesAdded[i] = 0x1000;
2032 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2037 * PCM16 To PCM16B Pass in buffers with different max length and length
2038 * @test Req. under test REQ172.6.4, REQ172.6.5
2040 TVerdict CTest_MMF_ACOD_U_0047::DoTestStepL()
2042 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
2043 // const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
2044 TBool testOK = EFalse;
2045 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
2046 TInt err = KErrNone;
2049 INFO_PRINTF2(_L("Test left with status %d"), err);
2054 INFO_PRINTF1(_L("Test failed"));
2061 //------------------------------------------------------------------
2066 CTest_MMF_ACOD_U_0048::CTest_MMF_ACOD_U_0048()
2068 // store the name of this test case
2069 // this is the name that is used by the script file
2070 // Each test step initialises it's own name
2071 iTestStepName = _L("MM-MMF-ACOD-U-0048-HP");
2073 for (TUint i=0; i<5; i++)
2075 iExpectedSrcBytesProcessed[i] = 0x1000;
2076 iExpectedDstBytesAdded[i] = 0x1000;
2077 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2082 * PCM16 To PCM16B Pass in buffers of optimum size
2083 * @test Req. under test REQ172.6.4, REQ172.6.5
2085 TVerdict CTest_MMF_ACOD_U_0048::DoTestStepL()
2087 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
2088 // const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
2089 TBool testOK = EFalse;
2090 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM16BOptimumSrc, KPCM16ToPCM16BOptimumDst));
2091 TInt err = KErrNone;
2094 INFO_PRINTF2(_L("Test left with status %d"), err);
2099 INFO_PRINTF1(_L("Test failed"));
2106 //------------------------------------------------------------------
2111 CTest_MMF_ACOD_U_0049::CTest_MMF_ACOD_U_0049()
2113 // store the name of this test case
2114 // this is the name that is used by the script file
2115 // Each test step initialises it's own name
2116 iTestStepName = _L("MM-MMF-ACOD-U-0049-HP");
2120 * PCM16 To PCM16B Reposition source pointer during conversion
2121 * @test Req. under test REQ172.11
2123 TVerdict CTest_MMF_ACOD_U_0049::DoTestStepL()
2125 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
2126 // const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
2127 TBool testOK = EFalse;
2129 INFO_PRINTF1(_L(">> The PCM16 to PCM16B codec doesn't currently store data between calls to ProcessL"));
2130 // TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
2131 TInt err = KErrNone ;
2134 INFO_PRINTF2(_L("Test left with status %d"), err);
2139 INFO_PRINTF1(_L("Test failed"));
2146 //------------------------------------------------------------------
2151 CTest_MMF_ACOD_U_0050::CTest_MMF_ACOD_U_0050()
2153 // store the name of this test case
2154 // this is the name that is used by the script file
2155 // Each test step initialises it's own name
2156 iTestStepName = _L("MM-MMF-ACOD-U-0050-HP");
2160 * PCM16 To PCMU16B Instantiate codec by FourCC Codes
2161 * @test Req. under test REQ172.6.2
2163 TVerdict CTest_MMF_ACOD_U_0050::DoTestStepL()
2165 TBool testOK = EFalse;
2166 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCMU16B));
2167 TInt err = KErrNone ;
2171 INFO_PRINTF2(_L("Test left with status %d"), err);
2176 INFO_PRINTF1(_L("Test failed"));
2183 //------------------------------------------------------------------
2188 CTest_MMF_ACOD_U_0051::CTest_MMF_ACOD_U_0051()
2190 // store the name of this test case
2191 // this is the name that is used by the script file
2192 // Each test step initialises it's own name
2193 iTestStepName = _L("MM-MMF-ACOD-U-0051-HP");
2197 * PCM16 To PCMU16B Instantiate codec by UID
2198 * @test Req. under test REQ172.6.1
2200 TVerdict CTest_MMF_ACOD_U_0051::DoTestStepL()
2202 // const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
2203 TBool testOK = EFalse;
2204 // TRAPD(err, testOK = TestNewL(codecUid));
2205 TInt err = KErrNone ;
2209 INFO_PRINTF2(_L("Test left with status %d"), err);
2214 INFO_PRINTF1(_L("Test failed"));
2221 //------------------------------------------------------------------
2226 CTest_MMF_ACOD_U_0052::CTest_MMF_ACOD_U_0052()
2228 // store the name of this test case
2229 // this is the name that is used by the script file
2230 // Each test step initialises it's own name
2231 iTestStepName = _L("MM-MMF-ACOD-U-0052-HP");
2233 for (TUint i=0; i<5; i++)
2235 iExpectedSrcBytesProcessed[i] = 50;
2236 iExpectedDstBytesAdded[i] = 50;
2237 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
2242 * PCM16 To PCMU16B Pass in small source buffers
2243 * @test Req. under test REQ172.6.4, REQ172.6.5
2245 TVerdict CTest_MMF_ACOD_U_0052::DoTestStepL()
2247 // const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
2248 TBool testOK = EFalse;
2249 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCMU16BOptimumDst));
2250 TInt err = KErrNone;
2253 INFO_PRINTF2(_L("Test left with status %d"), err);
2258 INFO_PRINTF1(_L("Test failed"));
2265 //------------------------------------------------------------------
2270 CTest_MMF_ACOD_U_0053::CTest_MMF_ACOD_U_0053()
2272 // store the name of this test case
2273 // this is the name that is used by the script file
2274 // Each test step initialises it's own name
2275 iTestStepName = _L("MM-MMF-ACOD-U-0053-HP");
2277 for (TUint i=0; i<5; i++)
2279 iExpectedSrcBytesProcessed[i] = 50;
2280 iExpectedDstBytesAdded[i] = 50;
2281 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
2286 * PCM16 To PCMU16B Pass in small dest buffers
2287 * @test Req. under test REQ172.6.4, REQ172.6.5
2289 TVerdict CTest_MMF_ACOD_U_0053::DoTestStepL()
2291 // const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
2292 TBool testOK = EFalse;
2293 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16BOptimumSrc, KSmallBufferSize));
2294 TInt err = KErrNone;
2297 INFO_PRINTF2(_L("Test left with status %d"), err);
2302 INFO_PRINTF1(_L("Test failed"));
2309 //------------------------------------------------------------------
2314 CTest_MMF_ACOD_U_0054::CTest_MMF_ACOD_U_0054()
2316 // store the name of this test case
2317 // this is the name that is used by the script file
2318 // Each test step initialises it's own name
2319 iTestStepName = _L("MM-MMF-ACOD-U-0054-HP");
2320 iHeapSize = 0x20000;
2321 for (TUint i=0; i<5; i++)
2323 iExpectedSrcBytesProcessed[i] = 10000;
2324 iExpectedDstBytesAdded[i] = 10000;
2325 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2330 * PCM16 To PCMU16B Pass in large buffers
2331 * @test Req. under test REQ172.6.4, REQ172.6.5
2333 TVerdict CTest_MMF_ACOD_U_0054::DoTestStepL()
2335 // const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
2336 TBool testOK = EFalse;
2337 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
2338 TInt err = KErrNone;
2341 INFO_PRINTF2(_L("Test left with status %d"), err);
2346 INFO_PRINTF1(_L("Test failed"));
2353 //------------------------------------------------------------------
2358 CTest_MMF_ACOD_U_0055::CTest_MMF_ACOD_U_0055()
2360 // store the name of this test case
2361 // this is the name that is used by the script file
2362 // Each test step initialises it's own name
2363 iTestStepName = _L("MM-MMF-ACOD-U-0055-HP");
2365 for (TUint i=0; i<5; i++)
2367 iExpectedSrcBytesProcessed[i] = 0x1000;
2368 iExpectedDstBytesAdded[i] = 0x1000;
2369 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2374 * PCM16 To PCMU16B Pass in default sized buffers
2375 * @test Req. under test REQ172.6.4, REQ172.6.5
2377 TVerdict CTest_MMF_ACOD_U_0055::DoTestStepL()
2379 // const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
2380 TBool testOK = EFalse;
2381 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
2382 TInt err = KErrNone;
2385 INFO_PRINTF2(_L("Test left with status %d"), err);
2390 INFO_PRINTF1(_L("Test failed"));
2397 //------------------------------------------------------------------
2402 CTest_MMF_ACOD_U_0056::CTest_MMF_ACOD_U_0056()
2404 // store the name of this test case
2405 // this is the name that is used by the script file
2406 // Each test step initialises it's own name
2407 iTestStepName = _L("MM-MMF-ACOD-U-0056-HP");
2409 for (TUint i=0; i<5; i++)
2411 iExpectedSrcBytesProcessed[i] = 0x1000;
2412 iExpectedDstBytesAdded[i] = 0x1000;
2413 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2418 * PCM16 To PCMU16B Pass in buffers with different max length and length
2419 * @test Req. under test REQ172.6.4, REQ172.6.5
2421 TVerdict CTest_MMF_ACOD_U_0056::DoTestStepL()
2423 // const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
2424 TBool testOK = EFalse;
2425 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
2426 TInt err = KErrNone;
2429 INFO_PRINTF2(_L("Test left with status %d"), err);
2434 INFO_PRINTF1(_L("Test failed"));
2441 //------------------------------------------------------------------
2446 CTest_MMF_ACOD_U_0057::CTest_MMF_ACOD_U_0057()
2448 // store the name of this test case
2449 // this is the name that is used by the script file
2450 // Each test step initialises it's own name
2451 iTestStepName = _L("MM-MMF-ACOD-U-0057-HP");
2453 for (TUint i=0; i<5; i++)
2455 iExpectedSrcBytesProcessed[i] = 0x1000;
2456 iExpectedDstBytesAdded[i] = 0x1000;
2457 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2462 * PCM16 To PCMU16B Pass in buffers of optimum size
2463 * @test Req. under test REQ172.6.4, REQ172.6.5
2465 TVerdict CTest_MMF_ACOD_U_0057::DoTestStepL()
2467 // const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
2468 TBool testOK = EFalse;
2469 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16BOptimumSrc, KPCM16ToPCMU16BOptimumDst));
2470 TInt err = KErrNone;
2473 INFO_PRINTF2(_L("Test left with status %d"), err);
2478 INFO_PRINTF1(_L("Test failed"));
2485 //------------------------------------------------------------------
2490 CTest_MMF_ACOD_U_0058::CTest_MMF_ACOD_U_0058()
2492 // store the name of this test case
2493 // this is the name that is used by the script file
2494 // Each test step initialises it's own name
2495 iTestStepName = _L("MM-MMF-ACOD-U-0058-HP");
2499 * PCM16 To PCMU16B Reposition source pointer during conversion
2500 * @test Req. under test REQ172.11
2502 TVerdict CTest_MMF_ACOD_U_0058::DoTestStepL()
2504 // const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
2505 TBool testOK = EFalse;
2507 INFO_PRINTF1(_L(">> The PCM16 to PCMU16B codec doesn't currently store data between calls to ProcessL"));
2508 // TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
2509 TInt err = KErrNone;
2512 INFO_PRINTF2(_L("Test left with status %d"), err);
2517 INFO_PRINTF1(_L("Test failed"));
2524 //------------------------------------------------------------------
2529 CTest_MMF_ACOD_U_0059::CTest_MMF_ACOD_U_0059()
2531 // store the name of this test case
2532 // this is the name that is used by the script file
2533 // Each test step initialises it's own name
2534 iTestStepName = _L("MM-MMF-ACOD-U-0059-HP");
2538 * PCM16 To PCMU16 Instantiate codec by FourCC Codes
2539 * @test Req. under test REQ172.6.2, REQ172.11.7
2541 TVerdict CTest_MMF_ACOD_U_0059::DoTestStepL()
2543 TBool testOK = EFalse;
2544 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCMU16));
2545 TInt err = KErrNone;
2548 INFO_PRINTF2(_L("Test left with status %d"), err);
2553 INFO_PRINTF1(_L("Test failed"));
2560 //------------------------------------------------------------------
2565 CTest_MMF_ACOD_U_0060::CTest_MMF_ACOD_U_0060()
2567 // store the name of this test case
2568 // this is the name that is used by the script file
2569 // Each test step initialises it's own name
2570 iTestStepName = _L("MM-MMF-ACOD-U-0060-HP");
2574 * PCM16 To PCMU16 Instantiate codec by UID
2575 * @test Req. under test REQ172.6.1, REQ172.11.7
2577 TVerdict CTest_MMF_ACOD_U_0060::DoTestStepL()
2579 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
2580 TBool testOK = EFalse;
2581 // TRAPD(err, testOK = TestNewL(codecUid));
2582 TInt err = KErrNone ;
2585 INFO_PRINTF2(_L("Test left with status %d"), err);
2590 INFO_PRINTF1(_L("Test failed"));
2597 //------------------------------------------------------------------
2602 CTest_MMF_ACOD_U_0061::CTest_MMF_ACOD_U_0061()
2604 // store the name of this test case
2605 // this is the name that is used by the script file
2606 // Each test step initialises it's own name
2607 iTestStepName = _L("MM-MMF-ACOD-U-0061-HP");
2609 for (TUint i=0; i<5; i++)
2611 iExpectedSrcBytesProcessed[i] = 50;
2612 iExpectedDstBytesAdded[i] = 50;
2613 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
2618 * PCM16 To PCMU16 Pass in small source buffers
2619 * @test Req. under test REQ172.6.4, REQ172.6.5
2621 TVerdict CTest_MMF_ACOD_U_0061::DoTestStepL()
2623 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
2624 TBool testOK = EFalse;
2625 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCMU16OptimumDst));
2626 TInt err = KErrNone;
2629 INFO_PRINTF2(_L("Test left with status %d"), err);
2634 INFO_PRINTF1(_L("Test failed"));
2641 //------------------------------------------------------------------
2646 CTest_MMF_ACOD_U_0062::CTest_MMF_ACOD_U_0062()
2648 // store the name of this test case
2649 // this is the name that is used by the script file
2650 // Each test step initialises it's own name
2651 iTestStepName = _L("MM-MMF-ACOD-U-0062-HP");
2653 for (TUint i=0; i<5; i++)
2655 iExpectedSrcBytesProcessed[i] = 50;
2656 iExpectedDstBytesAdded[i] = 50;
2657 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
2662 * PCM16 To PCMU16 Pass in small dest buffers
2663 * @test Req. under test REQ172.6.4, REQ172.6.5
2665 TVerdict CTest_MMF_ACOD_U_0062::DoTestStepL()
2667 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
2668 TBool testOK = EFalse;
2669 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16OptimumSrc, KSmallBufferSize));
2670 TInt err = KErrNone;
2673 INFO_PRINTF2(_L("Test left with status %d"), err);
2678 INFO_PRINTF1(_L("Test failed"));
2685 //------------------------------------------------------------------
2690 CTest_MMF_ACOD_U_0063::CTest_MMF_ACOD_U_0063()
2692 // store the name of this test case
2693 // this is the name that is used by the script file
2694 // Each test step initialises it's own name
2695 iTestStepName = _L("MM-MMF-ACOD-U-0063-HP");
2696 iHeapSize = 0x20000;
2698 for (TUint i=0; i<5; i++)
2700 iExpectedSrcBytesProcessed[i] = 10000;
2701 iExpectedDstBytesAdded[i] = 10000;
2702 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2707 * PCM16 To PCMU16 Pass in large buffers
2708 * @test Req. under test REQ172.6.4, REQ172.6.5
2710 TVerdict CTest_MMF_ACOD_U_0063::DoTestStepL()
2712 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
2713 TBool testOK = EFalse;
2714 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
2715 TInt err = KErrNone;
2718 INFO_PRINTF2(_L("Test left with status %d"), err);
2723 INFO_PRINTF1(_L("Test failed"));
2730 //------------------------------------------------------------------
2735 CTest_MMF_ACOD_U_0064::CTest_MMF_ACOD_U_0064()
2737 // store the name of this test case
2738 // this is the name that is used by the script file
2739 // Each test step initialises it's own name
2740 iTestStepName = _L("MM-MMF-ACOD-U-0064-HP");
2742 for (TUint i=0; i<5; i++)
2744 iExpectedSrcBytesProcessed[i] = 0x1000;
2745 iExpectedDstBytesAdded[i] = 0x1000;
2746 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2751 * PCM16 To PCMU16 Pass in default sized buffers
2752 * @test Req. under test REQ172.6.4, REQ172.6.5
2754 TVerdict CTest_MMF_ACOD_U_0064::DoTestStepL()
2756 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
2757 TBool testOK = EFalse;
2758 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
2759 TInt err = KErrNone;
2762 INFO_PRINTF2(_L("Test left with status %d"), err);
2767 INFO_PRINTF1(_L("Test failed"));
2774 //------------------------------------------------------------------
2779 CTest_MMF_ACOD_U_0065::CTest_MMF_ACOD_U_0065()
2781 // store the name of this test case
2782 // this is the name that is used by the script file
2783 // Each test step initialises it's own name
2784 iTestStepName = _L("MM-MMF-ACOD-U-0065-HP");
2786 for (TUint i=0; i<5; i++)
2788 iExpectedSrcBytesProcessed[i] = 0x1000;
2789 iExpectedDstBytesAdded[i] = 0x1000;
2790 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2795 * PCM16 To PCMU16 Pass in buffers with different max length and length
2796 * @test Req. under test REQ172.6.4, REQ172.6.5
2798 TVerdict CTest_MMF_ACOD_U_0065::DoTestStepL()
2800 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
2801 TBool testOK = EFalse;
2802 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
2803 TInt err = KErrNone;
2806 INFO_PRINTF2(_L("Test left with status %d"), err);
2811 INFO_PRINTF1(_L("Test failed"));
2818 //------------------------------------------------------------------
2823 CTest_MMF_ACOD_U_0066::CTest_MMF_ACOD_U_0066()
2825 // store the name of this test case
2826 // this is the name that is used by the script file
2827 // Each test step initialises it's own name
2828 iTestStepName = _L("MM-MMF-ACOD-U-0066-HP");
2830 for (TUint i=0; i<5; i++)
2832 iExpectedSrcBytesProcessed[i] = 0x1000;
2833 iExpectedDstBytesAdded[i] = 0x1000;
2834 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
2839 * PCM16 To PCMU16 Pass in buffers of optimum size
2840 * @test Req. under test REQ172.6.4, REQ172.6.5
2842 TVerdict CTest_MMF_ACOD_U_0066::DoTestStepL()
2844 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
2845 TBool testOK = EFalse;
2846 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16OptimumSrc, KPCM16ToPCMU16OptimumDst));
2847 TInt err = KErrNone;
2850 INFO_PRINTF2(_L("Test left with status %d"), err);
2855 INFO_PRINTF1(_L("Test failed"));
2862 //------------------------------------------------------------------
2867 CTest_MMF_ACOD_U_0067::CTest_MMF_ACOD_U_0067()
2869 // store the name of this test case
2870 // this is the name that is used by the script file
2871 // Each test step initialises it's own name
2872 iTestStepName = _L("MM-MMF-ACOD-U-0067-HP");
2876 * PCM16 To PCMU16 Reposition source pointer during conversion
2877 * @test Req. under test REQ172.11
2879 TVerdict CTest_MMF_ACOD_U_0067::DoTestStepL()
2881 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
2882 TBool testOK = EFalse;
2884 INFO_PRINTF1(_L(">> The PCM16 to PCMU16 codec doesn't currently store data between calls to ProcessL"));
2885 // TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
2886 TInt err = KErrNone ;
2890 INFO_PRINTF2(_L("Test left with status %d"), err);
2895 INFO_PRINTF1(_L("Test failed"));
2902 //------------------------------------------------------------------
2907 CTest_MMF_ACOD_U_0068::CTest_MMF_ACOD_U_0068()
2909 // store the name of this test case
2910 // this is the name that is used by the script file
2911 // Each test step initialises it's own name
2912 iTestStepName = _L("MM-MMF-ACOD-U-0068-HP");
2916 * PCM16 To PCMU8 Instantiate codec by FourCC Codes
2917 * @test Req. under test REQ172.6.2, REQ172.11.8
2919 TVerdict CTest_MMF_ACOD_U_0068::DoTestStepL()
2921 TBool testOK = EFalse;
2922 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCMU8));
2923 TInt err = KErrNone ;
2926 INFO_PRINTF2(_L("Test left with status %d"), err);
2931 INFO_PRINTF1(_L("Test failed"));
2938 //------------------------------------------------------------------
2943 CTest_MMF_ACOD_U_0069::CTest_MMF_ACOD_U_0069()
2945 // store the name of this test case
2946 // this is the name that is used by the script file
2947 // Each test step initialises it's own name
2948 iTestStepName = _L("MM-MMF-ACOD-U-0069-HP");
2952 * PCM16 To PCMU8 Instantiate codec by UID
2953 * @test Req. under test REQ172.6.1, REQ172.11.8
2955 TVerdict CTest_MMF_ACOD_U_0069::DoTestStepL()
2957 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
2958 TBool testOK = EFalse;
2959 //TRAPD(err, testOK = TestNewL(codecUid));
2960 TInt err = KErrNone ;
2964 INFO_PRINTF2(_L("Test left with status %d"), err);
2969 INFO_PRINTF1(_L("Test failed"));
2976 //------------------------------------------------------------------
2981 CTest_MMF_ACOD_U_0070::CTest_MMF_ACOD_U_0070()
2983 // store the name of this test case
2984 // this is the name that is used by the script file
2985 // Each test step initialises it's own name
2986 iTestStepName = _L("MM-MMF-ACOD-U-0070-HP");
2988 for (TUint i=0; i<5; i++)
2990 iExpectedSrcBytesProcessed[i] = 50;
2991 iExpectedDstBytesAdded[i] = 25;
2992 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
2997 * PCM16 To PCMU8 Pass in small source buffers
2998 * @test Req. under test REQ172.6.4, REQ172.6.5
3000 TVerdict CTest_MMF_ACOD_U_0070::DoTestStepL()
3002 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
3003 TBool testOK = EFalse;
3004 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCMU8OptimumDst));
3005 TInt err = KErrNone ;
3008 INFO_PRINTF2(_L("Test left with status %d"), err);
3013 INFO_PRINTF1(_L("Test failed"));
3020 //------------------------------------------------------------------
3025 CTest_MMF_ACOD_U_0071::CTest_MMF_ACOD_U_0071()
3027 // store the name of this test case
3028 // this is the name that is used by the script file
3029 // Each test step initialises it's own name
3030 iTestStepName = _L("MM-MMF-ACOD-U-0071-HP");
3032 for (TUint i=0; i<5; i++)
3034 iExpectedSrcBytesProcessed[i] = 100;
3035 iExpectedDstBytesAdded[i] = 50;
3036 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
3041 * PCM16 To PCMU8 Pass in small dest buffers
3042 * @test Req. under test REQ172.6.4, REQ172.6.5
3044 TVerdict CTest_MMF_ACOD_U_0071::DoTestStepL()
3046 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
3047 TBool testOK = EFalse;
3048 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU8OptimumSrc, KSmallBufferSize));
3049 TInt err = KErrNone;
3052 INFO_PRINTF2(_L("Test left with status %d"), err);
3057 INFO_PRINTF1(_L("Test failed"));
3064 //------------------------------------------------------------------
3069 CTest_MMF_ACOD_U_0072::CTest_MMF_ACOD_U_0072()
3071 // store the name of this test case
3072 // this is the name that is used by the script file
3073 // Each test step initialises it's own name
3074 iTestStepName = _L("MM-MMF-ACOD-U-0072-HP");
3075 iHeapSize = 0x20000;
3077 for (TUint i=0; i<5; i++)
3079 iExpectedSrcBytesProcessed[i] = 10000;
3080 iExpectedDstBytesAdded[i] = 5000;
3082 if((i%2)==0)//even i
3083 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
3085 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3090 * PCM16 To PCMU8 Pass in large buffers
3091 * @test Req. under test REQ172.6.4, REQ172.6.5
3093 TVerdict CTest_MMF_ACOD_U_0072::DoTestStepL()
3095 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
3096 TBool testOK = EFalse;
3097 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
3098 TInt err = KErrNone;
3101 INFO_PRINTF2(_L("Test left with status %d"), err);
3106 INFO_PRINTF1(_L("Test failed"));
3113 //------------------------------------------------------------------
3118 CTest_MMF_ACOD_U_0073::CTest_MMF_ACOD_U_0073()
3120 // store the name of this test case
3121 // this is the name that is used by the script file
3122 // Each test step initialises it's own name
3123 iTestStepName = _L("MM-MMF-ACOD-U-0073-HP");
3125 for (TUint i=0; i<5; i++)
3127 iExpectedSrcBytesProcessed[i] = 0x1000;
3128 iExpectedDstBytesAdded[i] = 0x800;
3130 if((i%2)==0)//even i
3131 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
3133 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3138 * PCM16 To PCMU8 Pass in default sized buffers
3139 * @test Req. under test REQ172.6.4, REQ172.6.5
3141 TVerdict CTest_MMF_ACOD_U_0073::DoTestStepL()
3143 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
3144 TBool testOK = EFalse;
3145 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
3146 TInt err = KErrNone;
3149 INFO_PRINTF2(_L("Test left with status %d"), err);
3154 INFO_PRINTF1(_L("Test failed"));
3161 //------------------------------------------------------------------
3166 CTest_MMF_ACOD_U_0074::CTest_MMF_ACOD_U_0074()
3168 // store the name of this test case
3169 // this is the name that is used by the script file
3170 // Each test step initialises it's own name
3171 iTestStepName = _L("MM-MMF-ACOD-U-0074-HP");
3173 for (TUint i=0; i<5; i++)
3175 iExpectedSrcBytesProcessed[i] = 0x1000;
3176 iExpectedDstBytesAdded[i] = 0x800;
3178 if((i%2)==0)//even i
3179 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
3181 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3186 * PCM16 To PCMU8 Pass in buffers with different max length and length
3187 * @test Req. under test REQ172.6.4, REQ172.6.5
3189 TVerdict CTest_MMF_ACOD_U_0074::DoTestStepL()
3191 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
3192 TBool testOK = EFalse;
3193 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
3194 TInt err = KErrNone;
3197 INFO_PRINTF2(_L("Test left with status %d"), err);
3202 INFO_PRINTF1(_L("Test failed"));
3209 //------------------------------------------------------------------
3214 CTest_MMF_ACOD_U_0075::CTest_MMF_ACOD_U_0075()
3216 // store the name of this test case
3217 // this is the name that is used by the script file
3218 // Each test step initialises it's own name
3219 iTestStepName = _L("MM-MMF-ACOD-U-0075-HP");
3221 for (TUint i=0; i<5; i++)
3223 iExpectedSrcBytesProcessed[i] = 0x1000;
3224 iExpectedDstBytesAdded[i] = 0x800;
3225 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3230 * PCM16 To PCMU8 Pass in buffers of optimum size
3231 * @test Req. under test REQ172.6.4, REQ172.6.5
3233 TVerdict CTest_MMF_ACOD_U_0075::DoTestStepL()
3235 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
3236 TBool testOK = EFalse;
3237 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU8OptimumSrc, KPCM16ToPCMU8OptimumDst));
3238 TInt err = KErrNone;
3241 INFO_PRINTF2(_L("Test left with status %d"), err);
3246 INFO_PRINTF1(_L("Test failed"));
3253 //------------------------------------------------------------------
3258 CTest_MMF_ACOD_U_0076::CTest_MMF_ACOD_U_0076()
3260 // store the name of this test case
3261 // this is the name that is used by the script file
3262 // Each test step initialises it's own name
3263 iTestStepName = _L("MM-MMF-ACOD-U-0076-HP");
3267 * PCM16 To PCMU8 Reposition source pointer during conversion
3268 * @test Req. under test REQ172.11
3270 TVerdict CTest_MMF_ACOD_U_0076::DoTestStepL()
3272 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
3273 TBool testOK = EFalse;
3275 INFO_PRINTF1(_L(">> The PCM16 to PCMU8 codec doesn't currently store data between calls to ProcessL"));
3276 // TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
3277 TInt err = KErrNone ;
3280 INFO_PRINTF2(_L("Test left with status %d"), err);
3285 INFO_PRINTF1(_L("Test failed"));
3292 //-----------------------------------------------------------------
3297 CTest_MMF_ACOD_U_0077::CTest_MMF_ACOD_U_0077()
3299 // store the name of this test case
3300 // this is the name that is used by the script file
3301 // Each test step initialises it's own name
3302 iTestStepName = _L("MM-MMF-ACOD-U-0077-HP");
3306 * PCMU16B To PCM16 Instantiate codec by FourCC Codes
3307 * @test Req. under test REQ172.6.2, REQ172.11.9
3309 TVerdict CTest_MMF_ACOD_U_0077::DoTestStepL()
3311 TBool testOK = EFalse;
3312 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU16B, KMMFFourCCCodePCM16));
3313 TInt err = KErrNone;
3316 INFO_PRINTF2(_L("Test left with status %d"), err);
3321 INFO_PRINTF1(_L("Test failed"));
3328 //------------------------------------------------------------------
3333 CTest_MMF_ACOD_U_0078::CTest_MMF_ACOD_U_0078()
3335 // store the name of this test case
3336 // this is the name that is used by the script file
3337 // Each test step initialises it's own name
3338 iTestStepName = _L("MM-MMF-ACOD-U-0078-HP");
3342 * PCMU16B To PCM16 Instantiate codec by UID
3343 * @test Req. under test REQ172.6.1, REQ172.11.9
3345 TVerdict CTest_MMF_ACOD_U_0078::DoTestStepL()
3347 // const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
3348 TBool testOK = EFalse;
3349 // TRAPD(err, testOK = TestNewL(codecUid));
3350 TInt err = KErrNone;
3353 INFO_PRINTF2(_L("Test left with status %d"), err);
3358 INFO_PRINTF1(_L("Test failed"));
3365 //------------------------------------------------------------------
3370 CTest_MMF_ACOD_U_0079::CTest_MMF_ACOD_U_0079()
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-0079-HP");
3377 for (TUint i=0; i<5; i++)
3379 iExpectedSrcBytesProcessed[i] = 50;
3380 iExpectedDstBytesAdded[i] = 50;
3381 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
3386 * PCMU16B To PCM16 Pass in small source buffers
3387 * @test Req. under test REQ172.6.4, REQ172.6.5
3389 TVerdict CTest_MMF_ACOD_U_0079::DoTestStepL()
3391 // const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
3392 TBool testOK = EFalse;
3393 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCMU16BToPCM16OptimumDst));
3394 TInt err = KErrNone;
3397 INFO_PRINTF2(_L("Test left with status %d"), err);
3402 INFO_PRINTF1(_L("Test failed"));
3409 //------------------------------------------------------------------
3414 CTest_MMF_ACOD_U_0080::CTest_MMF_ACOD_U_0080()
3416 // store the name of this test case
3417 // this is the name that is used by the script file
3418 // Each test step initialises it's own name
3419 iTestStepName = _L("MM-MMF-ACOD-U-0080-HP");
3421 for (TUint i=0; i<5; i++)
3423 iExpectedSrcBytesProcessed[i] = 50;
3424 iExpectedDstBytesAdded[i] = 50;
3425 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
3430 * PCMU16B To PCM16 Pass in small dest buffers
3431 * @test Req. under test REQ172.6.4, REQ172.6.5
3433 TVerdict CTest_MMF_ACOD_U_0080::DoTestStepL()
3435 //const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
3436 TBool testOK = EFalse;
3437 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16BToPCM16OptimumSrc, KSmallBufferSize));
3438 TInt err = KErrNone;
3441 INFO_PRINTF2(_L("Test left with status %d"), err);
3446 INFO_PRINTF1(_L("Test failed"));
3453 //------------------------------------------------------------------
3458 CTest_MMF_ACOD_U_0081::CTest_MMF_ACOD_U_0081()
3460 // store the name of this test case
3461 // this is the name that is used by the script file
3462 // Each test step initialises it's own name
3463 iTestStepName = _L("MM-MMF-ACOD-U-0081-HP");
3464 iHeapSize = 0x20000;
3466 for (TUint i=0; i<5; i++)
3468 iExpectedSrcBytesProcessed[i] = 10000;
3469 iExpectedDstBytesAdded[i] = 10000;
3470 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3475 * PCMU16B To PCM16 Pass in large buffers
3476 * @test Req. under test REQ172.6.4, REQ172.6.5
3478 TVerdict CTest_MMF_ACOD_U_0081::DoTestStepL()
3480 //const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
3481 TBool testOK = EFalse;
3482 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
3483 TInt err = KErrNone;
3486 INFO_PRINTF2(_L("Test left with status %d"), err);
3491 INFO_PRINTF1(_L("Test failed"));
3498 //------------------------------------------------------------------
3503 CTest_MMF_ACOD_U_0082::CTest_MMF_ACOD_U_0082()
3505 // store the name of this test case
3506 // this is the name that is used by the script file
3507 // Each test step initialises it's own name
3508 iTestStepName = _L("MM-MMF-ACOD-U-0082-HP");
3510 for (TUint i=0; i<5; i++)
3512 iExpectedSrcBytesProcessed[i] = 0x1000;
3513 iExpectedDstBytesAdded[i] = 0x1000;
3514 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3519 * PCMU16B To PCM16 Pass in default sized buffers
3520 * @test Req. under test REQ172.6.4, REQ172.6.5
3522 TVerdict CTest_MMF_ACOD_U_0082::DoTestStepL()
3524 //const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
3525 TBool testOK = EFalse;
3526 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
3527 TInt err = KErrNone;
3530 INFO_PRINTF2(_L("Test left with status %d"), err);
3535 INFO_PRINTF1(_L("Test failed"));
3542 //------------------------------------------------------------------
3547 CTest_MMF_ACOD_U_0083::CTest_MMF_ACOD_U_0083()
3549 // store the name of this test case
3550 // this is the name that is used by the script file
3551 // Each test step initialises it's own name
3552 iTestStepName = _L("MM-MMF-ACOD-U-0083-HP");
3554 for (TUint i=0; i<5; i++)
3556 iExpectedSrcBytesProcessed[i] = 0x1000;
3557 iExpectedDstBytesAdded[i] = 0x1000;
3558 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3563 * PCMU16B To PCM16 Pass in buffers with different max length and length
3564 * @test Req. under test REQ172.6.4, REQ172.6.5
3566 TVerdict CTest_MMF_ACOD_U_0083::DoTestStepL()
3568 //const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
3569 TBool testOK = EFalse;
3570 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
3571 TInt err = KErrNone;
3574 INFO_PRINTF2(_L("Test left with status %d"), err);
3579 INFO_PRINTF1(_L("Test failed"));
3586 //------------------------------------------------------------------
3591 CTest_MMF_ACOD_U_0084::CTest_MMF_ACOD_U_0084()
3593 // store the name of this test case
3594 // this is the name that is used by the script file
3595 // Each test step initialises it's own name
3596 iTestStepName = _L("MM-MMF-ACOD-U-0084-HP");
3598 for (TUint i=0; i<5; i++)
3600 iExpectedSrcBytesProcessed[i] = 0x1000;
3601 iExpectedDstBytesAdded[i] = 0x1000;
3602 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3607 * PCMU16B To PCM16 Pass in buffers of optimum size
3608 * @test Req. under test REQ172.6.4, REQ172.6.5
3610 TVerdict CTest_MMF_ACOD_U_0084::DoTestStepL()
3612 //const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
3613 TBool testOK = EFalse;
3614 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16BToPCM16OptimumSrc, KPCMU16BToPCM16OptimumDst));
3615 TInt err = KErrNone;
3619 INFO_PRINTF2(_L("Test left with status %d"), err);
3624 INFO_PRINTF1(_L("Test failed"));
3631 //------------------------------------------------------------------
3636 CTest_MMF_ACOD_U_0085::CTest_MMF_ACOD_U_0085()
3638 // store the name of this test case
3639 // this is the name that is used by the script file
3640 // Each test step initialises it's own name
3641 iTestStepName = _L("MM-MMF-ACOD-U-0085-HP");
3645 * PCMU16B To PCM16 Reposition source pointer during conversion
3646 * @test Req. under test REQ172.11
3648 TVerdict CTest_MMF_ACOD_U_0085::DoTestStepL()
3650 // const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
3651 TBool testOK = EFalse;
3653 INFO_PRINTF1(_L(">> The PCMU16B to PCM16 codec doesn't currently store data between calls to ProcessL"));
3654 // TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
3655 TInt err = KErrNone ;
3658 INFO_PRINTF2(_L("Test left with status %d"), err);
3663 INFO_PRINTF1(_L("Test failed"));
3670 //------------------------------------------------------------------
3675 CTest_MMF_ACOD_U_0086::CTest_MMF_ACOD_U_0086()
3677 // store the name of this test case
3678 // this is the name that is used by the script file
3679 // Each test step initialises it's own name
3680 iTestStepName = _L("MM-MMF-ACOD-U-0086-HP");
3684 * PCMU16 To PCM16 Instantiate codec by FourCC Codes
3685 * @test Req. under test REQ172.6.2, REQ172.11.25
3687 TVerdict CTest_MMF_ACOD_U_0086::DoTestStepL()
3689 TBool testOK = EFalse;
3690 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU16, KMMFFourCCCodePCM16));
3691 TInt err = KErrNone;
3694 INFO_PRINTF2(_L("Test left with status %d"), err);
3699 INFO_PRINTF1(_L("Test failed"));
3706 //------------------------------------------------------------------
3711 CTest_MMF_ACOD_U_0087::CTest_MMF_ACOD_U_0087()
3713 // store the name of this test case
3714 // this is the name that is used by the script file
3715 // Each test step initialises it's own name
3716 iTestStepName = _L("MM-MMF-ACOD-U-0087-HP");
3720 * PCMU16 To PCM16 Instantiate codec by UID
3721 * @test Req. under test REQ172.6.1, REQ172.11.25
3723 TVerdict CTest_MMF_ACOD_U_0087::DoTestStepL()
3725 // const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
3726 TBool testOK = EFalse;
3727 // TRAPD(err, testOK = TestNewL(codecUid));
3728 TInt err = KErrNone;
3732 INFO_PRINTF2(_L("Test left with status %d"), err);
3737 INFO_PRINTF1(_L("Test failed"));
3744 //------------------------------------------------------------------
3749 CTest_MMF_ACOD_U_0088::CTest_MMF_ACOD_U_0088()
3751 // store the name of this test case
3752 // this is the name that is used by the script file
3753 // Each test step initialises it's own name
3754 iTestStepName = _L("MM-MMF-ACOD-U-0088-HP");
3756 for (TUint i=0; i<5; i++)
3758 iExpectedSrcBytesProcessed[i] = 50;
3759 iExpectedDstBytesAdded[i] = 50;
3760 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
3765 * PCMU16 To PCM16 Pass in small source buffers
3766 * @test Req. under test REQ172.6.4, REQ172.6.5
3768 TVerdict CTest_MMF_ACOD_U_0088::DoTestStepL()
3770 // const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
3771 TBool testOK = EFalse;
3772 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCMU16ToPCM16OptimumDst));
3773 TInt err = KErrNone;
3776 INFO_PRINTF2(_L("Test left with status %d"), err);
3781 INFO_PRINTF1(_L("Test failed"));
3788 //------------------------------------------------------------------
3793 CTest_MMF_ACOD_U_0089::CTest_MMF_ACOD_U_0089()
3795 // store the name of this test case
3796 // this is the name that is used by the script file
3797 // Each test step initialises it's own name
3798 iTestStepName = _L("MM-MMF-ACOD-U-0089-HP");
3800 for (TUint i=0; i<5; i++)
3802 iExpectedSrcBytesProcessed[i] = 50;
3803 iExpectedDstBytesAdded[i] = 50;
3804 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
3809 * PCMU16 To PCM16 Pass in small dest buffers
3810 * @test Req. under test REQ172.6.4, REQ172.6.5
3812 TVerdict CTest_MMF_ACOD_U_0089::DoTestStepL()
3814 //const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
3815 TBool testOK = EFalse;
3816 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16ToPCM16OptimumSrc, KSmallBufferSize));
3817 TInt err = KErrNone;
3820 INFO_PRINTF2(_L("Test left with status %d"), err);
3825 INFO_PRINTF1(_L("Test failed"));
3832 //------------------------------------------------------------------
3837 CTest_MMF_ACOD_U_0090::CTest_MMF_ACOD_U_0090()
3839 // store the name of this test case
3840 // this is the name that is used by the script file
3841 // Each test step initialises it's own name
3842 iTestStepName = _L("MM-MMF-ACOD-U-0090-HP");
3843 iHeapSize = 0x20000;
3844 for (TUint i=0; i<5; i++)
3846 iExpectedSrcBytesProcessed[i] = 10000;
3847 iExpectedDstBytesAdded[i] = 10000;
3848 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3853 * PCMU16 To PCM16 Pass in large buffers
3854 * @test Req. under test REQ172.6.4, REQ172.6.5
3856 TVerdict CTest_MMF_ACOD_U_0090::DoTestStepL()
3858 //const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
3859 TBool testOK = EFalse;
3860 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
3861 TInt err = KErrNone;
3864 INFO_PRINTF2(_L("Test left with status %d"), err);
3869 INFO_PRINTF1(_L("Test failed"));
3876 //------------------------------------------------------------------
3881 CTest_MMF_ACOD_U_0091::CTest_MMF_ACOD_U_0091()
3883 // store the name of this test case
3884 // this is the name that is used by the script file
3885 // Each test step initialises it's own name
3886 iTestStepName = _L("MM-MMF-ACOD-U-0091-HP");
3888 for (TUint i=0; i<5; i++)
3890 iExpectedSrcBytesProcessed[i] = 0x1000;
3891 iExpectedDstBytesAdded[i] = 0x1000;
3892 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3897 * PCMU16 To PCM16 Pass in default sized buffers
3898 * @test Req. under test REQ172.6.4, REQ172.6.5
3900 TVerdict CTest_MMF_ACOD_U_0091::DoTestStepL()
3902 //const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
3903 TBool testOK = EFalse;
3904 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
3905 TInt err = KErrNone;
3908 INFO_PRINTF2(_L("Test left with status %d"), err);
3913 INFO_PRINTF1(_L("Test failed"));
3920 //------------------------------------------------------------------
3925 CTest_MMF_ACOD_U_0092::CTest_MMF_ACOD_U_0092()
3927 // store the name of this test case
3928 // this is the name that is used by the script file
3929 // Each test step initialises it's own name
3930 iTestStepName = _L("MM-MMF-ACOD-U-0092-HP");
3932 for (TUint i=0; i<5; i++)
3934 iExpectedSrcBytesProcessed[i] = 0x1000;
3935 iExpectedDstBytesAdded[i] = 0x1000;
3936 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3941 * PCMU16 To PCM16 Pass in buffers with different max length and length
3942 * @test Req. under test REQ172.6.4, REQ172.6.5
3944 TVerdict CTest_MMF_ACOD_U_0092::DoTestStepL()
3946 // const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
3947 TBool testOK = EFalse;
3948 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
3949 TInt err = KErrNone;
3952 INFO_PRINTF2(_L("Test left with status %d"), err);
3957 INFO_PRINTF1(_L("Test failed"));
3964 //------------------------------------------------------------------
3969 CTest_MMF_ACOD_U_0093::CTest_MMF_ACOD_U_0093()
3971 // store the name of this test case
3972 // this is the name that is used by the script file
3973 // Each test step initialises it's own name
3974 iTestStepName = _L("MM-MMF-ACOD-U-0093-HP");
3976 for (TUint i=0; i<5; i++)
3978 iExpectedSrcBytesProcessed[i] = 0x1000;
3979 iExpectedDstBytesAdded[i] = 0x1000;
3980 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
3985 * PCMU16 To PCM16 Pass in buffers of optimum size
3986 * @test Req. under test REQ172.6.4, REQ172.6.5
3988 TVerdict CTest_MMF_ACOD_U_0093::DoTestStepL()
3990 // const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
3991 TBool testOK = EFalse;
3992 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16ToPCM16OptimumSrc, KPCMU16ToPCM16OptimumDst));
3993 TInt err = KErrNone;
3997 INFO_PRINTF2(_L("Test left with status %d"), err);
4002 INFO_PRINTF1(_L("Test failed"));
4009 //------------------------------------------------------------------
4014 CTest_MMF_ACOD_U_0094::CTest_MMF_ACOD_U_0094()
4016 // store the name of this test case
4017 // this is the name that is used by the script file
4018 // Each test step initialises it's own name
4019 iTestStepName = _L("MM-MMF-ACOD-U-0094-HP");
4023 * PCMU16 To PCM16 Reposition source pointer during conversion
4024 * @test Req. under test REQ172.11
4026 TVerdict CTest_MMF_ACOD_U_0094::DoTestStepL()
4028 // const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
4029 TBool testOK = EFalse;
4031 INFO_PRINTF1(_L(">> The PCMU16 to PCM16 codec doesn't currently store data between calls to ProcessL"));
4032 // TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
4033 TInt err = KErrNone ;
4036 INFO_PRINTF2(_L("Test left with status %d"), err);
4041 INFO_PRINTF1(_L("Test failed"));
4048 //------------------------------------------------------------------
4053 CTest_MMF_ACOD_U_0095::CTest_MMF_ACOD_U_0095()
4055 // store the name of this test case
4056 // this is the name that is used by the script file
4057 // Each test step initialises it's own name
4058 iTestStepName = _L("MM-MMF-ACOD-U-0095-HP");
4062 * PCMU8 To PCM16 Instantiate codec by FourCC Codes
4063 * @test Req. under test REQ172.6.2, REQ172.11.11
4065 TVerdict CTest_MMF_ACOD_U_0095::DoTestStepL()
4067 TBool testOK = EFalse;
4068 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU8, KMMFFourCCCodePCM16));
4069 TInt err = KErrNone;
4072 INFO_PRINTF2(_L("Test left with status %d"), err);
4077 INFO_PRINTF1(_L("Test failed"));
4084 //------------------------------------------------------------------
4089 CTest_MMF_ACOD_U_0096::CTest_MMF_ACOD_U_0096()
4091 // store the name of this test case
4092 // this is the name that is used by the script file
4093 // Each test step initialises it's own name
4094 iTestStepName = _L("MM-MMF-ACOD-U-0096-HP");
4098 * PCMU8 To PCM16 Instantiate codec by UID
4099 * @test Req. under test REQ172.6.1, REQ172.11.11
4101 TVerdict CTest_MMF_ACOD_U_0096::DoTestStepL()
4103 // const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
4104 TBool testOK = EFalse;
4105 // TRAPD(err, testOK = TestNewL(codecUid));
4106 TInt err = KErrNone;
4109 INFO_PRINTF2(_L("Test left with status %d"), err);
4114 INFO_PRINTF1(_L("Test failed"));
4121 //------------------------------------------------------------------
4126 CTest_MMF_ACOD_U_0097::CTest_MMF_ACOD_U_0097()
4128 // store the name of this test case
4129 // this is the name that is used by the script file
4130 // Each test step initialises it's own name
4131 iTestStepName = _L("MM-MMF-ACOD-U-0097-HP");
4133 for (TUint i=0; i<5; i++)
4135 iExpectedSrcBytesProcessed[i] = 50;
4136 iExpectedDstBytesAdded[i] = 100;
4137 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
4142 * PCMU8 To PCM16 Pass in small source buffers
4143 * @test Req. under test REQ172.6.4, REQ172.6.5
4145 TVerdict CTest_MMF_ACOD_U_0097::DoTestStepL()
4147 // const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
4148 TBool testOK = EFalse;
4149 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCMU8ToPCM16OptimumDst));
4150 TInt err = KErrNone;
4153 INFO_PRINTF2(_L("Test left with status %d"), err);
4158 INFO_PRINTF1(_L("Test failed"));
4165 //------------------------------------------------------------------
4170 CTest_MMF_ACOD_U_0098::CTest_MMF_ACOD_U_0098()
4172 // store the name of this test case
4173 // this is the name that is used by the script file
4174 // Each test step initialises it's own name
4175 iTestStepName = _L("MM-MMF-ACOD-U-0098-HP");
4177 for (TUint i=0; i<5; i++)
4179 iExpectedSrcBytesProcessed[i] = 25;
4180 iExpectedDstBytesAdded[i] = 50;
4181 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
4186 * PCMU8 To PCM16 Pass in small dest buffers
4187 * @test Req. under test REQ172.6.4, REQ172.6.5
4189 TVerdict CTest_MMF_ACOD_U_0098::DoTestStepL()
4191 // const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
4192 TBool testOK = EFalse;
4193 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU8ToPCM16OptimumSrc, KSmallBufferSize));
4194 TInt err = KErrNone;
4197 INFO_PRINTF2(_L("Test left with status %d"), err);
4202 INFO_PRINTF1(_L("Test failed"));
4209 //------------------------------------------------------------------
4214 CTest_MMF_ACOD_U_0099::CTest_MMF_ACOD_U_0099()
4216 // store the name of this test case
4217 // this is the name that is used by the script file
4218 // Each test step initialises it's own name
4219 iTestStepName = _L("MM-MMF-ACOD-U-0099-HP");
4220 iHeapSize = 0x20000;
4221 for (TUint i=0; i<5; i++)
4223 iExpectedSrcBytesProcessed[i] = 5000;
4224 iExpectedDstBytesAdded[i] = 10000;
4226 if((i%2)==0)//even i
4227 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
4229 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4234 * PCMU8 To PCM16 Pass in large buffers
4235 * @test Req. under test REQ172.6.4, REQ172.6.5
4237 TVerdict CTest_MMF_ACOD_U_0099::DoTestStepL()
4239 // const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
4240 TBool testOK = EFalse;
4241 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
4242 TInt err = KErrNone;
4245 INFO_PRINTF2(_L("Test left with status %d"), err);
4250 INFO_PRINTF1(_L("Test failed"));
4257 //------------------------------------------------------------------
4262 CTest_MMF_ACOD_U_0100::CTest_MMF_ACOD_U_0100()
4264 // store the name of this test case
4265 // this is the name that is used by the script file
4266 // Each test step initialises it's own name
4267 iTestStepName = _L("MM-MMF-ACOD-U-0100-HP");
4269 for (TUint i=0; i<5; i++)
4271 iExpectedSrcBytesProcessed[i] = 0x800;
4272 iExpectedDstBytesAdded[i] = 0x1000;
4274 if((i%2)==0)//even i
4275 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
4277 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4282 * PCMU8 To PCM16 Pass in default sized buffers
4283 * @test Req. under test REQ172.6.4, REQ172.6.5
4285 TVerdict CTest_MMF_ACOD_U_0100::DoTestStepL()
4287 //const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
4288 TBool testOK = EFalse;
4289 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
4290 TInt err = KErrNone;
4293 INFO_PRINTF2(_L("Test left with status %d"), err);
4298 INFO_PRINTF1(_L("Test failed"));
4305 //------------------------------------------------------------------
4310 CTest_MMF_ACOD_U_0101::CTest_MMF_ACOD_U_0101()
4312 // store the name of this test case
4313 // this is the name that is used by the script file
4314 // Each test step initialises it's own name
4315 iTestStepName = _L("MM-MMF-ACOD-U-0101-HP");
4317 for (TUint i=0; i<5; i++)
4319 iExpectedSrcBytesProcessed[i] = 0x800;
4320 iExpectedDstBytesAdded[i] = 0x1000;
4322 if((i%2)==0)//even i
4323 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
4325 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4330 * PCMU8 To PCM16 Pass in buffers with different max length and length
4331 * @test Req. under test REQ172.6.4, REQ172.6.5
4333 TVerdict CTest_MMF_ACOD_U_0101::DoTestStepL()
4335 //const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
4336 TBool testOK = EFalse;
4337 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
4338 TInt err = KErrNone;
4341 INFO_PRINTF2(_L("Test left with status %d"), err);
4346 INFO_PRINTF1(_L("Test failed"));
4353 //------------------------------------------------------------------
4358 CTest_MMF_ACOD_U_0102::CTest_MMF_ACOD_U_0102()
4360 // store the name of this test case
4361 // this is the name that is used by the script file
4362 // Each test step initialises it's own name
4363 iTestStepName = _L("MM-MMF-ACOD-U-0102-HP");
4365 for (TUint i=0; i<5; i++)
4367 iExpectedSrcBytesProcessed[i] = 0x800;
4368 iExpectedDstBytesAdded[i] = 0x1000;
4369 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4374 * PCMU8 To PCM16 Pass in buffers of optimum size
4375 * @test Req. under test REQ172.6.4, REQ172.6.5
4377 TVerdict CTest_MMF_ACOD_U_0102::DoTestStepL()
4379 //const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
4380 TBool testOK = EFalse;
4381 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU8ToPCM16OptimumSrc, KPCMU8ToPCM16OptimumDst));
4382 TInt err = KErrNone;
4385 INFO_PRINTF2(_L("Test left with status %d"), err);
4390 INFO_PRINTF1(_L("Test failed"));
4397 //------------------------------------------------------------------
4402 CTest_MMF_ACOD_U_0103::CTest_MMF_ACOD_U_0103()
4404 // store the name of this test case
4405 // this is the name that is used by the script file
4406 // Each test step initialises it's own name
4407 iTestStepName = _L("MM-MMF-ACOD-U-0103-HP");
4411 * PCMU8 To PCM16 Reposition source pointer during conversion
4412 * @test Req. under test REQ172.11
4414 TVerdict CTest_MMF_ACOD_U_0103::DoTestStepL()
4416 // const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
4417 TBool testOK = EFalse;
4418 INFO_PRINTF1(_L(">> The PCMU8 to PCM16 codec doesn't currently store data between calls to ProcessL"));
4420 // TRAPD(err, testOK = TestRepositionL(codecUid, KPCMU8ToPCM16OptimumSrc, KPCMU8ToPCM16OptimumDst+30));
4421 TInt err = KErrNone ;
4425 INFO_PRINTF2(_L("Test left with status %d"), err);
4430 INFO_PRINTF1(_L("Test failed"));
4437 //------------------------------------------------------------------
4443 CTest_MMF_ACOD_U_0104::CTest_MMF_ACOD_U_0104()
4445 // store the name of this test case
4446 // this is the name that is used by the script file
4447 // Each test step initialises it's own name
4448 iTestStepName = _L("MM-MMF-ACOD-U-0104-HP");
4452 * MULAW To PCM16 Instantiate codec by FourCC Codes
4453 * @test Req. under test REQ172.6.2, REQ172.11.13
4455 TVerdict CTest_MMF_ACOD_U_0104::DoTestStepL()
4457 TBool testOK = EFalse;
4458 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodeMuLAW, KMMFFourCCCodePCM16));
4459 TInt err = KErrNone;
4462 INFO_PRINTF2(_L("Test left with status %d"), err);
4467 INFO_PRINTF1(_L("Test failed"));
4474 //------------------------------------------------------------------
4479 CTest_MMF_ACOD_U_0105::CTest_MMF_ACOD_U_0105()
4481 // store the name of this test case
4482 // this is the name that is used by the script file
4483 // Each test step initialises it's own name
4484 iTestStepName = _L("MM-MMF-ACOD-U-0105-HP");
4488 * MULAW To PCM16 Instantiate codec by UID
4489 * @test Req. under test REQ172.6.1, REQ172.11.13
4491 TVerdict CTest_MMF_ACOD_U_0105::DoTestStepL()
4493 // const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
4494 TBool testOK = EFalse;
4495 // TRAPD(err, testOK = TestNewL(codecUid));
4496 TInt err = KErrNone;
4499 INFO_PRINTF2(_L("Test left with status %d"), err);
4504 INFO_PRINTF1(_L("Test failed"));
4511 //------------------------------------------------------------------
4516 CTest_MMF_ACOD_U_0106::CTest_MMF_ACOD_U_0106()
4518 // store the name of this test case
4519 // this is the name that is used by the script file
4520 // Each test step initialises it's own name
4521 iTestStepName = _L("MM-MMF-ACOD-U-0106-HP");
4523 for (TUint i=0; i<5; i++)
4525 iExpectedSrcBytesProcessed[i] = 50;
4526 iExpectedDstBytesAdded[i] = 100;
4527 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
4532 * MULAW To PCM16 Pass in small source buffers
4533 * @test Req. under test REQ172.6.4, REQ172.6.5
4535 TVerdict CTest_MMF_ACOD_U_0106::DoTestStepL()
4537 //const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
4538 TBool testOK = EFalse;
4539 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KMulawToPCM16OptimumDst));
4540 TInt err = KErrNone;
4543 INFO_PRINTF2(_L("Test left with status %d"), err);
4548 INFO_PRINTF1(_L("Test failed"));
4555 //------------------------------------------------------------------
4560 CTest_MMF_ACOD_U_0107::CTest_MMF_ACOD_U_0107()
4562 // store the name of this test case
4563 // this is the name that is used by the script file
4564 // Each test step initialises it's own name
4565 iTestStepName = _L("MM-MMF-ACOD-U-0107-HP");
4567 for (TUint i=0; i<5; i++)
4569 iExpectedSrcBytesProcessed[i] = 25;
4570 iExpectedDstBytesAdded[i] = 50;
4571 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
4576 * MULAW To PCM16 Pass in small dest buffers
4577 * @test Req. under test REQ172.6.4, REQ172.6.5
4579 TVerdict CTest_MMF_ACOD_U_0107::DoTestStepL()
4581 // const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
4582 TBool testOK = EFalse;
4583 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMulawToPCM16OptimumSrc, KSmallBufferSize));
4584 TInt err = KErrNone;
4587 INFO_PRINTF2(_L("Test left with status %d"), err);
4592 INFO_PRINTF1(_L("Test failed"));
4599 //------------------------------------------------------------------
4604 CTest_MMF_ACOD_U_0108::CTest_MMF_ACOD_U_0108()
4606 // store the name of this test case
4607 // this is the name that is used by the script file
4608 // Each test step initialises it's own name
4609 iTestStepName = _L("MM-MMF-ACOD-U-0108-HP");
4610 iHeapSize = 0x20000;
4611 for (TUint i=0; i<5; i++)
4613 iExpectedSrcBytesProcessed[i] = 5000;
4614 iExpectedDstBytesAdded[i] = 10000;
4616 if((i%2)==0)//even i
4617 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
4619 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4624 * MULAW To PCM16 Pass in large buffers
4625 * @test Req. under test REQ172.6.4, REQ172.6.5
4627 TVerdict CTest_MMF_ACOD_U_0108::DoTestStepL()
4629 // const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
4630 TBool testOK = EFalse;
4631 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
4632 TInt err = KErrNone;
4635 INFO_PRINTF2(_L("Test left with status %d"), err);
4640 INFO_PRINTF1(_L("Test failed"));
4647 //------------------------------------------------------------------
4652 CTest_MMF_ACOD_U_0109::CTest_MMF_ACOD_U_0109()
4654 // store the name of this test case
4655 // this is the name that is used by the script file
4656 // Each test step initialises it's own name
4657 iTestStepName = _L("MM-MMF-ACOD-U-0109-HP");
4659 for (TUint i=0; i<5; i++)
4661 iExpectedSrcBytesProcessed[i] = 0x800;
4662 iExpectedDstBytesAdded[i] = 0x1000;
4664 if((i%2)==0)//even i
4665 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
4667 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4672 * MULAW To PCM16 Pass in default sized buffers
4673 * @test Req. under test REQ172.6.4, REQ172.6.5
4675 TVerdict CTest_MMF_ACOD_U_0109::DoTestStepL()
4677 // const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
4678 TBool testOK = EFalse;
4679 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
4680 TInt err = KErrNone;
4683 INFO_PRINTF2(_L("Test left with status %d"), err);
4688 INFO_PRINTF1(_L("Test failed"));
4695 //------------------------------------------------------------------
4700 CTest_MMF_ACOD_U_0110::CTest_MMF_ACOD_U_0110()
4702 // store the name of this test case
4703 // this is the name that is used by the script file
4704 // Each test step initialises it's own name
4705 iTestStepName = _L("MM-MMF-ACOD-U-0110-HP");
4707 for (TUint i=0; i<5; i++)
4709 iExpectedSrcBytesProcessed[i] = 0x800;
4710 iExpectedDstBytesAdded[i] = 0x1000;
4712 if((i%2)==0)//even i
4713 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
4715 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4720 * MULAW To PCM16 Pass in buffers with different max length and length
4721 * @test Req. under test REQ172.6.4, REQ172.6.5
4723 TVerdict CTest_MMF_ACOD_U_0110::DoTestStepL()
4725 // const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
4726 TBool testOK = EFalse;
4727 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
4728 TInt err = KErrNone;
4731 INFO_PRINTF2(_L("Test left with status %d"), err);
4736 INFO_PRINTF1(_L("Test failed"));
4743 //------------------------------------------------------------------
4748 CTest_MMF_ACOD_U_0111::CTest_MMF_ACOD_U_0111()
4750 // store the name of this test case
4751 // this is the name that is used by the script file
4752 // Each test step initialises it's own name
4753 iTestStepName = _L("MM-MMF-ACOD-U-0111-HP");
4755 for (TUint i=0; i<5; i++)
4757 iExpectedSrcBytesProcessed[i] = 0x800;
4758 iExpectedDstBytesAdded[i] = 0x1000;
4759 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
4764 * MULAW To PCM16 Pass in buffers of optimum size
4765 * @test Req. under test REQ172.6.4, REQ172.6.5
4767 TVerdict CTest_MMF_ACOD_U_0111::DoTestStepL()
4769 // const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
4770 TBool testOK = EFalse;
4771 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMulawToPCM16OptimumSrc, KMulawToPCM16OptimumDst));
4772 TInt err = KErrNone;
4775 INFO_PRINTF2(_L("Test left with status %d"), err);
4780 INFO_PRINTF1(_L("Test failed"));
4787 //------------------------------------------------------------------
4792 CTest_MMF_ACOD_U_0112::CTest_MMF_ACOD_U_0112()
4794 // store the name of this test case
4795 // this is the name that is used by the script file
4796 // Each test step initialises it's own name
4797 iTestStepName = _L("MM-MMF-ACOD-U-0112-HP");
4801 * MULAW To PCM16 Reposition source pointer during conversion
4802 * @test Req. under test REQ172.11
4804 TVerdict CTest_MMF_ACOD_U_0112::DoTestStepL()
4806 // const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
4807 TBool testOK = EFalse;
4808 INFO_PRINTF1(_L(">> The MULAW To PCM16 codec doesn't currently store data between calls to ProcessL"));
4810 // TRAPD(err, testOK = TestRepositionL(codecUid, KMulawToPCM16OptimumSrc, KMulawToPCM16OptimumDst+30));
4811 TInt err = KErrNone;
4815 INFO_PRINTF2(_L("Test left with status %d"), err);
4820 INFO_PRINTF1(_L("Test failed"));
4827 //------------------------------------------------------------------
4832 CTest_MMF_ACOD_U_0113::CTest_MMF_ACOD_U_0113()
4834 // store the name of this test case
4835 // this is the name that is used by the script file
4836 // Each test step initialises it's own name
4837 iTestStepName = _L("MM-MMF-ACOD-U-0113-HP");
4841 * PCM16 To MULAW Instantiate codec by FourCC Codes
4842 * @test Req. under test REQ172.6.2, REQ172.11.15
4844 TVerdict CTest_MMF_ACOD_U_0113::DoTestStepL()
4846 TBool testOK = EFalse;
4847 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeMuLAW));
4848 TInt err = KErrNone;
4852 INFO_PRINTF2(_L("Test left with status %d"), err);
4857 INFO_PRINTF1(_L("Test failed"));
4864 //------------------------------------------------------------------
4869 CTest_MMF_ACOD_U_0114::CTest_MMF_ACOD_U_0114()
4871 // store the name of this test case
4872 // this is the name that is used by the script file
4873 // Each test step initialises it's own name
4874 iTestStepName = _L("MM-MMF-ACOD-U-0114-HP");
4878 * PCM16 To MULAW Instantiate codec by UID
4879 * @test Req. under test REQ172.6.1, REQ172.11.15
4881 TVerdict CTest_MMF_ACOD_U_0114::DoTestStepL()
4883 // const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
4884 TBool testOK = EFalse;
4885 // TRAPD(err, testOK = TestNewL(codecUid));
4886 TInt err = KErrNone;
4889 INFO_PRINTF2(_L("Test left with status %d"), err);
4894 INFO_PRINTF1(_L("Test failed"));
4901 //------------------------------------------------------------------
4906 CTest_MMF_ACOD_U_0115::CTest_MMF_ACOD_U_0115()
4908 // store the name of this test case
4909 // this is the name that is used by the script file
4910 // Each test step initialises it's own name
4911 iTestStepName = _L("MM-MMF-ACOD-U-0115-HP");
4913 for (TUint i=0; i<5; i++)
4915 iExpectedSrcBytesProcessed[i] = 50;
4916 iExpectedDstBytesAdded[i] = 25;
4917 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
4922 * PCM16 To MULAW Pass in small source buffers
4923 * @test Req. under test REQ172.6.4, REQ172.6.5
4925 TVerdict CTest_MMF_ACOD_U_0115::DoTestStepL()
4927 // const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
4928 TBool testOK = EFalse;
4929 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToMulawOptimumDst));
4930 TInt err = KErrNone;
4933 INFO_PRINTF2(_L("Test left with status %d"), err);
4938 INFO_PRINTF1(_L("Test failed"));
4945 //------------------------------------------------------------------
4950 CTest_MMF_ACOD_U_0116::CTest_MMF_ACOD_U_0116()
4952 // store the name of this test case
4953 // this is the name that is used by the script file
4954 // Each test step initialises it's own name
4955 iTestStepName = _L("MM-MMF-ACOD-U-0116-HP");
4957 for (TUint i=0; i<5; i++)
4959 iExpectedSrcBytesProcessed[i] = 100;
4960 iExpectedDstBytesAdded[i] = 50;
4961 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
4966 * PCM16 To MULAW Pass in small dest buffers
4967 * @test Req. under test REQ172.6.4, REQ172.6.5
4969 TVerdict CTest_MMF_ACOD_U_0116::DoTestStepL()
4971 // const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
4972 TBool testOK = EFalse;
4973 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToMulawOptimumSrc, KSmallBufferSize));
4974 TInt err = KErrNone;
4978 INFO_PRINTF2(_L("Test left with status %d"), err);
4983 INFO_PRINTF1(_L("Test failed"));
4990 //------------------------------------------------------------------
4995 CTest_MMF_ACOD_U_0117::CTest_MMF_ACOD_U_0117()
4997 // store the name of this test case
4998 // this is the name that is used by the script file
4999 // Each test step initialises it's own name
5000 iTestStepName = _L("MM-MMF-ACOD-U-0117-HP");
5001 iHeapSize = 0x20000;
5003 for (TUint i=0; i<5; i++)
5005 iExpectedSrcBytesProcessed[i] = 10000;
5006 iExpectedDstBytesAdded[i] = 5000;
5008 if((i%2)==0)//even i
5009 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
5011 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5016 * PCM16 To MULAW Pass in large buffers
5017 * @test Req. under test REQ172.6.4, REQ172.6.5
5019 TVerdict CTest_MMF_ACOD_U_0117::DoTestStepL()
5021 // const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
5022 TBool testOK = EFalse;
5023 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
5024 TInt err = KErrNone;
5028 INFO_PRINTF2(_L("Test left with status %d"), err);
5033 INFO_PRINTF1(_L("Test failed"));
5040 //------------------------------------------------------------------
5045 CTest_MMF_ACOD_U_0118::CTest_MMF_ACOD_U_0118()
5047 // store the name of this test case
5048 // this is the name that is used by the script file
5049 // Each test step initialises it's own name
5050 iTestStepName = _L("MM-MMF-ACOD-U-0118-HP");
5052 for (TUint i=0; i<5; i++)
5054 iExpectedSrcBytesProcessed[i] = 0x1000;
5055 iExpectedDstBytesAdded[i] = 0x800;
5057 if((i%2)==0)//even i
5058 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
5060 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5065 * PCM16 To MULAW Pass in default sized buffers
5066 * @test Req. under test REQ172.6.4, REQ172.6.5
5068 TVerdict CTest_MMF_ACOD_U_0118::DoTestStepL()
5070 // const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
5071 TBool testOK = EFalse;
5072 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
5073 TInt err = KErrNone;
5077 INFO_PRINTF2(_L("Test left with status %d"), err);
5082 INFO_PRINTF1(_L("Test failed"));
5089 //------------------------------------------------------------------
5094 CTest_MMF_ACOD_U_0119::CTest_MMF_ACOD_U_0119()
5096 // store the name of this test case
5097 // this is the name that is used by the script file
5098 // Each test step initialises it's own name
5099 iTestStepName = _L("MM-MMF-ACOD-U-0119-HP");
5101 for (TUint i=0; i<5; i++)
5103 iExpectedSrcBytesProcessed[i] = 0x1000;
5104 iExpectedDstBytesAdded[i] = 0x800;
5106 if((i%2)==0)//even i
5107 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
5109 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5114 * PCM16 To MULAW Pass in buffers with different max length and length
5115 * @test Req. under test REQ172.6.4, REQ172.6.5
5117 TVerdict CTest_MMF_ACOD_U_0119::DoTestStepL()
5119 // const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
5120 TBool testOK = EFalse;
5121 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
5122 TInt err = KErrNone;
5125 INFO_PRINTF2(_L("Test left with status %d"), err);
5130 INFO_PRINTF1(_L("Test failed"));
5137 //------------------------------------------------------------------
5142 CTest_MMF_ACOD_U_0120::CTest_MMF_ACOD_U_0120()
5144 // store the name of this test case
5145 // this is the name that is used by the script file
5146 // Each test step initialises it's own name
5147 iTestStepName = _L("MM-MMF-ACOD-U-0120-HP");
5149 for (TUint i=0; i<5; i++)
5151 iExpectedSrcBytesProcessed[i] = 0x1000;
5152 iExpectedDstBytesAdded[i] = 0x800;
5153 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5158 * PCM16 To MULAW Pass in buffers of optimum size
5159 * @test Req. under test REQ172.6.4, REQ172.6.5
5161 TVerdict CTest_MMF_ACOD_U_0120::DoTestStepL()
5163 // const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
5164 TBool testOK = EFalse;
5165 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToMulawOptimumSrc, KPCM16ToMulawOptimumDst));
5166 TInt err = KErrNone;
5169 INFO_PRINTF2(_L("Test left with status %d"), err);
5174 INFO_PRINTF1(_L("Test failed"));
5181 //------------------------------------------------------------------
5186 CTest_MMF_ACOD_U_0121::CTest_MMF_ACOD_U_0121()
5188 // store the name of this test case
5189 // this is the name that is used by the script file
5190 // Each test step initialises it's own name
5191 iTestStepName = _L("MM-MMF-ACOD-U-0121-HP");
5195 * PCM16 To MULAW Reposition source pointer during conversion
5196 * @test Req. under test REQ172.11
5198 TVerdict CTest_MMF_ACOD_U_0121::DoTestStepL()
5200 // const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
5201 TBool testOK = EFalse;
5203 INFO_PRINTF1(_L(">> The PCM16 to MULAW codec doesn't currently store data between calls to ProcessL"));
5204 // TRAPD(err, testOK = TestRepositionL(codecUid, KDefaultBufferSize, KDefaultBufferSize+30));
5205 TInt err = KErrNone ;
5209 INFO_PRINTF2(_L("Test left with status %d"), err);
5214 INFO_PRINTF1(_L("Test failed"));
5221 //------------------------------------------------------------------
5226 CTest_MMF_ACOD_U_0122::CTest_MMF_ACOD_U_0122()
5228 // store the name of this test case
5229 // this is the name that is used by the script file
5230 // Each test step initialises it's own name
5231 iTestStepName = _L("MM-MMF-ACOD-U-0122-HP");
5235 * IMAD to PCM16 Instantiate codec by FourCC Codes
5236 * @test Req. under test REQ172.6.2, REQ172.11.12
5238 TVerdict CTest_MMF_ACOD_U_0122::DoTestStepL()
5240 TBool testOK = EFalse;
5241 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodeIMAD, KMMFFourCCCodePCM16));
5242 TInt err = KErrNone;
5245 INFO_PRINTF2(_L("Test left with status %d"), err);
5250 INFO_PRINTF1(_L("Test failed"));
5257 //------------------------------------------------------------------
5262 CTest_MMF_ACOD_U_0123::CTest_MMF_ACOD_U_0123()
5264 // store the name of this test case
5265 // this is the name that is used by the script file
5266 // Each test step initialises it's own name
5267 iTestStepName = _L("MM-MMF-ACOD-U-0123-HP");
5271 * IMAD to PCM16 Instantiate codec by UID
5272 * @test Req. under test REQ172.6.1, REQ172.11.12
5274 TVerdict CTest_MMF_ACOD_U_0123::DoTestStepL()
5276 // const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
5277 TBool testOK = EFalse;
5278 // TRAPD(err, testOK = TestNewL(codecUid));
5279 TInt err = KErrNone;
5282 INFO_PRINTF2(_L("Test left with status %d"), err);
5287 INFO_PRINTF1(_L("Test failed"));
5294 //------------------------------------------------------------------
5299 CTest_MMF_ACOD_U_0124::CTest_MMF_ACOD_U_0124()
5301 // store the name of this test case
5302 // this is the name that is used by the script file
5303 // Each test step initialises it's own name
5304 iTestStepName = _L("MM-MMF-ACOD-U-0124-HP");
5306 for (TUint i=0; i<5; i++)
5308 iExpectedSrcBytesProcessed[i] = 50;
5309 iExpectedDstBytesAdded[i] = 0;
5310 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
5315 * IMAD to PCM16 Pass in small source buffers
5316 * @test Req. under test REQ172.6.4, REQ172.6.5
5318 TVerdict CTest_MMF_ACOD_U_0124::DoTestStepL()
5320 // const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
5321 TBool testOK = EFalse;
5322 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KAdpcmToPCM16OptimumDst));
5323 TInt err = KErrNone;
5326 INFO_PRINTF2(_L("Test left with status %d"), err);
5331 INFO_PRINTF1(_L("Test failed"));
5338 //------------------------------------------------------------------
5343 CTest_MMF_ACOD_U_0125::CTest_MMF_ACOD_U_0125()
5345 // store the name of this test case
5346 // this is the name that is used by the script file
5347 // Each test step initialises it's own name
5348 iTestStepName = _L("MM-MMF-ACOD-U-0125-HP");
5350 iExpectedLeaveErrorCode = KErrArgument;
5354 * IMAD to PCM16 Pass in small dest buffers
5355 * @test Req. under test REQ172.6.4, REQ172.6.5
5357 TVerdict CTest_MMF_ACOD_U_0125::DoTestStepL()
5359 // const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
5360 TBool testOK = EFalse;
5361 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAdpcmToPCM16OptimumSrc, KSmallBufferSize));
5362 TInt err = KErrNone;
5365 INFO_PRINTF2(_L("Test left with status %d"), err);
5370 INFO_PRINTF1(_L("Test failed"));
5377 //------------------------------------------------------------------
5382 CTest_MMF_ACOD_U_0126::CTest_MMF_ACOD_U_0126()
5384 // store the name of this test case
5385 // this is the name that is used by the script file
5386 // Each test step initialises it's own name
5387 iTestStepName = _L("MM-MMF-ACOD-U-0126-HP");
5388 iHeapSize = 0x20000;
5390 for (TUint i=0; i<5; i++)
5393 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
5395 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
5400 * IMAD to PCM16 Pass in large buffers
5401 * @test Req. under test REQ172.6.4, REQ172.6.5
5403 TVerdict CTest_MMF_ACOD_U_0126::DoTestStepL()
5405 // const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
5406 TBool testOK = EFalse;
5407 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
5408 TInt err = KErrNone;
5411 INFO_PRINTF2(_L("Test left with status %d"), err);
5416 INFO_PRINTF1(_L("Test failed"));
5423 //------------------------------------------------------------------
5428 CTest_MMF_ACOD_U_0127::CTest_MMF_ACOD_U_0127()
5430 // store the name of this test case
5431 // this is the name that is used by the script file
5432 // Each test step initialises it's own name
5433 iTestStepName = _L("MM-MMF-ACOD-U-0127-HP");
5435 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EProcessIncomplete;
5436 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EProcessIncomplete;
5437 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EProcessIncomplete;
5438 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessComplete;
5439 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EProcessIncomplete;
5443 * IMAD to PCM16 Pass in default sized buffers
5444 * @test Req. under test REQ172.6.4, REQ172.6.5
5446 TVerdict CTest_MMF_ACOD_U_0127::DoTestStepL()
5448 // const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
5449 TBool testOK = EFalse;
5450 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
5451 TInt err = KErrNone;
5454 INFO_PRINTF2(_L("Test left with status %d"), err);
5459 INFO_PRINTF1(_L("Test failed"));
5466 //------------------------------------------------------------------
5471 CTest_MMF_ACOD_U_0128::CTest_MMF_ACOD_U_0128()
5473 // store the name of this test case
5474 // this is the name that is used by the script file
5475 // Each test step initialises it's own name
5476 iTestStepName = _L("MM-MMF-ACOD-U-0128-HP");
5478 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EProcessIncomplete;
5479 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EProcessIncomplete;
5480 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EProcessIncomplete;
5481 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessComplete;
5482 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EProcessIncomplete;
5486 * IMAD to PCM16 Pass in buffers with different max length and length
5487 * @test Req. under test REQ172.6.4, REQ172.6.5
5489 TVerdict CTest_MMF_ACOD_U_0128::DoTestStepL()
5491 //const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
5492 TBool testOK = EFalse;
5493 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
5494 TInt err = KErrNone;
5497 INFO_PRINTF2(_L("Test left with status %d"), err);
5502 INFO_PRINTF1(_L("Test failed"));
5509 //------------------------------------------------------------------
5514 CTest_MMF_ACOD_U_0129::CTest_MMF_ACOD_U_0129()
5516 // store the name of this test case
5517 // this is the name that is used by the script file
5518 // Each test step initialises it's own name
5519 iTestStepName = _L("MM-MMF-ACOD-U-0129-HP");
5521 for (TUint i=0; i<5; i++)
5523 iExpectedSrcBytesProcessed[i] = 0x400;
5524 iExpectedDstBytesAdded[i] = 0xFC8;
5525 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5530 * IMAD to PCM16 Pass in buffers of optimum size
5531 * @test Req. under test REQ172.6.4, REQ172.6.5
5533 TVerdict CTest_MMF_ACOD_U_0129::DoTestStepL()
5535 //const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
5536 TBool testOK = EFalse;
5537 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAdpcmToPCM16OptimumSrc, KAdpcmToPCM16OptimumDst));
5538 TInt err = KErrNone;
5541 INFO_PRINTF2(_L("Test left with status %d"), err);
5546 INFO_PRINTF1(_L("Test failed"));
5553 //------------------------------------------------------------------
5558 CTest_MMF_ACOD_U_0130::CTest_MMF_ACOD_U_0130()
5560 // store the name of this test case
5561 // this is the name that is used by the script file
5562 // Each test step initialises it's own name
5563 iTestStepName = _L("MM-MMF-ACOD-U-0130-HP");
5567 * IMAD to PCM16 Reposition source pointer during conversion
5568 * @test Req. under test REQ172.11
5570 TVerdict CTest_MMF_ACOD_U_0130::DoTestStepL()
5572 //const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
5573 TBool testOK = EFalse;
5575 // TUint src = (KAdpcmToPCM16OptimumSrc/4) + 10;
5577 INFO_PRINTF1(_L(">> The IMAD to PCM16 codec stores data between calls to ProcessL"));
5578 // TRAPD(err, testOK = TestRepositionL(codecUid, src, KAdpcmToPCM16OptimumDst));
5579 TInt err = KErrNone;
5583 INFO_PRINTF2(_L("Test left with status %d"), err);
5588 INFO_PRINTF1(_L("Test failed"));
5595 //------------------------------------------------------------------
5600 CTest_MMF_ACOD_U_0131::CTest_MMF_ACOD_U_0131()
5602 // store the name of this test case
5603 // this is the name that is used by the script file
5604 // Each test step initialises it's own name
5605 iTestStepName = _L("MM-MMF-ACOD-U-0131-HP");
5609 * PCM16 to IMAD Instantiate codec by FourCC Codes
5610 * @test Req. under test REQ172.6.2, REQ172.11.14
5612 TVerdict CTest_MMF_ACOD_U_0131::DoTestStepL()
5614 TBool testOK = EFalse;
5615 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeIMAD));
5616 TInt err = KErrNone;
5619 INFO_PRINTF2(_L("Test left with status %d"), err);
5624 INFO_PRINTF1(_L("Test failed"));
5631 //------------------------------------------------------------------
5636 CTest_MMF_ACOD_U_0132::CTest_MMF_ACOD_U_0132()
5638 // store the name of this test case
5639 // this is the name that is used by the script file
5640 // Each test step initialises it's own name
5641 iTestStepName = _L("MM-MMF-ACOD-U-0132-HP");
5645 * PCM16 to IMAD Instantiate codec by UID
5646 * @test Req. under test REQ172.6.1, REQ172.11.14
5648 TVerdict CTest_MMF_ACOD_U_0132::DoTestStepL()
5650 // const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
5651 TBool testOK = EFalse;
5652 // TRAPD(err, testOK = TestNewL(codecUid));
5653 TInt err = KErrNone;
5656 INFO_PRINTF2(_L("Test left with status %d"), err);
5661 INFO_PRINTF1(_L("Test failed"));
5668 //------------------------------------------------------------------
5673 CTest_MMF_ACOD_U_0133::CTest_MMF_ACOD_U_0133()
5675 // store the name of this test case
5676 // this is the name that is used by the script file
5677 // Each test step initialises it's own name
5678 iTestStepName = _L("MM-MMF-ACOD-U-0133-HP");
5680 for (TUint i=0; i<5; i++)
5682 iExpectedSrcBytesProcessed[i] = 50;
5683 iExpectedDstBytesAdded[i] = 0;
5684 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
5689 * IMAD to PCM16 Pass in small source buffers
5690 * @test Req. under test REQ172.6.4, REQ172.6.5
5692 TVerdict CTest_MMF_ACOD_U_0133::DoTestStepL()
5694 //const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
5695 TBool testOK = EFalse;
5696 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToAdpcmOptimumDst));
5697 TInt err = KErrNone;
5700 INFO_PRINTF2(_L("Test left with status %d"), err);
5705 INFO_PRINTF1(_L("Test failed"));
5712 //------------------------------------------------------------------
5717 CTest_MMF_ACOD_U_0134::CTest_MMF_ACOD_U_0134()
5719 // store the name of this test case
5720 // this is the name that is used by the script file
5721 // Each test step initialises it's own name
5722 iTestStepName = _L("MM-MMF-ACOD-U-0134-HP");
5724 iExpectedLeaveErrorCode = KErrArgument;
5728 * PCM16 to IMAD Pass in small dest buffers
5729 * @test Req. under test REQ172.6.4, REQ172.6.5
5731 TVerdict CTest_MMF_ACOD_U_0134::DoTestStepL()
5733 //const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
5734 TBool testOK = EFalse;
5735 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAdpcmOptimumSrc, KSmallBufferSize));
5736 TInt err = KErrNone;
5739 INFO_PRINTF2(_L("Test left with status %d"), err);
5744 INFO_PRINTF1(_L("Test failed"));
5751 //------------------------------------------------------------------
5756 CTest_MMF_ACOD_U_0135::CTest_MMF_ACOD_U_0135()
5758 // store the name of this test case
5759 // this is the name that is used by the script file
5760 // Each test step initialises it's own name
5761 iTestStepName = _L("MM-MMF-ACOD-U-0135-HP");
5762 iHeapSize = 0x20000;
5763 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EDstNotFilled;
5764 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EDstNotFilled;
5765 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EDstNotFilled;
5766 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessIncomplete;
5767 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EDstNotFilled;
5771 * PCM16 to IMAD Pass in large buffers
5772 * @test Req. under test REQ172.6.4, REQ172.6.5
5774 TVerdict CTest_MMF_ACOD_U_0135::DoTestStepL()
5776 //const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
5777 TBool testOK = EFalse;
5778 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
5779 TInt err = KErrNone;
5782 INFO_PRINTF2(_L("Test left with status %d"), err);
5787 INFO_PRINTF1(_L("Test failed"));
5794 //------------------------------------------------------------------
5799 CTest_MMF_ACOD_U_0136::CTest_MMF_ACOD_U_0136()
5801 // store the name of this test case
5802 // this is the name that is used by the script file
5803 // Each test step initialises it's own name
5804 iTestStepName = _L("MM-MMF-ACOD-U-0136-HP");
5806 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EDstNotFilled;
5807 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EDstNotFilled;
5808 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EDstNotFilled;
5809 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessIncomplete;
5810 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EDstNotFilled;
5814 * PCM16 to IMAD Pass in default sized buffers
5815 * @test Req. under test REQ172.6.4, REQ172.6.5
5817 TVerdict CTest_MMF_ACOD_U_0136::DoTestStepL()
5819 //const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
5820 TBool testOK = EFalse;
5821 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
5822 TInt err = KErrNone;
5825 INFO_PRINTF2(_L("Test left with status %d"), err);
5830 INFO_PRINTF1(_L("Test failed"));
5837 //------------------------------------------------------------------
5842 CTest_MMF_ACOD_U_0137::CTest_MMF_ACOD_U_0137()
5844 // store the name of this test case
5845 // this is the name that is used by the script file
5846 // Each test step initialises it's own name
5847 iTestStepName = _L("MM-MMF-ACOD-U-0137-HP");
5849 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EDstNotFilled;
5850 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EDstNotFilled;
5851 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EDstNotFilled;
5852 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessIncomplete;
5853 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EDstNotFilled;
5857 * PCM16 to IMAD Pass in buffers with different max length and length
5858 * @test Req. under test REQ172.6.4, REQ172.6.5
5860 TVerdict CTest_MMF_ACOD_U_0137::DoTestStepL()
5862 //const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
5863 TBool testOK = EFalse;
5864 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
5865 TInt err = KErrNone;
5868 INFO_PRINTF2(_L("Test left with status %d"), err);
5873 INFO_PRINTF1(_L("Test failed"));
5880 //------------------------------------------------------------------
5885 CTest_MMF_ACOD_U_0138::CTest_MMF_ACOD_U_0138()
5887 // store the name of this test case
5888 // this is the name that is used by the script file
5889 // Each test step initialises it's own name
5890 iTestStepName = _L("MM-MMF-ACOD-U-0138-HP");
5892 for (TUint i=0; i<5; i++)
5894 iExpectedSrcBytesProcessed[i] = 0xFC8;
5895 iExpectedDstBytesAdded[i] = 0x400;
5896 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
5901 * PCM16 to IMAD Pass in buffers of optimum size
5902 * @test Req. under test REQ172.6.4, REQ172.6.5
5904 TVerdict CTest_MMF_ACOD_U_0138::DoTestStepL()
5906 //const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
5907 TBool testOK = EFalse;
5908 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAdpcmOptimumSrc, KPCM16ToAdpcmOptimumDst));
5909 TInt err = KErrNone;
5912 INFO_PRINTF2(_L("Test left with status %d"), err);
5917 INFO_PRINTF1(_L("Test failed"));
5924 //------------------------------------------------------------------
5929 CTest_MMF_ACOD_U_0139::CTest_MMF_ACOD_U_0139()
5931 // store the name of this test case
5932 // this is the name that is used by the script file
5933 // Each test step initialises it's own name
5934 iTestStepName = _L("MM-MMF-ACOD-U-0139-HP");
5938 * PCM16 to IMAD Reposition source pointer during conversion
5939 * @test Req. under test REQ172.11
5941 TVerdict CTest_MMF_ACOD_U_0139::DoTestStepL()
5943 // const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
5944 TBool testOK = EFalse;
5946 // TUint src = (KPCM16ToAdpcmOptimumSrc/4) + 10;
5948 INFO_PRINTF1(_L(">> The PCM16 to IMAD codec stores data between calls to ProcessL"));
5949 // TRAPD(err, testOK = TestRepositionL(codecUid, src, KPCM16ToAdpcmOptimumDst));
5950 TInt err = KErrNone ;
5954 INFO_PRINTF2(_L("Test left with status %d"), err);
5959 INFO_PRINTF1(_L("Test failed"));
5966 //------------------------------------------------------------------
5971 CTest_MMF_ACOD_U_0140::CTest_MMF_ACOD_U_0140()
5973 // store the name of this test case
5974 // this is the name that is used by the script file
5975 // Each test step initialises it's own name
5976 iTestStepName = _L("MM-MMF-ACOD-U-0140-HP");
5980 * IMAS to PCM16 Instantiate codec by FourCC Codes
5981 * @test Req. under test REQ172.6.2, REQ172.11.17
5983 TVerdict CTest_MMF_ACOD_U_0140::DoTestStepL()
5985 TBool testOK = EFalse;
5986 //TRAPD(err, testOK = TestNewL(KMMFFourCCCodeIMAS, KMMFFourCCCodePCM16));
5987 TInt err = KErrNone ;
5991 INFO_PRINTF2(_L("Test left with status %d"), err);
5996 INFO_PRINTF1(_L("Test failed"));
6003 //------------------------------------------------------------------
6008 CTest_MMF_ACOD_U_0141::CTest_MMF_ACOD_U_0141()
6010 // store the name of this test case
6011 // this is the name that is used by the script file
6012 // Each test step initialises it's own name
6013 iTestStepName = _L("MM-MMF-ACOD-U-0141-HP");
6017 * IMAS to PCM16 Instantiate codec by UID
6018 * @test Req. under test REQ172.6.1, REQ172.11.17
6020 TVerdict CTest_MMF_ACOD_U_0141::DoTestStepL()
6022 // const TUid codecUid = {0}; //KMmfUidHwDeviceIMAADPCMToPCM16Stereo};
6023 TBool testOK = EFalse;
6024 // TRAPD(err, testOK = TestNewL(codecUid));
6025 TInt err = KErrNone;
6029 INFO_PRINTF2(_L("Test left with status %d"), err);
6034 INFO_PRINTF1(_L("Test failed"));
6041 //------------------------------------------------------------------
6046 CTest_MMF_ACOD_U_0142::CTest_MMF_ACOD_U_0142()
6048 // store the name of this test case
6049 // this is the name that is used by the script file
6050 // Each test step initialises it's own name
6051 iTestStepName = _L("MM-MMF-ACOD-U-0142-HP");
6053 for (TUint i=0; i<5; i++)
6055 iExpectedSrcBytesProcessed[i] = 50;
6056 iExpectedDstBytesAdded[i] = 0;
6057 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
6062 * IMAS to PCM16 Pass in small source buffers
6063 * @test Req. under test REQ172.6.4, REQ172.6.5
6065 TVerdict CTest_MMF_ACOD_U_0142::DoTestStepL()
6067 // const TUid codecUid = {0};
6068 TBool testOK = EFalse;
6069 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KStereoAdpcmToPCM16OptimumDst));
6070 TInt err = KErrNone ;
6074 INFO_PRINTF2(_L("Test left with status %d"), err);
6079 INFO_PRINTF1(_L("Test failed"));
6086 //------------------------------------------------------------------
6091 CTest_MMF_ACOD_U_0143::CTest_MMF_ACOD_U_0143()
6093 // store the name of this test case
6094 // this is the name that is used by the script file
6095 // Each test step initialises it's own name
6096 iTestStepName = _L("MM-MMF-ACOD-U-0143-HP");
6098 iExpectedLeaveErrorCode = KErrArgument;
6102 * IMAS to PCM16 Pass in small dest buffers
6103 * @test Req. under test REQ172.6.4, REQ172.6.5
6105 TVerdict CTest_MMF_ACOD_U_0143::DoTestStepL()
6107 // const TUid codecUid = {0};//{0};
6108 TBool testOK = EFalse;
6109 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KStereoAdpcmToPCM16OptimumSrc, KSmallBufferSize));
6110 TInt err = KErrNone ;
6113 INFO_PRINTF2(_L("Test left with status %d"), err);
6118 INFO_PRINTF1(_L("Test failed"));
6125 //------------------------------------------------------------------
6130 CTest_MMF_ACOD_U_0144::CTest_MMF_ACOD_U_0144()
6132 // store the name of this test case
6133 // this is the name that is used by the script file
6134 // Each test step initialises it's own name
6135 iTestStepName = _L("MM-MMF-ACOD-U-0144-HP");
6136 iHeapSize = 0x20000;
6137 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EProcessIncomplete;
6138 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EProcessIncomplete;
6139 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EProcessIncomplete;
6140 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EDstNotFilled;
6141 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EProcessIncomplete;
6145 * IMAS to PCM16 Pass in large buffers
6146 * @test Req. under test REQ172.6.4, REQ172.6.5
6148 TVerdict CTest_MMF_ACOD_U_0144::DoTestStepL()
6150 // const TUid codecUid = {0};
6151 TBool testOK = EFalse;
6152 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
6153 TInt err = KErrNone ;
6156 INFO_PRINTF2(_L("Test left with status %d"), err);
6161 INFO_PRINTF1(_L("Test failed"));
6168 //------------------------------------------------------------------
6173 CTest_MMF_ACOD_U_0145::CTest_MMF_ACOD_U_0145()
6175 // store the name of this test case
6176 // this is the name that is used by the script file
6177 // Each test step initialises it's own name
6178 iTestStepName = _L("MM-MMF-ACOD-U-0145-HP");
6180 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EProcessIncomplete;
6181 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EProcessIncomplete;
6182 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EProcessIncomplete;
6183 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessComplete;
6184 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EProcessIncomplete;
6188 * IMAS to PCM16 Pass in default sized buffers
6189 * @test Req. under test REQ172.6.4, REQ172.6.5
6191 TVerdict CTest_MMF_ACOD_U_0145::DoTestStepL()
6193 // const TUid codecUid = {0};
6194 TBool testOK = EFalse;
6195 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
6196 TInt err = KErrNone ;
6200 INFO_PRINTF2(_L("Test left with status %d"), err);
6205 INFO_PRINTF1(_L("Test failed"));
6212 //------------------------------------------------------------------
6217 CTest_MMF_ACOD_U_0146::CTest_MMF_ACOD_U_0146()
6219 // store the name of this test case
6220 // this is the name that is used by the script file
6221 // Each test step initialises it's own name
6222 iTestStepName = _L("MM-MMF-ACOD-U-0146-HP");
6224 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EProcessIncomplete;
6225 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EProcessIncomplete;
6226 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EProcessIncomplete;
6227 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessComplete;
6228 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EProcessIncomplete;
6232 * IMAS to PCM16 Pass in buffers with different max length and length
6233 * @test Req. under test REQ172.6.4, REQ172.6.5
6235 TVerdict CTest_MMF_ACOD_U_0146::DoTestStepL()
6237 // const TUid codecUid = {0};
6238 TBool testOK = EFalse;
6239 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
6240 TInt err = KErrNone ;
6244 INFO_PRINTF2(_L("Test left with status %d"), err);
6249 INFO_PRINTF1(_L("Test failed"));
6256 //------------------------------------------------------------------
6261 CTest_MMF_ACOD_U_0147::CTest_MMF_ACOD_U_0147()
6263 // store the name of this test case
6264 // this is the name that is used by the script file
6265 // Each test step initialises it's own name
6266 iTestStepName = _L("MM-MMF-ACOD-U-0147-HP");
6268 for (TUint i=0; i<5; i++)
6270 iExpectedSrcBytesProcessed[i] = 0x400;
6271 iExpectedDstBytesAdded[i] = 0xF90;
6272 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
6277 * IMAS to PCM16 Pass in buffers of optimum size
6278 * @test Req. under test REQ172.6.4, REQ172.6.5
6280 TVerdict CTest_MMF_ACOD_U_0147::DoTestStepL()
6282 // const TUid codecUid = {0};
6283 TBool testOK = EFalse;
6284 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KStereoAdpcmToPCM16OptimumSrc, KStereoAdpcmToPCM16OptimumDst));
6285 TInt err = KErrNone ;
6288 INFO_PRINTF2(_L("Test left with status %d"), err);
6293 INFO_PRINTF1(_L("Test failed"));
6300 //------------------------------------------------------------------
6305 CTest_MMF_ACOD_U_0148::CTest_MMF_ACOD_U_0148()
6307 // store the name of this test case
6308 // this is the name that is used by the script file
6309 // Each test step initialises it's own name
6310 iTestStepName = _L("MM-MMF-ACOD-U-0148-HP");
6314 * IMAS to PCM16 Reposition source pointer during conversion
6315 * @test Req. under test REQ172.11
6317 TVerdict CTest_MMF_ACOD_U_0148::DoTestStepL()
6319 // const TUid codecUid = {0};
6320 TBool testOK = EFalse;
6322 // TUint src = (KStereoAdpcmToPCM16OptimumSrc/4) + 10;
6324 INFO_PRINTF1(_L(">> The IMAS to PCM16 codec stores data between calls to ProcessL"));
6325 //TRAPD(err, testOK = TestRepositionL(codecUid, src, KStereoAdpcmToPCM16OptimumDst));
6326 TInt err = KErrNone;
6329 INFO_PRINTF2(_L("Test left with status %d"), err);
6334 INFO_PRINTF1(_L("Test failed"));
6341 //------------------------------------------------------------------
6346 CTest_MMF_ACOD_U_0149::CTest_MMF_ACOD_U_0149()
6348 // store the name of this test case
6349 // this is the name that is used by the script file
6350 // Each test step initialises it's own name
6351 iTestStepName = _L("MM-MMF-ACOD-U-0149-HP");
6355 * PCM16 to IMAS Instantiate codec by FourCC Codes
6356 * @test Req. under test REQ172.6.2, REQ172.11.18
6358 TVerdict CTest_MMF_ACOD_U_0149::DoTestStepL()
6360 TBool testOK = EFalse;
6361 //TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeIMAS));
6362 TInt err = KErrNone;
6365 INFO_PRINTF2(_L("Test left with status %d"), err);
6370 INFO_PRINTF1(_L("Test failed"));
6377 //------------------------------------------------------------------
6382 CTest_MMF_ACOD_U_0150::CTest_MMF_ACOD_U_0150()
6384 // store the name of this test case
6385 // this is the name that is used by the script file
6386 // Each test step initialises it's own name
6387 iTestStepName = _L("MM-MMF-ACOD-U-0150-HP");
6391 * PCM16 to IMAS Instantiate codec by UID
6392 * @test Req. under test REQ172.6.1, REQ172.11.18
6394 TVerdict CTest_MMF_ACOD_U_0150::DoTestStepL()
6396 // AASSERT( 0 ); // remove this tests !
6397 // const TUid codecUid = {0}; //KMmfUidHwDevicePCM16ToIMAADPCMStereo};
6398 TBool testOK = EFalse;
6399 // TRAPD(err, testOK = TestNewL(codecUid));
6400 TInt err = KErrNone;
6403 INFO_PRINTF2(_L("Test left with status %d"), err);
6408 INFO_PRINTF1(_L("Test failed"));
6415 //------------------------------------------------------------------
6420 CTest_MMF_ACOD_U_0151::CTest_MMF_ACOD_U_0151()
6422 // store the name of this test case
6423 // this is the name that is used by the script file
6424 // Each test step initialises it's own name
6425 iTestStepName = _L("MM-MMF-ACOD-U-0151-HP");
6427 for (TUint i=0; i<5; i++)
6429 iExpectedSrcBytesProcessed[i] = 50;
6430 iExpectedDstBytesAdded[i] = 0;
6431 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
6436 * IMAS to PCM16 Pass in small source buffers
6437 * @test Req. under test REQ172.6.4, REQ172.6.5
6439 TVerdict CTest_MMF_ACOD_U_0151::DoTestStepL()
6441 // const TUid codecUid = {0};
6442 TBool testOK = EFalse;
6443 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToStereoAdpcmOptimumDst));
6444 TInt err = KErrNone;
6447 INFO_PRINTF2(_L("Test left with status %d"), err);
6452 INFO_PRINTF1(_L("Test failed"));
6459 //------------------------------------------------------------------
6464 CTest_MMF_ACOD_U_0152::CTest_MMF_ACOD_U_0152()
6466 // store the name of this test case
6467 // this is the name that is used by the script file
6468 // Each test step initialises it's own name
6469 iTestStepName = _L("MM-MMF-ACOD-U-0152-HP");
6471 iExpectedLeaveErrorCode = KErrArgument;
6475 * PCM16 to IMAS Pass in small dest buffers
6476 * @test Req. under test REQ172.6.4, REQ172.6.5
6478 TVerdict CTest_MMF_ACOD_U_0152::DoTestStepL()
6480 //const TUid codecUid = {0};
6481 TBool testOK = EFalse;
6482 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToStereoAdpcmOptimumSrc, KSmallBufferSize));
6483 TInt err = KErrNone;
6486 INFO_PRINTF2(_L("Test left with status %d"), err);
6491 INFO_PRINTF1(_L("Test failed"));
6498 //------------------------------------------------------------------
6503 CTest_MMF_ACOD_U_0153::CTest_MMF_ACOD_U_0153()
6505 // store the name of this test case
6506 // this is the name that is used by the script file
6507 // Each test step initialises it's own name
6508 iTestStepName = _L("MM-MMF-ACOD-U-0153-HP");
6509 iHeapSize = 0x20000;
6510 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EDstNotFilled;
6511 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EDstNotFilled;
6512 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EDstNotFilled;
6513 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessIncomplete;
6514 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EDstNotFilled;
6518 * PCM16 to IMAS Pass in large buffers
6519 * @test Req. under test REQ172.6.4, REQ172.6.5
6521 TVerdict CTest_MMF_ACOD_U_0153::DoTestStepL()
6523 //const TUid codecUid = {0};
6524 TBool testOK = EFalse;
6525 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
6526 TInt err = KErrNone;
6529 INFO_PRINTF2(_L("Test left with status %d"), err);
6534 INFO_PRINTF1(_L("Test failed"));
6541 //------------------------------------------------------------------
6546 CTest_MMF_ACOD_U_0154::CTest_MMF_ACOD_U_0154()
6548 // store the name of this test case
6549 // this is the name that is used by the script file
6550 // Each test step initialises it's own name
6551 iTestStepName = _L("MM-MMF-ACOD-U-0154-HP");
6553 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EDstNotFilled;
6554 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EDstNotFilled;
6555 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EDstNotFilled;
6556 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessComplete;
6557 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EDstNotFilled;
6561 * PCM16 to IMAS Pass in default sized buffers
6562 * @test Req. under test REQ172.6.4, REQ172.6.5
6564 TVerdict CTest_MMF_ACOD_U_0154::DoTestStepL()
6566 //const TUid codecUid = {0};
6567 TBool testOK = EFalse;
6568 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
6569 TInt err = KErrNone;
6572 INFO_PRINTF2(_L("Test left with status %d"), err);
6577 INFO_PRINTF1(_L("Test failed"));
6584 //------------------------------------------------------------------
6589 CTest_MMF_ACOD_U_0155::CTest_MMF_ACOD_U_0155()
6591 // store the name of this test case
6592 // this is the name that is used by the script file
6593 // Each test step initialises it's own name
6594 iTestStepName = _L("MM-MMF-ACOD-U-0155-HP");
6596 iExpectedReturnValue[0].iStatus = TCodecProcessResult::EDstNotFilled;
6597 iExpectedReturnValue[1].iStatus = TCodecProcessResult::EDstNotFilled;
6598 iExpectedReturnValue[2].iStatus = TCodecProcessResult::EDstNotFilled;
6599 iExpectedReturnValue[3].iStatus = TCodecProcessResult::EProcessComplete;
6600 iExpectedReturnValue[4].iStatus = TCodecProcessResult::EDstNotFilled;
6604 * PCM16 to IMAS Pass in buffers with different max length and length
6605 * @test Req. under test REQ172.6.4, REQ172.6.5
6607 TVerdict CTest_MMF_ACOD_U_0155::DoTestStepL()
6609 //const TUid codecUid = {0};
6610 TBool testOK = EFalse;
6611 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
6612 TInt err = KErrNone;
6615 INFO_PRINTF2(_L("Test left with status %d"), err);
6620 INFO_PRINTF1(_L("Test failed"));
6627 //------------------------------------------------------------------
6632 CTest_MMF_ACOD_U_0156::CTest_MMF_ACOD_U_0156()
6634 // store the name of this test case
6635 // this is the name that is used by the script file
6636 // Each test step initialises it's own name
6637 iTestStepName = _L("MM-MMF-ACOD-U-0156-HP");
6639 for (TUint i=0; i<5; i++)
6641 iExpectedSrcBytesProcessed[i] = 0xF90;
6642 iExpectedDstBytesAdded[i] = 0x400;
6643 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
6648 * PCM16 to IMAS Pass in buffers of optimum size
6649 * @test Req. under test REQ172.6.4, REQ172.6.5
6651 TVerdict CTest_MMF_ACOD_U_0156::DoTestStepL()
6653 //const TUid codecUid = {0};
6654 TBool testOK = EFalse;
6655 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToStereoAdpcmOptimumSrc, KPCM16ToStereoAdpcmOptimumDst));
6656 TInt err = KErrNone;
6659 INFO_PRINTF2(_L("Test left with status %d"), err);
6664 INFO_PRINTF1(_L("Test failed"));
6671 //------------------------------------------------------------------
6676 CTest_MMF_ACOD_U_0157::CTest_MMF_ACOD_U_0157()
6678 // store the name of this test case
6679 // this is the name that is used by the script file
6680 // Each test step initialises it's own name
6681 iTestStepName = _L("MM-MMF-ACOD-U-0157-HP");
6685 * PCM16 to IMAS Reposition source pointer during conversion
6686 * @test Req. under test REQ172.11
6688 TVerdict CTest_MMF_ACOD_U_0157::DoTestStepL()
6690 //const TUid codecUid = {0};
6691 TBool testOK = EFalse;
6693 // TUint src = (KPCM16ToStereoAdpcmOptimumSrc/4) + 10;
6695 INFO_PRINTF1(_L(">> The PCM16 to IMAS codec stores data between calls to ProcessL"));
6696 // TRAPD(err, testOK = TestRepositionL(codecUid, src, KPCM16ToStereoAdpcmOptimumDst));
6697 TInt err = KErrNone;
6700 INFO_PRINTF2(_L("Test left with status %d"), err);
6705 INFO_PRINTF1(_L("Test failed"));
6712 //------------------------------------------------------------------
6717 CTest_MMF_ACOD_U_0158::CTest_MMF_ACOD_U_0158()
6719 // store the name of this test case
6720 // this is the name that is used by the script file
6721 // Each test step initialises it's own name
6722 iTestStepName = _L("MM-MMF-ACOD-U-0158-HP");
6726 * GSM610 to PCM16 Instantiate codec by FourCC Codes
6727 * @test Req. under test REQ172.6.2, REQ172.11.19
6729 TVerdict CTest_MMF_ACOD_U_0158::DoTestStepL()
6731 TBool testOK = EFalse;
6732 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodeGSM610, KMMFFourCCCodePCM16));
6733 TInt err = KErrNone;
6736 INFO_PRINTF2(_L("Test left with status %d"), err);
6741 INFO_PRINTF1(_L("Test failed"));
6748 //------------------------------------------------------------------
6753 CTest_MMF_ACOD_U_0159::CTest_MMF_ACOD_U_0159()
6755 // store the name of this test case
6756 // this is the name that is used by the script file
6757 // Each test step initialises it's own name
6758 iTestStepName = _L("MM-MMF-ACOD-U-0159-HP");
6762 * GSM610 to PCM16 Instantiate codec by UID
6763 * @test Req. under test REQ172.6.1, REQ172.11.19
6765 TVerdict CTest_MMF_ACOD_U_0159::DoTestStepL()
6767 // const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
6768 TBool testOK = EFalse;
6769 // TRAPD(err, testOK = TestNewL(codecUid));
6770 TInt err = KErrNone;
6773 INFO_PRINTF2(_L("Test left with status %d"), err);
6778 INFO_PRINTF1(_L("Test failed"));
6785 //------------------------------------------------------------------
6790 CTest_MMF_ACOD_U_0160::CTest_MMF_ACOD_U_0160()
6792 // store the name of this test case
6793 // this is the name that is used by the script file
6794 // Each test step initialises it's own name
6795 iTestStepName = _L("MM-MMF-ACOD-U-0160-HP");
6796 iHeapSize = 0x200000;
6798 for (TUint i=0; i<5; i++)
6800 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
6806 * GSM610 to PCM16 Pass in small source buffers
6807 * @test Req. under test REQ172.6.4, REQ172.6.5
6809 TVerdict CTest_MMF_ACOD_U_0160::DoTestStepL()
6811 //const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
6812 TBool testOK = EFalse;
6813 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSizeGSM, KGSM610ToPCM16OptimumDstGSM, 0, EFalse));
6814 TInt err = KErrNone;
6817 INFO_PRINTF2(_L("Test left with status %d"), err);
6822 INFO_PRINTF1(_L("Test failed"));
6829 //------------------------------------------------------------------
6834 CTest_MMF_ACOD_U_0161::CTest_MMF_ACOD_U_0161()
6836 // store the name of this test case
6837 // this is the name that is used by the script file
6838 // Each test step initialises it's own name
6839 iTestStepName = _L("MM-MMF-ACOD-U-0161-HP");
6840 iHeapSize = 0x20000;
6842 for (TUint i=0; i<5; i++)
6844 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
6849 * GSM610 to PCM16 Pass in small dest buffers
6850 * @test Req. under test REQ172.6.4, REQ172.6.5
6852 TVerdict CTest_MMF_ACOD_U_0161::DoTestStepL()
6854 //const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
6855 TBool testOK = EFalse;
6856 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KGSM610ToPCM16OptimumSrcGSM, KSmallBufferSizeGSM, 0, EFalse));
6857 TInt err = KErrNone;
6860 INFO_PRINTF2(_L("Test left with status %d"), err);
6865 INFO_PRINTF1(_L("Test failed"));
6872 //------------------------------------------------------------------
6877 CTest_MMF_ACOD_U_0162::CTest_MMF_ACOD_U_0162()
6879 // store the name of this test case
6880 // this is the name that is used by the script file
6881 // Each test step initialises it's own name
6882 iTestStepName = _L("MM-MMF-ACOD-U-0162-HP");
6883 iHeapSize = 0x20000;
6884 for (TUint i=0; i<5; i++)
6886 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
6891 * GSM610 to PCM16 Pass in large buffers
6892 * @test Req. under test REQ172.6.4, REQ172.6.5
6894 TVerdict CTest_MMF_ACOD_U_0162::DoTestStepL()
6896 //const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
6897 TBool testOK = EFalse;
6898 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
6899 TInt err = KErrNone;
6902 INFO_PRINTF2(_L("Test left with status %d"), err);
6907 INFO_PRINTF1(_L("Test failed"));
6914 //------------------------------------------------------------------
6919 CTest_MMF_ACOD_U_0163::CTest_MMF_ACOD_U_0163()
6921 // store the name of this test case
6922 // this is the name that is used by the script file
6923 // Each test step initialises it's own name
6924 iTestStepName = _L("MM-MMF-ACOD-U-0163-HP");
6926 for (TUint i=0; i<5; i++)
6928 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
6933 * GSM610 to PCM16 Pass in default sized buffers
6934 * @test Req. under test REQ172.6.4, REQ172.6.5
6936 TVerdict CTest_MMF_ACOD_U_0163::DoTestStepL()
6938 //const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
6939 TBool testOK = EFalse;
6940 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
6941 TInt err = KErrNone;
6944 INFO_PRINTF2(_L("Test left with status %d"), err);
6949 INFO_PRINTF1(_L("Test failed"));
6956 //------------------------------------------------------------------
6961 CTest_MMF_ACOD_U_0164::CTest_MMF_ACOD_U_0164()
6963 // store the name of this test case
6964 // this is the name that is used by the script file
6965 // Each test step initialises it's own name
6966 iTestStepName = _L("MM-MMF-ACOD-U-0164-HP");
6968 for (TUint i=0; i<5; i++)
6970 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
6975 * GSM610 to PCM16 Pass in buffers with different max length and length
6976 * @test Req. under test REQ172.6.4, REQ172.6.5
6978 TVerdict CTest_MMF_ACOD_U_0164::DoTestStepL()
6980 //const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
6981 TBool testOK = EFalse;
6982 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
6983 TInt err = KErrNone;
6986 INFO_PRINTF2(_L("Test left with status %d"), err);
6991 INFO_PRINTF1(_L("Test failed"));
6998 //------------------------------------------------------------------
7003 CTest_MMF_ACOD_U_0165::CTest_MMF_ACOD_U_0165()
7005 // store the name of this test case
7006 // this is the name that is used by the script file
7007 // Each test step initialises it's own name
7008 iTestStepName = _L("MM-MMF-ACOD-U-0165-HP");
7009 iSingleIteration = ETrue;
7011 for (TUint i=0; i<5; i++)
7013 iExpectedSrcBytesProcessed[i] = 0x104;
7014 iExpectedDstBytesAdded[i] = 0xA00;
7015 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
7020 * GSM610 to PCM16 Pass in buffers of optimum size
7021 * @test Req. under test REQ172.6.4, REQ172.6.5
7023 TVerdict CTest_MMF_ACOD_U_0165::DoTestStepL()
7025 //const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
7026 TBool testOK = EFalse;
7027 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KGSM610ToPCM16OptimumSrc, KGSM610ToPCM16OptimumDst));
7028 TInt err = KErrNone;
7031 INFO_PRINTF2(_L("Test left with status %d"), err);
7036 INFO_PRINTF1(_L("Test failed"));
7043 //------------------------------------------------------------------
7048 CTest_MMF_ACOD_U_0166::CTest_MMF_ACOD_U_0166()
7050 // store the name of this test case
7051 // this is the name that is used by the script file
7052 // Each test step initialises it's own name
7053 iTestStepName = _L("MM-MMF-ACOD-U-0166-HP");
7057 * GSM610 to PCM16 Reposition source pointer during conversion
7058 * @test Req. under test REQ172.11
7060 TVerdict CTest_MMF_ACOD_U_0166::DoTestStepL()
7062 //const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
7063 TBool testOK = EFalse;
7065 // TUint src = (KGSM610ToPCM16OptimumSrc/4) + 10;
7067 INFO_PRINTF1(_L(">> The GSM610 to PCM16 codec stores data between calls to ProcessL"));
7068 // TRAPD(err, testOK = TestRepositionL(codecUid, src, KGSM610ToPCM16OptimumDst));
7069 TInt err = KErrNone;
7073 INFO_PRINTF2(_L("Test left with status %d"), err);
7078 INFO_PRINTF1(_L("Test failed"));
7085 //------------------------------------------------------------------
7090 CTest_MMF_ACOD_U_0167::CTest_MMF_ACOD_U_0167()
7092 // store the name of this test case
7093 // this is the name that is used by the script file
7094 // Each test step initialises it's own name
7095 iTestStepName = _L("MM-MMF-ACOD-U-0167-HP");
7099 * PCM16 to GSM610 Instantiate codec by FourCC Codes
7100 * @test Req. under test REQ172.6.2, REQ172.11.20
7102 TVerdict CTest_MMF_ACOD_U_0167::DoTestStepL()
7104 TBool testOK = EFalse;
7105 // TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeGSM610));
7106 TInt err = KErrNone;
7109 INFO_PRINTF2(_L("Test left with status %d"), err);
7114 INFO_PRINTF1(_L("Test failed"));
7121 //------------------------------------------------------------------
7126 CTest_MMF_ACOD_U_0168::CTest_MMF_ACOD_U_0168()
7128 // store the name of this test case
7129 // this is the name that is used by the script file
7130 // Each test step initialises it's own name
7131 iTestStepName = _L("MM-MMF-ACOD-U-0168-HP");
7135 * PCM16 to GSM610 Instantiate codec by UID
7136 * @test Req. under test REQ172.6.1, REQ172.11.20
7138 TVerdict CTest_MMF_ACOD_U_0168::DoTestStepL()
7140 // const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
7141 TBool testOK = EFalse;
7142 // TRAPD(err, testOK = TestNewL(codecUid));
7143 TInt err = KErrNone;
7146 INFO_PRINTF2(_L("Test left with status %d"), err);
7151 INFO_PRINTF1(_L("Test failed"));
7158 //------------------------------------------------------------------
7163 CTest_MMF_ACOD_U_0169::CTest_MMF_ACOD_U_0169()
7165 // store the name of this test case
7166 // this is the name that is used by the script file
7167 // Each test step initialises it's own name
7168 iTestStepName = _L("MM-MMF-ACOD-U-0169-HP");
7169 iHeapSize = 0x20000;
7171 for (TUint i=0; i<5; i++)
7173 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
7178 * GSM610 to PCM16 Pass in small source buffers
7179 * @test Req. under test REQ172.6.4, REQ172.6.5
7181 TVerdict CTest_MMF_ACOD_U_0169::DoTestStepL()
7183 //const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
7184 TBool testOK = EFalse;
7185 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSizeGSM, KPCM16ToGSM610OptimumDstGSM, 0, EFalse));
7186 TInt err = KErrNone;
7189 INFO_PRINTF2(_L("Test left with status %d"), err);
7194 INFO_PRINTF1(_L("Test failed"));
7201 //------------------------------------------------------------------
7206 CTest_MMF_ACOD_U_0170::CTest_MMF_ACOD_U_0170()
7208 // store the name of this test case
7209 // this is the name that is used by the script file
7210 // Each test step initialises it's own name
7211 iTestStepName = _L("MM-MMF-ACOD-U-0170-HP");
7213 iExpectedLeaveErrorCode = KErrArgument;
7217 * PCM16 to GSM610 Pass in small dest buffers
7218 * @test Req. under test REQ172.6.4, REQ172.6.5
7220 TVerdict CTest_MMF_ACOD_U_0170::DoTestStepL()
7222 //const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
7223 TBool testOK = EFalse;
7224 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToGSM610OptimumSrc, KSmallBufferSize, 0, EFalse));
7225 TInt err = KErrNone;
7228 INFO_PRINTF2(_L("Test left with status %d"), err);
7233 INFO_PRINTF1(_L("Test failed"));
7240 //------------------------------------------------------------------
7245 CTest_MMF_ACOD_U_0171::CTest_MMF_ACOD_U_0171()
7247 // store the name of this test case
7248 // this is the name that is used by the script file
7249 // Each test step initialises it's own name
7250 iTestStepName = _L("MM-MMF-ACOD-U-0171-HP");
7251 iHeapSize = 0x20000;
7252 for (TUint i=0; i<5; i++)
7254 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
7259 * PCM16 to GSM610 Pass in large buffers
7260 * @test Req. under test REQ172.6.4, REQ172.6.5
7262 TVerdict CTest_MMF_ACOD_U_0171::DoTestStepL()
7264 //const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
7265 TBool testOK = EFalse;
7266 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
7267 TInt err = KErrNone;
7270 INFO_PRINTF2(_L("Test left with status %d"), err);
7275 INFO_PRINTF1(_L("Test failed"));
7282 //------------------------------------------------------------------
7287 CTest_MMF_ACOD_U_0172::CTest_MMF_ACOD_U_0172()
7289 // store the name of this test case
7290 // this is the name that is used by the script file
7291 // Each test step initialises it's own name
7292 iTestStepName = _L("MM-MMF-ACOD-U-0172-HP");
7294 for (TUint i=0; i<5; i++)
7296 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
7301 * PCM16 to GSM610 Pass in default sized buffers
7302 * @test Req. under test REQ172.6.4, REQ172.6.5
7304 TVerdict CTest_MMF_ACOD_U_0172::DoTestStepL()
7306 //const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
7307 TBool testOK = EFalse;
7308 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
7309 TInt err = KErrNone;
7312 INFO_PRINTF2(_L("Test left with status %d"), err);
7317 INFO_PRINTF1(_L("Test failed"));
7324 //------------------------------------------------------------------
7329 CTest_MMF_ACOD_U_0173::CTest_MMF_ACOD_U_0173()
7331 // store the name of this test case
7332 // this is the name that is used by the script file
7333 // Each test step initialises it's own name
7334 iTestStepName = _L("MM-MMF-ACOD-U-0173-HP");
7336 for (TUint i=0; i<5; i++)
7338 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
7343 * PCM16 to GSM610 Pass in buffers with different max length and length
7344 * @test Req. under test REQ172.6.4, REQ172.6.5
7346 TVerdict CTest_MMF_ACOD_U_0173::DoTestStepL()
7348 //const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
7349 TBool testOK = EFalse;
7350 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
7351 TInt err = KErrNone;
7354 INFO_PRINTF2(_L("Test left with status %d"), err);
7359 INFO_PRINTF1(_L("Test failed"));
7366 //------------------------------------------------------------------
7371 CTest_MMF_ACOD_U_0174::CTest_MMF_ACOD_U_0174()
7373 // store the name of this test case
7374 // this is the name that is used by the script file
7375 // Each test step initialises it's own name
7376 iTestStepName = _L("MM-MMF-ACOD-U-0174-HP");
7377 iSingleIteration = ETrue;
7379 for (TUint i=0; i<5; i++)
7381 iExpectedSrcBytesProcessed[i] = 0xA00;
7382 iExpectedDstBytesAdded[i] = 0x104;
7383 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
7388 * PCM16 to GSM610 Pass in buffers of optimum size
7389 * @test Req. under test REQ172.6.4, REQ172.6.5
7391 TVerdict CTest_MMF_ACOD_U_0174::DoTestStepL()
7393 //const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
7394 TBool testOK = EFalse;
7395 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToGSM610OptimumSrc, KPCM16ToGSM610OptimumDst));
7396 TInt err = KErrNone;
7399 INFO_PRINTF2(_L("Test left with status %d"), err);
7404 INFO_PRINTF1(_L("Test failed"));
7411 //------------------------------------------------------------------
7416 CTest_MMF_ACOD_U_0175::CTest_MMF_ACOD_U_0175()
7418 // store the name of this test case
7419 // this is the name that is used by the script file
7420 // Each test step initialises it's own name
7421 iTestStepName = _L("MM-MMF-ACOD-U-0175-HP");
7425 * PCM16 to GSM610 Reposition source pointer during conversion
7426 * @test Req. under test REQ172.11
7428 TVerdict CTest_MMF_ACOD_U_0175::DoTestStepL()
7430 // const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
7431 TBool testOK = EFalse;
7433 // TUint src = (KPCM16ToGSM610OptimumSrc/4) + 10;
7435 INFO_PRINTF1(_L(">> The PCM16 to GSM610 codec stores data between calls to ProcessL"));
7436 // TRAPD(err, testOK = TestRepositionL(codecUid, src, KPCM16ToGSM610OptimumDst));
7437 TInt err = KErrNone;
7440 INFO_PRINTF2(_L("Test left with status %d"), err);
7445 INFO_PRINTF1(_L("Test failed"));
7452 //------------------------------------------------------------------
7457 CTest_MMF_ACOD_U_0176::CTest_MMF_ACOD_U_0176()
7459 // store the name of this test case
7460 // this is the name that is used by the script file
7461 // Each test step initialises it's own name
7462 iTestStepName = _L("MM-MMF-ACOD-U-0176-HP");
7466 * Instantiate codec that doesn't exist
7467 * @test Req. under test REQ172.11
7469 TVerdict CTest_MMF_ACOD_U_0176::DoTestStepL()
7471 // CMMFCodec* codec = NULL;
7472 //TRAPD(err, codec = CMMFCodec::NewL(KMMFFourCCCodeALAW, KMMFFourCCCodePCMU16B));
7473 TInt err = KErrNone;
7474 if (err == KErrNone || err == KErrNotSupported)
7478 ERR_PRINTF2(_L(">> CTest_MMF_ACOD_U_0176::DoTestStepL Leave occurred in NewL, error code %d"), err);
7482 //------------------------------------------------------------------
7487 CTest_MMF_ACOD_U_0177::CTest_MMF_ACOD_U_0177()
7489 // store the name of this test case
7490 // this is the name that is used by the script file
7491 // Each test step initialises it's own name
7492 iTestStepName = _L("MM-MMF-ACOD-U-0177-HP");
7496 * Instantiate codec from fourCC codes that don't exist
7497 * @test Req. under test REQ172.11
7499 TVerdict CTest_MMF_ACOD_U_0177::DoTestStepL()
7501 // const TUint32 KFourCCCodeP1B = 0x42315020; //(' ', 'P', '1', 'B')
7502 // const TUint32 KFourCCCodePS16 = 0x36315350; //('P', 'S', '1', '6')
7504 // CMMFCodec* codec = NULL;
7505 //TRAPD(err, codec = CMMFCodec::NewL(KFourCCCodeP1B, KFourCCCodePS16));
7507 TInt err = KErrNone;
7508 if (err == KErrNone || err == KErrNotSupported)
7512 ERR_PRINTF2(_L(">> CTest_MMF_ACOD_U_0177::DoTestStepL Leave occurred in NewL, error code %d"), err);
7516 //------------------------------------------------------------------
7521 CTest_MMF_ACOD_U_0178::CTest_MMF_ACOD_U_0178()
7523 // store the name of this test case
7524 // this is the name that is used by the script file
7525 // Each test step initialises it's own name
7526 iTestStepName = _L("MM-MMF-ACOD-U-0178-HP");
7530 * Test out of memory in NewL
7531 * @test Req. under test REQ172.11
7533 TVerdict CTest_MMF_ACOD_U_0178::DoTestStepL()
7535 // CMMFCodec* codec = NULL;
7536 __UHEAP_FAILNEXT(1);
7537 //TRAPD(err, codec = CMMFCodec::NewL(KMMFFourCCCodePCMU8, KMMFFourCCCodePCM16));
7538 TInt err = KErrNone;
7539 if (err == KErrNoMemory)
7543 ERR_PRINTF2(_L(">> CTest_MMF_ACOD_U_0178::DoTestStepL Leave occurred in NewL, error code %d"), err);
7547 //------------------------------------------------------------------
7552 CTest_MMF_ACOD_U_0179::CTest_MMF_ACOD_U_0179()
7554 // store the name of this test case
7555 // this is the name that is used by the script file
7556 // Each test step initialises it's own name
7557 iTestStepName = _L("MM-MMF-ACOD-U-0179-HP");
7559 for (TUint i=0; i<5; i++)
7561 iExpectedSrcBytesProcessed[i] = 0;
7562 iExpectedDstBytesAdded[i] = 0;
7563 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
7568 * ALAW To PCM16 Pass in zero sized source buffer
7569 * @test Req. under test REQ172.6.4, REQ172.6.5
7571 TVerdict CTest_MMF_ACOD_U_0179::DoTestStepL()
7573 // const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
7574 TBool testOK = EFalse;
7575 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KAlawToPCM16OptimumDst));
7576 TInt err = KErrNone;
7579 INFO_PRINTF2(_L("Test left with status %d"), err);
7584 INFO_PRINTF1(_L("Test failed"));
7591 //------------------------------------------------------------------
7596 CTest_MMF_ACOD_U_0180::CTest_MMF_ACOD_U_0180()
7598 // store the name of this test case
7599 // this is the name that is used by the script file
7600 // Each test step initialises it's own name
7601 iTestStepName = _L("MM-MMF-ACOD-U-0180-HP");
7603 iExpectedLeaveErrorCode = KErrArgument;
7607 * ALAW To PCM16 Pass in zero sized destination buffer
7608 * @test Req. under test REQ172.6.4, REQ172.6.5
7610 TVerdict CTest_MMF_ACOD_U_0180::DoTestStepL()
7612 // const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
7613 TBool testOK = EFalse;
7614 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAlawToPCM16OptimumSrc, 0));
7615 TInt err = KErrNone;
7618 INFO_PRINTF2(_L("Test left with status %d"), err);
7623 INFO_PRINTF1(_L("Test failed"));
7630 //------------------------------------------------------------------
7635 CTest_MMF_ACOD_U_0181::CTest_MMF_ACOD_U_0181()
7637 // store the name of this test case
7638 // this is the name that is used by the script file
7639 // Each test step initialises it's own name
7640 iTestStepName = _L("MM-MMF-ACOD-U-0181-HP");
7644 * ALAW To PCM16 Test out of memory
7645 * @test Req. under test REQ172.11
7647 TVerdict CTest_MMF_ACOD_U_0181::DoTestStepL()
7649 const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
7650 TBool testOK = EFalse;
7652 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
7653 TInt err = KErrNone ;
7654 if (err==KErrNone && testOK)
7655 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
7659 INFO_PRINTF2(_L("Test left with status %d"), err);
7664 INFO_PRINTF1(_L("Test failed"));
7671 //------------------------------------------------------------------
7677 CTest_MMF_ACOD_U_0182::CTest_MMF_ACOD_U_0182()
7679 // store the name of this test case
7680 // this is the name that is used by the script file
7681 // Each test step initialises it's own name
7682 iTestStepName = _L("MM-MMF-ACOD-U-0182-HP");
7686 * ALAW To PCM16 Test for memory leaks
7687 * @test Req. under test REQ172.11
7689 TVerdict CTest_MMF_ACOD_U_0182::DoTestStepL()
7691 const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
7692 TBool testOK = EFalse;
7693 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
7697 INFO_PRINTF2(_L("Test left with status %d"), err);
7702 INFO_PRINTF1(_L("Test failed"));
7709 //------------------------------------------------------------------
7715 CTest_MMF_ACOD_U_0183::CTest_MMF_ACOD_U_0183()
7717 // store the name of this test case
7718 // this is the name that is used by the script file
7719 // Each test step initialises it's own name
7720 iTestStepName = _L("MM-MMF-ACOD-U-0183-HP");
7724 * ALAW To PCM16 Test for memory scribbles
7725 * @test Req. under test REQ172.11
7727 TVerdict CTest_MMF_ACOD_U_0183::DoTestStepL()
7729 // const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
7730 TBool testOK = EFalse;
7731 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
7732 TInt err = KErrNone;
7735 INFO_PRINTF2(_L("Test left with status %d"), err);
7740 INFO_PRINTF1(_L("Test failed"));
7747 //------------------------------------------------------------------
7752 CTest_MMF_ACOD_U_0184::CTest_MMF_ACOD_U_0184()
7754 // store the name of this test case
7755 // this is the name that is used by the script file
7756 // Each test step initialises it's own name
7757 iTestStepName = _L("MM-MMF-ACOD-U-0184-HP");
7759 for (TUint i=0; i<5; i++)
7761 iExpectedSrcBytesProcessed[i] = 0;
7762 iExpectedDstBytesAdded[i] = 0;
7763 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
7768 * PCM16 to ALAW Pass in zero sized source buffer
7769 * @test Req. under test REQ172.6.4, REQ172.6.5
7771 TVerdict CTest_MMF_ACOD_U_0184::DoTestStepL()
7773 // const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
7774 TBool testOK = EFalse;
7775 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToAlawOptimumDst));
7776 TInt err = KErrNone;
7779 INFO_PRINTF2(_L("Test left with status %d"), err);
7784 INFO_PRINTF1(_L("Test failed"));
7791 //------------------------------------------------------------------
7796 CTest_MMF_ACOD_U_0185::CTest_MMF_ACOD_U_0185()
7798 // store the name of this test case
7799 // this is the name that is used by the script file
7800 // Each test step initialises it's own name
7801 iTestStepName = _L("MM-MMF-ACOD-U-0185-HP");
7803 iExpectedLeaveErrorCode = KErrArgument;
7807 * PCM16 to ALAW Pass in zero sized destination buffer
7808 * @test Req. under test REQ172.6.4, REQ172.6.5
7810 TVerdict CTest_MMF_ACOD_U_0185::DoTestStepL()
7812 // const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
7813 TBool testOK = EFalse;
7814 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAlawOptimumSrc, 0));
7815 TInt err = KErrNone;
7818 INFO_PRINTF2(_L("Test left with status %d"), err);
7823 INFO_PRINTF1(_L("Test failed"));
7830 //------------------------------------------------------------------
7835 CTest_MMF_ACOD_U_0186::CTest_MMF_ACOD_U_0186()
7837 // store the name of this test case
7838 // this is the name that is used by the script file
7839 // Each test step initialises it's own name
7840 iTestStepName = _L("MM-MMF-ACOD-U-0186-HP");
7844 * PCM16 to ALAW Test out of memory
7845 * @test Req. under test REQ172.11
7847 TVerdict CTest_MMF_ACOD_U_0186::DoTestStepL()
7849 const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
7850 TBool testOK = EFalse;
7852 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
7853 TInt err = KErrNone;
7854 if (err==KErrNone && testOK)
7855 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
7859 INFO_PRINTF2(_L("Test left with status %d"), err);
7864 INFO_PRINTF1(_L("Test failed"));
7871 //------------------------------------------------------------------
7877 CTest_MMF_ACOD_U_0187::CTest_MMF_ACOD_U_0187()
7879 // store the name of this test case
7880 // this is the name that is used by the script file
7881 // Each test step initialises it's own name
7882 iTestStepName = _L("MM-MMF-ACOD-U-0187-HP");
7886 * PCM16 to ALAW Test for memory leaks
7887 * @test Req. under test REQ172.11
7889 TVerdict CTest_MMF_ACOD_U_0187::DoTestStepL()
7891 const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
7892 TBool testOK = EFalse;
7893 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
7897 INFO_PRINTF2(_L("Test left with status %d"), err);
7902 INFO_PRINTF1(_L("Test failed"));
7909 //------------------------------------------------------------------
7915 CTest_MMF_ACOD_U_0188::CTest_MMF_ACOD_U_0188()
7917 // store the name of this test case
7918 // this is the name that is used by the script file
7919 // Each test step initialises it's own name
7920 iTestStepName = _L("MM-MMF-ACOD-U-0188-HP");
7924 * PCM16 to ALAW Test for memory scribbles
7925 * @test Req. under test REQ172.11
7927 TVerdict CTest_MMF_ACOD_U_0188::DoTestStepL()
7929 // const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
7930 TBool testOK = EFalse;
7931 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
7932 TInt err = KErrNone ;
7935 INFO_PRINTF2(_L("Test left with status %d"), err);
7940 INFO_PRINTF1(_L("Test failed"));
7947 //------------------------------------------------------------------
7952 CTest_MMF_ACOD_U_0189::CTest_MMF_ACOD_U_0189()
7954 // store the name of this test case
7955 // this is the name that is used by the script file
7956 // Each test step initialises it's own name
7957 iTestStepName = _L("MM-MMF-ACOD-U-0189-HP");
7959 for (TUint i=0; i<5; i++)
7961 iExpectedSrcBytesProcessed[i] = 0;
7962 iExpectedDstBytesAdded[i] = 0;
7963 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
7968 * PCM8 To PCM16 Pass in zero sized source buffer
7969 * @test Req. under test REQ172.6.4, REQ172.6.5
7971 TVerdict CTest_MMF_ACOD_U_0189::DoTestStepL()
7973 // const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
7974 TBool testOK = EFalse;
7975 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM8ToPCM16OptimumDst));
7976 TInt err = KErrNone;
7979 INFO_PRINTF2(_L("Test left with status %d"), err);
7984 INFO_PRINTF1(_L("Test failed"));
7991 //------------------------------------------------------------------
7996 CTest_MMF_ACOD_U_0190::CTest_MMF_ACOD_U_0190()
7998 // store the name of this test case
7999 // this is the name that is used by the script file
8000 // Each test step initialises it's own name
8001 iTestStepName = _L("MM-MMF-ACOD-U-0190-HP");
8003 iExpectedLeaveErrorCode = KErrArgument;
8007 * PCM8 To PCM16 Pass in zero sized destination buffer
8008 * @test Req. under test REQ172.6.4, REQ172.6.5
8010 TVerdict CTest_MMF_ACOD_U_0190::DoTestStepL()
8012 // const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
8013 TBool testOK = EFalse;
8014 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM8ToPCM16OptimumSrc, 0));
8015 TInt err = KErrNone;
8018 INFO_PRINTF2(_L("Test left with status %d"), err);
8023 INFO_PRINTF1(_L("Test failed"));
8030 //------------------------------------------------------------------
8035 CTest_MMF_ACOD_U_0191::CTest_MMF_ACOD_U_0191()
8037 // store the name of this test case
8038 // this is the name that is used by the script file
8039 // Each test step initialises it's own name
8040 iTestStepName = _L("MM-MMF-ACOD-U-0191-HP");
8044 * PCM8 To PCM16 Test out of memory
8045 * @test Req. under test REQ172.11
8047 TVerdict CTest_MMF_ACOD_U_0191::DoTestStepL()
8049 const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
8050 TBool testOK = EFalse;
8052 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
8053 TInt err = KErrNone ;
8054 if (err==KErrNone && testOK)
8055 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
8059 INFO_PRINTF2(_L("Test left with status %d"), err);
8064 INFO_PRINTF1(_L("Test failed"));
8071 //------------------------------------------------------------------
8077 CTest_MMF_ACOD_U_0192::CTest_MMF_ACOD_U_0192()
8079 // store the name of this test case
8080 // this is the name that is used by the script file
8081 // Each test step initialises it's own name
8082 iTestStepName = _L("MM-MMF-ACOD-U-0192-HP");
8086 * PCM8 To PCM16 Test for memory leaks
8087 * @test Req. under test REQ172.11
8089 TVerdict CTest_MMF_ACOD_U_0192::DoTestStepL()
8091 const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
8092 TBool testOK = EFalse;
8093 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
8097 INFO_PRINTF2(_L("Test left with status %d"), err);
8102 INFO_PRINTF1(_L("Test failed"));
8109 //------------------------------------------------------------------
8115 CTest_MMF_ACOD_U_0193::CTest_MMF_ACOD_U_0193()
8117 // store the name of this test case
8118 // this is the name that is used by the script file
8119 // Each test step initialises it's own name
8120 iTestStepName = _L("MM-MMF-ACOD-U-0193-HP");
8124 * PCM8 To PCM16 Test for memory scribbles
8125 * @test Req. under test REQ172.11
8127 TVerdict CTest_MMF_ACOD_U_0193::DoTestStepL()
8129 // const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
8130 TBool testOK = EFalse;
8131 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
8132 TInt err = KErrNone;
8136 INFO_PRINTF2(_L("Test left with status %d"), err);
8141 INFO_PRINTF1(_L("Test failed"));
8148 //------------------------------------------------------------------
8153 CTest_MMF_ACOD_U_0194::CTest_MMF_ACOD_U_0194()
8155 // store the name of this test case
8156 // this is the name that is used by the script file
8157 // Each test step initialises it's own name
8158 iTestStepName = _L("MM-MMF-ACOD-U-0194-HP");
8160 for (TUint i=0; i<5; i++)
8162 iExpectedSrcBytesProcessed[i] = 0;
8163 iExpectedDstBytesAdded[i] = 0;
8164 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
8169 * PCM16 to PCM8 Pass in zero sized source buffer
8170 * @test Req. under test REQ172.6.4, REQ172.6.5
8172 TVerdict CTest_MMF_ACOD_U_0194::DoTestStepL()
8174 //const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
8175 TBool testOK = EFalse;
8176 //TRAPD(err, testOK = TestProcessLLoopTInt err = KErrNone;FiveTimesL(codecUid, 0, KPCM16ToPCM8OptimumDst));
8177 TInt err = KErrNone;
8180 INFO_PRINTF2(_L("Test left with status %d"), err);
8185 INFO_PRINTF1(_L("Test failed"));
8192 //------------------------------------------------------------------
8197 CTest_MMF_ACOD_U_0195::CTest_MMF_ACOD_U_0195()
8199 // store the name of this test case
8200 // this is the name that is used by the script file
8201 // Each test step initialises it's own name
8202 iTestStepName = _L("MM-MMF-ACOD-U-0195-HP");
8204 iExpectedLeaveErrorCode = KErrArgument;
8208 * PCM16 to PCM8 Pass in zero sized destination buffer
8209 * @test Req. under test REQ172.6.4, REQ172.6.5
8211 TVerdict CTest_MMF_ACOD_U_0195::DoTestStepL()
8213 //const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
8214 TBool testOK = EFalse;
8215 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM8OptimumSrc, 0));
8216 TInt err = KErrNone;
8219 INFO_PRINTF2(_L("Test left with status %d"), err);
8224 INFO_PRINTF1(_L("Test failed"));
8231 //------------------------------------------------------------------
8236 CTest_MMF_ACOD_U_0196::CTest_MMF_ACOD_U_0196()
8238 // store the name of this test case
8239 // this is the name that is used by the script file
8240 // Each test step initialises it's own name
8241 iTestStepName = _L("MM-MMF-ACOD-U-0196-HP");
8245 * PCM16 to PCM8 Test out of memory
8246 * @test Req. under test REQ172.11
8248 TVerdict CTest_MMF_ACOD_U_0196::DoTestStepL()
8250 const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
8251 TBool testOK = EFalse;
8253 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
8254 TInt err = KErrNone;
8256 if (err==KErrNone && testOK)
8257 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
8261 INFO_PRINTF2(_L("Test left with status %d"), err);
8266 INFO_PRINTF1(_L("Test failed"));
8273 //------------------------------------------------------------------
8279 CTest_MMF_ACOD_U_0197::CTest_MMF_ACOD_U_0197()
8281 // store the name of this test case
8282 // this is the name that is used by the script file
8283 // Each test step initialises it's own name
8284 iTestStepName = _L("MM-MMF-ACOD-U-0197-HP");
8288 * PCM16 to PCM8 Test for memory leaks
8289 * @test Req. under test REQ172.11
8291 TVerdict CTest_MMF_ACOD_U_0197::DoTestStepL()
8293 //const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
8294 TBool testOK = EFalse;
8295 //TRAPD(err, testOK = TestMemoryLeakL(codecUid));
8296 TInt err = KErrNone;
8299 INFO_PRINTF2(_L("Test left with status %d"), err);
8304 INFO_PRINTF1(_L("Test failed"));
8311 //------------------------------------------------------------------
8317 CTest_MMF_ACOD_U_0198::CTest_MMF_ACOD_U_0198()
8319 // store the name of this test case
8320 // this is the name that is used by the script file
8321 // Each test step initialises it's own name
8322 iTestStepName = _L("MM-MMF-ACOD-U-0198-HP");
8326 * PCM16 to PCM8 Test for memory scribbles
8327 * @test Req. under test REQ172.11
8329 TVerdict CTest_MMF_ACOD_U_0198::DoTestStepL()
8331 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
8332 TBool testOK = EFalse;
8333 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
8334 TInt err= KErrNone ;
8338 INFO_PRINTF2(_L("Test left with status %d"), err);
8343 INFO_PRINTF1(_L("Test failed"));
8350 //------------------------------------------------------------------
8355 CTest_MMF_ACOD_U_0199::CTest_MMF_ACOD_U_0199()
8357 // store the name of this test case
8358 // this is the name that is used by the script file
8359 // Each test step initialises it's own name
8360 iTestStepName = _L("MM-MMF-ACOD-U-0199-HP");
8362 for (TUint i=0; i<5; i++)
8364 iExpectedSrcBytesProcessed[i] = 0;
8365 iExpectedDstBytesAdded[i] = 0;
8366 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
8371 * Swap Endian Pass in zero sized source buffer
8372 * @test Req. under test REQ172.6.4, REQ172.6.5
8374 TVerdict CTest_MMF_ACOD_U_0199::DoTestStepL()
8376 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
8377 //const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
8378 TBool testOK = EFalse;
8379 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToPCM16BOptimumDst));
8380 TInt err = KErrNone;
8383 INFO_PRINTF2(_L("Test left with status %d"), err);
8388 INFO_PRINTF1(_L("Test failed"));
8395 //------------------------------------------------------------------
8400 CTest_MMF_ACOD_U_0200::CTest_MMF_ACOD_U_0200()
8402 // store the name of this test case
8403 // this is the name that is used by the script file
8404 // Each test step initialises it's own name
8405 iTestStepName = _L("MM-MMF-ACOD-U-0200-HP");
8407 iExpectedLeaveErrorCode = KErrArgument;
8411 * Swap Endian Pass in zero sized destination buffer
8412 * @test Req. under test REQ172.6.4, REQ172.6.5
8414 TVerdict CTest_MMF_ACOD_U_0200::DoTestStepL()
8416 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
8417 //const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
8418 TBool testOK = EFalse;
8419 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM16BOptimumSrc, 0));
8420 TInt err = KErrNone;
8423 INFO_PRINTF2(_L("Test left with status %d"), err);
8428 INFO_PRINTF1(_L("Test failed"));
8435 //------------------------------------------------------------------
8440 CTest_MMF_ACOD_U_0201::CTest_MMF_ACOD_U_0201()
8442 // store the name of this test case
8443 // this is the name that is used by the script file
8444 // Each test step initialises it's own name
8445 iTestStepName = _L("MM-MMF-ACOD-U-0201-HP");
8449 * Swap Endian Test out of memory
8450 * @test Req. under test REQ172.11
8452 TVerdict CTest_MMF_ACOD_U_0201::DoTestStepL()
8454 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
8455 const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
8456 TBool testOK = EFalse;
8458 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
8459 TInt err = KErrNone ;
8460 if (err==KErrNone && testOK)
8461 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
8465 INFO_PRINTF2(_L("Test left with status %d"), err);
8470 INFO_PRINTF1(_L("Test failed"));
8477 //------------------------------------------------------------------
8483 CTest_MMF_ACOD_U_0202::CTest_MMF_ACOD_U_0202()
8485 // store the name of this test case
8486 // this is the name that is used by the script file
8487 // Each test step initialises it's own name
8488 iTestStepName = _L("MM-MMF-ACOD-U-0202-HP");
8492 * Swap Endian Test for memory leaks
8493 * @test Req. under test REQ172.11
8495 TVerdict CTest_MMF_ACOD_U_0202::DoTestStepL()
8497 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
8498 //const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
8499 TBool testOK = EFalse;
8500 //TRAPD(err, testOK = TestMemoryLeakL(codecUid));
8501 TInt err = KErrNone;
8504 INFO_PRINTF2(_L("Test left with status %d"), err);
8509 INFO_PRINTF1(_L("Test failed"));
8516 //------------------------------------------------------------------
8522 CTest_MMF_ACOD_U_0203::CTest_MMF_ACOD_U_0203()
8524 // store the name of this test case
8525 // this is the name that is used by the script file
8526 // Each test step initialises it's own name
8527 iTestStepName = _L("MM-MMF-ACOD-U-0203-HP");
8531 * Swap Endian Test for memory scribbles
8532 * @test Req. under test REQ172.11
8534 TVerdict CTest_MMF_ACOD_U_0203::DoTestStepL()
8536 //const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
8537 //const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
8538 TBool testOK = EFalse;
8539 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
8540 TInt err = KErrNone ;
8544 INFO_PRINTF2(_L("Test left with status %d"), err);
8549 INFO_PRINTF1(_L("Test failed"));
8556 //------------------------------------------------------------------
8561 CTest_MMF_ACOD_U_0204::CTest_MMF_ACOD_U_0204()
8563 // store the name of this test case
8564 // this is the name that is used by the script file
8565 // Each test step initialises it's own name
8566 iTestStepName = _L("MM-MMF-ACOD-U-0204-HP");
8568 for (TUint i=0; i<5; i++)
8570 iExpectedSrcBytesProcessed[i] = 0;
8571 iExpectedDstBytesAdded[i] = 0;
8572 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
8577 * PCM16 to PCMU16BE Pass in zero sized source buffer
8578 * @test Req. under test REQ172.6.4, REQ172.6.5
8580 TVerdict CTest_MMF_ACOD_U_0204::DoTestStepL()
8582 //const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
8583 TBool testOK = EFalse;
8584 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToPCMU16BOptimumDst));
8585 TInt err = KErrNone;
8588 INFO_PRINTF2(_L("Test left with status %d"), err);
8593 INFO_PRINTF1(_L("Test failed"));
8600 //------------------------------------------------------------------
8605 CTest_MMF_ACOD_U_0205::CTest_MMF_ACOD_U_0205()
8607 // store the name of this test case
8608 // this is the name that is used by the script file
8609 // Each test step initialises it's own name
8610 iTestStepName = _L("MM-MMF-ACOD-U-0205-HP");
8612 iExpectedLeaveErrorCode = KErrArgument;
8616 * PCM16 to PCMU16BE Pass in zero sized destination buffer
8617 * @test Req. under test REQ172.6.4, REQ172.6.5
8619 TVerdict CTest_MMF_ACOD_U_0205::DoTestStepL()
8621 //const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
8622 TBool testOK = EFalse;
8623 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16BOptimumSrc, 0));
8624 TInt err = KErrNone;
8627 INFO_PRINTF2(_L("Test left with status %d"), err);
8632 INFO_PRINTF1(_L("Test failed"));
8639 //------------------------------------------------------------------
8644 CTest_MMF_ACOD_U_0206::CTest_MMF_ACOD_U_0206()
8646 // store the name of this test case
8647 // this is the name that is used by the script file
8648 // Each test step initialises it's own name
8649 iTestStepName = _L("MM-MMF-ACOD-U-0206-HP");
8653 * PCM16 to PCMU16BE Test out of memory
8654 * @test Req. under test REQ172.11
8656 TVerdict CTest_MMF_ACOD_U_0206::DoTestStepL()
8658 const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
8659 TBool testOK = EFalse;
8661 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
8662 TInt err = KErrNone ;
8663 if (err==KErrNone && testOK)
8664 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
8668 INFO_PRINTF2(_L("Test left with status %d"), err);
8673 INFO_PRINTF1(_L("Test failed"));
8680 //------------------------------------------------------------------
8686 CTest_MMF_ACOD_U_0207::CTest_MMF_ACOD_U_0207()
8688 // store the name of this test case
8689 // this is the name that is used by the script file
8690 // Each test step initialises it's own name
8691 iTestStepName = _L("MM-MMF-ACOD-U-0207-HP");
8695 * PCM16 to PCMU16BE Test for memory leaks
8696 * @test Req. under test REQ172.11
8698 TVerdict CTest_MMF_ACOD_U_0207::DoTestStepL()
8700 const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
8701 TBool testOK = EFalse;
8702 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
8706 INFO_PRINTF2(_L("Test left with status %d"), err);
8711 INFO_PRINTF1(_L("Test failed"));
8718 //------------------------------------------------------------------
8724 CTest_MMF_ACOD_U_0208::CTest_MMF_ACOD_U_0208()
8726 // store the name of this test case
8727 // this is the name that is used by the script file
8728 // Each test step initialises it's own name
8729 iTestStepName = _L("MM-MMF-ACOD-U-0208-HP");
8733 * PCM16 to PCMU16BE Test for memory scribbles
8734 * @test Req. under test REQ172.11
8736 TVerdict CTest_MMF_ACOD_U_0208::DoTestStepL()
8738 // const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
8739 TBool testOK = EFalse;
8740 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
8741 TInt err = KErrNone ;
8745 INFO_PRINTF2(_L("Test left with status %d"), err);
8750 INFO_PRINTF1(_L("Test failed"));
8757 //------------------------------------------------------------------
8762 CTest_MMF_ACOD_U_0209::CTest_MMF_ACOD_U_0209()
8764 // store the name of this test case
8765 // this is the name that is used by the script file
8766 // Each test step initialises it's own name
8767 iTestStepName = _L("MM-MMF-ACOD-U-0209-HP");
8769 for (TUint i=0; i<5; i++)
8771 iExpectedSrcBytesProcessed[i] = 0;
8772 iExpectedDstBytesAdded[i] = 0;
8773 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
8778 * PCM16 to PCMU16 Pass in zero sized source buffer
8779 * @test Req. under test REQ172.6.4, REQ172.6.5
8781 TVerdict CTest_MMF_ACOD_U_0209::DoTestStepL()
8783 //const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
8784 TBool testOK = EFalse;
8785 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToPCMU16OptimumDst));
8786 TInt err = KErrNone;
8789 INFO_PRINTF2(_L("Test left with status %d"), err);
8794 INFO_PRINTF1(_L("Test failed"));
8801 //------------------------------------------------------------------
8806 CTest_MMF_ACOD_U_0210::CTest_MMF_ACOD_U_0210()
8808 // store the name of this test case
8809 // this is the name that is used by the script file
8810 // Each test step initialises it's own name
8811 iTestStepName = _L("MM-MMF-ACOD-U-0210-HP");
8813 iExpectedLeaveErrorCode = KErrArgument;
8817 * PCM16 to PCMU16 Pass in zero sized destination buffer
8818 * @test Req. under test REQ172.6.4, REQ172.6.5
8820 TVerdict CTest_MMF_ACOD_U_0210::DoTestStepL()
8822 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
8823 TBool testOK = EFalse;
8824 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16OptimumSrc, 0));
8825 TInt err = KErrNone;
8828 INFO_PRINTF2(_L("Test left with status %d"), err);
8833 INFO_PRINTF1(_L("Test failed"));
8840 //------------------------------------------------------------------
8845 CTest_MMF_ACOD_U_0211::CTest_MMF_ACOD_U_0211()
8847 // store the name of this test case
8848 // this is the name that is used by the script file
8849 // Each test step initialises it's own name
8850 iTestStepName = _L("MM-MMF-ACOD-U-0211-HP");
8854 * PCM16 to PCMU16 Test out of memory
8855 * @test Req. under test REQ172.11
8857 TVerdict CTest_MMF_ACOD_U_0211::DoTestStepL()
8859 const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
8860 TBool testOK = EFalse;
8862 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
8863 TInt err = KErrNone ;
8864 if (err==KErrNone && testOK)
8865 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
8869 INFO_PRINTF2(_L("Test left with status %d"), err);
8874 INFO_PRINTF1(_L("Test failed"));
8881 //------------------------------------------------------------------
8887 CTest_MMF_ACOD_U_0212::CTest_MMF_ACOD_U_0212()
8889 // store the name of this test case
8890 // this is the name that is used by the script file
8891 // Each test step initialises it's own name
8892 iTestStepName = _L("MM-MMF-ACOD-U-0212-HP");
8896 * PCM16 to PCMU16 Test for memory leaks
8897 * @test Req. under test REQ172.11
8899 TVerdict CTest_MMF_ACOD_U_0212::DoTestStepL()
8901 const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
8902 TBool testOK = EFalse;
8903 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
8907 INFO_PRINTF2(_L("Test left with status %d"), err);
8912 INFO_PRINTF1(_L("Test failed"));
8919 //------------------------------------------------------------------
8925 CTest_MMF_ACOD_U_0213::CTest_MMF_ACOD_U_0213()
8927 // store the name of this test case
8928 // this is the name that is used by the script file
8929 // Each test step initialises it's own name
8930 iTestStepName = _L("MM-MMF-ACOD-U-0213-HP");
8934 * PCM16 to PCMU16 Test for memory scribbles
8935 * @test Req. under test REQ172.11
8937 TVerdict CTest_MMF_ACOD_U_0213::DoTestStepL()
8939 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
8940 TBool testOK = EFalse;
8941 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
8942 TInt err = KErrNone;
8946 INFO_PRINTF2(_L("Test left with status %d"), err);
8951 INFO_PRINTF1(_L("Test failed"));
8958 //------------------------------------------------------------------
8962 CTest_MMF_ACOD_U_0214::CTest_MMF_ACOD_U_0214()
8964 // store the name of this test case
8965 // this is the name that is used by the script file
8966 // Each test step initialises it's own name
8967 iTestStepName = _L("MM-MMF-ACOD-U-0214-HP");
8969 for (TUint i=0; i<5; i++)
8971 iExpectedSrcBytesProcessed[i] = 0;
8972 iExpectedDstBytesAdded[i] = 0;
8973 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
8978 * PCM16 to PCMU8 Pass in zero sized source buffer
8979 * @test Req. under test REQ172.6.4, REQ172.6.5
8981 TVerdict CTest_MMF_ACOD_U_0214::DoTestStepL()
8983 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
8984 TBool testOK = EFalse;
8985 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToPCMU8OptimumDst));
8986 TInt err = KErrNone;
8989 INFO_PRINTF2(_L("Test left with status %d"), err);
8994 INFO_PRINTF1(_L("Test failed"));
9001 //------------------------------------------------------------------
9006 CTest_MMF_ACOD_U_0215::CTest_MMF_ACOD_U_0215()
9008 // store the name of this test case
9009 // this is the name that is used by the script file
9010 // Each test step initialises it's own name
9011 iTestStepName = _L("MM-MMF-ACOD-U-0215-HP");
9013 iExpectedLeaveErrorCode = KErrArgument;
9017 * PCM16 to PCMU8 Pass in zero sized destination buffer
9018 * @test Req. under test REQ172.6.4, REQ172.6.5
9020 TVerdict CTest_MMF_ACOD_U_0215::DoTestStepL()
9022 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
9023 TBool testOK = EFalse;
9024 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU8OptimumSrc, 0));
9025 TInt err = KErrNone;
9028 INFO_PRINTF2(_L("Test left with status %d"), err);
9033 INFO_PRINTF1(_L("Test failed"));
9040 //------------------------------------------------------------------
9045 CTest_MMF_ACOD_U_0216::CTest_MMF_ACOD_U_0216()
9047 // store the name of this test case
9048 // this is the name that is used by the script file
9049 // Each test step initialises it's own name
9050 iTestStepName = _L("MM-MMF-ACOD-U-0216-HP");
9054 * PCM16 to PCMU8 Test out of memory
9055 * @test Req. under test REQ172.11
9057 TVerdict CTest_MMF_ACOD_U_0216::DoTestStepL()
9059 const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
9060 TBool testOK = EFalse;
9062 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
9063 TInt err = KErrNone ;
9064 if (err==KErrNone && testOK)
9065 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
9069 INFO_PRINTF2(_L("Test left with status %d"), err);
9074 INFO_PRINTF1(_L("Test failed"));
9081 //------------------------------------------------------------------
9087 CTest_MMF_ACOD_U_0217::CTest_MMF_ACOD_U_0217()
9089 // store the name of this test case
9090 // this is the name that is used by the script file
9091 // Each test step initialises it's own name
9092 iTestStepName = _L("MM-MMF-ACOD-U-0217-HP");
9096 * PCM16 to PCMU8 Test for memory leaks
9097 * @test Req. under test REQ172.11
9099 TVerdict CTest_MMF_ACOD_U_0217::DoTestStepL()
9101 const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
9102 TBool testOK = EFalse;
9103 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
9107 INFO_PRINTF2(_L("Test left with status %d"), err);
9112 INFO_PRINTF1(_L("Test failed"));
9119 //------------------------------------------------------------------
9125 CTest_MMF_ACOD_U_0218::CTest_MMF_ACOD_U_0218()
9127 // store the name of this test case
9128 // this is the name that is used by the script file
9129 // Each test step initialises it's own name
9130 iTestStepName = _L("MM-MMF-ACOD-U-0218-HP");
9134 * PCM16 to PCMU8 Test for memory scribbles
9135 * @test Req. under test REQ172.11
9137 TVerdict CTest_MMF_ACOD_U_0218::DoTestStepL()
9139 // const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
9140 TBool testOK = EFalse;
9141 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
9142 TInt err = KErrNone ;
9146 INFO_PRINTF2(_L("Test left with status %d"), err);
9151 INFO_PRINTF1(_L("Test failed"));
9158 //------------------------------------------------------------------
9163 CTest_MMF_ACOD_U_0219::CTest_MMF_ACOD_U_0219()
9165 // store the name of this test case
9166 // this is the name that is used by the script file
9167 // Each test step initialises it's own name
9168 iTestStepName = _L("MM-MMF-ACOD-U-0219-HP");
9170 for (TUint i=0; i<5; i++)
9172 iExpectedSrcBytesProcessed[i] = 0;
9173 iExpectedDstBytesAdded[i] = 0;
9174 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
9179 * PCMU16BE to PCM16 Pass in zero sized source buffer
9180 * @test Req. under test REQ172.6.4, REQ172.6.5
9182 TVerdict CTest_MMF_ACOD_U_0219::DoTestStepL()
9184 // const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
9185 TBool testOK = EFalse;
9186 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCMU16BToPCM16OptimumDst));
9187 TInt err = KErrNone;
9190 INFO_PRINTF2(_L("Test left with status %d"), err);
9195 INFO_PRINTF1(_L("Test failed"));
9202 //------------------------------------------------------------------
9207 CTest_MMF_ACOD_U_0220::CTest_MMF_ACOD_U_0220()
9209 // store the name of this test case
9210 // this is the name that is used by the script file
9211 // Each test step initialises it's own name
9212 iTestStepName = _L("MM-MMF-ACOD-U-0220-HP");
9214 iExpectedLeaveErrorCode = KErrArgument;
9218 * PCMU16BE to PCM16 Pass in zero sized destination buffer
9219 * @test Req. under test REQ172.6.4, REQ172.6.5
9221 TVerdict CTest_MMF_ACOD_U_0220::DoTestStepL()
9223 // const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
9224 TBool testOK = EFalse;
9225 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16BToPCM16OptimumSrc, 0));
9226 TInt err = KErrNone;
9229 INFO_PRINTF2(_L("Test left with status %d"), err);
9234 INFO_PRINTF1(_L("Test failed"));
9241 //------------------------------------------------------------------
9246 CTest_MMF_ACOD_U_0221::CTest_MMF_ACOD_U_0221()
9248 // store the name of this test case
9249 // this is the name that is used by the script file
9250 // Each test step initialises it's own name
9251 iTestStepName = _L("MM-MMF-ACOD-U-0221-HP");
9255 * PCMU16BE to PCM16 Test out of memory
9256 * @test Req. under test REQ172.11
9258 TVerdict CTest_MMF_ACOD_U_0221::DoTestStepL()
9260 // const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
9261 TBool testOK = EFalse;
9263 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
9264 TInt err = KErrNone;
9266 // if (err==KErrNone && testOK)
9267 // TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
9271 INFO_PRINTF2(_L("Test left with status %d"), err);
9276 INFO_PRINTF1(_L("Test failed"));
9283 //------------------------------------------------------------------
9289 CTest_MMF_ACOD_U_0222::CTest_MMF_ACOD_U_0222()
9291 // store the name of this test case
9292 // this is the name that is used by the script file
9293 // Each test step initialises it's own name
9294 iTestStepName = _L("MM-MMF-ACOD-U-0222-HP");
9298 * PCMU16BE to PCM16 Test for memory leaks
9299 * @test Req. under test REQ172.11
9301 TVerdict CTest_MMF_ACOD_U_0222::DoTestStepL()
9303 const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
9304 TBool testOK = EFalse;
9305 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
9309 INFO_PRINTF2(_L("Test left with status %d"), err);
9314 INFO_PRINTF1(_L("Test failed"));
9321 //------------------------------------------------------------------
9327 CTest_MMF_ACOD_U_0223::CTest_MMF_ACOD_U_0223()
9329 // store the name of this test case
9330 // this is the name that is used by the script file
9331 // Each test step initialises it's own name
9332 iTestStepName = _L("MM-MMF-ACOD-U-0223-HP");
9336 * PCMU16BE to PCM16 Test for memory scribbles
9337 * @test Req. under test REQ172.11
9339 TVerdict CTest_MMF_ACOD_U_0223::DoTestStepL()
9341 // const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
9342 TBool testOK = EFalse;
9343 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
9344 TInt err = KErrNone ;
9347 INFO_PRINTF2(_L("Test left with status %d"), err);
9352 INFO_PRINTF1(_L("Test failed"));
9359 //------------------------------------------------------------------
9364 CTest_MMF_ACOD_U_0224::CTest_MMF_ACOD_U_0224()
9366 // store the name of this test case
9367 // this is the name that is used by the script file
9368 // Each test step initialises it's own name
9369 iTestStepName = _L("MM-MMF-ACOD-U-0224-HP");
9371 for (TUint i=0; i<5; i++)
9373 iExpectedSrcBytesProcessed[i] = 0;
9374 iExpectedDstBytesAdded[i] = 0;
9375 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
9380 * PCMU16 to PCM16 Pass in zero sized source buffer
9381 * @test Req. under test REQ172.6.4, REQ172.6.5
9383 TVerdict CTest_MMF_ACOD_U_0224::DoTestStepL()
9385 // const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
9386 TBool testOK = EFalse;
9387 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCMU16ToPCM16OptimumDst));
9388 TInt err = KErrNone;
9391 INFO_PRINTF2(_L("Test left with status %d"), err);
9396 INFO_PRINTF1(_L("Test failed"));
9403 //------------------------------------------------------------------
9408 CTest_MMF_ACOD_U_0225::CTest_MMF_ACOD_U_0225()
9410 // store the name of this test case
9411 // this is the name that is used by the script file
9412 // Each test step initialises it's own name
9413 iTestStepName = _L("MM-MMF-ACOD-U-0225-HP");
9415 iExpectedLeaveErrorCode = KErrArgument;
9419 * PCMU16 to PCM16 Pass in zero sized destination buffer
9420 * @test Req. under test REQ172.6.4, REQ172.6.5
9422 TVerdict CTest_MMF_ACOD_U_0225::DoTestStepL()
9424 // const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
9425 TBool testOK = EFalse;
9426 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16ToPCM16OptimumSrc, 0));
9427 TInt err = KErrNone;
9430 INFO_PRINTF2(_L("Test left with status %d"), err);
9435 INFO_PRINTF1(_L("Test failed"));
9442 //------------------------------------------------------------------
9447 CTest_MMF_ACOD_U_0226::CTest_MMF_ACOD_U_0226()
9449 // store the name of this test case
9450 // this is the name that is used by the script file
9451 // Each test step initialises it's own name
9452 iTestStepName = _L("MM-MMF-ACOD-U-0226-HP");
9456 * PCMU16 to PCM16 Test out of memory
9457 * @test Req. under test REQ172.11
9459 TVerdict CTest_MMF_ACOD_U_0226::DoTestStepL()
9461 const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
9462 TBool testOK = EFalse;
9464 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
9465 // if (err==KErrNone && testOK)
9466 TInt err = KErrNone ;
9467 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
9473 INFO_PRINTF2(_L("Test left with status %d"), err);
9478 INFO_PRINTF1(_L("Test failed"));
9485 //------------------------------------------------------------------
9490 CTest_MMF_ACOD_U_0227::CTest_MMF_ACOD_U_0227()
9492 // store the name of this test case
9493 // this is the name that is used by the script file
9494 // Each test step initialises it's own name
9495 iTestStepName = _L("MM-MMF-ACOD-U-0227-HP");
9499 * PCMU16 to PCM16 Test for memory leaks
9500 * @test Req. under test REQ172.11
9502 TVerdict CTest_MMF_ACOD_U_0227::DoTestStepL()
9504 const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
9505 TBool testOK = EFalse;
9506 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
9510 INFO_PRINTF2(_L("Test left with status %d"), err);
9515 INFO_PRINTF1(_L("Test failed"));
9522 //------------------------------------------------------------------
9527 CTest_MMF_ACOD_U_0228::CTest_MMF_ACOD_U_0228()
9529 // store the name of this test case
9530 // this is the name that is used by the script file
9531 // Each test step initialises it's own name
9532 iTestStepName = _L("MM-MMF-ACOD-U-0228-HP");
9536 * PCMU16 to PCM16 Test for memory scribbles
9537 * @test Req. under test REQ172.11
9539 TVerdict CTest_MMF_ACOD_U_0228::DoTestStepL()
9541 // const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
9542 TBool testOK = EFalse;
9543 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
9544 TInt err = KErrNone;
9547 INFO_PRINTF2(_L("Test left with status %d"), err);
9552 INFO_PRINTF1(_L("Test failed"));
9559 //------------------------------------------------------------------
9564 CTest_MMF_ACOD_U_0229::CTest_MMF_ACOD_U_0229()
9566 // store the name of this test case
9567 // this is the name that is used by the script file
9568 // Each test step initialises it's own name
9569 iTestStepName = _L("MM-MMF-ACOD-U-0229-HP");
9571 for (TUint i=0; i<5; i++)
9573 iExpectedSrcBytesProcessed[i] = 0;
9574 iExpectedDstBytesAdded[i] = 0;
9575 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
9580 * PCMU8 To PCM16 Pass in zero sized source buffer
9581 * @test Req. under test REQ172.6.4, REQ172.6.5
9583 TVerdict CTest_MMF_ACOD_U_0229::DoTestStepL()
9585 // const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
9586 TBool testOK = EFalse;
9587 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCMU8ToPCM16OptimumDst));
9588 TInt err = KErrNone;
9591 INFO_PRINTF2(_L("Test left with status %d"), err);
9596 INFO_PRINTF1(_L("Test failed"));
9603 //------------------------------------------------------------------
9608 CTest_MMF_ACOD_U_0230::CTest_MMF_ACOD_U_0230()
9610 // store the name of this test case
9611 // this is the name that is used by the script file
9612 // Each test step initialises it's own name
9613 iTestStepName = _L("MM-MMF-ACOD-U-0230-HP");
9615 iExpectedLeaveErrorCode = KErrArgument;
9619 * PCMU8 To PCM16 Pass in zero sized destination buffer
9620 * @test Req. under test REQ172.6.4, REQ172.6.5
9622 TVerdict CTest_MMF_ACOD_U_0230::DoTestStepL()
9624 // const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
9625 TBool testOK = EFalse;
9626 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU8ToPCM16OptimumSrc, 0));
9627 TInt err = KErrNone;
9630 INFO_PRINTF2(_L("Test left with status %d"), err);
9635 INFO_PRINTF1(_L("Test failed"));
9642 //------------------------------------------------------------------
9647 CTest_MMF_ACOD_U_0231::CTest_MMF_ACOD_U_0231()
9649 // store the name of this test case
9650 // this is the name that is used by the script file
9651 // Each test step initialises it's own name
9652 iTestStepName = _L("MM-MMF-ACOD-U-0231-HP");
9656 * PCMU8 To PCM16 Test out of memory
9657 * @test Req. under test REQ172.11
9659 TVerdict CTest_MMF_ACOD_U_0231::DoTestStepL()
9661 const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
9662 TBool testOK = EFalse;
9664 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
9665 TInt err = KErrNone ;
9666 if (err==KErrNone && testOK)
9667 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
9671 INFO_PRINTF2(_L("Test left with status %d"), err);
9676 INFO_PRINTF1(_L("Test failed"));
9683 //------------------------------------------------------------------
9689 CTest_MMF_ACOD_U_0232::CTest_MMF_ACOD_U_0232()
9691 // store the name of this test case
9692 // this is the name that is used by the script file
9693 // Each test step initialises it's own name
9694 iTestStepName = _L("MM-MMF-ACOD-U-0232-HP");
9698 * PCMU8 To PCM16 Test for memory leaks
9699 * @test Req. under test REQ172.11
9701 TVerdict CTest_MMF_ACOD_U_0232::DoTestStepL()
9703 const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
9704 TBool testOK = EFalse;
9705 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
9709 INFO_PRINTF2(_L("Test left with status %d"), err);
9714 INFO_PRINTF1(_L("Test failed"));
9721 //------------------------------------------------------------------
9727 CTest_MMF_ACOD_U_0233::CTest_MMF_ACOD_U_0233()
9729 // store the name of this test case
9730 // this is the name that is used by the script file
9731 // Each test step initialises it's own name
9732 iTestStepName = _L("MM-MMF-ACOD-U-0233-HP");
9736 * PCMU8 To PCM16 Test for memory scribbles
9737 * @test Req. under test REQ172.11
9739 TVerdict CTest_MMF_ACOD_U_0233::DoTestStepL()
9741 // const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
9742 TBool testOK = EFalse;
9743 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
9744 TInt err = KErrNone ;
9747 INFO_PRINTF2(_L("Test left with status %d"), err);
9752 INFO_PRINTF1(_L("Test failed"));
9759 //------------------------------------------------------------------
9764 CTest_MMF_ACOD_U_0234::CTest_MMF_ACOD_U_0234()
9766 // store the name of this test case
9767 // this is the name that is used by the script file
9768 // Each test step initialises it's own name
9769 iTestStepName = _L("MM-MMF-ACOD-U-0234-HP");
9771 for (TUint i=0; i<5; i++)
9773 iExpectedSrcBytesProcessed[i] = 0;
9774 iExpectedDstBytesAdded[i] = 0;
9775 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
9780 * MULAW To PCM16 Pass in zero sized source buffer
9781 * @test Req. under test REQ172.6.4, REQ172.6.5
9783 TVerdict CTest_MMF_ACOD_U_0234::DoTestStepL()
9785 // const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
9786 TBool testOK = EFalse;
9787 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KMulawToPCM16OptimumDst));
9788 TInt err = KErrNone;
9791 INFO_PRINTF2(_L("Test left with status %d"), err);
9796 INFO_PRINTF1(_L("Test failed"));
9803 //------------------------------------------------------------------
9808 CTest_MMF_ACOD_U_0235::CTest_MMF_ACOD_U_0235()
9810 // store the name of this test case
9811 // this is the name that is used by the script file
9812 // Each test step initialises it's own name
9813 iTestStepName = _L("MM-MMF-ACOD-U-0235-HP");
9815 iExpectedLeaveErrorCode = KErrArgument;
9819 * MULAW To PCM16 Pass in zero sized destination buffer
9820 * @test Req. under test REQ172.6.4, REQ172.6.5
9822 TVerdict CTest_MMF_ACOD_U_0235::DoTestStepL()
9824 // const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
9825 TBool testOK = EFalse;
9826 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMulawToPCM16OptimumSrc, 0));
9827 TInt err = KErrNone;
9830 INFO_PRINTF2(_L("Test left with status %d"), err);
9835 INFO_PRINTF1(_L("Test failed"));
9842 //------------------------------------------------------------------
9847 CTest_MMF_ACOD_U_0236::CTest_MMF_ACOD_U_0236()
9849 // store the name of this test case
9850 // this is the name that is used by the script file
9851 // Each test step initialises it's own name
9852 iTestStepName = _L("MM-MMF-ACOD-U-0236-HP");
9856 * MULAW To PCM16 Test out of memory
9857 * @test Req. under test REQ172.11
9859 TVerdict CTest_MMF_ACOD_U_0236::DoTestStepL()
9861 // const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
9862 TBool testOK = EFalse;
9864 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
9865 TInt err = KErrNone ;
9866 //if (err==KErrNone && testOK)
9867 // TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
9871 INFO_PRINTF2(_L("Test left with status %d"), err);
9876 INFO_PRINTF1(_L("Test failed"));
9883 //------------------------------------------------------------------
9889 CTest_MMF_ACOD_U_0237::CTest_MMF_ACOD_U_0237()
9891 // store the name of this test case
9892 // this is the name that is used by the script file
9893 // Each test step initialises it's own name
9894 iTestStepName = _L("MM-MMF-ACOD-U-0237-HP");
9898 * MULAW To PCM16 Test for memory leaks
9899 * @test Req. under test REQ172.11
9901 TVerdict CTest_MMF_ACOD_U_0237::DoTestStepL()
9903 const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
9904 TBool testOK = EFalse;
9905 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
9909 INFO_PRINTF2(_L("Test left with status %d"), err);
9914 INFO_PRINTF1(_L("Test failed"));
9921 //------------------------------------------------------------------
9927 CTest_MMF_ACOD_U_0238::CTest_MMF_ACOD_U_0238()
9929 // store the name of this test case
9930 // this is the name that is used by the script file
9931 // Each test step initialises it's own name
9932 iTestStepName = _L("MM-MMF-ACOD-U-0238-HP");
9936 * MULAW To PCM16 Test for memory scribbles
9937 * @test Req. under test REQ172.11
9939 TVerdict CTest_MMF_ACOD_U_0238::DoTestStepL()
9941 // const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
9942 TBool testOK = EFalse;
9943 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
9944 TInt err = KErrNone;
9948 INFO_PRINTF2(_L("Test left with status %d"), err);
9953 INFO_PRINTF1(_L("Test failed"));
9960 //------------------------------------------------------------------
9965 CTest_MMF_ACOD_U_0239::CTest_MMF_ACOD_U_0239()
9967 // store the name of this test case
9968 // this is the name that is used by the script file
9969 // Each test step initialises it's own name
9970 iTestStepName = _L("MM-MMF-ACOD-U-0239-HP");
9972 for (TUint i=0; i<5; i++)
9974 iExpectedSrcBytesProcessed[i] = 0;
9975 iExpectedDstBytesAdded[i] = 0;
9976 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
9981 * PCM16 to MULAW Pass in zero sized source buffer
9982 * @test Req. under test REQ172.6.4, REQ172.6.5
9984 TVerdict CTest_MMF_ACOD_U_0239::DoTestStepL()
9986 // const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
9987 TBool testOK = EFalse;
9988 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToMulawOptimumDst));
9989 TInt err = KErrNone;
9992 INFO_PRINTF2(_L("Test left with status %d"), err);
9997 INFO_PRINTF1(_L("Test failed"));
10004 //------------------------------------------------------------------
10009 CTest_MMF_ACOD_U_0240::CTest_MMF_ACOD_U_0240()
10011 // store the name of this test case
10012 // this is the name that is used by the script file
10013 // Each test step initialises it's own name
10014 iTestStepName = _L("MM-MMF-ACOD-U-0240-HP");
10016 iExpectedLeaveErrorCode = KErrArgument;
10020 * PCM16 to MULAW Pass in zero sized destination buffer
10021 * @test Req. under test REQ172.6.4, REQ172.6.5
10023 TVerdict CTest_MMF_ACOD_U_0240::DoTestStepL()
10025 // const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
10026 TBool testOK = EFalse;
10027 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToMulawOptimumSrc, 0));
10028 TInt err = KErrNone;
10031 INFO_PRINTF2(_L("Test left with status %d"), err);
10036 INFO_PRINTF1(_L("Test failed"));
10043 //------------------------------------------------------------------
10048 CTest_MMF_ACOD_U_0241::CTest_MMF_ACOD_U_0241()
10050 // store the name of this test case
10051 // this is the name that is used by the script file
10052 // Each test step initialises it's own name
10053 iTestStepName = _L("MM-MMF-ACOD-U-0241-HP");
10057 * PCM16 to MULAW Test out of memory
10058 * @test Req. under test REQ172.11
10060 TVerdict CTest_MMF_ACOD_U_0241::DoTestStepL()
10062 const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
10063 TBool testOK = EFalse;
10065 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
10066 TInt err = KErrNone;
10067 if (err==KErrNone && testOK)
10068 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
10072 INFO_PRINTF2(_L("Test left with status %d"), err);
10077 INFO_PRINTF1(_L("Test failed"));
10084 //------------------------------------------------------------------
10090 CTest_MMF_ACOD_U_0242::CTest_MMF_ACOD_U_0242()
10092 // store the name of this test case
10093 // this is the name that is used by the script file
10094 // Each test step initialises it's own name
10095 iTestStepName = _L("MM-MMF-ACOD-U-0242-HP");
10099 * PCM16 to MULAW Test for memory leaks
10100 * @test Req. under test REQ172.11
10102 TVerdict CTest_MMF_ACOD_U_0242::DoTestStepL()
10104 const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
10105 TBool testOK = EFalse;
10106 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
10110 INFO_PRINTF2(_L("Test left with status %d"), err);
10115 INFO_PRINTF1(_L("Test failed"));
10122 //------------------------------------------------------------------
10128 CTest_MMF_ACOD_U_0243::CTest_MMF_ACOD_U_0243()
10130 // store the name of this test case
10131 // this is the name that is used by the script file
10132 // Each test step initialises it's own name
10133 iTestStepName = _L("MM-MMF-ACOD-U-0243-HP");
10137 * PCM16 to MULAW Test for memory scribbles
10138 * @test Req. under test REQ172.11
10140 TVerdict CTest_MMF_ACOD_U_0243::DoTestStepL()
10142 // const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
10143 TBool testOK = EFalse;
10144 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
10145 TInt err = KErrNone;
10148 INFO_PRINTF2(_L("Test left with status %d"), err);
10153 INFO_PRINTF1(_L("Test failed"));
10160 //------------------------------------------------------------------
10165 CTest_MMF_ACOD_U_0244::CTest_MMF_ACOD_U_0244()
10167 // store the name of this test case
10168 // this is the name that is used by the script file
10169 // Each test step initialises it's own name
10170 iTestStepName = _L("MM-MMF-ACOD-U-0244-HP");
10172 for (TUint i=0; i<5; i++)
10174 iExpectedSrcBytesProcessed[i] = 0;
10175 iExpectedDstBytesAdded[i] = 0;
10176 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
10181 * IMAD To PCM16 Pass in zero sized source buffer
10182 * @test Req. under test REQ172.6.4, REQ172.6.5
10184 TVerdict CTest_MMF_ACOD_U_0244::DoTestStepL()
10186 // const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
10187 TBool testOK = EFalse;
10188 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KAdpcmToPCM16OptimumDst));
10189 TInt err = KErrNone;
10192 INFO_PRINTF2(_L("Test left with status %d"), err);
10197 INFO_PRINTF1(_L("Test failed"));
10204 //------------------------------------------------------------------
10209 CTest_MMF_ACOD_U_0245::CTest_MMF_ACOD_U_0245()
10211 // store the name of this test case
10212 // this is the name that is used by the script file
10213 // Each test step initialises it's own name
10214 iTestStepName = _L("MM-MMF-ACOD-U-0245-HP");
10216 iExpectedLeaveErrorCode = KErrArgument;
10220 * IMAD To PCM16 Pass in zero sized destination buffer
10221 * @test Req. under test REQ172.6.4, REQ172.6.5
10223 TVerdict CTest_MMF_ACOD_U_0245::DoTestStepL()
10225 // const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
10226 TBool testOK = EFalse;
10227 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAdpcmToPCM16OptimumSrc, 0));
10228 TInt err = KErrNone;
10231 INFO_PRINTF2(_L("Test left with status %d"), err);
10236 INFO_PRINTF1(_L("Test failed"));
10243 //------------------------------------------------------------------
10248 CTest_MMF_ACOD_U_0246::CTest_MMF_ACOD_U_0246()
10250 // store the name of this test case
10251 // this is the name that is used by the script file
10252 // Each test step initialises it's own name
10253 iTestStepName = _L("MM-MMF-ACOD-U-0246-HP");
10257 * IMAD To PCM16 Test out of memory
10258 * @test Req. under test REQ172.11
10260 TVerdict CTest_MMF_ACOD_U_0246::DoTestStepL()
10262 const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
10263 TBool testOK = EFalse;
10265 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
10266 TInt err = KErrNone ;
10267 if (err==KErrNone && testOK)
10268 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
10272 INFO_PRINTF2(_L("Test left with status %d"), err);
10277 INFO_PRINTF1(_L("Test failed"));
10284 //------------------------------------------------------------------
10289 CTest_MMF_ACOD_U_0247::CTest_MMF_ACOD_U_0247()
10291 // store the name of this test case
10292 // this is the name that is used by the script file
10293 // Each test step initialises it's own name
10294 iTestStepName = _L("MM-MMF-ACOD-U-0247-HP");
10298 * IMAD To PCM16 Test for memory leaks
10299 * @test Req. under test REQ172.11
10301 TVerdict CTest_MMF_ACOD_U_0247::DoTestStepL()
10303 const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
10304 TBool testOK = EFalse;
10305 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
10309 INFO_PRINTF2(_L("Test left with status %d"), err);
10314 INFO_PRINTF1(_L("Test failed"));
10321 //------------------------------------------------------------------
10326 CTest_MMF_ACOD_U_0248::CTest_MMF_ACOD_U_0248()
10328 // store the name of this test case
10329 // this is the name that is used by the script file
10330 // Each test step initialises it's own name
10331 iTestStepName = _L("MM-MMF-ACOD-U-0248-HP");
10335 * IMAD To PCM16 Test for memory scribbles
10336 * @test Req. under test REQ172.11
10338 TVerdict CTest_MMF_ACOD_U_0248::DoTestStepL()
10340 // const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
10341 TBool testOK = EFalse;
10342 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
10343 TInt err = KErrNone;
10346 INFO_PRINTF2(_L("Test left with status %d"), err);
10351 INFO_PRINTF1(_L("Test failed"));
10358 //------------------------------------------------------------------
10363 CTest_MMF_ACOD_U_0249::CTest_MMF_ACOD_U_0249()
10365 // store the name of this test case
10366 // this is the name that is used by the script file
10367 // Each test step initialises it's own name
10368 iTestStepName = _L("MM-MMF-ACOD-U-0249-HP");
10370 for (TUint i=0; i<5; i++)
10372 iExpectedSrcBytesProcessed[i] = 0;
10373 iExpectedDstBytesAdded[i] = 0;
10374 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
10379 * PCM16 to IMAD Pass in zero sized source buffer
10380 * @test Req. under test REQ172.6.4, REQ172.6.5
10382 TVerdict CTest_MMF_ACOD_U_0249::DoTestStepL()
10384 // const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
10385 TBool testOK = EFalse;
10386 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToAdpcmOptimumDst));
10387 TInt err = KErrNone;
10390 INFO_PRINTF2(_L("Test left with status %d"), err);
10395 INFO_PRINTF1(_L("Test failed"));
10402 //------------------------------------------------------------------
10407 CTest_MMF_ACOD_U_0250::CTest_MMF_ACOD_U_0250()
10409 // store the name of this test case
10410 // this is the name that is used by the script file
10411 // Each test step initialises it's own name
10412 iTestStepName = _L("MM-MMF-ACOD-U-0250-HP");
10414 iExpectedLeaveErrorCode = KErrArgument;
10418 * PCM16 to IMAD Pass in zero sized destination buffer
10419 * @test Req. under test REQ172.6.4, REQ172.6.5
10421 TVerdict CTest_MMF_ACOD_U_0250::DoTestStepL()
10423 // const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
10424 TBool testOK = EFalse;
10425 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAdpcmOptimumSrc, 0));
10426 TInt err = KErrNone;
10429 INFO_PRINTF2(_L("Test left with status %d"), err);
10434 INFO_PRINTF1(_L("Test failed"));
10441 //------------------------------------------------------------------
10446 CTest_MMF_ACOD_U_0251::CTest_MMF_ACOD_U_0251()
10448 // store the name of this test case
10449 // this is the name that is used by the script file
10450 // Each test step initialises it's own name
10451 iTestStepName = _L("MM-MMF-ACOD-U-0251-HP");
10455 * PCM16 to IMAD Test out of memory
10456 * @test Req. under test REQ172.11
10458 TVerdict CTest_MMF_ACOD_U_0251::DoTestStepL()
10460 const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
10461 TBool testOK = EFalse;
10463 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
10464 TInt err = KErrNone;
10465 if (err==KErrNone && testOK)
10466 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
10470 INFO_PRINTF2(_L("Test left with status %d"), err);
10475 INFO_PRINTF1(_L("Test failed"));
10482 //------------------------------------------------------------------
10488 CTest_MMF_ACOD_U_0252::CTest_MMF_ACOD_U_0252()
10490 // store the name of this test case
10491 // this is the name that is used by the script file
10492 // Each test step initialises it's own name
10493 iTestStepName = _L("MM-MMF-ACOD-U-0252-HP");
10497 * PCM16 to IMAD Test for memory leaks
10498 * @test Req. under test REQ172.11
10500 TVerdict CTest_MMF_ACOD_U_0252::DoTestStepL()
10502 const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
10503 TBool testOK = EFalse;
10504 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
10508 INFO_PRINTF2(_L("Test left with status %d"), err);
10513 INFO_PRINTF1(_L("Test failed"));
10520 //------------------------------------------------------------------
10525 CTest_MMF_ACOD_U_0253::CTest_MMF_ACOD_U_0253()
10527 // store the name of this test case
10528 // this is the name that is used by the script file
10529 // Each test step initialises it's own name
10530 iTestStepName = _L("MM-MMF-ACOD-U-0253-HP");
10534 * PCM16 to IMAD Test for memory scribbles
10535 * @test Req. under test REQ172.11
10537 TVerdict CTest_MMF_ACOD_U_0253::DoTestStepL()
10539 // const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
10540 TBool testOK = EFalse;
10541 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
10542 TInt err = KErrNone;
10546 INFO_PRINTF2(_L("Test left with status %d"), err);
10551 INFO_PRINTF1(_L("Test failed"));
10558 //------------------------------------------------------------------
10563 CTest_MMF_ACOD_U_0254::CTest_MMF_ACOD_U_0254()
10565 // store the name of this test case
10566 // this is the name that is used by the script file
10567 // Each test step initialises it's own name
10568 iTestStepName = _L("MM-MMF-ACOD-U-0254-HP");
10570 for (TUint i=0; i<5; i++)
10572 iExpectedSrcBytesProcessed[i] = 0;
10573 iExpectedDstBytesAdded[i] = 0;
10574 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
10579 * IMAS To PCM16 Pass in zero sized source buffer
10580 * @test Req. under test REQ172.6.4, REQ172.6.5
10582 TVerdict CTest_MMF_ACOD_U_0254::DoTestStepL()
10584 // const TUid codecUid = {0};
10585 TBool testOK = EFalse;
10586 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KStereoAdpcmToPCM16OptimumDst));
10587 TInt err = KErrNone;
10590 INFO_PRINTF2(_L("Test left with status %d"), err);
10595 INFO_PRINTF1(_L("Test failed"));
10602 //------------------------------------------------------------------
10607 CTest_MMF_ACOD_U_0255::CTest_MMF_ACOD_U_0255()
10609 // store the name of this test case
10610 // this is the name that is used by the script file
10611 // Each test step initialises it's own name
10612 iTestStepName = _L("MM-MMF-ACOD-U-0255-HP");
10614 iExpectedLeaveErrorCode = KErrArgument;
10618 * IMAS To PCM16 Pass in zero sized destination buffer
10619 * @test Req. under test REQ172.6.4, REQ172.6.5
10621 TVerdict CTest_MMF_ACOD_U_0255::DoTestStepL()
10623 //const TUid codecUid = {0};
10624 TBool testOK = EFalse;
10625 //TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KStereoAdpcmToPCM16OptimumSrc, 0));
10626 TInt err = KErrNone;
10629 INFO_PRINTF2(_L("Test left with status %d"), err);
10634 INFO_PRINTF1(_L("Test failed"));
10641 //------------------------------------------------------------------
10646 CTest_MMF_ACOD_U_0256::CTest_MMF_ACOD_U_0256()
10648 // store the name of this test case
10649 // this is the name that is used by the script file
10650 // Each test step initialises it's own name
10651 iTestStepName = _L("MM-MMF-ACOD-U-0256-HP");
10655 * IMAS To PCM16 Test out of memory
10656 * @test Req. under test REQ172.11
10658 TVerdict CTest_MMF_ACOD_U_0256::DoTestStepL()
10660 const TUid codecUid = {0};
10661 TBool testOK = EFalse;
10663 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
10664 TInt err = KErrNone;
10665 if (err==KErrNone && testOK)
10666 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
10670 INFO_PRINTF2(_L("Test left with status %d"), err);
10675 INFO_PRINTF1(_L("Test failed"));
10682 //------------------------------------------------------------------
10687 CTest_MMF_ACOD_U_0257::CTest_MMF_ACOD_U_0257()
10689 // store the name of this test case
10690 // this is the name that is used by the script file
10691 // Each test step initialises it's own name
10692 iTestStepName = _L("MM-MMF-ACOD-U-0257-HP");
10696 * IMAS To PCM16 Test for memory leaks
10697 * @test Req. under test REQ172.11
10699 TVerdict CTest_MMF_ACOD_U_0257::DoTestStepL()
10701 const TUid codecUid = {0};
10702 TBool testOK = EFalse;
10703 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
10707 INFO_PRINTF2(_L("Test left with status %d"), err);
10712 INFO_PRINTF1(_L("Test failed"));
10719 //------------------------------------------------------------------
10724 CTest_MMF_ACOD_U_0258::CTest_MMF_ACOD_U_0258()
10726 // store the name of this test case
10727 // this is the name that is used by the script file
10728 // Each test step initialises it's own name
10729 iTestStepName = _L("MM-MMF-ACOD-U-0258-HP");
10733 * IMAS To PCM16 Test for memory scribbles
10734 * @test Req. under test REQ172.11
10736 TVerdict CTest_MMF_ACOD_U_0258::DoTestStepL()
10738 // const TUid codecUid = {0};
10739 TBool testOK = EFalse;
10740 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
10741 TInt err = KErrNone;
10744 INFO_PRINTF2(_L("Test left with status %d"), err);
10749 INFO_PRINTF1(_L("Test failed"));
10756 //------------------------------------------------------------------
10761 CTest_MMF_ACOD_U_0259::CTest_MMF_ACOD_U_0259()
10763 // store the name of this test case
10764 // this is the name that is used by the script file
10765 // Each test step initialises it's own name
10766 iTestStepName = _L("MM-MMF-ACOD-U-0259-HP");
10768 for (TUint i=0; i<5; i++)
10770 iExpectedSrcBytesProcessed[i] = 0;
10771 iExpectedDstBytesAdded[i] = 0;
10772 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
10777 * PCM16 to IMAS Pass in zero sized source buffer
10778 * @test Req. under test REQ172.6.4, REQ172.6.5
10780 TVerdict CTest_MMF_ACOD_U_0259::DoTestStepL()
10782 // const TUid codecUid = {0};
10783 TBool testOK = EFalse;
10784 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToStereoAdpcmOptimumDst));
10785 TInt err = KErrNone;
10788 INFO_PRINTF2(_L("Test left with status %d"), err);
10793 INFO_PRINTF1(_L("Test failed"));
10800 //------------------------------------------------------------------
10805 CTest_MMF_ACOD_U_0260::CTest_MMF_ACOD_U_0260()
10807 // store the name of this test case
10808 // this is the name that is used by the script file
10809 // Each test step initialises it's own name
10810 iTestStepName = _L("MM-MMF-ACOD-U-0260-HP");
10812 iExpectedLeaveErrorCode = KErrArgument;
10816 * PCM16 to IMAS Pass in zero sized destination buffer
10817 * @test Req. under test REQ172.6.4, REQ172.6.5
10819 TVerdict CTest_MMF_ACOD_U_0260::DoTestStepL()
10821 // const TUid codecUid = {0};
10822 TBool testOK = EFalse;
10823 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToStereoAdpcmOptimumSrc, 0));
10824 TInt err = KErrNone;
10827 INFO_PRINTF2(_L("Test left with status %d"), err);
10832 INFO_PRINTF1(_L("Test failed"));
10839 //------------------------------------------------------------------
10844 CTest_MMF_ACOD_U_0261::CTest_MMF_ACOD_U_0261()
10846 // store the name of this test case
10847 // this is the name that is used by the script file
10848 // Each test step initialises it's own name
10849 iTestStepName = _L("MM-MMF-ACOD-U-0261-HP");
10853 * PCM16 to IMAS Test out of memory
10854 * @test Req. under test REQ172.11
10856 TVerdict CTest_MMF_ACOD_U_0261::DoTestStepL()
10858 const TUid codecUid = {0};
10859 TBool testOK = EFalse;
10861 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
10862 TInt err = KErrNone;
10863 if (err==KErrNone && testOK)
10864 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
10868 INFO_PRINTF2(_L("Test left with status %d"), err);
10873 INFO_PRINTF1(_L("Test failed"));
10880 //------------------------------------------------------------------
10886 CTest_MMF_ACOD_U_0262::CTest_MMF_ACOD_U_0262()
10888 // store the name of this test case
10889 // this is the name that is used by the script file
10890 // Each test step initialises it's own name
10891 iTestStepName = _L("MM-MMF-ACOD-U-0262-HP");
10895 * PCM16 to IMAS Test for memory leaks
10896 * @test Req. under test REQ172.11
10898 TVerdict CTest_MMF_ACOD_U_0262::DoTestStepL()
10900 const TUid codecUid = {0};
10901 TBool testOK = EFalse;
10902 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
10906 INFO_PRINTF2(_L("Test left with status %d"), err);
10911 INFO_PRINTF1(_L("Test failed"));
10918 //------------------------------------------------------------------
10923 CTest_MMF_ACOD_U_0263::CTest_MMF_ACOD_U_0263()
10925 // store the name of this test case
10926 // this is the name that is used by the script file
10927 // Each test step initialises it's own name
10928 iTestStepName = _L("MM-MMF-ACOD-U-0263-HP");
10932 * PCM16 to IMAS Test for memory scribbles
10933 * @test Req. under test REQ172.11
10935 TVerdict CTest_MMF_ACOD_U_0263::DoTestStepL()
10937 // const TUid codecUid = {0};
10938 TBool testOK = EFalse;
10939 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
10940 TInt err = KErrNone;
10943 INFO_PRINTF2(_L("Test left with status %d"), err);
10948 INFO_PRINTF1(_L("Test failed"));
10955 //------------------------------------------------------------------
10960 CTest_MMF_ACOD_U_0264::CTest_MMF_ACOD_U_0264()
10962 // store the name of this test case
10963 // this is the name that is used by the script file
10964 // Each test step initialises it's own name
10965 iTestStepName = _L("MM-MMF-ACOD-U-0264-HP");
10967 for (TUint i=0; i<5; i++)
10969 iExpectedSrcBytesProcessed[i] = 0;
10970 iExpectedDstBytesAdded[i] = 0;
10971 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
10976 * GSM610 To PCM16 Pass in zero sized source buffer
10977 * @test Req. under test REQ172.6.4, REQ172.6.5
10979 TVerdict CTest_MMF_ACOD_U_0264::DoTestStepL()
10981 // const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
10982 TBool testOK = EFalse;
10983 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KGSM610ToPCM16OptimumDst));
10984 TInt err = KErrNone;
10987 INFO_PRINTF2(_L("Test left with status %d"), err);
10992 INFO_PRINTF1(_L("Test failed"));
10999 //------------------------------------------------------------------
11004 CTest_MMF_ACOD_U_0265::CTest_MMF_ACOD_U_0265()
11006 // store the name of this test case
11007 // this is the name that is used by the script file
11008 // Each test step initialises it's own name
11009 iTestStepName = _L("MM-MMF-ACOD-U-0265-HP");
11011 iExpectedLeaveErrorCode = KErrArgument;
11015 * GSM610 To PCM16 Pass in zero sized destination buffer
11016 * @test Req. under test REQ172.6.4, REQ172.6.5
11018 TVerdict CTest_MMF_ACOD_U_0265::DoTestStepL()
11020 // const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
11021 TBool testOK = EFalse;
11022 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KGSM610ToPCM16OptimumSrc, 0));
11023 TInt err = KErrNone;
11026 INFO_PRINTF2(_L("Test left with status %d"), err);
11031 INFO_PRINTF1(_L("Test failed"));
11038 //------------------------------------------------------------------
11043 CTest_MMF_ACOD_U_0266::CTest_MMF_ACOD_U_0266()
11045 // store the name of this test case
11046 // this is the name that is used by the script file
11047 // Each test step initialises it's own name
11048 iTestStepName = _L("MM-MMF-ACOD-U-0266-HP");
11052 * GSM610 To PCM16 Test out of memory
11053 * @test Req. under test REQ172.11
11055 TVerdict CTest_MMF_ACOD_U_0266::DoTestStepL()
11057 const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
11058 TBool testOK = EFalse;
11060 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
11061 TInt err = KErrNone;
11062 if (err==KErrNone && testOK)
11063 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
11067 INFO_PRINTF2(_L("Test left with status %d"), err);
11072 INFO_PRINTF1(_L("Test failed"));
11079 //------------------------------------------------------------------
11084 CTest_MMF_ACOD_U_0267::CTest_MMF_ACOD_U_0267()
11086 // store the name of this test case
11087 // this is the name that is used by the script file
11088 // Each test step initialises it's own name
11089 iTestStepName = _L("MM-MMF-ACOD-U-0267-HP");
11093 * GSM610 To PCM16 Test for memory leaks
11094 * @test Req. under test REQ172.11
11096 TVerdict CTest_MMF_ACOD_U_0267::DoTestStepL()
11098 const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
11099 TBool testOK = EFalse;
11100 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
11104 INFO_PRINTF2(_L("Test left with status %d"), err);
11109 INFO_PRINTF1(_L("Test failed"));
11116 //------------------------------------------------------------------
11121 CTest_MMF_ACOD_U_0268::CTest_MMF_ACOD_U_0268()
11123 // store the name of this test case
11124 // this is the name that is used by the script file
11125 // Each test step initialises it's own name
11126 iTestStepName = _L("MM-MMF-ACOD-U-0268-HP");
11130 * GSM610 To PCM16 Test for memory scribbles
11131 * @test Req. under test REQ172.11
11133 TVerdict CTest_MMF_ACOD_U_0268::DoTestStepL()
11135 // const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
11136 TBool testOK = EFalse;
11137 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
11138 TInt err = KErrNone;
11141 INFO_PRINTF2(_L("Test left with status %d"), err);
11146 INFO_PRINTF1(_L("Test failed"));
11153 //------------------------------------------------------------------
11158 CTest_MMF_ACOD_U_0269::CTest_MMF_ACOD_U_0269()
11160 // store the name of this test case
11161 // this is the name that is used by the script file
11162 // Each test step initialises it's own name
11163 iTestStepName = _L("MM-MMF-ACOD-U-0269-HP");
11165 for (TUint i=0; i<5; i++)
11167 iExpectedSrcBytesProcessed[i] = 0;
11168 iExpectedDstBytesAdded[i] = 0;
11169 iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
11174 * PCM16 to GSM610 Pass in zero sized source buffer
11175 * @test Req. under test REQ172.6.4, REQ172.6.5
11177 TVerdict CTest_MMF_ACOD_U_0269::DoTestStepL()
11179 // const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
11180 TBool testOK = EFalse;
11181 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToGSM610OptimumDst));
11182 TInt err = KErrNone;
11185 INFO_PRINTF2(_L("Test left with status %d"), err);
11190 INFO_PRINTF1(_L("Test failed"));
11197 //------------------------------------------------------------------
11202 CTest_MMF_ACOD_U_0270::CTest_MMF_ACOD_U_0270()
11204 // store the name of this test case
11205 // this is the name that is used by the script file
11206 // Each test step initialises it's own name
11207 iTestStepName = _L("MM-MMF-ACOD-U-0270-HP");
11209 iExpectedLeaveErrorCode = KErrArgument;
11213 * PCM16 to GSM610 Pass in zero sized destination buffer
11214 * @test Req. under test REQ172.6.4, REQ172.6.5
11216 TVerdict CTest_MMF_ACOD_U_0270::DoTestStepL()
11218 // const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
11219 TBool testOK = EFalse;
11220 // TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToGSM610OptimumSrc, 0));
11221 TInt err = KErrNone;
11224 INFO_PRINTF2(_L("Test left with status %d"), err);
11229 INFO_PRINTF1(_L("Test failed"));
11236 //------------------------------------------------------------------
11241 CTest_MMF_ACOD_U_0271::CTest_MMF_ACOD_U_0271()
11243 // store the name of this test case
11244 // this is the name that is used by the script file
11245 // Each test step initialises it's own name
11246 iTestStepName = _L("MM-MMF-ACOD-U-0271-HP");
11250 * PCM16 to GSM610 Test out of memory
11251 * @test Req. under test REQ172.11
11253 TVerdict CTest_MMF_ACOD_U_0271::DoTestStepL()
11255 const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
11256 TBool testOK = EFalse;
11258 // TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
11259 TInt err = KErrNone;
11260 if (err==KErrNone && testOK)
11261 TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
11265 INFO_PRINTF2(_L("Test left with status %d"), err);
11270 INFO_PRINTF1(_L("Test failed"));
11277 //------------------------------------------------------------------
11283 CTest_MMF_ACOD_U_0272::CTest_MMF_ACOD_U_0272()
11285 // store the name of this test case
11286 // this is the name that is used by the script file
11287 // Each test step initialises it's own name
11288 iTestStepName = _L("MM-MMF-ACOD-U-0272-HP");
11292 * PCM16 to GSM610 Test for memory leaks
11293 * @test Req. under test REQ172.11
11295 TVerdict CTest_MMF_ACOD_U_0272::DoTestStepL()
11297 const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
11298 TBool testOK = EFalse;
11299 TRAPD(err, testOK = TestMemoryLeakL(codecUid));
11303 INFO_PRINTF2(_L("Test left with status %d"), err);
11308 INFO_PRINTF1(_L("Test failed"));
11315 //------------------------------------------------------------------
11320 CTest_MMF_ACOD_U_0273::CTest_MMF_ACOD_U_0273()
11322 // store the name of this test case
11323 // this is the name that is used by the script file
11324 // Each test step initialises it's own name
11325 iTestStepName = _L("MM-MMF-ACOD-U-0273-HP");
11329 * PCM16 to GSM610 Test for memory scribbles
11330 * @test Req. under test REQ172.11
11332 TVerdict CTest_MMF_ACOD_U_0273::DoTestStepL()
11334 // const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
11335 TBool testOK = EFalse;
11336 // TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
11337 TInt err = KErrNone;
11341 INFO_PRINTF2(_L("Test left with status %d"), err);
11346 INFO_PRINTF1(_L("Test failed"));
11353 //------------------------------------------------------------------