os/mm/mmlibs/mmfw/tsrc/mmfunittest/SwCodecDevices/TSU_MMF_ACOD.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 // TSU_MMF_ACOD_BASE.CPP
    17 //
    18 // Copyright (c) 2003 Symbian Ltd.  All rights reserved.
    19 //
    20 
    21 // EPOC includes
    22 #include <e32base.h>
    23 
    24 // Test system includes
    25 #include "TSU_MMF_ACOD.h"
    26 #include "TSU_MMF_devicesuite.h"
    27 
    28 #include <f32file.h>
    29 #include <s32file.h>
    30 #include <mmfhwdeviceimplementationUids.hrh>
    31 
    32 #ifdef __WINS__
    33 //wins directories
    34 _LIT(KSourceFilesDir, "c:\\mm\\mmf\\testfiles\\acod\\");
    35 _LIT(KComparisonFilesDir, "c:\\mm\\mmf\\ref\\acod\\");
    36 #else
    37 /*
    38 arm4 directories
    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.
    43 */
    44 _LIT(KSourceFilesDir, "e:\\");
    45 _LIT(KComparisonFilesDir, "e:\\");
    46 #endif
    47 
    48 //------------------------------------------------------------------
    49 //			** TEST MMF_ACOD STEPS ***
    50 
    51 //------------------------------------------------------------------
    52 
    53 /** @xxxx
    54  * Constructor
    55  */
    56 CTest_MMF_ACOD_U_0001::CTest_MMF_ACOD_U_0001()
    57 	{
    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");
    62 	}
    63 
    64 /** @xxxx
    65  * Instantiate a codec by FourCC Codes and preferred supplier
    66  * @test Req. under test REQ172.6.3
    67  */
    68 TVerdict CTest_MMF_ACOD_U_0001::DoTestStepL()
    69 	{
    70 	TBool testOK = EFalse;
    71 	//TRAPD(err, testOK = TestNewLPreferredSupplierL());
    72 	TInt err = KErrNone;
    73 	if (err)
    74 		{
    75 		INFO_PRINTF2(_L("Test left with status %d"), err);
    76 		return EFail;
    77 		}
    78 	else if (!testOK)
    79 		{
    80 		INFO_PRINTF1(_L("Test failed"));
    81 		return EFail; 
    82 		}
    83 	else
    84 		return EPass; 
    85 	}
    86 //------------------------------------------------------------------
    87 
    88 /** @xxxx
    89  * Constructor
    90  */
    91 CTest_MMF_ACOD_U_0002::CTest_MMF_ACOD_U_0002()
    92 	{
    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");
    97 	}
    98 
    99 /** @xxxx
   100  * ALAW To PCM16 Instantiate codec by FourCC Codes
   101  * @test Req. under test REQ172.6.2, REQ172.11.1
   102  */
   103 TVerdict CTest_MMF_ACOD_U_0002::DoTestStepL()
   104 	{
   105 	TBool testOK = EFalse;
   106 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodeALAW, KMMFFourCCCodePCM16));
   107 TInt err = KErrNone;
   108 	if (err)
   109 		{
   110 		INFO_PRINTF2(_L("Test left with status %d"), err);
   111 		return EFail;
   112 		}
   113 	else if (!testOK)
   114 		{
   115 		INFO_PRINTF1(_L("Test failed"));
   116 		return EFail; 
   117 		}
   118 	else
   119 		return EPass; 
   120 	}
   121 
   122 //------------------------------------------------------------------
   123 
   124 /** @xxxx
   125  * Constructor
   126  */
   127 CTest_MMF_ACOD_U_0003::CTest_MMF_ACOD_U_0003()
   128 	{
   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");
   133 	}
   134 
   135 /** @xxxx
   136  * ALAW To PCM16 Instantiate codec by UID
   137  * @test Req. under test REQ172.6.1, REQ172.11.1
   138  */
   139 TVerdict CTest_MMF_ACOD_U_0003::DoTestStepL()
   140 	{
   141 /*	const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
   142 	TBool testOK = EFalse;
   143 	TRAPD(err, testOK = TestNewL(codecUid));
   144 	TInt err = KErrNone;
   145 
   146 	if (err)
   147 		{
   148 		INFO_PRINTF2(_L("Test left with status %d"), err);
   149 		return EFail;
   150 		}
   151 	else if (!testOK)
   152 		{
   153 		INFO_PRINTF1(_L("Test failed"));
   154 		return EFail; 
   155 		}
   156 	else
   157 	*/
   158 		return EPass; 
   159 	}
   160 
   161 //------------------------------------------------------------------
   162 
   163 /** @xxxx
   164  * Constructor
   165  */
   166 CTest_MMF_ACOD_U_0004::CTest_MMF_ACOD_U_0004()
   167 	{
   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");
   172 
   173 	for (TUint i=0; i<5; i++)
   174 		{
   175 		iExpectedSrcBytesProcessed[i] = 50;
   176 		iExpectedDstBytesAdded[i] = 100;
   177 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
   178 		}
   179 	}
   180 
   181 /** @xxxx
   182  * ALAW To PCM16 Pass in small source buffers
   183  * @test Req. under test REQ172.6.4, REQ172.6.5
   184  */
   185 TVerdict CTest_MMF_ACOD_U_0004::DoTestStepL()
   186 	{
   187 //	const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
   188 	TBool testOK = EFalse;
   189 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KAlawToPCM16OptimumDst));
   190 TInt err = KErrNone ;
   191 	if (err)
   192 		{
   193 		INFO_PRINTF2(_L("Test left with status %d"), err);
   194 		return EFail;
   195 		}
   196 	else if (!testOK)
   197 		{
   198 		INFO_PRINTF1(_L("Test failed"));
   199 		return EFail; 
   200 		}
   201 	else
   202 		return EPass; 
   203 	}
   204 
   205 //------------------------------------------------------------------
   206 
   207 /** @xxxx
   208  * Constructor
   209  */
   210 CTest_MMF_ACOD_U_0005::CTest_MMF_ACOD_U_0005()
   211 	{
   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");
   216 
   217 	for (TUint i=0; i<5; i++)
   218 		{
   219 		iExpectedSrcBytesProcessed[i] = 25;
   220 		iExpectedDstBytesAdded[i] = 50;
   221 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
   222 		}
   223 	}
   224 
   225 /** @xxxx
   226  * ALAW To PCM16 Pass in small dest buffers
   227  * @test Req. under test REQ172.6.4, REQ172.6.5
   228  */
   229 TVerdict CTest_MMF_ACOD_U_0005::DoTestStepL()
   230 	{
   231 //	const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
   232 	TBool testOK = EFalse;
   233 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAlawToPCM16OptimumSrc, KSmallBufferSize));
   234 TInt err = KErrNone ;
   235 	if (err)
   236 		{
   237 		INFO_PRINTF2(_L("Test left with status %d"), err);
   238 		return EFail;
   239 		}
   240 	else if (!testOK)
   241 		{
   242 		INFO_PRINTF1(_L("Test failed"));
   243 		return EFail; 
   244 		}
   245 	else
   246 		return EPass; 
   247 	}
   248 
   249 //------------------------------------------------------------------
   250 
   251 /** @xxxx
   252  * Constructor
   253  */
   254 CTest_MMF_ACOD_U_0006::CTest_MMF_ACOD_U_0006()
   255 	{
   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");
   260 	iHeapSize = 0x20000;
   261 
   262 	for (TUint i=0; i<5; i++)
   263 		{
   264 		iExpectedSrcBytesProcessed[i] = 5000;
   265 		iExpectedDstBytesAdded[i] = 10000;
   266 
   267 		if((i%2)==0)//even i
   268 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
   269 		else		//odd i
   270 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
   271 		}
   272 	}
   273 
   274 /** @xxxx
   275  * ALAW To PCM16 Pass in large buffers
   276  * @test Req. under test REQ172.6.4, REQ172.6.5
   277  */
   278 TVerdict CTest_MMF_ACOD_U_0006::DoTestStepL()
   279 	{
   280 //	const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
   281 	TBool testOK = EFalse;
   282 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
   283 TInt err = KErrNone ;
   284 	if (err)
   285 		{
   286 		INFO_PRINTF2(_L("Test left with status %d"), err);
   287 		return EFail;
   288 		}
   289 	else if (!testOK)
   290 		{
   291 		INFO_PRINTF1(_L("Test failed"));
   292 		return EFail; 
   293 		}
   294 	else
   295 		return EPass; 
   296 	}
   297 
   298 //------------------------------------------------------------------
   299 
   300 /** @xxxx
   301  * Constructor
   302  */
   303 CTest_MMF_ACOD_U_0007::CTest_MMF_ACOD_U_0007()
   304 	{
   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");
   309 
   310 	for (TUint i=0; i<5; i++)
   311 		{
   312 		iExpectedSrcBytesProcessed[i] = 0x800;
   313 		iExpectedDstBytesAdded[i] = 0x1000;
   314 
   315 		if((i%2)==0)//even i
   316 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
   317 		else		//odd i
   318 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
   319 		}
   320 	}
   321 
   322 /** @xxxx
   323  * ALAW To PCM16 Pass in default sized buffers
   324  * @test Req. under test REQ172.6.4, REQ172.6.5
   325  */
   326 TVerdict CTest_MMF_ACOD_U_0007::DoTestStepL()
   327 	{
   328 //	const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
   329 	TBool testOK = EFalse;
   330 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
   331 TInt err = KErrNone ;
   332 	if (err)
   333 		{
   334 		INFO_PRINTF2(_L("Test left with status %d"), err);
   335 		return EFail;
   336 		}
   337 	else if (!testOK)
   338 		{
   339 		INFO_PRINTF1(_L("Test failed"));
   340 		return EFail; 
   341 		}
   342 	else
   343 		return EPass; 
   344 	}
   345 
   346 //------------------------------------------------------------------
   347 
   348 /** @xxxx
   349  * Constructor
   350  */
   351 CTest_MMF_ACOD_U_0008::CTest_MMF_ACOD_U_0008()
   352 	{
   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");
   357 
   358 	for (TUint i=0; i<5; i++)
   359 		{
   360 		iExpectedSrcBytesProcessed[i] = 0x800;
   361 		iExpectedDstBytesAdded[i] = 0x1000;
   362 
   363 		if((i%2)==0)//even i
   364 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
   365 		else		//odd i
   366 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
   367 		}
   368 	}
   369 
   370 /** @xxxx
   371  * ALAW To PCM16 Pass in buffers with different max length and length
   372  * @test Req. under test REQ172.6.4, REQ172.6.5
   373  */
   374 TVerdict CTest_MMF_ACOD_U_0008::DoTestStepL()
   375 	{
   376 //	const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
   377 	TBool testOK = EFalse;
   378 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
   379 TInt err = KErrNone ;
   380 	if (err)
   381 		{
   382 		INFO_PRINTF2(_L("Test left with status %d"), err);
   383 		return EFail;
   384 		}
   385 	else if (!testOK)
   386 		{
   387 		INFO_PRINTF1(_L("Test failed"));
   388 		return EFail; 
   389 		}
   390 	else
   391 		return EPass; 
   392 	}
   393 
   394 //------------------------------------------------------------------
   395 
   396 /** @xxxx
   397  * Constructor
   398  */
   399 CTest_MMF_ACOD_U_0009::CTest_MMF_ACOD_U_0009()
   400 	{
   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");
   405 
   406 	for (TUint i=0; i<5; i++)
   407 		{
   408 		iExpectedSrcBytesProcessed[i] = 0x800;
   409 		iExpectedDstBytesAdded[i] = 0x1000;
   410 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
   411 		}
   412 	}
   413 
   414 /** @xxxx
   415  * ALAW To PCM16 Pass in buffers of optimum size
   416  * @test Req. under test REQ172.6.4, REQ172.6.5
   417  */
   418 TVerdict CTest_MMF_ACOD_U_0009::DoTestStepL()
   419 	{
   420 //	const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
   421 	TBool testOK = EFalse;
   422 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAlawToPCM16OptimumSrc, KAlawToPCM16OptimumDst));
   423 TInt err = KErrNone ;
   424 	if (err)
   425 		{
   426 		INFO_PRINTF2(_L("Test left with status %d"), err);
   427 		return EFail;
   428 		}
   429 	else if (!testOK)
   430 		{
   431 		INFO_PRINTF1(_L("Test failed"));
   432 		return EFail; 
   433 		}
   434 	else
   435 		return EPass; 
   436 	}
   437 
   438 //------------------------------------------------------------------
   439 
   440 /** @xxxx
   441  * Constructor
   442  */
   443 CTest_MMF_ACOD_U_0010::CTest_MMF_ACOD_U_0010()
   444 	{
   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;
   450 	}
   451 
   452 /** @xxxx
   453  * ALAW To PCM16 Reposition source pointer during conversion
   454  * @test Req. under test REQ172.11
   455  */
   456 TVerdict CTest_MMF_ACOD_U_0010::DoTestStepL()
   457 	{
   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"));
   461 
   462 //	TRAPD(err, testOK = TestRepositionL(codecUid, KAlawToPCM16OptimumSrc, KAlawToPCM16OptimumDst+30));
   463 TInt err = KErrNone ;
   464 	if (err)
   465 		{
   466 		INFO_PRINTF2(_L("Test left with status %d"), err);
   467 		return EFail;
   468 		}
   469 	else if (!testOK)
   470 		{
   471 		INFO_PRINTF1(_L("Test failed"));
   472 		return EFail; 
   473 		}
   474 	else
   475 		return EPass; 
   476 	}
   477 
   478 //------------------------------------------------------------------
   479 
   480 /** @xxxx
   481  * Constructor
   482  */
   483 CTest_MMF_ACOD_U_0011::CTest_MMF_ACOD_U_0011()
   484 	{
   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");
   489 	}
   490 
   491 /** @xxxx
   492  * PCM16 To ALAW Instantiate codec by FourCC Codes
   493  * @test Req. under test REQ172.6.2, REQ172.11.3
   494  */
   495 TVerdict CTest_MMF_ACOD_U_0011::DoTestStepL()
   496 	{
   497 	TBool testOK = EFalse;
   498 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeALAW));
   499 TInt err = KErrNone;
   500 	if (err)
   501 		{
   502 		INFO_PRINTF2(_L("Test left with status %d"), err);
   503 		return EFail;
   504 		}
   505 	else if (!testOK)
   506 		{
   507 		INFO_PRINTF1(_L("Test failed"));
   508 		return EFail; 
   509 		}
   510 	else
   511 		return EPass; 
   512 	}
   513 
   514 //------------------------------------------------------------------
   515 
   516 /** @xxxx
   517  * Constructor
   518  */
   519 CTest_MMF_ACOD_U_0012::CTest_MMF_ACOD_U_0012()
   520 	{
   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");
   525 	}
   526 
   527 /** @xxxx
   528  * PCM16 To ALAW Instantiate codec by UID
   529  * @test Req. under test REQ172.6.1, REQ172.11.3
   530  */
   531 TVerdict CTest_MMF_ACOD_U_0012::DoTestStepL()
   532 	{
   533 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
   534 	TBool testOK = EFalse;
   535 //	TRAPD(err, testOK = TestNewL(codecUid));
   536 TInt err = KErrNone ;
   537 	if (err)
   538 		{
   539 		INFO_PRINTF2(_L("Test left with status %d"), err);
   540 		return EFail;
   541 		}
   542 	else if (!testOK)
   543 		{
   544 		INFO_PRINTF1(_L("Test failed"));
   545 		return EFail; 
   546 		}
   547 	else
   548 		return EPass; 
   549 	}
   550 
   551 //------------------------------------------------------------------
   552 
   553 /** @xxxx
   554  * Constructor
   555  */
   556 CTest_MMF_ACOD_U_0013::CTest_MMF_ACOD_U_0013()
   557 	{
   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");
   562 
   563 	for (TUint i=0; i<5; i++)
   564 		{
   565 		iExpectedSrcBytesProcessed[i] = 50;
   566 		iExpectedDstBytesAdded[i] = 25;
   567 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
   568 		}
   569 	}
   570 
   571 /** @xxxx
   572  * PCM16 To ALAW Pass in small source buffers
   573  * @test Req. under test REQ172.6.4, REQ172.6.5
   574  */
   575 TVerdict CTest_MMF_ACOD_U_0013::DoTestStepL()
   576 	{
   577 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
   578 	TBool testOK = EFalse;
   579 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToAlawOptimumDst));
   580 TInt err = KErrNone ;
   581 
   582 	if (err)
   583 		{
   584 		INFO_PRINTF2(_L("Test left with status %d"), err);
   585 		return EFail;
   586 		}
   587 	else if (!testOK)
   588 		{
   589 		INFO_PRINTF1(_L("Test failed"));
   590 		return EFail; 
   591 		}
   592 	else
   593 		return EPass; 
   594 	}
   595 
   596 //------------------------------------------------------------------
   597 
   598 /** @xxxx
   599  * Constructor
   600  */
   601 CTest_MMF_ACOD_U_0014::CTest_MMF_ACOD_U_0014()
   602 	{
   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");
   607 
   608 	for (TUint i=0; i<5; i++)
   609 		{
   610 		iExpectedSrcBytesProcessed[i] = 100;
   611 		iExpectedDstBytesAdded[i] = 50;
   612 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
   613 		}
   614 	}
   615 
   616 /** @xxxx
   617  * PCM16 To ALAW Pass in small dest buffers
   618  * @test Req. under test REQ172.6.4, REQ172.6.5
   619  */
   620 TVerdict CTest_MMF_ACOD_U_0014::DoTestStepL()
   621 	{
   622 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
   623 	TBool testOK = EFalse;
   624 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAlawOptimumSrc, KSmallBufferSize));
   625 	TInt err = KErrNone ;
   626 
   627 	if (err)
   628 		{
   629 		INFO_PRINTF2(_L("Test left with status %d"), err);
   630 		return EFail;
   631 		}
   632 	else if (!testOK)
   633 		{
   634 		INFO_PRINTF1(_L("Test failed"));
   635 		return EFail; 
   636 		}
   637 	else
   638 		return EPass; 
   639 	}
   640 
   641 //------------------------------------------------------------------
   642 
   643 /** @xxxx
   644  * Constructor
   645  */
   646 CTest_MMF_ACOD_U_0015::CTest_MMF_ACOD_U_0015()
   647 	{
   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");
   652 	iHeapSize = 0x20000;
   653 
   654 	for (TUint i=0; i<5; i++)
   655 		{
   656 		iExpectedSrcBytesProcessed[i] = 10000;
   657 		iExpectedDstBytesAdded[i] = 5000;
   658 
   659 		if((i%2)==0)//even i
   660 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
   661 		else		//odd i
   662 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
   663 		}
   664 	}
   665 
   666 /** @xxxx
   667  * PCM16 To ALAW Pass in large buffers
   668  * @test Req. under test REQ172.6.4, REQ172.6.5
   669  */
   670 TVerdict CTest_MMF_ACOD_U_0015::DoTestStepL()
   671 	{
   672 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
   673 	TBool testOK = EFalse;
   674 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
   675     TInt err = KErrNone ;
   676 	if (err)
   677 		{
   678 		INFO_PRINTF2(_L("Test left with status %d"), err);
   679 		return EFail;
   680 		}
   681 	else if (!testOK)
   682 		{
   683 		INFO_PRINTF1(_L("Test failed"));
   684 		return EFail; 
   685 		}
   686 	else
   687 		return EPass; 
   688 	}
   689 
   690 //------------------------------------------------------------------
   691 
   692 /** @xxxx
   693  * Constructor
   694  */
   695 CTest_MMF_ACOD_U_0016::CTest_MMF_ACOD_U_0016()
   696 	{
   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");
   701 
   702 	for (TUint i=0; i<5; i++)
   703 		{
   704 		iExpectedSrcBytesProcessed[i] = 0x1000;
   705 		iExpectedDstBytesAdded[i] = 0x800;
   706 
   707 		if((i%2)==0)//even i
   708 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
   709 		else		//odd i
   710 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
   711 		}
   712 	}
   713 
   714 /** @xxxx
   715  * PCM16 To ALAW Pass in default sized buffers
   716  * @test Req. under test REQ172.6.4, REQ172.6.5
   717  */
   718 TVerdict CTest_MMF_ACOD_U_0016::DoTestStepL()
   719 	{
   720 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
   721 	TBool testOK = EFalse;
   722 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
   723 	TInt err = KErrNone ;
   724 
   725 	if (err)
   726 		{
   727 		INFO_PRINTF2(_L("Test left with status %d"), err);
   728 		return EFail;
   729 		}
   730 	else if (!testOK)
   731 		{
   732 		INFO_PRINTF1(_L("Test failed"));
   733 		return EFail; 
   734 		}
   735 	else
   736 		return EPass; 
   737 	}
   738 
   739 //------------------------------------------------------------------
   740 
   741 /** @xxxx
   742  * Constructor
   743  */
   744 CTest_MMF_ACOD_U_0017::CTest_MMF_ACOD_U_0017()
   745 	{
   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");
   750 
   751 	for (TUint i=0; i<5; i++)
   752 		{
   753 		iExpectedSrcBytesProcessed[i] = 0x1000;
   754 		iExpectedDstBytesAdded[i] = 0x800;
   755 
   756 		if((i%2)==0)//even i
   757 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
   758 		else		//odd i
   759 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
   760 		}
   761 	}
   762 
   763 /** @xxxx
   764  * PCM16 To ALAW Pass in buffers with different max length and length
   765  * @test Req. under test REQ172.6.4, REQ172.6.5
   766  */
   767 TVerdict CTest_MMF_ACOD_U_0017::DoTestStepL()
   768 	{
   769 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
   770 	TBool testOK = EFalse;
   771 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
   772 TInt err = KErrNone ;
   773 
   774 	if (err)
   775 		{
   776 		INFO_PRINTF2(_L("Test left with status %d"), err);
   777 		return EFail;
   778 		}
   779 	else if (!testOK)
   780 		{
   781 		INFO_PRINTF1(_L("Test failed"));
   782 		return EFail; 
   783 		}
   784 	else
   785 		return EPass; 
   786 	}
   787 
   788 //------------------------------------------------------------------
   789 
   790 /** @xxxx
   791  * Constructor
   792  */
   793 CTest_MMF_ACOD_U_0018::CTest_MMF_ACOD_U_0018()
   794 	{
   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");
   799 
   800 	for (TUint i=0; i<5; i++)
   801 		{
   802 		iExpectedSrcBytesProcessed[i] = 0x1000;
   803 		iExpectedDstBytesAdded[i] = 0x800;
   804 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
   805 		}
   806 	}
   807 
   808 /** @xxxx
   809  * PCM16 To ALAW Pass in buffers of optimum size
   810  * @test Req. under test REQ172.6.4, REQ172.6.5
   811  */
   812 TVerdict CTest_MMF_ACOD_U_0018::DoTestStepL()
   813 	{
   814 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
   815 	TBool testOK = EFalse;
   816 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAlawOptimumSrc, KPCM16ToAlawOptimumDst));
   817 TInt err = KErrNone ;
   818 	if (err)
   819 		{
   820 		INFO_PRINTF2(_L("Test left with status %d"), err);
   821 		return EFail;
   822 		}
   823 	else if (!testOK)
   824 		{
   825 		INFO_PRINTF1(_L("Test failed"));
   826 		return EFail; 
   827 		}
   828 	else
   829 		return EPass; 
   830 	}
   831 
   832 //------------------------------------------------------------------
   833 
   834 /** @xxxx
   835  * Constructor
   836  */
   837 CTest_MMF_ACOD_U_0019::CTest_MMF_ACOD_U_0019()
   838 	{
   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;
   844 	}
   845 
   846 /** @xxxx
   847  * PCM16 To ALAW Reposition source pointer during conversion
   848  * @test Req. under test REQ172.11
   849  */
   850 TVerdict CTest_MMF_ACOD_U_0019::DoTestStepL()
   851 	{
   852 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
   853 	TBool testOK = EFalse;
   854 	
   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));
   857 TInt err= KErrNone;
   858 	if (err)
   859 		{
   860 		INFO_PRINTF2(_L("Test left with status %d"), err);
   861 		return EFail;
   862 		}
   863 	else if (!testOK)
   864 		{
   865 		INFO_PRINTF1(_L("Test failed"));
   866 		return EFail; 
   867 		}
   868 	else
   869 		return EPass; 
   870 	}
   871 
   872 //------------------------------------------------------------------
   873 
   874 /** @xxxx
   875  * Constructor
   876  */
   877 CTest_MMF_ACOD_U_0020::CTest_MMF_ACOD_U_0020()
   878 	{
   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");
   883 	}
   884 
   885 /** @xxxx
   886  * PCM8 To PCM16 Instantiate codec by FourCC Codes
   887  * @test Req. under test REQ172.6.2, REQ172.11.4
   888  */
   889 TVerdict CTest_MMF_ACOD_U_0020::DoTestStepL()
   890 	{
   891 	TBool testOK = EFalse;
   892 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM8, KMMFFourCCCodePCM16));
   893 TInt err = KErrNone ;
   894 	if (err)
   895 		{
   896 		INFO_PRINTF2(_L("Test left with status %d"), err);
   897 		return EFail;
   898 		}
   899 	else if (!testOK)
   900 		{
   901 		INFO_PRINTF1(_L("Test failed"));
   902 		return EFail; 
   903 		}
   904 	else
   905 		return EPass; 
   906 	}
   907 
   908 //------------------------------------------------------------------
   909 
   910 /** @xxxx
   911  * Constructor
   912  */
   913 CTest_MMF_ACOD_U_0021::CTest_MMF_ACOD_U_0021()
   914 	{
   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");
   919 	}
   920 
   921 /** @xxxx
   922  * PCM8 To PCM16 Instantiate codec by UID
   923  * @test Req. under test REQ172.6.1, REQ172.11.4
   924  */
   925 TVerdict CTest_MMF_ACOD_U_0021::DoTestStepL()
   926 	{
   927 //	const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
   928 	TBool testOK = EFalse;
   929 //	TRAPD(err, testOK = TestNewL(codecUid));
   930 TInt err = KErrNone ;
   931 	if (err)
   932 		{
   933 		INFO_PRINTF2(_L("Test left with status %d"), err);
   934 		return EFail;
   935 		}
   936 	else if (!testOK)
   937 		{
   938 		INFO_PRINTF1(_L("Test failed"));
   939 		return EFail; 
   940 		}
   941 	else
   942 		return EPass; 
   943 	}
   944 
   945 //------------------------------------------------------------------
   946 
   947 /** @xxxx
   948  * Constructor
   949  */
   950 CTest_MMF_ACOD_U_0022::CTest_MMF_ACOD_U_0022()
   951 	{
   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");
   956 
   957 	for (TUint i=0; i<5; i++)
   958 		{
   959 		iExpectedSrcBytesProcessed[i] = 50;
   960 		iExpectedDstBytesAdded[i] = 100;		
   961 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;	
   962 		}
   963 	}
   964 
   965 /** @xxxx
   966  * PCM8 To PCM16 Pass in small source buffers
   967  * @test Req. under test REQ172.6.4, REQ172.6.5
   968  */
   969 TVerdict CTest_MMF_ACOD_U_0022::DoTestStepL()
   970 	{
   971 //	const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
   972 	TBool testOK = EFalse;
   973 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM8ToPCM16OptimumDst));
   974 TInt err = KErrNone ;
   975 	if (err)
   976 		{
   977 		INFO_PRINTF2(_L("Test left with status %d"), err);
   978 		return EFail;
   979 		}
   980 	else if (!testOK)
   981 		{
   982 		INFO_PRINTF1(_L("Test failed"));
   983 		return EFail; 
   984 		}
   985 	else
   986 		return EPass; 
   987 	}
   988 
   989 //------------------------------------------------------------------
   990 
   991 /** @xxxx
   992  * Constructor
   993  */
   994 CTest_MMF_ACOD_U_0023::CTest_MMF_ACOD_U_0023()
   995 	{
   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");
  1000 
  1001 	for (TUint i=0; i<5; i++)
  1002 		{
  1003 		iExpectedSrcBytesProcessed[i] = 25;
  1004 		iExpectedDstBytesAdded[i] = 50;
  1005 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  1006 		}
  1007 	}
  1008 
  1009 /** @xxxx
  1010  * PCM8 To PCM16 Pass in small dest buffers
  1011  * @test Req. under test REQ172.6.4, REQ172.6.5
  1012  */
  1013 TVerdict CTest_MMF_ACOD_U_0023::DoTestStepL()
  1014 	{
  1015 	//const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
  1016 	TBool testOK = EFalse;
  1017 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM8ToPCM16OptimumSrc, KSmallBufferSize));
  1018 TInt err = KErrNone ;
  1019 	if (err)
  1020 		{
  1021 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1022 		return EFail;
  1023 		}
  1024 	else if (!testOK)
  1025 		{
  1026 		INFO_PRINTF1(_L("Test failed"));
  1027 		return EFail; 
  1028 		}
  1029 	else
  1030 		return EPass; 
  1031 	}
  1032 
  1033 //------------------------------------------------------------------
  1034 
  1035 /** @xxxx
  1036  * Constructor
  1037  */
  1038 CTest_MMF_ACOD_U_0024::CTest_MMF_ACOD_U_0024()
  1039 	{
  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;
  1045 
  1046 	for (TUint i=0; i<5; i++)
  1047 		{
  1048 		iExpectedSrcBytesProcessed[i] = 5000;
  1049 		iExpectedDstBytesAdded[i] = 10000;
  1050 
  1051 		if((i%2)==0)//even i
  1052 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  1053 		else		//odd i
  1054 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  1055 		}
  1056 	}
  1057 
  1058 /** @xxxx
  1059  * PCM8 To PCM16 Pass in large buffers
  1060  * @test Req. under test REQ172.6.4, REQ172.6.5
  1061  */
  1062 TVerdict CTest_MMF_ACOD_U_0024::DoTestStepL()
  1063 	{
  1064 //	const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
  1065 	TBool testOK = EFalse;
  1066 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
  1067 TInt err = KErrNone ;
  1068 	if (err)
  1069 		{
  1070 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1071 		return EFail;
  1072 		}
  1073 	else if (!testOK)
  1074 		{
  1075 		INFO_PRINTF1(_L("Test failed"));
  1076 		return EFail; 
  1077 		}
  1078 	else
  1079 		return EPass; 
  1080 	}
  1081 
  1082 //------------------------------------------------------------------
  1083 
  1084 /** @xxxx
  1085  * Constructor
  1086  */
  1087 CTest_MMF_ACOD_U_0025::CTest_MMF_ACOD_U_0025()
  1088 	{
  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");
  1093 
  1094 	for (TUint i=0; i<5; i++)
  1095 		{
  1096 		iExpectedSrcBytesProcessed[i] = 0x800;
  1097 		iExpectedDstBytesAdded[i] = 0x1000;
  1098 
  1099 		if((i%2)==0)//even i
  1100 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  1101 		else		//odd i
  1102 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  1103 		}
  1104 	}
  1105 
  1106 /** @xxxx
  1107  * PCM8 To PCM16 Pass in default sized buffers
  1108  * @test Req. under test REQ172.6.4, REQ172.6.5
  1109  */
  1110 TVerdict CTest_MMF_ACOD_U_0025::DoTestStepL()
  1111 	{
  1112 //	const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
  1113 	TBool testOK = EFalse;
  1114 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
  1115 TInt err = KErrNone ;
  1116 	if (err)
  1117 		{
  1118 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1119 		return EFail;
  1120 		}
  1121 	else if (!testOK)
  1122 		{
  1123 		INFO_PRINTF1(_L("Test failed"));
  1124 		return EFail; 
  1125 		}
  1126 	else
  1127 		return EPass; 
  1128 	}
  1129 
  1130 //------------------------------------------------------------------
  1131 
  1132 /** @xxxx
  1133  * Constructor
  1134  */
  1135 CTest_MMF_ACOD_U_0026::CTest_MMF_ACOD_U_0026()
  1136 	{
  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");
  1141 
  1142 	for (TUint i=0; i<5; i++)
  1143 		{
  1144 		iExpectedSrcBytesProcessed[i] = 0x800;
  1145 		iExpectedDstBytesAdded[i] = 0x1000;
  1146 
  1147 		if((i%2)==0)//even i
  1148 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  1149 		else		//odd i
  1150 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  1151 		}
  1152 	}
  1153 
  1154 /** @xxxx
  1155  * PCM8 To PCM16 Pass in buffers with different max length and length
  1156  * @test Req. under test REQ172.6.4, REQ172.6.5
  1157  */
  1158 TVerdict CTest_MMF_ACOD_U_0026::DoTestStepL()
  1159 	{
  1160 //	const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
  1161 	TBool testOK = EFalse;
  1162 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
  1163 TInt err = KErrNone ;
  1164 	if (err)
  1165 		{
  1166 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1167 		return EFail;
  1168 		}
  1169 	else if (!testOK)
  1170 		{
  1171 		INFO_PRINTF1(_L("Test failed"));
  1172 		return EFail; 
  1173 		}
  1174 	else
  1175 		return EPass; 
  1176 	}
  1177 
  1178 //------------------------------------------------------------------
  1179 
  1180 /** @xxxx
  1181  * Constructor
  1182  */
  1183 CTest_MMF_ACOD_U_0027::CTest_MMF_ACOD_U_0027()
  1184 	{
  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");
  1189 
  1190 	for (TUint i=0; i<5; i++)
  1191 		{
  1192 		iExpectedSrcBytesProcessed[i] = 0x800;
  1193 		iExpectedDstBytesAdded[i] = 0x1000;
  1194 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  1195 		}
  1196 	}
  1197 
  1198 /** @xxxx
  1199  * PCM8 To PCM16 Pass in buffers of optimum size
  1200  * @test Req. under test REQ172.6.4, REQ172.6.5
  1201  */
  1202 TVerdict CTest_MMF_ACOD_U_0027::DoTestStepL()
  1203 	{
  1204 //	const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
  1205 	TBool testOK = EFalse;
  1206 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM8ToPCM16OptimumSrc, KPCM8ToPCM16OptimumDst));
  1207     TInt err = KErrNone;
  1208 	if (err)
  1209 		{
  1210 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1211 		return EFail;
  1212 		}
  1213 	else if (!testOK)
  1214 		{
  1215 		INFO_PRINTF1(_L("Test failed"));
  1216 		return EFail; 
  1217 		}
  1218 	else
  1219 		return EPass; 
  1220 	}
  1221 
  1222 //------------------------------------------------------------------
  1223 
  1224 /** @xxxx
  1225  * Constructor
  1226  */
  1227 CTest_MMF_ACOD_U_0028::CTest_MMF_ACOD_U_0028()
  1228 	{
  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;
  1234 	}
  1235 
  1236 /** @xxxx
  1237  * PCM8 To PCM16 Reposition source pointer during conversion
  1238  * @test Req. under test REQ172.11
  1239  */
  1240 TVerdict CTest_MMF_ACOD_U_0028::DoTestStepL()
  1241 	{
  1242 //	const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
  1243 	TBool testOK = EFalse;
  1244 	
  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;
  1248 	if (err)
  1249 		{
  1250 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1251 		return EFail;
  1252 		}
  1253 	else if (!testOK)
  1254 		{
  1255 		INFO_PRINTF1(_L("Test failed"));
  1256 		return EFail; 
  1257 		}
  1258 	else
  1259 		return EPass; 
  1260 	}
  1261 
  1262 //------------------------------------------------------------------
  1263 
  1264 /** @xxxx
  1265  * Constructor
  1266  */
  1267 CTest_MMF_ACOD_U_0029::CTest_MMF_ACOD_U_0029()
  1268 	{
  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");
  1273 	}
  1274 
  1275 /** @xxxx
  1276  * PCM16 To PCM8 Instantiate codec by FourCC Codes
  1277  * @test Req. under test REQ172.6.2, REQ172.11.5
  1278  */
  1279 TVerdict CTest_MMF_ACOD_U_0029::DoTestStepL()
  1280 	{
  1281 	TBool testOK = EFalse;
  1282 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCM8));
  1283 TInt err = KErrNone ;
  1284 
  1285 	if (err)
  1286 		{
  1287 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1288 		return EFail;
  1289 		}
  1290 	else if (!testOK)
  1291 		{
  1292 		INFO_PRINTF1(_L("Test failed"));
  1293 		return EFail; 
  1294 		}
  1295 	else
  1296 		return EPass; 
  1297 	}
  1298 
  1299 //------------------------------------------------------------------
  1300 
  1301 /** @xxxx
  1302  * Constructor
  1303  */
  1304 CTest_MMF_ACOD_U_0030::CTest_MMF_ACOD_U_0030()
  1305 	{
  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");
  1310 	}
  1311 
  1312 /** @xxxx
  1313  * PCM16 To PCM8 Instantiate codec by UID
  1314  * @test Req. under test REQ172.6.1, REQ172.11.5
  1315  */
  1316 TVerdict CTest_MMF_ACOD_U_0030::DoTestStepL()
  1317 	{
  1318 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
  1319 	TBool testOK = EFalse;
  1320 //	TRAPD(err, testOK = TestNewL(codecUid));
  1321 TInt err = KErrNone ;
  1322 	if (err)
  1323 		{
  1324 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1325 		return EFail;
  1326 		}
  1327 	else if (!testOK)
  1328 		{
  1329 		INFO_PRINTF1(_L("Test failed"));
  1330 		return EFail; 
  1331 		}
  1332 	else
  1333 		return EPass; 
  1334 	}
  1335 
  1336 //------------------------------------------------------------------
  1337 
  1338 /** @xxxx
  1339  * Constructor
  1340  */
  1341 CTest_MMF_ACOD_U_0031::CTest_MMF_ACOD_U_0031()
  1342 	{
  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");
  1347 
  1348 	for (TUint i=0; i<5; i++)
  1349 		{
  1350 		iExpectedSrcBytesProcessed[i] = 50;
  1351 		iExpectedDstBytesAdded[i] = 25;
  1352 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  1353 		}
  1354 	}
  1355 
  1356 /** @xxxx
  1357  * PCM16 To PCM8 Pass in small source buffers
  1358  * @test Req. under test REQ172.6.4, REQ172.6.5
  1359  */
  1360 TVerdict CTest_MMF_ACOD_U_0031::DoTestStepL()
  1361 	{
  1362 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
  1363 	TBool testOK = EFalse;
  1364 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCM8OptimumDst));
  1365 TInt err = KErrNone ;
  1366 	if (err)
  1367 		{
  1368 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1369 		return EFail;
  1370 		}
  1371 	else if (!testOK)
  1372 		{
  1373 		INFO_PRINTF1(_L("Test failed"));
  1374 		return EFail; 
  1375 		}
  1376 	else
  1377 		return EPass; 
  1378 	}
  1379 
  1380 //------------------------------------------------------------------
  1381 
  1382 /** @xxxx
  1383  * Constructor
  1384  */
  1385 CTest_MMF_ACOD_U_0032::CTest_MMF_ACOD_U_0032()
  1386 	{
  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");
  1391 
  1392 	for (TUint i=0; i<5; i++)
  1393 		{
  1394 		iExpectedSrcBytesProcessed[i] = 100;
  1395 		iExpectedDstBytesAdded[i] = 50;
  1396 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  1397 		}
  1398 	}
  1399 
  1400 /** @xxxx
  1401  * PCM16 To PCM8 Pass in small dest buffers
  1402  * @test Req. under test REQ172.6.4, REQ172.6.5
  1403  */
  1404 TVerdict CTest_MMF_ACOD_U_0032::DoTestStepL()
  1405 	{
  1406 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
  1407 	TBool testOK = EFalse;
  1408 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM8OptimumSrc, KSmallBufferSize));
  1409     TInt err = KErrNone;
  1410 	if (err)
  1411 		{
  1412 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1413 		return EFail;
  1414 		}
  1415 	else if (!testOK)
  1416 		{
  1417 		INFO_PRINTF1(_L("Test failed"));
  1418 		return EFail; 
  1419 		}
  1420 	else
  1421 		return EPass; 
  1422 	}
  1423 
  1424 //------------------------------------------------------------------
  1425 
  1426 /** @xxxx
  1427  * Constructor
  1428  */
  1429 CTest_MMF_ACOD_U_0033::CTest_MMF_ACOD_U_0033()
  1430 	{
  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;
  1436 
  1437 	for (TUint i=0; i<5; i++)
  1438 		{
  1439 		iExpectedSrcBytesProcessed[i] = 10000;
  1440 		iExpectedDstBytesAdded[i] = 5000;
  1441 
  1442 		if((i%2)==0)//even i
  1443 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  1444 		else		//odd i
  1445 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  1446 		}
  1447 	}
  1448 
  1449 /** @xxxx
  1450  * PCM16 To PCM8 Pass in large buffers
  1451  * @test Req. under test REQ172.6.4, REQ172.6.5
  1452  */
  1453 TVerdict CTest_MMF_ACOD_U_0033::DoTestStepL()
  1454 	{
  1455 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
  1456 	TBool testOK = EFalse;
  1457 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
  1458     TInt err = KErrNone;
  1459 	if (err)
  1460 		{
  1461 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1462 		return EFail;
  1463 		}
  1464 	else if (!testOK)
  1465 		{
  1466 		INFO_PRINTF1(_L("Test failed"));
  1467 		return EFail; 
  1468 		}
  1469 	else
  1470 		return EPass; 
  1471 	}
  1472 
  1473 //------------------------------------------------------------------
  1474 
  1475 /** @xxxx
  1476  * Constructor
  1477  */
  1478 CTest_MMF_ACOD_U_0034::CTest_MMF_ACOD_U_0034()
  1479 	{
  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");
  1484 
  1485 	for (TUint i=0; i<5; i++)
  1486 		{
  1487 		iExpectedSrcBytesProcessed[i] = 0x1000;
  1488 		iExpectedDstBytesAdded[i] = 0x800;
  1489 
  1490 		if((i%2)==0)//even i
  1491 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  1492 		else		//odd i
  1493 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  1494 		}
  1495 	}
  1496 
  1497 /** @xxxx
  1498  * PCM16 To PCM8 Pass in default sized buffers
  1499  * @test Req. under test REQ172.6.4, REQ172.6.5
  1500  */
  1501 TVerdict CTest_MMF_ACOD_U_0034::DoTestStepL()
  1502 	{
  1503 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
  1504 	TBool testOK = EFalse;
  1505 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
  1506     TInt err = KErrNone;
  1507 	if (err)
  1508 		{
  1509 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1510 		return EFail;
  1511 		}
  1512 	else if (!testOK)
  1513 		{
  1514 		INFO_PRINTF1(_L("Test failed"));
  1515 		return EFail; 
  1516 		}
  1517 	else
  1518 		return EPass; 
  1519 	}
  1520 
  1521 //------------------------------------------------------------------
  1522 
  1523 /** @xxxx
  1524  * Constructor
  1525  */
  1526 CTest_MMF_ACOD_U_0035::CTest_MMF_ACOD_U_0035()
  1527 	{
  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");
  1532 
  1533 	for (TUint i=0; i<5; i++)
  1534 		{
  1535 		iExpectedSrcBytesProcessed[i] = 0x1000;
  1536 		iExpectedDstBytesAdded[i] = 0x800;
  1537 
  1538 		if((i%2)==0)//even i
  1539 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  1540 		else		//odd i
  1541 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  1542 		}
  1543 	}
  1544 
  1545 /** @xxxx
  1546  * PCM16 To PCM8 Pass in buffers with different max length and length
  1547  * @test Req. under test REQ172.6.4, REQ172.6.5
  1548  */
  1549 TVerdict CTest_MMF_ACOD_U_0035::DoTestStepL()
  1550 	{
  1551 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
  1552 	TBool testOK = EFalse;
  1553 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
  1554     TInt err = KErrNone;
  1555 	if (err)
  1556 		{
  1557 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1558 		return EFail;
  1559 		}
  1560 	else if (!testOK)
  1561 		{
  1562 		INFO_PRINTF1(_L("Test failed"));
  1563 		return EFail; 
  1564 		}
  1565 	else
  1566 		return EPass; 
  1567 	}
  1568 
  1569 //------------------------------------------------------------------
  1570 
  1571 /** @xxxx
  1572  * Constructor
  1573  */
  1574 CTest_MMF_ACOD_U_0036::CTest_MMF_ACOD_U_0036()
  1575 	{
  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");
  1580 
  1581 	for (TUint i=0; i<5; i++)
  1582 		{
  1583 		iExpectedSrcBytesProcessed[i] = 0x1000;
  1584 		iExpectedDstBytesAdded[i] = 0x800;
  1585 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  1586 		}
  1587 	}
  1588 
  1589 /** @xxxx
  1590  * PCM16 To PCM8 Pass in buffers of optimum size
  1591  * @test Req. under test REQ172.6.4, REQ172.6.5
  1592  */
  1593 TVerdict CTest_MMF_ACOD_U_0036::DoTestStepL()
  1594 	{
  1595 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
  1596 	TBool testOK = EFalse;
  1597 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM8OptimumSrc, KPCM16ToPCM8OptimumDst));
  1598 	TInt err = KErrNone;
  1599 
  1600 	if (err)
  1601 		{
  1602 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1603 		return EFail;
  1604 		}
  1605 	else if (!testOK)
  1606 		{
  1607 		INFO_PRINTF1(_L("Test failed"));
  1608 		return EFail; 
  1609 		}
  1610 	else
  1611 		return EPass; 
  1612 	}
  1613 
  1614 //------------------------------------------------------------------
  1615 
  1616 /** @xxxx
  1617  * Constructor
  1618  */
  1619 CTest_MMF_ACOD_U_0037::CTest_MMF_ACOD_U_0037()
  1620 	{
  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");
  1625 	}
  1626 
  1627 /** @xxxx
  1628  * PCM16 To PCM8 Reposition source pointer during conversion
  1629  * @test Req. under test REQ172.11
  1630  */
  1631 TVerdict CTest_MMF_ACOD_U_0037::DoTestStepL()
  1632 	{
  1633 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
  1634 	TBool testOK = EFalse;
  1635 	
  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;
  1639 	if (err)
  1640 		{
  1641 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1642 		return EFail;
  1643 		}
  1644 	else if (!testOK)
  1645 		{
  1646 		INFO_PRINTF1(_L("Test failed"));
  1647 		return EFail; 
  1648 		}
  1649 	else
  1650 		return EPass; 
  1651 	}
  1652 
  1653 //------------------------------------------------------------------
  1654 
  1655 /** @xxxx
  1656  * Constructor
  1657  */
  1658 CTest_MMF_ACOD_U_0038::CTest_MMF_ACOD_U_0038()
  1659 	{
  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");
  1664 	}
  1665 
  1666 /** @xxxx
  1667  * PCM16 To PCM16B Instantiate codec by FourCC Codes
  1668  * @test Req. under test REQ172.6.2, REQ172.11.6
  1669  */
  1670 TVerdict CTest_MMF_ACOD_U_0038::DoTestStepL()
  1671 	{
  1672 	TBool testOK = EFalse;
  1673 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCM16B));
  1674 TInt err = KErrNone ;
  1675 	if (err)
  1676 		{
  1677 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1678 		return EFail;
  1679 		}
  1680 	else if (!testOK)
  1681 		{
  1682 		INFO_PRINTF1(_L("Test failed"));
  1683 		return EFail; 
  1684 		}
  1685 	else
  1686 		return EPass; 
  1687 	}
  1688 
  1689 //------------------------------------------------------------------
  1690 
  1691 /** @xxxx
  1692  * Constructor
  1693  */
  1694 CTest_MMF_ACOD_U_0039::CTest_MMF_ACOD_U_0039()
  1695 	{
  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");
  1700 	}
  1701 
  1702 /** @xxxx
  1703  * PCM16B To PCM16 Instantiate codec by FourCC Codes
  1704  * @test Req. under test REQ172.6.2, REQ172.11.6
  1705  */
  1706 TVerdict CTest_MMF_ACOD_U_0039::DoTestStepL()
  1707 	{
  1708 	TBool testOK = EFalse;
  1709 	//TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16B, KMMFFourCCCodePCM16));
  1710     TInt err = KErrNone ;
  1711 	if (err)
  1712 		{
  1713 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1714 		return EFail;
  1715 		}
  1716 	else if (!testOK)
  1717 		{
  1718 		INFO_PRINTF1(_L("Test failed"));
  1719 		return EFail; 
  1720 		}
  1721 	else
  1722 		return EPass; 
  1723 	}
  1724 
  1725 //------------------------------------------------------------------
  1726 
  1727 /** @xxxx
  1728  * Constructor
  1729  */
  1730 CTest_MMF_ACOD_U_0040::CTest_MMF_ACOD_U_0040()
  1731 	{
  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");
  1736 	}
  1737 
  1738 /** @xxxx
  1739  * PCMU16 To PCMU16B Instantiate codec by FourCC Codes
  1740  * @test Req. under test REQ172.6.2, REQ172.11.6
  1741  */
  1742 TVerdict CTest_MMF_ACOD_U_0040::DoTestStepL()
  1743 	{
  1744 	TBool testOK = EFalse;
  1745 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU16, KMMFFourCCCodePCMU16B));
  1746 TInt err = KErrNone ;
  1747 	if (err)
  1748 		{
  1749 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1750 		return EFail;
  1751 		}
  1752 	else if (!testOK)
  1753 		{
  1754 		INFO_PRINTF1(_L("Test failed"));
  1755 		return EFail; 
  1756 		}
  1757 	else
  1758 		return EPass; 
  1759 	}
  1760 
  1761 //------------------------------------------------------------------
  1762 
  1763 /** @xxxx
  1764  * Constructor
  1765  */
  1766 CTest_MMF_ACOD_U_0041::CTest_MMF_ACOD_U_0041()
  1767 	{
  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");
  1772 	}
  1773 
  1774 /** @xxxx
  1775  * PCMU16B To PCMU16 Instantiate codec by FourCC Codes
  1776  * @test Req. under test REQ172.6.2, REQ172.11.6
  1777  */
  1778 TVerdict CTest_MMF_ACOD_U_0041::DoTestStepL()
  1779 	{
  1780 	TBool testOK = EFalse;
  1781 	//TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU16B, KMMFFourCCCodePCMU16));
  1782 TInt err=KErrNone;
  1783 	if (err)
  1784 		{
  1785 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1786 		return EFail;
  1787 		}
  1788 	else if (!testOK)
  1789 		{
  1790 		INFO_PRINTF1(_L("Test failed"));
  1791 		return EFail; 
  1792 		}
  1793 	else
  1794 		return EPass; 
  1795 	}
  1796 
  1797 //------------------------------------------------------------------
  1798 
  1799 /** @xxxx
  1800  * Constructor
  1801  */
  1802 CTest_MMF_ACOD_U_0042::CTest_MMF_ACOD_U_0042()
  1803 	{
  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");
  1808 	}
  1809 
  1810 /** @xxxx
  1811  * PCM16 To PCM16B Instantiate codec by UID
  1812  * @test Req. under test REQ172.6.1, REQ172.11.6
  1813  */
  1814 TVerdict CTest_MMF_ACOD_U_0042::DoTestStepL()
  1815 	{
  1816 	//const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
  1817 //	const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
  1818 	TBool testOK = EFalse;
  1819 //	TRAPD(err, testOK = TestNewL(codecUid));
  1820 	TInt err = KErrNone ;
  1821 
  1822 	if (err)
  1823 		{
  1824 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1825 		return EFail;
  1826 		}
  1827 	else if (!testOK)
  1828 		{
  1829 		INFO_PRINTF1(_L("Test failed"));
  1830 		return EFail; 
  1831 		}
  1832 	else
  1833 		return EPass; 
  1834 	}
  1835 
  1836 //------------------------------------------------------------------
  1837 
  1838 /** @xxxx
  1839  * Constructor
  1840  */
  1841 CTest_MMF_ACOD_U_0043::CTest_MMF_ACOD_U_0043()
  1842 	{
  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");
  1847 
  1848 	for (TUint i=0; i<5; i++)
  1849 		{
  1850 		iExpectedSrcBytesProcessed[i] = 50;
  1851 		iExpectedDstBytesAdded[i] = 50;
  1852 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  1853 		}
  1854 	}
  1855 
  1856 /** @xxxx
  1857  * PCM16 To PCM16B Pass in small source buffers
  1858  * @test Req. under test REQ172.6.4, REQ172.6.5
  1859  */
  1860 TVerdict CTest_MMF_ACOD_U_0043::DoTestStepL()
  1861 	{
  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;
  1867 	if (err)
  1868 		{
  1869 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1870 		return EFail;
  1871 		}
  1872 	else if (!testOK)
  1873 		{
  1874 		INFO_PRINTF1(_L("Test failed"));
  1875 		return EFail; 
  1876 		}
  1877 	else
  1878 		return EPass; 
  1879 	}
  1880 
  1881 //------------------------------------------------------------------
  1882 
  1883 /** @xxxx
  1884  * Constructor
  1885  */
  1886 CTest_MMF_ACOD_U_0044::CTest_MMF_ACOD_U_0044()
  1887 	{
  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++)
  1894 		{
  1895 		iExpectedSrcBytesProcessed[i] = 50;
  1896 		iExpectedDstBytesAdded[i] = 50;
  1897 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  1898 		}
  1899 	}
  1900 
  1901 /** @xxxx
  1902  * PCM16 To PCM16B Pass in small dest buffers
  1903  * @test Req. under test REQ172.6.4, REQ172.6.5
  1904  */
  1905 TVerdict CTest_MMF_ACOD_U_0044::DoTestStepL()
  1906 	{
  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;
  1912 	if (err)
  1913 		{
  1914 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1915 		return EFail;
  1916 		}
  1917 	else if (!testOK)
  1918 		{
  1919 		INFO_PRINTF1(_L("Test failed"));
  1920 		return EFail; 
  1921 		}
  1922 	else
  1923 		return EPass; 
  1924 	}
  1925 
  1926 //------------------------------------------------------------------
  1927 
  1928 /** @xxxx
  1929  * Constructor
  1930  */
  1931 CTest_MMF_ACOD_U_0045::CTest_MMF_ACOD_U_0045()
  1932 	{
  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++)
  1939 		{
  1940 		iExpectedSrcBytesProcessed[i] = 10000;
  1941 		iExpectedDstBytesAdded[i] = 10000;
  1942 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  1943 		}
  1944 	}
  1945 
  1946 /** @xxxx
  1947  * PCM16 To PCM16B Pass in large buffers
  1948  * @test Req. under test REQ172.6.4, REQ172.6.5
  1949  */
  1950 TVerdict CTest_MMF_ACOD_U_0045::DoTestStepL()
  1951 	{
  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;
  1957 	if (err)
  1958 		{
  1959 		INFO_PRINTF2(_L("Test left with status %d"), err);
  1960 		return EFail;
  1961 		}
  1962 	else if (!testOK)
  1963 		{
  1964 		INFO_PRINTF1(_L("Test failed"));
  1965 		return EFail; 
  1966 		}
  1967 	else
  1968 		return EPass; 
  1969 	}
  1970 
  1971 //------------------------------------------------------------------
  1972 
  1973 /** @xxxx
  1974  * Constructor
  1975  */
  1976 CTest_MMF_ACOD_U_0046::CTest_MMF_ACOD_U_0046()
  1977 	{
  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");
  1982 
  1983 	for (TUint i=0; i<5; i++)
  1984 		{
  1985 		iExpectedSrcBytesProcessed[i] = 0x1000;
  1986 		iExpectedDstBytesAdded[i] = 0x1000;
  1987 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  1988 		}
  1989 	}
  1990 
  1991 /** @xxxx
  1992  * PCM16 To PCM16B Pass in default sized buffers
  1993  * @test Req. under test REQ172.6.4, REQ172.6.5
  1994  */
  1995 TVerdict CTest_MMF_ACOD_U_0046::DoTestStepL()
  1996 	{
  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;
  2002 	if (err)
  2003 		{
  2004 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2005 		return EFail;
  2006 		}
  2007 	else if (!testOK)
  2008 		{
  2009 		INFO_PRINTF1(_L("Test failed"));
  2010 		return EFail; 
  2011 		}
  2012 	else
  2013 		return EPass; 
  2014 	}
  2015 
  2016 //------------------------------------------------------------------
  2017 
  2018 /** @xxxx
  2019  * Constructor
  2020  */
  2021 CTest_MMF_ACOD_U_0047::CTest_MMF_ACOD_U_0047()
  2022 	{
  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");
  2027 
  2028 	for (TUint i=0; i<5; i++)
  2029 		{
  2030 		iExpectedSrcBytesProcessed[i] = 0x1000;
  2031 		iExpectedDstBytesAdded[i] = 0x1000;
  2032 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  2033 		}
  2034 	}
  2035 
  2036 /** @xxxx
  2037  * PCM16 To PCM16B Pass in buffers with different max length and length
  2038  * @test Req. under test REQ172.6.4, REQ172.6.5
  2039  */
  2040 TVerdict CTest_MMF_ACOD_U_0047::DoTestStepL()
  2041 	{
  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;
  2047 	if (err)
  2048 		{
  2049 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2050 		return EFail;
  2051 		}
  2052 	else if (!testOK)
  2053 		{
  2054 		INFO_PRINTF1(_L("Test failed"));
  2055 		return EFail; 
  2056 		}
  2057 	else
  2058 		return EPass; 
  2059 	}
  2060 
  2061 //------------------------------------------------------------------
  2062 
  2063 /** @xxxx
  2064  * Constructor
  2065  */
  2066 CTest_MMF_ACOD_U_0048::CTest_MMF_ACOD_U_0048()
  2067 	{
  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");
  2072 
  2073 	for (TUint i=0; i<5; i++)
  2074 		{
  2075 		iExpectedSrcBytesProcessed[i] = 0x1000;
  2076 		iExpectedDstBytesAdded[i] = 0x1000;
  2077 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  2078 		}
  2079 	}
  2080 
  2081 /** @xxxx
  2082  * PCM16 To PCM16B Pass in buffers of optimum size
  2083  * @test Req. under test REQ172.6.4, REQ172.6.5
  2084  */
  2085 TVerdict CTest_MMF_ACOD_U_0048::DoTestStepL()
  2086 	{
  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;
  2092 	if (err)
  2093 		{
  2094 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2095 		return EFail;
  2096 		}
  2097 	else if (!testOK)
  2098 		{
  2099 		INFO_PRINTF1(_L("Test failed"));
  2100 		return EFail; 
  2101 		}
  2102 	else
  2103 		return EPass; 
  2104 	}
  2105 
  2106 //------------------------------------------------------------------
  2107 
  2108 /** @xxxx
  2109  * Constructor
  2110  */
  2111 CTest_MMF_ACOD_U_0049::CTest_MMF_ACOD_U_0049()
  2112 	{
  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");
  2117 	}
  2118 
  2119 /** @xxxx
  2120  * PCM16 To PCM16B Reposition source pointer during conversion
  2121  * @test Req. under test REQ172.11
  2122  */
  2123 TVerdict CTest_MMF_ACOD_U_0049::DoTestStepL()
  2124 	{
  2125 	//const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
  2126 //	const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
  2127 	TBool testOK = EFalse;
  2128 	
  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 ;
  2132 	if (err)
  2133 		{
  2134 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2135 		return EFail;
  2136 		}
  2137 	else if (!testOK)
  2138 		{
  2139 		INFO_PRINTF1(_L("Test failed"));
  2140 		return EFail; 
  2141 		}
  2142 	else
  2143 		return EPass; 
  2144 	}
  2145 
  2146 //------------------------------------------------------------------
  2147 
  2148 /** @xxxx
  2149  * Constructor
  2150  */
  2151 CTest_MMF_ACOD_U_0050::CTest_MMF_ACOD_U_0050()
  2152 	{
  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");
  2157 	}
  2158 
  2159 /** @xxxx
  2160  * PCM16 To PCMU16B Instantiate codec by FourCC Codes
  2161  * @test Req. under test REQ172.6.2
  2162  */
  2163 TVerdict CTest_MMF_ACOD_U_0050::DoTestStepL()
  2164 	{
  2165 	TBool testOK = EFalse;
  2166 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCMU16B));
  2167 TInt err = KErrNone ;
  2168 
  2169 	if (err)
  2170 		{
  2171 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2172 		return EFail;
  2173 		}
  2174 	else if (!testOK)
  2175 		{
  2176 		INFO_PRINTF1(_L("Test failed"));
  2177 		return EFail; 
  2178 		}
  2179 	else
  2180 		return EPass; 
  2181 	}
  2182 
  2183 //------------------------------------------------------------------
  2184 
  2185 /** @xxxx
  2186  * Constructor
  2187  */
  2188 CTest_MMF_ACOD_U_0051::CTest_MMF_ACOD_U_0051()
  2189 	{
  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");
  2194 	}
  2195 
  2196 /** @xxxx
  2197  * PCM16 To PCMU16B Instantiate codec by UID
  2198  * @test Req. under test REQ172.6.1
  2199  */
  2200 TVerdict CTest_MMF_ACOD_U_0051::DoTestStepL()
  2201 	{                      
  2202 //	const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
  2203 	TBool testOK = EFalse;
  2204 //	TRAPD(err, testOK = TestNewL(codecUid));
  2205 TInt err = KErrNone ;
  2206 
  2207 	if (err)
  2208 		{
  2209 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2210 		return EFail;
  2211 		}
  2212 	else if (!testOK)
  2213 		{
  2214 		INFO_PRINTF1(_L("Test failed"));
  2215 		return EFail; 
  2216 		}
  2217 	else
  2218 		return EPass; 
  2219 	}
  2220 
  2221 //------------------------------------------------------------------
  2222 
  2223 /** @xxxx
  2224  * Constructor
  2225  */
  2226 CTest_MMF_ACOD_U_0052::CTest_MMF_ACOD_U_0052()
  2227 	{
  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");
  2232 
  2233 	for (TUint i=0; i<5; i++)
  2234 		{
  2235 		iExpectedSrcBytesProcessed[i] = 50;
  2236 		iExpectedDstBytesAdded[i] = 50;
  2237 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  2238 		}
  2239 	}
  2240 
  2241 /** @xxxx
  2242  * PCM16 To PCMU16B Pass in small source buffers
  2243  * @test Req. under test REQ172.6.4, REQ172.6.5
  2244  */
  2245 TVerdict CTest_MMF_ACOD_U_0052::DoTestStepL()
  2246 	{
  2247 //	const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
  2248 	TBool testOK = EFalse;
  2249 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCMU16BOptimumDst));
  2250     TInt err = KErrNone;
  2251 	if (err)
  2252 		{
  2253 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2254 		return EFail;
  2255 		}
  2256 	else if (!testOK)
  2257 		{
  2258 		INFO_PRINTF1(_L("Test failed"));
  2259 		return EFail; 
  2260 		}
  2261 	else
  2262 		return EPass; 
  2263 	}
  2264 
  2265 //------------------------------------------------------------------
  2266 
  2267 /** @xxxx
  2268  * Constructor
  2269  */
  2270 CTest_MMF_ACOD_U_0053::CTest_MMF_ACOD_U_0053()
  2271 	{
  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");
  2276 
  2277 	for (TUint i=0; i<5; i++)
  2278 		{
  2279 		iExpectedSrcBytesProcessed[i] = 50;
  2280 		iExpectedDstBytesAdded[i] = 50;
  2281 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  2282 		}
  2283 	}
  2284 
  2285 /** @xxxx
  2286  * PCM16 To PCMU16B Pass in small dest buffers
  2287  * @test Req. under test REQ172.6.4, REQ172.6.5
  2288  */
  2289 TVerdict CTest_MMF_ACOD_U_0053::DoTestStepL()
  2290 	{
  2291 //	const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
  2292 	TBool testOK = EFalse;
  2293 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16BOptimumSrc, KSmallBufferSize));
  2294     TInt err = KErrNone;
  2295 	if (err)
  2296 		{
  2297 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2298 		return EFail;
  2299 		}
  2300 	else if (!testOK)
  2301 		{
  2302 		INFO_PRINTF1(_L("Test failed"));
  2303 		return EFail; 
  2304 		}
  2305 	else
  2306 		return EPass; 
  2307 	}
  2308 
  2309 //------------------------------------------------------------------
  2310 
  2311 /** @xxxx
  2312  * Constructor
  2313  */
  2314 CTest_MMF_ACOD_U_0054::CTest_MMF_ACOD_U_0054()
  2315 	{
  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++)
  2322 		{
  2323 		iExpectedSrcBytesProcessed[i] = 10000;
  2324 		iExpectedDstBytesAdded[i] = 10000;
  2325 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  2326 		}
  2327 	}
  2328 
  2329 /** @xxxx
  2330  * PCM16 To PCMU16B Pass in large buffers
  2331  * @test Req. under test REQ172.6.4, REQ172.6.5
  2332  */
  2333 TVerdict CTest_MMF_ACOD_U_0054::DoTestStepL()
  2334 	{
  2335 //	const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
  2336 	TBool testOK = EFalse;
  2337 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
  2338     TInt err = KErrNone;
  2339 	if (err)
  2340 		{
  2341 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2342 		return EFail;
  2343 		}
  2344 	else if (!testOK)
  2345 		{
  2346 		INFO_PRINTF1(_L("Test failed"));
  2347 		return EFail; 
  2348 		}
  2349 	else
  2350 		return EPass; 
  2351 	}
  2352 
  2353 //------------------------------------------------------------------
  2354 
  2355 /** @xxxx
  2356  * Constructor
  2357  */
  2358 CTest_MMF_ACOD_U_0055::CTest_MMF_ACOD_U_0055()
  2359 	{
  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");
  2364 
  2365 	for (TUint i=0; i<5; i++)
  2366 		{
  2367 		iExpectedSrcBytesProcessed[i] = 0x1000;
  2368 		iExpectedDstBytesAdded[i] = 0x1000;
  2369 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  2370 		}
  2371 	}
  2372 
  2373 /** @xxxx
  2374  * PCM16 To PCMU16B Pass in default sized buffers
  2375  * @test Req. under test REQ172.6.4, REQ172.6.5
  2376  */
  2377 TVerdict CTest_MMF_ACOD_U_0055::DoTestStepL()
  2378 	{
  2379 //	const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
  2380 	TBool testOK = EFalse;
  2381 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
  2382     TInt err = KErrNone;
  2383 	if (err)
  2384 		{
  2385 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2386 		return EFail;
  2387 		}
  2388 	else if (!testOK)
  2389 		{
  2390 		INFO_PRINTF1(_L("Test failed"));
  2391 		return EFail; 
  2392 		}
  2393 	else
  2394 		return EPass; 
  2395 	}
  2396 
  2397 //------------------------------------------------------------------
  2398 
  2399 /** @xxxx
  2400  * Constructor
  2401  */
  2402 CTest_MMF_ACOD_U_0056::CTest_MMF_ACOD_U_0056()
  2403 	{
  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");
  2408 
  2409 	for (TUint i=0; i<5; i++)
  2410 		{
  2411 		iExpectedSrcBytesProcessed[i] = 0x1000;
  2412 		iExpectedDstBytesAdded[i] = 0x1000;
  2413 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  2414 		}
  2415 	}
  2416 
  2417 /** @xxxx
  2418  * PCM16 To PCMU16B Pass in buffers with different max length and length
  2419  * @test Req. under test REQ172.6.4, REQ172.6.5
  2420  */
  2421 TVerdict CTest_MMF_ACOD_U_0056::DoTestStepL()
  2422 	{
  2423 //	const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
  2424 	TBool testOK = EFalse;
  2425 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
  2426     TInt err = KErrNone;
  2427 	if (err)
  2428 		{
  2429 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2430 		return EFail;
  2431 		}
  2432 	else if (!testOK)
  2433 		{
  2434 		INFO_PRINTF1(_L("Test failed"));
  2435 		return EFail; 
  2436 		}
  2437 	else
  2438 		return EPass; 
  2439 	}
  2440 
  2441 //------------------------------------------------------------------
  2442 
  2443 /** @xxxx
  2444  * Constructor
  2445  */
  2446 CTest_MMF_ACOD_U_0057::CTest_MMF_ACOD_U_0057()
  2447 	{
  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");
  2452 
  2453 	for (TUint i=0; i<5; i++)
  2454 		{
  2455 		iExpectedSrcBytesProcessed[i] = 0x1000;
  2456 		iExpectedDstBytesAdded[i] = 0x1000;
  2457 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  2458 		}
  2459 	}
  2460 
  2461 /** @xxxx
  2462  * PCM16 To PCMU16B Pass in buffers of optimum size
  2463  * @test Req. under test REQ172.6.4, REQ172.6.5
  2464  */
  2465 TVerdict CTest_MMF_ACOD_U_0057::DoTestStepL()
  2466 	{
  2467 //	const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
  2468 	TBool testOK = EFalse;
  2469 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16BOptimumSrc, KPCM16ToPCMU16BOptimumDst));
  2470     TInt err = KErrNone;
  2471 	if (err)
  2472 		{
  2473 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2474 		return EFail;
  2475 		}
  2476 	else if (!testOK)
  2477 		{
  2478 		INFO_PRINTF1(_L("Test failed"));
  2479 		return EFail; 
  2480 		}
  2481 	else
  2482 		return EPass; 
  2483 	}
  2484 
  2485 //------------------------------------------------------------------
  2486 
  2487 /** @xxxx
  2488  * Constructor
  2489  */
  2490 CTest_MMF_ACOD_U_0058::CTest_MMF_ACOD_U_0058()
  2491 	{
  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");
  2496 	}
  2497 
  2498 /** @xxxx
  2499  * PCM16 To PCMU16B Reposition source pointer during conversion
  2500  * @test Req. under test REQ172.11
  2501  */
  2502 TVerdict CTest_MMF_ACOD_U_0058::DoTestStepL()
  2503 	{
  2504 //	const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
  2505 	TBool testOK = EFalse;
  2506 	
  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;
  2510 	if (err)
  2511 		{
  2512 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2513 		return EFail;
  2514 		}
  2515 	else if (!testOK)
  2516 		{
  2517 		INFO_PRINTF1(_L("Test failed"));
  2518 		return EFail; 
  2519 		}
  2520 	else
  2521 		return EPass; 
  2522 	}
  2523 
  2524 //------------------------------------------------------------------
  2525 
  2526 /** @xxxx
  2527  * Constructor
  2528  */
  2529 CTest_MMF_ACOD_U_0059::CTest_MMF_ACOD_U_0059()
  2530 	{
  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");
  2535 	}
  2536 
  2537 /** @xxxx
  2538  * PCM16 To PCMU16 Instantiate codec by FourCC Codes
  2539  * @test Req. under test REQ172.6.2, REQ172.11.7
  2540  */
  2541 TVerdict CTest_MMF_ACOD_U_0059::DoTestStepL()
  2542 	{
  2543 	TBool testOK = EFalse;
  2544 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCMU16));
  2545 TInt err = KErrNone;
  2546 	if (err)
  2547 		{
  2548 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2549 		return EFail;
  2550 		}
  2551 	else if (!testOK)
  2552 		{
  2553 		INFO_PRINTF1(_L("Test failed"));
  2554 		return EFail; 
  2555 		}
  2556 	else
  2557 		return EPass; 
  2558 	}
  2559 
  2560 //------------------------------------------------------------------
  2561 
  2562 /** @xxxx
  2563  * Constructor
  2564  */
  2565 CTest_MMF_ACOD_U_0060::CTest_MMF_ACOD_U_0060()
  2566 	{
  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");
  2571 	}
  2572 
  2573 /** @xxxx
  2574  * PCM16 To PCMU16 Instantiate codec by UID
  2575  * @test Req. under test REQ172.6.1, REQ172.11.7 
  2576  */
  2577 TVerdict CTest_MMF_ACOD_U_0060::DoTestStepL()
  2578 	{
  2579 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
  2580 	TBool testOK = EFalse;
  2581 //	TRAPD(err, testOK = TestNewL(codecUid));
  2582 TInt err = KErrNone ;
  2583 	if (err)
  2584 		{
  2585 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2586 		return EFail;
  2587 		}
  2588 	else if (!testOK)
  2589 		{
  2590 		INFO_PRINTF1(_L("Test failed"));
  2591 		return EFail; 
  2592 		}
  2593 	else
  2594 		return EPass; 
  2595 	}
  2596 
  2597 //------------------------------------------------------------------
  2598 
  2599 /** @xxxx
  2600  * Constructor
  2601  */
  2602 CTest_MMF_ACOD_U_0061::CTest_MMF_ACOD_U_0061()
  2603 	{
  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");
  2608 
  2609 	for (TUint i=0; i<5; i++)
  2610 		{
  2611 		iExpectedSrcBytesProcessed[i] = 50;
  2612 		iExpectedDstBytesAdded[i] = 50;
  2613 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  2614 		}
  2615 	}
  2616 
  2617 /** @xxxx
  2618  * PCM16 To PCMU16 Pass in small source buffers
  2619  * @test Req. under test REQ172.6.4, REQ172.6.5
  2620  */
  2621 TVerdict CTest_MMF_ACOD_U_0061::DoTestStepL()
  2622 	{
  2623 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
  2624 	TBool testOK = EFalse;
  2625 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCMU16OptimumDst));
  2626     TInt err = KErrNone;
  2627 	if (err)
  2628 		{
  2629 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2630 		return EFail;
  2631 		}
  2632 	else if (!testOK)
  2633 		{
  2634 		INFO_PRINTF1(_L("Test failed"));
  2635 		return EFail; 
  2636 		}
  2637 	else
  2638 		return EPass; 
  2639 	}
  2640 
  2641 //------------------------------------------------------------------
  2642 
  2643 /** @xxxx
  2644  * Constructor
  2645  */
  2646 CTest_MMF_ACOD_U_0062::CTest_MMF_ACOD_U_0062()
  2647 	{
  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");
  2652 
  2653 	for (TUint i=0; i<5; i++)
  2654 		{
  2655 		iExpectedSrcBytesProcessed[i] = 50;
  2656 		iExpectedDstBytesAdded[i] = 50;
  2657 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  2658 		}
  2659 	}
  2660 
  2661 /** @xxxx
  2662  * PCM16 To PCMU16 Pass in small dest buffers
  2663  * @test Req. under test REQ172.6.4, REQ172.6.5
  2664  */
  2665 TVerdict CTest_MMF_ACOD_U_0062::DoTestStepL()
  2666 	{
  2667 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
  2668 	TBool testOK = EFalse;
  2669 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16OptimumSrc, KSmallBufferSize));
  2670     TInt err = KErrNone;
  2671 	if (err)
  2672 		{
  2673 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2674 		return EFail;
  2675 		}
  2676 	else if (!testOK)
  2677 		{
  2678 		INFO_PRINTF1(_L("Test failed"));
  2679 		return EFail; 
  2680 		}
  2681 	else
  2682 		return EPass; 
  2683 	}
  2684 
  2685 //------------------------------------------------------------------
  2686 
  2687 /** @xxxx
  2688  * Constructor
  2689  */
  2690 CTest_MMF_ACOD_U_0063::CTest_MMF_ACOD_U_0063()
  2691 	{
  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;
  2697 
  2698 	for (TUint i=0; i<5; i++)
  2699 		{
  2700 		iExpectedSrcBytesProcessed[i] = 10000;
  2701 		iExpectedDstBytesAdded[i] = 10000;
  2702 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  2703 		}
  2704 	}
  2705 
  2706 /** @xxxx
  2707  * PCM16 To PCMU16 Pass in large buffers
  2708  * @test Req. under test REQ172.6.4, REQ172.6.5
  2709  */
  2710 TVerdict CTest_MMF_ACOD_U_0063::DoTestStepL()
  2711 	{
  2712 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
  2713 	TBool testOK = EFalse;
  2714 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
  2715     TInt err = KErrNone;
  2716 	if (err)
  2717 		{
  2718 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2719 		return EFail;
  2720 		}
  2721 	else if (!testOK)
  2722 		{
  2723 		INFO_PRINTF1(_L("Test failed"));
  2724 		return EFail; 
  2725 		}
  2726 	else
  2727 		return EPass; 
  2728 	}
  2729 
  2730 //------------------------------------------------------------------
  2731 
  2732 /** @xxxx
  2733  * Constructor
  2734  */
  2735 CTest_MMF_ACOD_U_0064::CTest_MMF_ACOD_U_0064()
  2736 	{
  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");
  2741 
  2742 	for (TUint i=0; i<5; i++)
  2743 		{
  2744 		iExpectedSrcBytesProcessed[i] = 0x1000;
  2745 		iExpectedDstBytesAdded[i] = 0x1000;
  2746 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  2747 		}
  2748 	}
  2749 
  2750 /** @xxxx
  2751  * PCM16 To PCMU16 Pass in default sized buffers
  2752  * @test Req. under test REQ172.6.4, REQ172.6.5
  2753  */
  2754 TVerdict CTest_MMF_ACOD_U_0064::DoTestStepL()
  2755 	{
  2756 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
  2757 	TBool testOK = EFalse;
  2758 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
  2759     TInt err = KErrNone;
  2760 	if (err)
  2761 		{
  2762 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2763 		return EFail;
  2764 		}
  2765 	else if (!testOK)
  2766 		{
  2767 		INFO_PRINTF1(_L("Test failed"));
  2768 		return EFail; 
  2769 		}
  2770 	else
  2771 		return EPass; 
  2772 	}
  2773 
  2774 //------------------------------------------------------------------
  2775 
  2776 /** @xxxx
  2777  * Constructor
  2778  */
  2779 CTest_MMF_ACOD_U_0065::CTest_MMF_ACOD_U_0065()
  2780 	{
  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");
  2785 
  2786 	for (TUint i=0; i<5; i++)
  2787 		{
  2788 		iExpectedSrcBytesProcessed[i] = 0x1000;
  2789 		iExpectedDstBytesAdded[i] = 0x1000;
  2790 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  2791 		}
  2792 	}
  2793 
  2794 /** @xxxx
  2795  * PCM16 To PCMU16 Pass in buffers with different max length and length
  2796  * @test Req. under test REQ172.6.4, REQ172.6.5
  2797  */
  2798 TVerdict CTest_MMF_ACOD_U_0065::DoTestStepL()
  2799 	{
  2800 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
  2801 	TBool testOK = EFalse;
  2802 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
  2803     TInt err = KErrNone;
  2804 	if (err)
  2805 		{
  2806 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2807 		return EFail;
  2808 		}
  2809 	else if (!testOK)
  2810 		{
  2811 		INFO_PRINTF1(_L("Test failed"));
  2812 		return EFail; 
  2813 		}
  2814 	else
  2815 		return EPass; 
  2816 	}
  2817 
  2818 //------------------------------------------------------------------
  2819 
  2820 /** @xxxx
  2821  * Constructor
  2822  */
  2823 CTest_MMF_ACOD_U_0066::CTest_MMF_ACOD_U_0066()
  2824 	{
  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");
  2829 
  2830 	for (TUint i=0; i<5; i++)
  2831 		{
  2832 		iExpectedSrcBytesProcessed[i] = 0x1000;
  2833 		iExpectedDstBytesAdded[i] = 0x1000;
  2834 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  2835 		}
  2836 	}
  2837 
  2838 /** @xxxx
  2839  * PCM16 To PCMU16 Pass in buffers of optimum size
  2840  * @test Req. under test REQ172.6.4, REQ172.6.5
  2841  */
  2842 TVerdict CTest_MMF_ACOD_U_0066::DoTestStepL()
  2843 	{
  2844 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
  2845 	TBool testOK = EFalse;
  2846 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16OptimumSrc, KPCM16ToPCMU16OptimumDst));
  2847     TInt err = KErrNone;
  2848 	if (err)
  2849 		{
  2850 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2851 		return EFail;
  2852 		}
  2853 	else if (!testOK)
  2854 		{
  2855 		INFO_PRINTF1(_L("Test failed"));
  2856 		return EFail; 
  2857 		}
  2858 	else
  2859 		return EPass; 
  2860 	}
  2861 
  2862 //------------------------------------------------------------------
  2863 
  2864 /** @xxxx
  2865  * Constructor
  2866  */
  2867 CTest_MMF_ACOD_U_0067::CTest_MMF_ACOD_U_0067()
  2868 	{
  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");
  2873 	}
  2874 
  2875 /** @xxxx
  2876  * PCM16 To PCMU16 Reposition source pointer during conversion
  2877  * @test Req. under test REQ172.11
  2878  */
  2879 TVerdict CTest_MMF_ACOD_U_0067::DoTestStepL()
  2880 	{
  2881 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
  2882 	TBool testOK = EFalse;
  2883 	
  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 ;
  2887 
  2888 	if (err)
  2889 		{
  2890 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2891 		return EFail;
  2892 		}
  2893 	else if (!testOK)
  2894 		{
  2895 		INFO_PRINTF1(_L("Test failed"));
  2896 		return EFail; 
  2897 		}
  2898 	else
  2899 		return EPass; 
  2900 	}
  2901 
  2902 //------------------------------------------------------------------
  2903 
  2904 /** @xxxx
  2905  * Constructor
  2906  */
  2907 CTest_MMF_ACOD_U_0068::CTest_MMF_ACOD_U_0068()
  2908 	{
  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");
  2913 	}
  2914 
  2915 /** @xxxx
  2916  * PCM16 To PCMU8 Instantiate codec by FourCC Codes
  2917  * @test Req. under test REQ172.6.2, REQ172.11.8
  2918  */
  2919 TVerdict CTest_MMF_ACOD_U_0068::DoTestStepL()
  2920 	{
  2921 	TBool testOK = EFalse;
  2922 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodePCMU8));
  2923 TInt err = KErrNone ;
  2924 	if (err)
  2925 		{
  2926 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2927 		return EFail;
  2928 		}
  2929 	else if (!testOK)
  2930 		{
  2931 		INFO_PRINTF1(_L("Test failed"));
  2932 		return EFail; 
  2933 		}
  2934 	else
  2935 		return EPass; 
  2936 	}
  2937 
  2938 //------------------------------------------------------------------
  2939 
  2940 /** @xxxx
  2941  * Constructor
  2942  */
  2943 CTest_MMF_ACOD_U_0069::CTest_MMF_ACOD_U_0069()
  2944 	{
  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");
  2949 	}
  2950 
  2951 /** @xxxx
  2952  * PCM16 To PCMU8 Instantiate codec by UID
  2953  * @test Req. under test REQ172.6.1, REQ172.11.8
  2954  */
  2955 TVerdict CTest_MMF_ACOD_U_0069::DoTestStepL()
  2956 	{
  2957 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
  2958 	TBool testOK = EFalse;
  2959 	//TRAPD(err, testOK = TestNewL(codecUid));
  2960 	TInt err = KErrNone ;
  2961 
  2962 	if (err)
  2963 		{
  2964 		INFO_PRINTF2(_L("Test left with status %d"), err);
  2965 		return EFail;
  2966 		}
  2967 	else if (!testOK)
  2968 		{
  2969 		INFO_PRINTF1(_L("Test failed"));
  2970 		return EFail; 
  2971 		}
  2972 	else
  2973 		return EPass; 
  2974 	}
  2975 
  2976 //------------------------------------------------------------------
  2977 
  2978 /** @xxxx
  2979  * Constructor
  2980  */
  2981 CTest_MMF_ACOD_U_0070::CTest_MMF_ACOD_U_0070()
  2982 	{
  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");
  2987 
  2988 	for (TUint i=0; i<5; i++)
  2989 		{
  2990 		iExpectedSrcBytesProcessed[i] = 50;
  2991 		iExpectedDstBytesAdded[i] = 25;
  2992 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  2993 		}
  2994 	}
  2995 
  2996 /** @xxxx
  2997  * PCM16 To PCMU8 Pass in small source buffers
  2998  * @test Req. under test REQ172.6.4, REQ172.6.5
  2999  */
  3000 TVerdict CTest_MMF_ACOD_U_0070::DoTestStepL()
  3001 	{
  3002 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
  3003 	TBool testOK = EFalse;
  3004 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToPCMU8OptimumDst));
  3005     TInt err = KErrNone ;
  3006 	if (err)
  3007 		{
  3008 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3009 		return EFail;
  3010 		}
  3011 	else if (!testOK)
  3012 		{
  3013 		INFO_PRINTF1(_L("Test failed"));
  3014 		return EFail; 
  3015 		}
  3016 	else
  3017 		return EPass; 
  3018 	}
  3019 
  3020 //------------------------------------------------------------------
  3021 
  3022 /** @xxxx
  3023  * Constructor
  3024  */
  3025 CTest_MMF_ACOD_U_0071::CTest_MMF_ACOD_U_0071()
  3026 	{
  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");
  3031 
  3032 	for (TUint i=0; i<5; i++)
  3033 		{
  3034 		iExpectedSrcBytesProcessed[i] = 100;
  3035 		iExpectedDstBytesAdded[i] = 50;
  3036 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  3037 		}
  3038 	}
  3039 
  3040 /** @xxxx
  3041  * PCM16 To PCMU8 Pass in small dest buffers
  3042  * @test Req. under test REQ172.6.4, REQ172.6.5
  3043  */
  3044 TVerdict CTest_MMF_ACOD_U_0071::DoTestStepL()
  3045 	{
  3046 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
  3047 	TBool testOK = EFalse;
  3048 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU8OptimumSrc, KSmallBufferSize));
  3049     TInt err = KErrNone;
  3050 	if (err)
  3051 		{
  3052 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3053 		return EFail;
  3054 		}
  3055 	else if (!testOK)
  3056 		{
  3057 		INFO_PRINTF1(_L("Test failed"));
  3058 		return EFail; 
  3059 		}
  3060 	else
  3061 		return EPass; 
  3062 	}
  3063 
  3064 //------------------------------------------------------------------
  3065 
  3066 /** @xxxx
  3067  * Constructor
  3068  */
  3069 CTest_MMF_ACOD_U_0072::CTest_MMF_ACOD_U_0072()
  3070 	{
  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;
  3076 
  3077 	for (TUint i=0; i<5; i++)
  3078 		{
  3079 		iExpectedSrcBytesProcessed[i] = 10000;
  3080 		iExpectedDstBytesAdded[i] = 5000;
  3081 
  3082 		if((i%2)==0)//even i
  3083 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  3084 		else		//odd i
  3085 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  3086 		}
  3087 	}
  3088 
  3089 /** @xxxx
  3090  * PCM16 To PCMU8 Pass in large buffers
  3091  * @test Req. under test REQ172.6.4, REQ172.6.5
  3092  */
  3093 TVerdict CTest_MMF_ACOD_U_0072::DoTestStepL()
  3094 	{
  3095 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
  3096 	TBool testOK = EFalse;
  3097 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
  3098     TInt err = KErrNone;
  3099 	if (err)
  3100 		{
  3101 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3102 		return EFail;
  3103 		}
  3104 	else if (!testOK)
  3105 		{
  3106 		INFO_PRINTF1(_L("Test failed"));
  3107 		return EFail; 
  3108 		}
  3109 	else
  3110 		return EPass; 
  3111 	}
  3112 
  3113 //------------------------------------------------------------------
  3114 
  3115 /** @xxxx
  3116  * Constructor
  3117  */
  3118 CTest_MMF_ACOD_U_0073::CTest_MMF_ACOD_U_0073()
  3119 	{
  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");
  3124 
  3125 	for (TUint i=0; i<5; i++)
  3126 		{
  3127 		iExpectedSrcBytesProcessed[i] = 0x1000;
  3128 		iExpectedDstBytesAdded[i] = 0x800;
  3129 
  3130 		if((i%2)==0)//even i
  3131 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  3132 		else		//odd i
  3133 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  3134 		}
  3135 	}
  3136 
  3137 /** @xxxx
  3138  * PCM16 To PCMU8 Pass in default sized buffers
  3139  * @test Req. under test REQ172.6.4, REQ172.6.5
  3140  */
  3141 TVerdict CTest_MMF_ACOD_U_0073::DoTestStepL()
  3142 	{
  3143 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
  3144 	TBool testOK = EFalse;
  3145 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
  3146     TInt err = KErrNone;
  3147 	if (err)
  3148 		{
  3149 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3150 		return EFail;
  3151 		}
  3152 	else if (!testOK)
  3153 		{
  3154 		INFO_PRINTF1(_L("Test failed"));
  3155 		return EFail; 
  3156 		}
  3157 	else
  3158 		return EPass; 
  3159 	}
  3160 
  3161 //------------------------------------------------------------------
  3162 
  3163 /** @xxxx
  3164  * Constructor
  3165  */
  3166 CTest_MMF_ACOD_U_0074::CTest_MMF_ACOD_U_0074()
  3167 	{
  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");
  3172 
  3173 	for (TUint i=0; i<5; i++)
  3174 		{
  3175 		iExpectedSrcBytesProcessed[i] = 0x1000;
  3176 		iExpectedDstBytesAdded[i] = 0x800;
  3177 
  3178 		if((i%2)==0)//even i
  3179 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  3180 		else		//odd i
  3181 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  3182 		}
  3183 	}
  3184 
  3185 /** @xxxx
  3186  * PCM16 To PCMU8 Pass in buffers with different max length and length
  3187  * @test Req. under test REQ172.6.4, REQ172.6.5
  3188  */
  3189 TVerdict CTest_MMF_ACOD_U_0074::DoTestStepL()
  3190 	{
  3191 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
  3192 	TBool testOK = EFalse;
  3193 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
  3194     TInt err = KErrNone;
  3195 	if (err)
  3196 		{
  3197 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3198 		return EFail;
  3199 		}
  3200 	else if (!testOK)
  3201 		{
  3202 		INFO_PRINTF1(_L("Test failed"));
  3203 		return EFail; 
  3204 		}
  3205 	else
  3206 		return EPass; 
  3207 	}
  3208 
  3209 //------------------------------------------------------------------
  3210 
  3211 /** @xxxx
  3212  * Constructor
  3213  */
  3214 CTest_MMF_ACOD_U_0075::CTest_MMF_ACOD_U_0075()
  3215 	{
  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");
  3220 
  3221 	for (TUint i=0; i<5; i++)
  3222 		{
  3223 		iExpectedSrcBytesProcessed[i] = 0x1000;
  3224 		iExpectedDstBytesAdded[i] = 0x800;
  3225 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  3226 		}
  3227 	}
  3228 
  3229 /** @xxxx
  3230  * PCM16 To PCMU8 Pass in buffers of optimum size
  3231  * @test Req. under test REQ172.6.4, REQ172.6.5
  3232  */
  3233 TVerdict CTest_MMF_ACOD_U_0075::DoTestStepL()
  3234 	{
  3235 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
  3236 	TBool testOK = EFalse;
  3237 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU8OptimumSrc, KPCM16ToPCMU8OptimumDst));
  3238     TInt err = KErrNone;
  3239 	if (err)
  3240 		{
  3241 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3242 		return EFail;
  3243 		}
  3244 	else if (!testOK)
  3245 		{
  3246 		INFO_PRINTF1(_L("Test failed"));
  3247 		return EFail; 
  3248 		}
  3249 	else
  3250 		return EPass; 
  3251 	}
  3252 
  3253 //------------------------------------------------------------------
  3254 
  3255 /** @xxxx
  3256  * Constructor
  3257  */
  3258 CTest_MMF_ACOD_U_0076::CTest_MMF_ACOD_U_0076()
  3259 	{
  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");
  3264 	}
  3265 
  3266 /** @xxxx
  3267  * PCM16 To PCMU8 Reposition source pointer during conversion
  3268  * @test Req. under test REQ172.11
  3269  */
  3270 TVerdict CTest_MMF_ACOD_U_0076::DoTestStepL()
  3271 	{
  3272 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
  3273 	TBool testOK = EFalse;
  3274 	
  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 ;
  3278 	if (err)
  3279 		{
  3280 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3281 		return EFail;
  3282 		}
  3283 	else if (!testOK)
  3284 		{
  3285 		INFO_PRINTF1(_L("Test failed"));
  3286 		return EFail; 
  3287 		}
  3288 	else
  3289 		return EPass; 
  3290 	}
  3291 
  3292 //-----------------------------------------------------------------
  3293 
  3294 /** @xxxx
  3295  * Constructor
  3296  */
  3297 CTest_MMF_ACOD_U_0077::CTest_MMF_ACOD_U_0077()
  3298 	{
  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");
  3303 	}
  3304 
  3305 /** @xxxx
  3306  * PCMU16B To PCM16 Instantiate codec by FourCC Codes
  3307  * @test Req. under test REQ172.6.2, REQ172.11.9
  3308  */
  3309 TVerdict CTest_MMF_ACOD_U_0077::DoTestStepL()
  3310 	{
  3311 	TBool testOK = EFalse;
  3312 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU16B, KMMFFourCCCodePCM16));
  3313     TInt err = KErrNone;
  3314 	if (err)
  3315 		{
  3316 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3317 		return EFail;
  3318 		}
  3319 	else if (!testOK)
  3320 		{
  3321 		INFO_PRINTF1(_L("Test failed"));
  3322 		return EFail; 
  3323 		}
  3324 	else
  3325 		return EPass; 
  3326 	}
  3327 
  3328 //------------------------------------------------------------------
  3329 
  3330 /** @xxxx
  3331  * Constructor
  3332  */
  3333 CTest_MMF_ACOD_U_0078::CTest_MMF_ACOD_U_0078()
  3334 	{
  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");
  3339 	}
  3340 
  3341 /** @xxxx
  3342  * PCMU16B To PCM16 Instantiate codec by UID
  3343  * @test Req. under test REQ172.6.1, REQ172.11.9
  3344  */
  3345 TVerdict CTest_MMF_ACOD_U_0078::DoTestStepL()
  3346 	{
  3347 //	const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
  3348 	TBool testOK = EFalse;
  3349 //	TRAPD(err, testOK = TestNewL(codecUid));
  3350     TInt err = KErrNone;
  3351 	if (err)
  3352 		{
  3353 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3354 		return EFail;
  3355 		}
  3356 	else if (!testOK)
  3357 		{
  3358 		INFO_PRINTF1(_L("Test failed"));
  3359 		return EFail; 
  3360 		}
  3361 	else
  3362 		return EPass; 
  3363 	}
  3364 
  3365 //------------------------------------------------------------------
  3366 
  3367 /** @xxxx
  3368  * Constructor
  3369  */
  3370 CTest_MMF_ACOD_U_0079::CTest_MMF_ACOD_U_0079()
  3371 	{
  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");
  3376 
  3377 	for (TUint i=0; i<5; i++)
  3378 		{
  3379 		iExpectedSrcBytesProcessed[i] = 50;
  3380 		iExpectedDstBytesAdded[i] = 50;
  3381 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  3382 		}
  3383 	}
  3384 
  3385 /** @xxxx
  3386  * PCMU16B To PCM16 Pass in small source buffers
  3387  * @test Req. under test REQ172.6.4, REQ172.6.5
  3388  */
  3389 TVerdict CTest_MMF_ACOD_U_0079::DoTestStepL()
  3390 	{
  3391 //	const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
  3392 	TBool testOK = EFalse;
  3393 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCMU16BToPCM16OptimumDst));
  3394     TInt err = KErrNone;
  3395 	if (err)
  3396 		{
  3397 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3398 		return EFail;
  3399 		}
  3400 	else if (!testOK)
  3401 		{
  3402 		INFO_PRINTF1(_L("Test failed"));
  3403 		return EFail; 
  3404 		}
  3405 	else
  3406 		return EPass; 
  3407 	}
  3408 
  3409 //------------------------------------------------------------------
  3410 
  3411 /** @xxxx
  3412  * Constructor
  3413  */
  3414 CTest_MMF_ACOD_U_0080::CTest_MMF_ACOD_U_0080()
  3415 	{
  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");
  3420 
  3421 	for (TUint i=0; i<5; i++)
  3422 		{
  3423 		iExpectedSrcBytesProcessed[i] = 50;
  3424 		iExpectedDstBytesAdded[i] = 50;
  3425 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  3426 		}
  3427 	}
  3428 
  3429 /** @xxxx
  3430  * PCMU16B To PCM16 Pass in small dest buffers
  3431  * @test Req. under test REQ172.6.4, REQ172.6.5
  3432  */
  3433 TVerdict CTest_MMF_ACOD_U_0080::DoTestStepL()
  3434 	{
  3435 	//const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
  3436 	TBool testOK = EFalse;
  3437 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16BToPCM16OptimumSrc, KSmallBufferSize));
  3438     TInt err = KErrNone;
  3439 	if (err)
  3440 		{
  3441 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3442 		return EFail;
  3443 		}
  3444 	else if (!testOK)
  3445 		{
  3446 		INFO_PRINTF1(_L("Test failed"));
  3447 		return EFail; 
  3448 		}
  3449 	else
  3450 		return EPass; 
  3451 	}
  3452 
  3453 //------------------------------------------------------------------
  3454 
  3455 /** @xxxx
  3456  * Constructor
  3457  */
  3458 CTest_MMF_ACOD_U_0081::CTest_MMF_ACOD_U_0081()
  3459 	{
  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;
  3465 
  3466 	for (TUint i=0; i<5; i++)
  3467 		{
  3468 		iExpectedSrcBytesProcessed[i] = 10000;
  3469 		iExpectedDstBytesAdded[i] = 10000;
  3470 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  3471 		}
  3472 	}
  3473 
  3474 /** @xxxx
  3475  * PCMU16B To PCM16 Pass in large buffers
  3476  * @test Req. under test REQ172.6.4, REQ172.6.5
  3477  */
  3478 TVerdict CTest_MMF_ACOD_U_0081::DoTestStepL()
  3479 	{
  3480 	//const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
  3481 	TBool testOK = EFalse;
  3482 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
  3483     TInt err = KErrNone;
  3484 	if (err)
  3485 		{
  3486 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3487 		return EFail;
  3488 		}
  3489 	else if (!testOK)
  3490 		{
  3491 		INFO_PRINTF1(_L("Test failed"));
  3492 		return EFail; 
  3493 		}
  3494 	else
  3495 		return EPass; 
  3496 	}
  3497 
  3498 //------------------------------------------------------------------
  3499 
  3500 /** @xxxx
  3501  * Constructor
  3502  */
  3503 CTest_MMF_ACOD_U_0082::CTest_MMF_ACOD_U_0082()
  3504 	{
  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");
  3509 
  3510 	for (TUint i=0; i<5; i++)
  3511 		{
  3512 		iExpectedSrcBytesProcessed[i] = 0x1000;
  3513 		iExpectedDstBytesAdded[i] = 0x1000;
  3514 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  3515 		}
  3516 	}
  3517 
  3518 /** @xxxx
  3519  * PCMU16B To PCM16 Pass in default sized buffers
  3520  * @test Req. under test REQ172.6.4, REQ172.6.5
  3521  */
  3522 TVerdict CTest_MMF_ACOD_U_0082::DoTestStepL()
  3523 	{
  3524 	//const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
  3525 	TBool testOK = EFalse;
  3526 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
  3527     TInt err = KErrNone;
  3528 	if (err)
  3529 		{
  3530 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3531 		return EFail;
  3532 		}
  3533 	else if (!testOK)
  3534 		{
  3535 		INFO_PRINTF1(_L("Test failed"));
  3536 		return EFail; 
  3537 		}
  3538 	else
  3539 		return EPass; 
  3540 	}
  3541 
  3542 //------------------------------------------------------------------
  3543 
  3544 /** @xxxx
  3545  * Constructor
  3546  */
  3547 CTest_MMF_ACOD_U_0083::CTest_MMF_ACOD_U_0083()
  3548 	{
  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");
  3553 
  3554 	for (TUint i=0; i<5; i++)
  3555 		{
  3556 		iExpectedSrcBytesProcessed[i] = 0x1000;
  3557 		iExpectedDstBytesAdded[i] = 0x1000;
  3558 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  3559 		}
  3560 	}
  3561 
  3562 /** @xxxx
  3563  * PCMU16B To PCM16 Pass in buffers with different max length and length
  3564  * @test Req. under test REQ172.6.4, REQ172.6.5
  3565  */
  3566 TVerdict CTest_MMF_ACOD_U_0083::DoTestStepL()
  3567 	{
  3568 	//const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
  3569 	TBool testOK = EFalse;
  3570 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
  3571     TInt err = KErrNone;
  3572 	if (err)
  3573 		{
  3574 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3575 		return EFail;
  3576 		}
  3577 	else if (!testOK)
  3578 		{
  3579 		INFO_PRINTF1(_L("Test failed"));
  3580 		return EFail; 
  3581 		}
  3582 	else
  3583 		return EPass; 
  3584 	}
  3585 
  3586 //------------------------------------------------------------------
  3587 
  3588 /** @xxxx
  3589  * Constructor
  3590  */
  3591 CTest_MMF_ACOD_U_0084::CTest_MMF_ACOD_U_0084()
  3592 	{
  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");
  3597 
  3598 	for (TUint i=0; i<5; i++)
  3599 		{
  3600 		iExpectedSrcBytesProcessed[i] = 0x1000;
  3601 		iExpectedDstBytesAdded[i] = 0x1000;
  3602 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  3603 		}
  3604 	}
  3605 
  3606 /** @xxxx
  3607  * PCMU16B To PCM16 Pass in buffers of optimum size
  3608  * @test Req. under test REQ172.6.4, REQ172.6.5
  3609  */
  3610 TVerdict CTest_MMF_ACOD_U_0084::DoTestStepL()
  3611 	{
  3612 	//const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
  3613 	TBool testOK = EFalse;
  3614 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16BToPCM16OptimumSrc, KPCMU16BToPCM16OptimumDst));
  3615     TInt err = KErrNone;
  3616 
  3617 	if (err)
  3618 		{
  3619 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3620 		return EFail;
  3621 		}
  3622 	else if (!testOK)
  3623 		{
  3624 		INFO_PRINTF1(_L("Test failed"));
  3625 		return EFail; 
  3626 		}
  3627 	else
  3628 		return EPass; 
  3629 	}
  3630 
  3631 //------------------------------------------------------------------
  3632 
  3633 /** @xxxx
  3634  * Constructor
  3635  */
  3636 CTest_MMF_ACOD_U_0085::CTest_MMF_ACOD_U_0085()
  3637 	{
  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");
  3642 	}
  3643 
  3644 /** @xxxx
  3645  * PCMU16B To PCM16 Reposition source pointer during conversion
  3646  * @test Req. under test REQ172.11
  3647  */
  3648 TVerdict CTest_MMF_ACOD_U_0085::DoTestStepL()
  3649 	{
  3650 //	const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
  3651 	TBool testOK = EFalse;
  3652 	
  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 ;
  3656 	if (err)
  3657 		{
  3658 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3659 		return EFail;
  3660 		}
  3661 	else if (!testOK)
  3662 		{
  3663 		INFO_PRINTF1(_L("Test failed"));
  3664 		return EFail; 
  3665 		}
  3666 	else
  3667 		return EPass; 
  3668 	}
  3669 
  3670 //------------------------------------------------------------------
  3671 
  3672 /** @xxxx
  3673  * Constructor
  3674  */
  3675 CTest_MMF_ACOD_U_0086::CTest_MMF_ACOD_U_0086()
  3676 	{
  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");
  3681 	}
  3682 
  3683 /** @xxxx
  3684  * PCMU16 To PCM16 Instantiate codec by FourCC Codes
  3685  * @test Req. under test REQ172.6.2, REQ172.11.25
  3686  */
  3687 TVerdict CTest_MMF_ACOD_U_0086::DoTestStepL()
  3688 	{
  3689 	TBool testOK = EFalse;
  3690 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU16, KMMFFourCCCodePCM16));
  3691     TInt err = KErrNone;
  3692 	if (err)
  3693 		{
  3694 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3695 		return EFail;
  3696 		}
  3697 	else if (!testOK)
  3698 		{
  3699 		INFO_PRINTF1(_L("Test failed"));
  3700 		return EFail; 
  3701 		}
  3702 	else
  3703 		return EPass; 
  3704 	}
  3705 
  3706 //------------------------------------------------------------------
  3707 
  3708 /** @xxxx
  3709  * Constructor
  3710  */
  3711 CTest_MMF_ACOD_U_0087::CTest_MMF_ACOD_U_0087()
  3712 	{
  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");
  3717 	}
  3718 
  3719 /** @xxxx
  3720  * PCMU16 To PCM16 Instantiate codec by UID
  3721  * @test Req. under test REQ172.6.1, REQ172.11.25
  3722  */
  3723 TVerdict CTest_MMF_ACOD_U_0087::DoTestStepL()
  3724 	{
  3725 //	const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
  3726 	TBool testOK = EFalse;
  3727 //	TRAPD(err, testOK = TestNewL(codecUid));
  3728 TInt err = KErrNone;
  3729 
  3730 	if (err)
  3731 		{
  3732 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3733 		return EFail;
  3734 		}
  3735 	else if (!testOK)
  3736 		{
  3737 		INFO_PRINTF1(_L("Test failed"));
  3738 		return EFail; 
  3739 		}
  3740 	else
  3741 		return EPass; 
  3742 	}
  3743 
  3744 //------------------------------------------------------------------
  3745 
  3746 /** @xxxx
  3747  * Constructor
  3748  */
  3749 CTest_MMF_ACOD_U_0088::CTest_MMF_ACOD_U_0088()
  3750 	{
  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");
  3755 
  3756 	for (TUint i=0; i<5; i++)
  3757 		{
  3758 		iExpectedSrcBytesProcessed[i] = 50;
  3759 		iExpectedDstBytesAdded[i] = 50;
  3760 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  3761 		}
  3762 	}
  3763 
  3764 /** @xxxx
  3765  * PCMU16 To PCM16 Pass in small source buffers
  3766  * @test Req. under test REQ172.6.4, REQ172.6.5
  3767  */
  3768 TVerdict CTest_MMF_ACOD_U_0088::DoTestStepL()
  3769 	{
  3770 //	const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
  3771 	TBool testOK = EFalse;
  3772 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCMU16ToPCM16OptimumDst));
  3773     TInt err = KErrNone;
  3774 	if (err)
  3775 		{
  3776 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3777 		return EFail;
  3778 		}
  3779 	else if (!testOK)
  3780 		{
  3781 		INFO_PRINTF1(_L("Test failed"));
  3782 		return EFail; 
  3783 		}
  3784 	else
  3785 		return EPass; 
  3786 	}
  3787 
  3788 //------------------------------------------------------------------
  3789 
  3790 /** @xxxx
  3791  * Constructor
  3792  */
  3793 CTest_MMF_ACOD_U_0089::CTest_MMF_ACOD_U_0089()
  3794 	{
  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");
  3799 
  3800 	for (TUint i=0; i<5; i++)
  3801 		{
  3802 		iExpectedSrcBytesProcessed[i] = 50;
  3803 		iExpectedDstBytesAdded[i] = 50;
  3804 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  3805 		}
  3806 	}
  3807 
  3808 /** @xxxx
  3809  * PCMU16 To PCM16 Pass in small dest buffers
  3810  * @test Req. under test REQ172.6.4, REQ172.6.5
  3811  */
  3812 TVerdict CTest_MMF_ACOD_U_0089::DoTestStepL()
  3813 	{
  3814 	//const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
  3815 	TBool testOK = EFalse;
  3816 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16ToPCM16OptimumSrc, KSmallBufferSize));
  3817     TInt err = KErrNone;
  3818 	if (err)
  3819 		{
  3820 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3821 		return EFail;
  3822 		}
  3823 	else if (!testOK)
  3824 		{
  3825 		INFO_PRINTF1(_L("Test failed"));
  3826 		return EFail; 
  3827 		}
  3828 	else
  3829 		return EPass; 
  3830 	}
  3831 
  3832 //------------------------------------------------------------------
  3833 
  3834 /** @xxxx
  3835  * Constructor
  3836  */
  3837 CTest_MMF_ACOD_U_0090::CTest_MMF_ACOD_U_0090()
  3838 	{
  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++)
  3845 		{
  3846 		iExpectedSrcBytesProcessed[i] = 10000;
  3847 		iExpectedDstBytesAdded[i] = 10000;
  3848 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  3849 		}
  3850 	}
  3851 
  3852 /** @xxxx
  3853  * PCMU16 To PCM16 Pass in large buffers
  3854  * @test Req. under test REQ172.6.4, REQ172.6.5
  3855  */
  3856 TVerdict CTest_MMF_ACOD_U_0090::DoTestStepL()
  3857 	{
  3858 	//const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
  3859 	TBool testOK = EFalse;
  3860 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
  3861     TInt err = KErrNone;
  3862 	if (err)
  3863 		{
  3864 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3865 		return EFail;
  3866 		}
  3867 	else if (!testOK)
  3868 		{
  3869 		INFO_PRINTF1(_L("Test failed"));
  3870 		return EFail; 
  3871 		}
  3872 	else
  3873 		return EPass; 
  3874 	}
  3875 
  3876 //------------------------------------------------------------------
  3877 
  3878 /** @xxxx
  3879  * Constructor
  3880  */
  3881 CTest_MMF_ACOD_U_0091::CTest_MMF_ACOD_U_0091()
  3882 	{
  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");
  3887 
  3888 	for (TUint i=0; i<5; i++)
  3889 		{
  3890 		iExpectedSrcBytesProcessed[i] = 0x1000;
  3891 		iExpectedDstBytesAdded[i] = 0x1000;
  3892 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  3893 		}
  3894 	}
  3895 
  3896 /** @xxxx
  3897  * PCMU16 To PCM16 Pass in default sized buffers
  3898  * @test Req. under test REQ172.6.4, REQ172.6.5
  3899  */
  3900 TVerdict CTest_MMF_ACOD_U_0091::DoTestStepL()
  3901 	{
  3902 	//const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
  3903 	TBool testOK = EFalse;
  3904 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
  3905     TInt err = KErrNone;
  3906 	if (err)
  3907 		{
  3908 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3909 		return EFail;
  3910 		}
  3911 	else if (!testOK)
  3912 		{
  3913 		INFO_PRINTF1(_L("Test failed"));
  3914 		return EFail; 
  3915 		}
  3916 	else
  3917 		return EPass; 
  3918 	}
  3919 
  3920 //------------------------------------------------------------------
  3921 
  3922 /** @xxxx
  3923  * Constructor
  3924  */
  3925 CTest_MMF_ACOD_U_0092::CTest_MMF_ACOD_U_0092()
  3926 	{
  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");
  3931 
  3932 	for (TUint i=0; i<5; i++)
  3933 		{
  3934 		iExpectedSrcBytesProcessed[i] = 0x1000;
  3935 		iExpectedDstBytesAdded[i] = 0x1000;
  3936 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  3937 		}
  3938 	}
  3939 
  3940 /** @xxxx
  3941  * PCMU16 To PCM16 Pass in buffers with different max length and length
  3942  * @test Req. under test REQ172.6.4, REQ172.6.5
  3943  */
  3944 TVerdict CTest_MMF_ACOD_U_0092::DoTestStepL()
  3945 	{
  3946 //	const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
  3947 	TBool testOK = EFalse;
  3948 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
  3949     TInt err = KErrNone;
  3950 	if (err)
  3951 		{
  3952 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3953 		return EFail;
  3954 		}
  3955 	else if (!testOK)
  3956 		{
  3957 		INFO_PRINTF1(_L("Test failed"));
  3958 		return EFail; 
  3959 		}
  3960 	else
  3961 		return EPass; 
  3962 	}
  3963 
  3964 //------------------------------------------------------------------
  3965 
  3966 /** @xxxx
  3967  * Constructor
  3968  */
  3969 CTest_MMF_ACOD_U_0093::CTest_MMF_ACOD_U_0093()
  3970 	{
  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");
  3975 
  3976 	for (TUint i=0; i<5; i++)
  3977 		{
  3978 		iExpectedSrcBytesProcessed[i] = 0x1000;
  3979 		iExpectedDstBytesAdded[i] = 0x1000;
  3980 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  3981 		}
  3982 	}
  3983 
  3984 /** @xxxx
  3985  * PCMU16 To PCM16 Pass in buffers of optimum size
  3986  * @test Req. under test REQ172.6.4, REQ172.6.5
  3987  */
  3988 TVerdict CTest_MMF_ACOD_U_0093::DoTestStepL()
  3989 	{
  3990 //	const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
  3991 	TBool testOK = EFalse;
  3992 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16ToPCM16OptimumSrc, KPCMU16ToPCM16OptimumDst));
  3993     TInt err = KErrNone;
  3994 
  3995 	if (err)
  3996 		{
  3997 		INFO_PRINTF2(_L("Test left with status %d"), err);
  3998 		return EFail;
  3999 		}
  4000 	else if (!testOK)
  4001 		{
  4002 		INFO_PRINTF1(_L("Test failed"));
  4003 		return EFail; 
  4004 		}
  4005 	else
  4006 		return EPass; 
  4007 	}
  4008 
  4009 //------------------------------------------------------------------
  4010 
  4011 /** @xxxx
  4012  * Constructor
  4013  */
  4014 CTest_MMF_ACOD_U_0094::CTest_MMF_ACOD_U_0094()
  4015 	{
  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");
  4020 	}
  4021 
  4022 /** @xxxx
  4023  * PCMU16 To PCM16 Reposition source pointer during conversion
  4024  * @test Req. under test REQ172.11
  4025  */
  4026 TVerdict CTest_MMF_ACOD_U_0094::DoTestStepL()
  4027 	{
  4028 //	const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
  4029 	TBool testOK = EFalse;
  4030 	
  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 ;
  4034 	if (err)
  4035 		{
  4036 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4037 		return EFail;
  4038 		}
  4039 	else if (!testOK)
  4040 		{
  4041 		INFO_PRINTF1(_L("Test failed"));
  4042 		return EFail; 
  4043 		}
  4044 	else
  4045 		return EPass; 
  4046 	}
  4047 
  4048 //------------------------------------------------------------------
  4049 
  4050 /** @xxxx
  4051  * Constructor
  4052  */
  4053 CTest_MMF_ACOD_U_0095::CTest_MMF_ACOD_U_0095()
  4054 	{
  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");
  4059 	}
  4060 
  4061 /** @xxxx
  4062  * PCMU8 To PCM16 Instantiate codec by FourCC Codes
  4063  * @test Req. under test REQ172.6.2, REQ172.11.11
  4064  */
  4065 TVerdict CTest_MMF_ACOD_U_0095::DoTestStepL()
  4066 	{
  4067 	TBool testOK = EFalse;
  4068 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCMU8, KMMFFourCCCodePCM16));
  4069     TInt err = KErrNone;
  4070 	if (err)
  4071 		{
  4072 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4073 		return EFail;
  4074 		}
  4075 	else if (!testOK)
  4076 		{
  4077 		INFO_PRINTF1(_L("Test failed"));
  4078 		return EFail; 
  4079 		}
  4080 	else
  4081 		return EPass; 
  4082 	}
  4083 
  4084 //------------------------------------------------------------------
  4085 
  4086 /** @xxxx
  4087  * Constructor
  4088  */
  4089 CTest_MMF_ACOD_U_0096::CTest_MMF_ACOD_U_0096()
  4090 	{
  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");
  4095 	}
  4096 
  4097 /** @xxxx
  4098  * PCMU8 To PCM16 Instantiate codec by UID
  4099  * @test Req. under test REQ172.6.1, REQ172.11.11
  4100  */
  4101 TVerdict CTest_MMF_ACOD_U_0096::DoTestStepL()
  4102 	{             
  4103 //	const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
  4104 	TBool testOK = EFalse;
  4105 //	TRAPD(err, testOK = TestNewL(codecUid));
  4106     TInt err = KErrNone;
  4107 	if (err)
  4108 		{
  4109 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4110 		return EFail;
  4111 		}
  4112 	else if (!testOK)
  4113 		{
  4114 		INFO_PRINTF1(_L("Test failed"));
  4115 		return EFail; 
  4116 		}
  4117 	else
  4118 		return EPass; 
  4119 	}
  4120 
  4121 //------------------------------------------------------------------
  4122 
  4123 /** @xxxx
  4124  * Constructor
  4125  */
  4126 CTest_MMF_ACOD_U_0097::CTest_MMF_ACOD_U_0097()
  4127 	{
  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");
  4132 
  4133 	for (TUint i=0; i<5; i++)
  4134 		{
  4135 		iExpectedSrcBytesProcessed[i] = 50;
  4136 		iExpectedDstBytesAdded[i] = 100;
  4137 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  4138 		}
  4139 	}
  4140 
  4141 /** @xxxx
  4142  * PCMU8 To PCM16 Pass in small source buffers
  4143  * @test Req. under test REQ172.6.4, REQ172.6.5
  4144  */
  4145 TVerdict CTest_MMF_ACOD_U_0097::DoTestStepL()
  4146 	{
  4147 //	const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
  4148 	TBool testOK = EFalse;
  4149 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCMU8ToPCM16OptimumDst));
  4150     TInt err = KErrNone;
  4151 	if (err)
  4152 		{
  4153 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4154 		return EFail;
  4155 		}
  4156 	else if (!testOK)
  4157 		{
  4158 		INFO_PRINTF1(_L("Test failed"));
  4159 		return EFail; 
  4160 		}
  4161 	else
  4162 		return EPass; 
  4163 	}
  4164 
  4165 //------------------------------------------------------------------
  4166 
  4167 /** @xxxx
  4168  * Constructor
  4169  */
  4170 CTest_MMF_ACOD_U_0098::CTest_MMF_ACOD_U_0098()
  4171 	{
  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");
  4176 
  4177 	for (TUint i=0; i<5; i++)
  4178 		{
  4179 		iExpectedSrcBytesProcessed[i] = 25;
  4180 		iExpectedDstBytesAdded[i] = 50;
  4181 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  4182 		}
  4183 	}
  4184 
  4185 /** @xxxx
  4186  * PCMU8 To PCM16 Pass in small dest buffers
  4187  * @test Req. under test REQ172.6.4, REQ172.6.5
  4188  */
  4189 TVerdict CTest_MMF_ACOD_U_0098::DoTestStepL()
  4190 	{
  4191 //	const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
  4192 	TBool testOK = EFalse;
  4193 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU8ToPCM16OptimumSrc, KSmallBufferSize));
  4194     TInt err = KErrNone;
  4195 	if (err)
  4196 		{
  4197 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4198 		return EFail;
  4199 		}
  4200 	else if (!testOK)
  4201 		{
  4202 		INFO_PRINTF1(_L("Test failed"));
  4203 		return EFail; 
  4204 		}
  4205 	else
  4206 		return EPass; 
  4207 	}
  4208 
  4209 //------------------------------------------------------------------
  4210 
  4211 /** @xxxx
  4212  * Constructor
  4213  */
  4214 CTest_MMF_ACOD_U_0099::CTest_MMF_ACOD_U_0099()
  4215 	{
  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++)
  4222 		{
  4223 		iExpectedSrcBytesProcessed[i] = 5000;
  4224 		iExpectedDstBytesAdded[i] = 10000;
  4225 
  4226 		if((i%2)==0)//even i
  4227 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  4228 		else		//odd i
  4229 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  4230 		}
  4231 	}
  4232 
  4233 /** @xxxx
  4234  * PCMU8 To PCM16 Pass in large buffers
  4235  * @test Req. under test REQ172.6.4, REQ172.6.5
  4236  */
  4237 TVerdict CTest_MMF_ACOD_U_0099::DoTestStepL()
  4238 	{
  4239 //	const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
  4240 	TBool testOK = EFalse;
  4241 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
  4242     TInt err = KErrNone;
  4243 	if (err)
  4244 		{
  4245 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4246 		return EFail;
  4247 		}
  4248 	else if (!testOK)
  4249 		{
  4250 		INFO_PRINTF1(_L("Test failed"));
  4251 		return EFail; 
  4252 		}
  4253 	else
  4254 		return EPass; 
  4255 	}
  4256 
  4257 //------------------------------------------------------------------
  4258 
  4259 /** @xxxx
  4260  * Constructor
  4261  */
  4262 CTest_MMF_ACOD_U_0100::CTest_MMF_ACOD_U_0100()
  4263 	{
  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");
  4268 
  4269 	for (TUint i=0; i<5; i++)
  4270 		{
  4271 		iExpectedSrcBytesProcessed[i] = 0x800;
  4272 		iExpectedDstBytesAdded[i] = 0x1000;
  4273 
  4274 		if((i%2)==0)//even i
  4275 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  4276 		else		//odd i
  4277 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  4278 		}
  4279 	}
  4280 
  4281 /** @xxxx
  4282  * PCMU8 To PCM16 Pass in default sized buffers
  4283  * @test Req. under test REQ172.6.4, REQ172.6.5
  4284  */
  4285 TVerdict CTest_MMF_ACOD_U_0100::DoTestStepL()
  4286 	{
  4287 	//const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
  4288 	TBool testOK = EFalse;
  4289 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
  4290     TInt err = KErrNone;
  4291 	if (err)
  4292 		{
  4293 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4294 		return EFail;
  4295 		}
  4296 	else if (!testOK)
  4297 		{
  4298 		INFO_PRINTF1(_L("Test failed"));
  4299 		return EFail; 
  4300 		}
  4301 	else
  4302 		return EPass; 
  4303 	}
  4304 
  4305 //------------------------------------------------------------------
  4306 
  4307 /** @xxxx
  4308  * Constructor
  4309  */
  4310 CTest_MMF_ACOD_U_0101::CTest_MMF_ACOD_U_0101()
  4311 	{
  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");
  4316 
  4317 	for (TUint i=0; i<5; i++)
  4318 		{
  4319 		iExpectedSrcBytesProcessed[i] = 0x800;
  4320 		iExpectedDstBytesAdded[i] = 0x1000;
  4321 
  4322 		if((i%2)==0)//even i
  4323 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  4324 		else		//odd i
  4325 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  4326 		}
  4327 	}
  4328 
  4329 /** @xxxx
  4330  * PCMU8 To PCM16 Pass in buffers with different max length and length
  4331  * @test Req. under test REQ172.6.4, REQ172.6.5
  4332  */
  4333 TVerdict CTest_MMF_ACOD_U_0101::DoTestStepL()
  4334 	{
  4335 	//const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
  4336 	TBool testOK = EFalse;
  4337 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
  4338     TInt err = KErrNone;
  4339 	if (err)
  4340 		{
  4341 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4342 		return EFail;
  4343 		}
  4344 	else if (!testOK)
  4345 		{
  4346 		INFO_PRINTF1(_L("Test failed"));
  4347 		return EFail; 
  4348 		}
  4349 	else
  4350 		return EPass; 
  4351 	}
  4352 
  4353 //------------------------------------------------------------------
  4354 
  4355 /** @xxxx
  4356  * Constructor
  4357  */
  4358 CTest_MMF_ACOD_U_0102::CTest_MMF_ACOD_U_0102()
  4359 	{
  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");
  4364 
  4365 	for (TUint i=0; i<5; i++)
  4366 		{
  4367 		iExpectedSrcBytesProcessed[i] = 0x800;
  4368 		iExpectedDstBytesAdded[i] = 0x1000;
  4369 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  4370 		}
  4371 	}
  4372 
  4373 /** @xxxx
  4374  * PCMU8 To PCM16 Pass in buffers of optimum size
  4375  * @test Req. under test REQ172.6.4, REQ172.6.5
  4376  */
  4377 TVerdict CTest_MMF_ACOD_U_0102::DoTestStepL()
  4378 	{
  4379 	//const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
  4380 	TBool testOK = EFalse;
  4381 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU8ToPCM16OptimumSrc, KPCMU8ToPCM16OptimumDst));
  4382     TInt err = KErrNone;
  4383 	if (err)
  4384 		{
  4385 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4386 		return EFail;
  4387 		}
  4388 	else if (!testOK)
  4389 		{
  4390 		INFO_PRINTF1(_L("Test failed"));
  4391 		return EFail; 
  4392 		}
  4393 	else
  4394 		return EPass; 
  4395 	}
  4396 
  4397 //------------------------------------------------------------------
  4398 
  4399 /** @xxxx
  4400  * Constructor
  4401  */
  4402 CTest_MMF_ACOD_U_0103::CTest_MMF_ACOD_U_0103()
  4403 	{
  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");
  4408 	}
  4409 
  4410 /** @xxxx
  4411  * PCMU8 To PCM16 Reposition source pointer during conversion
  4412  * @test Req. under test REQ172.11
  4413  */
  4414 TVerdict CTest_MMF_ACOD_U_0103::DoTestStepL()
  4415 	{
  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"));
  4419 
  4420 //	TRAPD(err, testOK = TestRepositionL(codecUid, KPCMU8ToPCM16OptimumSrc, KPCMU8ToPCM16OptimumDst+30));
  4421 	TInt err = KErrNone ;
  4422 
  4423 	if (err)
  4424 		{
  4425 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4426 		return EFail;
  4427 		}
  4428 	else if (!testOK)
  4429 		{
  4430 		INFO_PRINTF1(_L("Test failed"));
  4431 		return EFail; 
  4432 		}
  4433 	else
  4434 		return EPass; 
  4435 	}
  4436 
  4437 //------------------------------------------------------------------
  4438 
  4439 
  4440 /** @xxxx
  4441  * Constructor
  4442  */
  4443 CTest_MMF_ACOD_U_0104::CTest_MMF_ACOD_U_0104()
  4444 	{
  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");
  4449 	}
  4450 
  4451 /** @xxxx
  4452  * MULAW To PCM16 Instantiate codec by FourCC Codes
  4453  * @test Req. under test REQ172.6.2, REQ172.11.13
  4454  */
  4455 TVerdict CTest_MMF_ACOD_U_0104::DoTestStepL()
  4456 	{
  4457 	TBool testOK = EFalse;
  4458 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodeMuLAW, KMMFFourCCCodePCM16));
  4459     TInt err = KErrNone;
  4460 	if (err)
  4461 		{
  4462 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4463 		return EFail;
  4464 		}
  4465 	else if (!testOK)
  4466 		{
  4467 		INFO_PRINTF1(_L("Test failed"));
  4468 		return EFail; 
  4469 		}
  4470 	else
  4471 		return EPass; 
  4472 	}
  4473 
  4474 //------------------------------------------------------------------
  4475 
  4476 /** @xxxx
  4477  * Constructor
  4478  */
  4479 CTest_MMF_ACOD_U_0105::CTest_MMF_ACOD_U_0105()
  4480 	{
  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");
  4485 	}
  4486 
  4487 /** @xxxx
  4488  * MULAW To PCM16 Instantiate codec by UID
  4489  * @test Req. under test REQ172.6.1, REQ172.11.13
  4490  */
  4491 TVerdict CTest_MMF_ACOD_U_0105::DoTestStepL()
  4492 	{
  4493 //	const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
  4494 	TBool testOK = EFalse;
  4495 //	TRAPD(err, testOK = TestNewL(codecUid));
  4496 	TInt err = KErrNone;
  4497 	if (err)
  4498 		{
  4499 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4500 		return EFail;
  4501 		}
  4502 	else if (!testOK)
  4503 		{
  4504 		INFO_PRINTF1(_L("Test failed"));
  4505 		return EFail; 
  4506 		}
  4507 	else
  4508 		return EPass; 
  4509 	}
  4510 
  4511 //------------------------------------------------------------------
  4512 
  4513 /** @xxxx
  4514  * Constructor
  4515  */
  4516 CTest_MMF_ACOD_U_0106::CTest_MMF_ACOD_U_0106()
  4517 	{
  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");
  4522 
  4523 	for (TUint i=0; i<5; i++)
  4524 		{
  4525 		iExpectedSrcBytesProcessed[i] = 50;
  4526 		iExpectedDstBytesAdded[i] = 100;
  4527 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  4528 		}
  4529 	}
  4530 
  4531 /** @xxxx
  4532  * MULAW To PCM16 Pass in small source buffers
  4533  * @test Req. under test REQ172.6.4, REQ172.6.5
  4534  */
  4535 TVerdict CTest_MMF_ACOD_U_0106::DoTestStepL()
  4536 	{
  4537 	//const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
  4538 	TBool testOK = EFalse;
  4539 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KMulawToPCM16OptimumDst));
  4540     TInt err = KErrNone;
  4541 	if (err)
  4542 		{
  4543 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4544 		return EFail;
  4545 		}
  4546 	else if (!testOK)
  4547 		{
  4548 		INFO_PRINTF1(_L("Test failed"));
  4549 		return EFail; 
  4550 		}
  4551 	else
  4552 		return EPass; 
  4553 	}
  4554 
  4555 //------------------------------------------------------------------
  4556 
  4557 /** @xxxx
  4558  * Constructor
  4559  */
  4560 CTest_MMF_ACOD_U_0107::CTest_MMF_ACOD_U_0107()
  4561 	{
  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");
  4566 
  4567 	for (TUint i=0; i<5; i++)
  4568 		{
  4569 		iExpectedSrcBytesProcessed[i] = 25;
  4570 		iExpectedDstBytesAdded[i] = 50;
  4571 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  4572 		}
  4573 	}
  4574 
  4575 /** @xxxx
  4576  * MULAW To PCM16 Pass in small dest buffers
  4577  * @test Req. under test REQ172.6.4, REQ172.6.5
  4578  */
  4579 TVerdict CTest_MMF_ACOD_U_0107::DoTestStepL()
  4580 	{
  4581 //	const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
  4582 	TBool testOK = EFalse;
  4583 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMulawToPCM16OptimumSrc, KSmallBufferSize));
  4584     TInt err = KErrNone;
  4585 	if (err)
  4586 		{
  4587 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4588 		return EFail;
  4589 		}
  4590 	else if (!testOK)
  4591 		{
  4592 		INFO_PRINTF1(_L("Test failed"));
  4593 		return EFail; 
  4594 		}
  4595 	else
  4596 		return EPass; 
  4597 	}
  4598 
  4599 //------------------------------------------------------------------
  4600 
  4601 /** @xxxx
  4602  * Constructor
  4603  */
  4604 CTest_MMF_ACOD_U_0108::CTest_MMF_ACOD_U_0108()
  4605 	{
  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++)
  4612 		{
  4613 		iExpectedSrcBytesProcessed[i] = 5000;
  4614 		iExpectedDstBytesAdded[i] = 10000;
  4615 
  4616 		if((i%2)==0)//even i
  4617 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  4618 		else		//odd i
  4619 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  4620 		}
  4621 	}
  4622 
  4623 /** @xxxx
  4624  * MULAW To PCM16 Pass in large buffers
  4625  * @test Req. under test REQ172.6.4, REQ172.6.5
  4626  */
  4627 TVerdict CTest_MMF_ACOD_U_0108::DoTestStepL()
  4628 	{
  4629 //	const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
  4630 	TBool testOK = EFalse;
  4631 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
  4632     TInt err = KErrNone;
  4633 	if (err)
  4634 		{
  4635 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4636 		return EFail;
  4637 		}
  4638 	else if (!testOK)
  4639 		{
  4640 		INFO_PRINTF1(_L("Test failed"));
  4641 		return EFail; 
  4642 		}
  4643 	else
  4644 		return EPass; 
  4645 	}
  4646 
  4647 //------------------------------------------------------------------
  4648 
  4649 /** @xxxx
  4650  * Constructor
  4651  */
  4652 CTest_MMF_ACOD_U_0109::CTest_MMF_ACOD_U_0109()
  4653 	{
  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");
  4658 
  4659 	for (TUint i=0; i<5; i++)
  4660 		{
  4661 		iExpectedSrcBytesProcessed[i] = 0x800;
  4662 		iExpectedDstBytesAdded[i] = 0x1000;
  4663 
  4664 		if((i%2)==0)//even i
  4665 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  4666 		else		//odd i
  4667 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  4668 		}
  4669 	}
  4670 
  4671 /** @xxxx
  4672  * MULAW To PCM16 Pass in default sized buffers
  4673  * @test Req. under test REQ172.6.4, REQ172.6.5
  4674  */
  4675 TVerdict CTest_MMF_ACOD_U_0109::DoTestStepL()
  4676 	{
  4677 //	const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
  4678 	TBool testOK = EFalse;
  4679 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
  4680     TInt err = KErrNone;
  4681 	if (err)
  4682 		{
  4683 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4684 		return EFail;
  4685 		}
  4686 	else if (!testOK)
  4687 		{
  4688 		INFO_PRINTF1(_L("Test failed"));
  4689 		return EFail; 
  4690 		}
  4691 	else
  4692 		return EPass; 
  4693 	}
  4694 
  4695 //------------------------------------------------------------------
  4696 
  4697 /** @xxxx
  4698  * Constructor
  4699  */
  4700 CTest_MMF_ACOD_U_0110::CTest_MMF_ACOD_U_0110()
  4701 	{
  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");
  4706 
  4707 	for (TUint i=0; i<5; i++)
  4708 		{
  4709 		iExpectedSrcBytesProcessed[i] = 0x800;
  4710 		iExpectedDstBytesAdded[i] = 0x1000;
  4711 
  4712 		if((i%2)==0)//even i
  4713 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  4714 		else		//odd i
  4715 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  4716 		}
  4717 	}
  4718 
  4719 /** @xxxx
  4720  * MULAW To PCM16 Pass in buffers with different max length and length
  4721  * @test Req. under test REQ172.6.4, REQ172.6.5
  4722  */
  4723 TVerdict CTest_MMF_ACOD_U_0110::DoTestStepL()
  4724 	{
  4725 //	const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
  4726 	TBool testOK = EFalse;
  4727 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
  4728     TInt err = KErrNone;
  4729 	if (err)
  4730 		{
  4731 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4732 		return EFail;
  4733 		}
  4734 	else if (!testOK)
  4735 		{
  4736 		INFO_PRINTF1(_L("Test failed"));
  4737 		return EFail; 
  4738 		}
  4739 	else
  4740 		return EPass; 
  4741 	}
  4742 
  4743 //------------------------------------------------------------------
  4744 
  4745 /** @xxxx
  4746  * Constructor
  4747  */
  4748 CTest_MMF_ACOD_U_0111::CTest_MMF_ACOD_U_0111()
  4749 	{
  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");
  4754 
  4755 	for (TUint i=0; i<5; i++)
  4756 		{
  4757 		iExpectedSrcBytesProcessed[i] = 0x800;
  4758 		iExpectedDstBytesAdded[i] = 0x1000;
  4759 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  4760 		}
  4761 	}
  4762 
  4763 /** @xxxx
  4764  * MULAW To PCM16 Pass in buffers of optimum size
  4765  * @test Req. under test REQ172.6.4, REQ172.6.5
  4766  */
  4767 TVerdict CTest_MMF_ACOD_U_0111::DoTestStepL()
  4768 	{
  4769 //	const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
  4770 	TBool testOK = EFalse;
  4771 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMulawToPCM16OptimumSrc, KMulawToPCM16OptimumDst));
  4772 TInt err = KErrNone;
  4773 	if (err)
  4774 		{
  4775 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4776 		return EFail;
  4777 		}
  4778 	else if (!testOK)
  4779 		{
  4780 		INFO_PRINTF1(_L("Test failed"));
  4781 		return EFail; 
  4782 		}
  4783 	else
  4784 		return EPass; 
  4785 	}
  4786 
  4787 //------------------------------------------------------------------
  4788 
  4789 /** @xxxx
  4790  * Constructor
  4791  */
  4792 CTest_MMF_ACOD_U_0112::CTest_MMF_ACOD_U_0112()
  4793 	{
  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");
  4798 	}
  4799 
  4800 /** @xxxx
  4801  * MULAW To PCM16 Reposition source pointer during conversion
  4802  * @test Req. under test REQ172.11
  4803  */
  4804 TVerdict CTest_MMF_ACOD_U_0112::DoTestStepL()
  4805 	{
  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"));
  4809 
  4810 //	TRAPD(err, testOK = TestRepositionL(codecUid, KMulawToPCM16OptimumSrc, KMulawToPCM16OptimumDst+30));
  4811 	TInt err = KErrNone;
  4812 
  4813 	if (err)
  4814 		{
  4815 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4816 		return EFail;
  4817 		}
  4818 	else if (!testOK)
  4819 		{
  4820 		INFO_PRINTF1(_L("Test failed"));
  4821 		return EFail; 
  4822 		}
  4823 	else
  4824 		return EPass; 
  4825 	}
  4826 
  4827 //------------------------------------------------------------------
  4828 
  4829 /** @xxxx
  4830  * Constructor
  4831  */
  4832 CTest_MMF_ACOD_U_0113::CTest_MMF_ACOD_U_0113()
  4833 	{
  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");
  4838 	}
  4839 
  4840 /** @xxxx
  4841  * PCM16 To MULAW Instantiate codec by FourCC Codes
  4842  * @test Req. under test REQ172.6.2, REQ172.11.15
  4843  */
  4844 TVerdict CTest_MMF_ACOD_U_0113::DoTestStepL()
  4845 	{
  4846 	TBool testOK = EFalse;
  4847 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeMuLAW));
  4848 	TInt err = KErrNone;
  4849 
  4850 	if (err)
  4851 		{
  4852 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4853 		return EFail;
  4854 		}
  4855 	else if (!testOK)
  4856 		{
  4857 		INFO_PRINTF1(_L("Test failed"));
  4858 		return EFail; 
  4859 		}
  4860 	else
  4861 		return EPass; 
  4862 	}
  4863 
  4864 //------------------------------------------------------------------
  4865 
  4866 /** @xxxx
  4867  * Constructor
  4868  */
  4869 CTest_MMF_ACOD_U_0114::CTest_MMF_ACOD_U_0114()
  4870 	{
  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");
  4875 	}
  4876 
  4877 /** @xxxx
  4878  * PCM16 To MULAW Instantiate codec by UID
  4879  * @test Req. under test REQ172.6.1, REQ172.11.15
  4880  */
  4881 TVerdict CTest_MMF_ACOD_U_0114::DoTestStepL()
  4882 	{
  4883 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
  4884 	TBool testOK = EFalse;
  4885 //	TRAPD(err, testOK = TestNewL(codecUid));
  4886     TInt err = KErrNone;
  4887 	if (err)
  4888 		{
  4889 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4890 		return EFail;
  4891 		}
  4892 	else if (!testOK)
  4893 		{
  4894 		INFO_PRINTF1(_L("Test failed"));
  4895 		return EFail; 
  4896 		}
  4897 	else
  4898 		return EPass; 
  4899 	}
  4900 
  4901 //------------------------------------------------------------------
  4902 
  4903 /** @xxxx
  4904  * Constructor
  4905  */
  4906 CTest_MMF_ACOD_U_0115::CTest_MMF_ACOD_U_0115()
  4907 	{
  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");
  4912 
  4913 	for (TUint i=0; i<5; i++)
  4914 		{
  4915 		iExpectedSrcBytesProcessed[i] = 50;
  4916 		iExpectedDstBytesAdded[i] = 25;
  4917 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  4918 		}
  4919 	}
  4920 
  4921 /** @xxxx
  4922  * PCM16 To MULAW Pass in small source buffers
  4923  * @test Req. under test REQ172.6.4, REQ172.6.5
  4924  */
  4925 TVerdict CTest_MMF_ACOD_U_0115::DoTestStepL()
  4926 	{
  4927 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
  4928 	TBool testOK = EFalse;
  4929 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToMulawOptimumDst));
  4930     TInt err = KErrNone;
  4931 	if (err)
  4932 		{
  4933 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4934 		return EFail;
  4935 		}
  4936 	else if (!testOK)
  4937 		{
  4938 		INFO_PRINTF1(_L("Test failed"));
  4939 		return EFail; 
  4940 		}
  4941 	else
  4942 		return EPass; 
  4943 	}
  4944 
  4945 //------------------------------------------------------------------
  4946 
  4947 /** @xxxx
  4948  * Constructor
  4949  */
  4950 CTest_MMF_ACOD_U_0116::CTest_MMF_ACOD_U_0116()
  4951 	{
  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");
  4956 
  4957 	for (TUint i=0; i<5; i++)
  4958 		{
  4959 		iExpectedSrcBytesProcessed[i] = 100;
  4960 		iExpectedDstBytesAdded[i] = 50;
  4961 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  4962 		}
  4963 	}
  4964 
  4965 /** @xxxx
  4966  * PCM16 To MULAW Pass in small dest buffers
  4967  * @test Req. under test REQ172.6.4, REQ172.6.5
  4968  */
  4969 TVerdict CTest_MMF_ACOD_U_0116::DoTestStepL()
  4970 	{
  4971 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
  4972 	TBool testOK = EFalse;
  4973 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToMulawOptimumSrc, KSmallBufferSize));
  4974 TInt err = KErrNone;
  4975 
  4976 	if (err)
  4977 		{
  4978 		INFO_PRINTF2(_L("Test left with status %d"), err);
  4979 		return EFail;
  4980 		}
  4981 	else if (!testOK)
  4982 		{
  4983 		INFO_PRINTF1(_L("Test failed"));
  4984 		return EFail; 
  4985 		}
  4986 	else
  4987 		return EPass; 
  4988 	}
  4989 
  4990 //------------------------------------------------------------------
  4991 
  4992 /** @xxxx
  4993  * Constructor
  4994  */
  4995 CTest_MMF_ACOD_U_0117::CTest_MMF_ACOD_U_0117()
  4996 	{
  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;
  5002 
  5003 	for (TUint i=0; i<5; i++)
  5004 		{
  5005 		iExpectedSrcBytesProcessed[i] = 10000;
  5006 		iExpectedDstBytesAdded[i] = 5000;
  5007 
  5008 		if((i%2)==0)//even i
  5009 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  5010 		else		//odd i
  5011 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  5012 		}
  5013 	}
  5014 
  5015 /** @xxxx
  5016  * PCM16 To MULAW Pass in large buffers
  5017  * @test Req. under test REQ172.6.4, REQ172.6.5
  5018  */
  5019 TVerdict CTest_MMF_ACOD_U_0117::DoTestStepL()
  5020 	{
  5021 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
  5022 	TBool testOK = EFalse;
  5023 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize));
  5024 TInt err = KErrNone;
  5025 
  5026 	if (err)
  5027 		{
  5028 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5029 		return EFail;
  5030 		}
  5031 	else if (!testOK)
  5032 		{
  5033 		INFO_PRINTF1(_L("Test failed"));
  5034 		return EFail; 
  5035 		}
  5036 	else
  5037 		return EPass; 
  5038 	}
  5039 
  5040 //------------------------------------------------------------------
  5041 
  5042 /** @xxxx
  5043  * Constructor
  5044  */
  5045 CTest_MMF_ACOD_U_0118::CTest_MMF_ACOD_U_0118()
  5046 	{
  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");
  5051 
  5052 	for (TUint i=0; i<5; i++)
  5053 		{
  5054 		iExpectedSrcBytesProcessed[i] = 0x1000;
  5055 		iExpectedDstBytesAdded[i] = 0x800;
  5056 
  5057 		if((i%2)==0)//even i
  5058 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  5059 		else		//odd i
  5060 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  5061 		}
  5062 	}
  5063 
  5064 /** @xxxx
  5065  * PCM16 To MULAW Pass in default sized buffers
  5066  * @test Req. under test REQ172.6.4, REQ172.6.5
  5067  */
  5068 TVerdict CTest_MMF_ACOD_U_0118::DoTestStepL()
  5069 	{
  5070 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
  5071 	TBool testOK = EFalse;
  5072 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize));
  5073 TInt err = KErrNone;
  5074 
  5075 	if (err)
  5076 		{
  5077 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5078 		return EFail;
  5079 		}
  5080 	else if (!testOK)
  5081 		{
  5082 		INFO_PRINTF1(_L("Test failed"));
  5083 		return EFail; 
  5084 		}
  5085 	else
  5086 		return EPass; 
  5087 	}
  5088 
  5089 //------------------------------------------------------------------
  5090 
  5091 /** @xxxx
  5092  * Constructor
  5093  */
  5094 CTest_MMF_ACOD_U_0119::CTest_MMF_ACOD_U_0119()
  5095 	{
  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");
  5100 
  5101 	for (TUint i=0; i<5; i++)
  5102 		{
  5103 		iExpectedSrcBytesProcessed[i] = 0x1000;
  5104 		iExpectedDstBytesAdded[i] = 0x800;
  5105 
  5106 		if((i%2)==0)//even i
  5107 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  5108 		else		//odd i
  5109 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  5110 		}
  5111 	}
  5112 
  5113 /** @xxxx
  5114  * PCM16 To MULAW Pass in buffers with different max length and length
  5115  * @test Req. under test REQ172.6.4, REQ172.6.5
  5116  */
  5117 TVerdict CTest_MMF_ACOD_U_0119::DoTestStepL()
  5118 	{
  5119 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
  5120 	TBool testOK = EFalse;
  5121 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize));
  5122 TInt err = KErrNone;
  5123 	if (err)
  5124 		{
  5125 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5126 		return EFail;
  5127 		}
  5128 	else if (!testOK)
  5129 		{
  5130 		INFO_PRINTF1(_L("Test failed"));
  5131 		return EFail; 
  5132 		}
  5133 	else
  5134 		return EPass; 
  5135 	}
  5136 
  5137 //------------------------------------------------------------------
  5138 
  5139 /** @xxxx
  5140  * Constructor
  5141  */
  5142 CTest_MMF_ACOD_U_0120::CTest_MMF_ACOD_U_0120()
  5143 	{
  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");
  5148 
  5149 	for (TUint i=0; i<5; i++)
  5150 		{
  5151 		iExpectedSrcBytesProcessed[i] = 0x1000;
  5152 		iExpectedDstBytesAdded[i] = 0x800;
  5153 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  5154 		}
  5155 	}
  5156 
  5157 /** @xxxx
  5158  * PCM16 To MULAW Pass in buffers of optimum size
  5159  * @test Req. under test REQ172.6.4, REQ172.6.5
  5160  */
  5161 TVerdict CTest_MMF_ACOD_U_0120::DoTestStepL()
  5162 	{
  5163 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
  5164 	TBool testOK = EFalse;
  5165 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToMulawOptimumSrc, KPCM16ToMulawOptimumDst));
  5166 TInt err = KErrNone;
  5167 	if (err)
  5168 		{
  5169 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5170 		return EFail;
  5171 		}
  5172 	else if (!testOK)
  5173 		{
  5174 		INFO_PRINTF1(_L("Test failed"));
  5175 		return EFail; 
  5176 		}
  5177 	else
  5178 		return EPass; 
  5179 	}
  5180 
  5181 //------------------------------------------------------------------
  5182 
  5183 /** @xxxx
  5184  * Constructor
  5185  */
  5186 CTest_MMF_ACOD_U_0121::CTest_MMF_ACOD_U_0121()
  5187 	{
  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");
  5192 	}
  5193 
  5194 /** @xxxx
  5195  * PCM16 To MULAW Reposition source pointer during conversion
  5196  * @test Req. under test REQ172.11
  5197  */
  5198 TVerdict CTest_MMF_ACOD_U_0121::DoTestStepL()
  5199 	{
  5200 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
  5201 	TBool testOK = EFalse;
  5202 	
  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 ;
  5206 
  5207 	if (err)
  5208 		{
  5209 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5210 		return EFail;
  5211 		}
  5212 	else if (!testOK)
  5213 		{
  5214 		INFO_PRINTF1(_L("Test failed"));
  5215 		return EFail; 
  5216 		}
  5217 	else
  5218 		return EPass; 
  5219 	}
  5220 
  5221 //------------------------------------------------------------------
  5222 
  5223 /** @xxxx
  5224  * Constructor
  5225  */
  5226 CTest_MMF_ACOD_U_0122::CTest_MMF_ACOD_U_0122()
  5227 	{
  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");
  5232 	}
  5233 
  5234 /** @xxxx
  5235  * IMAD to PCM16 Instantiate codec by FourCC Codes
  5236  * @test Req. under test REQ172.6.2, REQ172.11.12
  5237  */
  5238 TVerdict CTest_MMF_ACOD_U_0122::DoTestStepL()
  5239 	{
  5240 	TBool testOK = EFalse;
  5241 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodeIMAD, KMMFFourCCCodePCM16));
  5242     TInt err = KErrNone;
  5243 	if (err)
  5244 		{
  5245 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5246 		return EFail;
  5247 		}
  5248 	else if (!testOK)
  5249 		{
  5250 		INFO_PRINTF1(_L("Test failed"));
  5251 		return EFail; 
  5252 		}
  5253 	else
  5254 		return EPass; 
  5255 	}
  5256 
  5257 //------------------------------------------------------------------
  5258 
  5259 /** @xxxx
  5260  * Constructor
  5261  */
  5262 CTest_MMF_ACOD_U_0123::CTest_MMF_ACOD_U_0123()
  5263 	{
  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");
  5268 	}
  5269 
  5270 /** @xxxx
  5271  * IMAD to PCM16 Instantiate codec by UID
  5272  * @test Req. under test REQ172.6.1, REQ172.11.12
  5273  */
  5274 TVerdict CTest_MMF_ACOD_U_0123::DoTestStepL()
  5275 	{
  5276 //	const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
  5277 	TBool testOK = EFalse;
  5278 //	TRAPD(err, testOK = TestNewL(codecUid));
  5279     TInt err = KErrNone;
  5280 	if (err)
  5281 		{
  5282 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5283 		return EFail;
  5284 		}
  5285 	else if (!testOK)
  5286 		{
  5287 		INFO_PRINTF1(_L("Test failed"));
  5288 		return EFail; 
  5289 		}
  5290 	else
  5291 		return EPass; 
  5292 	}
  5293 
  5294 //------------------------------------------------------------------
  5295 
  5296 /** @xxxx
  5297  * Constructor
  5298  */
  5299 CTest_MMF_ACOD_U_0124::CTest_MMF_ACOD_U_0124()
  5300 	{
  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");
  5305 
  5306 	for (TUint i=0; i<5; i++)
  5307 		{
  5308 		iExpectedSrcBytesProcessed[i] = 50;
  5309 		iExpectedDstBytesAdded[i] = 0;
  5310 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  5311 		}
  5312 	}
  5313 
  5314 /** @xxxx
  5315  * IMAD to PCM16 Pass in small source buffers
  5316  * @test Req. under test REQ172.6.4, REQ172.6.5
  5317  */
  5318 TVerdict CTest_MMF_ACOD_U_0124::DoTestStepL()
  5319 	{
  5320 //	const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
  5321 	TBool testOK = EFalse;
  5322 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KAdpcmToPCM16OptimumDst));
  5323 TInt err = KErrNone;
  5324 	if (err)
  5325 		{
  5326 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5327 		return EFail;
  5328 		}
  5329 	else if (!testOK)
  5330 		{
  5331 		INFO_PRINTF1(_L("Test failed"));
  5332 		return EFail; 
  5333 		}
  5334 	else
  5335 		return EPass; 
  5336 	}
  5337 
  5338 //------------------------------------------------------------------
  5339 
  5340 /** @xxxx
  5341  * Constructor
  5342  */
  5343 CTest_MMF_ACOD_U_0125::CTest_MMF_ACOD_U_0125()
  5344 	{
  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");
  5349 
  5350 	iExpectedLeaveErrorCode = KErrArgument;
  5351 	}
  5352 
  5353 /** @xxxx
  5354  * IMAD to PCM16 Pass in small dest buffers
  5355  * @test Req. under test REQ172.6.4, REQ172.6.5
  5356  */
  5357 TVerdict CTest_MMF_ACOD_U_0125::DoTestStepL()
  5358 	{
  5359 //	const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
  5360 	TBool testOK = EFalse;
  5361 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAdpcmToPCM16OptimumSrc, KSmallBufferSize));
  5362 TInt err = KErrNone;
  5363 	if (err)
  5364 		{
  5365 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5366 		return EFail;
  5367 		}
  5368 	else if (!testOK)
  5369 		{
  5370 		INFO_PRINTF1(_L("Test failed"));
  5371 		return EFail; 
  5372 		}
  5373 	else
  5374 		return EPass; 
  5375 	}
  5376 
  5377 //------------------------------------------------------------------
  5378 
  5379 /** @xxxx
  5380  * Constructor
  5381  */
  5382 CTest_MMF_ACOD_U_0126::CTest_MMF_ACOD_U_0126()
  5383 	{
  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;
  5389 
  5390 	for (TUint i=0; i<5; i++)
  5391 		{
  5392 		if(i<4)
  5393 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  5394 		else		
  5395 			iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  5396 		}
  5397 	}
  5398 
  5399 /** @xxxx
  5400  * IMAD to PCM16 Pass in large buffers
  5401  * @test Req. under test REQ172.6.4, REQ172.6.5
  5402  */
  5403 TVerdict CTest_MMF_ACOD_U_0126::DoTestStepL()
  5404 	{
  5405 //	const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
  5406 	TBool testOK = EFalse;
  5407 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
  5408 TInt err = KErrNone;
  5409 	if (err)
  5410 		{
  5411 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5412 		return EFail;
  5413 		}
  5414 	else if (!testOK)
  5415 		{
  5416 		INFO_PRINTF1(_L("Test failed"));
  5417 		return EFail; 
  5418 		}
  5419 	else
  5420 		return EPass; 
  5421 	}
  5422 
  5423 //------------------------------------------------------------------
  5424 
  5425 /** @xxxx
  5426  * Constructor
  5427  */
  5428 CTest_MMF_ACOD_U_0127::CTest_MMF_ACOD_U_0127()
  5429 	{
  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");
  5434 
  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;	
  5440 	}
  5441 
  5442 /** @xxxx
  5443  * IMAD to PCM16 Pass in default sized buffers
  5444  * @test Req. under test REQ172.6.4, REQ172.6.5
  5445  */
  5446 TVerdict CTest_MMF_ACOD_U_0127::DoTestStepL()
  5447 	{
  5448 //	const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
  5449 	TBool testOK = EFalse;
  5450 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
  5451 TInt err = KErrNone;
  5452 	if (err)
  5453 		{
  5454 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5455 		return EFail;
  5456 		}
  5457 	else if (!testOK)
  5458 		{
  5459 		INFO_PRINTF1(_L("Test failed"));
  5460 		return EFail; 
  5461 		}
  5462 	else
  5463 		return EPass; 
  5464 	}
  5465 
  5466 //------------------------------------------------------------------
  5467 
  5468 /** @xxxx
  5469  * Constructor
  5470  */
  5471 CTest_MMF_ACOD_U_0128::CTest_MMF_ACOD_U_0128()
  5472 	{
  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");
  5477 
  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;	
  5483 	}
  5484 
  5485 /** @xxxx
  5486  * IMAD to PCM16 Pass in buffers with different max length and length
  5487  * @test Req. under test REQ172.6.4, REQ172.6.5
  5488  */
  5489 TVerdict CTest_MMF_ACOD_U_0128::DoTestStepL()
  5490 	{
  5491 	//const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
  5492 	TBool testOK = EFalse;
  5493 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
  5494 TInt err = KErrNone;
  5495 	if (err)
  5496 		{
  5497 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5498 		return EFail;
  5499 		}
  5500 	else if (!testOK)
  5501 		{
  5502 		INFO_PRINTF1(_L("Test failed"));
  5503 		return EFail; 
  5504 		}
  5505 	else
  5506 		return EPass; 
  5507 	}
  5508 
  5509 //------------------------------------------------------------------
  5510 
  5511 /** @xxxx
  5512  * Constructor
  5513  */
  5514 CTest_MMF_ACOD_U_0129::CTest_MMF_ACOD_U_0129()
  5515 	{
  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");
  5520 
  5521 	for (TUint i=0; i<5; i++)
  5522 		{
  5523 		iExpectedSrcBytesProcessed[i] = 0x400;
  5524 		iExpectedDstBytesAdded[i] = 0xFC8;
  5525 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  5526 		}
  5527 	}
  5528 
  5529 /** @xxxx
  5530  * IMAD to PCM16 Pass in buffers of optimum size
  5531  * @test Req. under test REQ172.6.4, REQ172.6.5
  5532  */
  5533 TVerdict CTest_MMF_ACOD_U_0129::DoTestStepL()
  5534 	{
  5535 	//const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
  5536 	TBool testOK = EFalse;
  5537 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAdpcmToPCM16OptimumSrc, KAdpcmToPCM16OptimumDst));
  5538 TInt err = KErrNone;
  5539 	if (err)
  5540 		{
  5541 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5542 		return EFail;
  5543 		}
  5544 	else if (!testOK)
  5545 		{
  5546 		INFO_PRINTF1(_L("Test failed"));
  5547 		return EFail; 
  5548 		}
  5549 	else
  5550 		return EPass; 
  5551 	}
  5552 
  5553 //------------------------------------------------------------------
  5554 
  5555 /** @xxxx
  5556  * Constructor
  5557  */
  5558 CTest_MMF_ACOD_U_0130::CTest_MMF_ACOD_U_0130()
  5559 	{
  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");
  5564 	}
  5565 
  5566 /** @xxxx
  5567  * IMAD to PCM16 Reposition source pointer during conversion
  5568  * @test Req. under test REQ172.11
  5569  */
  5570 TVerdict CTest_MMF_ACOD_U_0130::DoTestStepL()
  5571 	{
  5572 	//const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
  5573 	TBool testOK = EFalse;
  5574 	
  5575 //	TUint src = (KAdpcmToPCM16OptimumSrc/4) + 10;
  5576 
  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;
  5580 
  5581 	if (err)
  5582 		{
  5583 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5584 		return EFail;
  5585 		}
  5586 	else if (!testOK)
  5587 		{
  5588 		INFO_PRINTF1(_L("Test failed"));
  5589 		return EFail; 
  5590 		}
  5591 	else
  5592 		return EPass; 
  5593 	}
  5594 
  5595 //------------------------------------------------------------------
  5596 
  5597 /** @xxxx
  5598  * Constructor
  5599  */
  5600 CTest_MMF_ACOD_U_0131::CTest_MMF_ACOD_U_0131()
  5601 	{
  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");
  5606 	}
  5607 
  5608 /** @xxxx
  5609  *  PCM16 to IMAD Instantiate codec by FourCC Codes
  5610  * @test Req. under test REQ172.6.2, REQ172.11.14
  5611  */
  5612 TVerdict CTest_MMF_ACOD_U_0131::DoTestStepL()
  5613 	{
  5614 	TBool testOK = EFalse;
  5615 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeIMAD));
  5616     TInt err = KErrNone;
  5617 	if (err)
  5618 		{
  5619 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5620 		return EFail;
  5621 		}
  5622 	else if (!testOK)
  5623 		{
  5624 		INFO_PRINTF1(_L("Test failed"));
  5625 		return EFail; 
  5626 		}
  5627 	else
  5628 		return EPass; 
  5629 	}
  5630 
  5631 //------------------------------------------------------------------
  5632 
  5633 /** @xxxx
  5634  * Constructor
  5635  */
  5636 CTest_MMF_ACOD_U_0132::CTest_MMF_ACOD_U_0132()
  5637 	{
  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");
  5642 	}
  5643 
  5644 /** @xxxx
  5645  * PCM16 to IMAD Instantiate codec by UID
  5646  * @test Req. under test REQ172.6.1, REQ172.11.14
  5647  */
  5648 TVerdict CTest_MMF_ACOD_U_0132::DoTestStepL()
  5649 	{
  5650 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
  5651 	TBool testOK = EFalse;
  5652 //	TRAPD(err, testOK = TestNewL(codecUid));
  5653     TInt err = KErrNone;
  5654 	if (err)
  5655 		{
  5656 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5657 		return EFail;
  5658 		}
  5659 	else if (!testOK)
  5660 		{
  5661 		INFO_PRINTF1(_L("Test failed"));
  5662 		return EFail; 
  5663 		}
  5664 	else
  5665 		return EPass; 
  5666 	}
  5667 
  5668 //------------------------------------------------------------------
  5669 
  5670 /** @xxxx
  5671  * Constructor
  5672  */
  5673 CTest_MMF_ACOD_U_0133::CTest_MMF_ACOD_U_0133()
  5674 	{
  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");
  5679 
  5680 	for (TUint i=0; i<5; i++)
  5681 		{
  5682 		iExpectedSrcBytesProcessed[i] = 50;
  5683 		iExpectedDstBytesAdded[i] = 0;
  5684 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  5685 		}
  5686 	}
  5687 
  5688 /** @xxxx
  5689  * IMAD to PCM16 Pass in small source buffers
  5690  * @test Req. under test REQ172.6.4, REQ172.6.5
  5691  */
  5692 TVerdict CTest_MMF_ACOD_U_0133::DoTestStepL()
  5693 	{
  5694 	//const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
  5695 	TBool testOK = EFalse;
  5696 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToAdpcmOptimumDst));
  5697 	TInt err = KErrNone;
  5698 	if (err)
  5699 		{
  5700 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5701 		return EFail;
  5702 		}
  5703 	else if (!testOK)
  5704 		{
  5705 		INFO_PRINTF1(_L("Test failed"));
  5706 		return EFail; 
  5707 		}
  5708 	else
  5709 		return EPass; 
  5710 	}
  5711 
  5712 //------------------------------------------------------------------
  5713 
  5714 /** @xxxx
  5715  * Constructor
  5716  */
  5717 CTest_MMF_ACOD_U_0134::CTest_MMF_ACOD_U_0134()
  5718 	{
  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");
  5723 
  5724 	iExpectedLeaveErrorCode = KErrArgument;
  5725 	}
  5726 
  5727 /** @xxxx
  5728  * PCM16 to IMAD Pass in small dest buffers
  5729  * @test Req. under test REQ172.6.4, REQ172.6.5
  5730  */
  5731 TVerdict CTest_MMF_ACOD_U_0134::DoTestStepL()
  5732 	{
  5733 	//const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
  5734 	TBool testOK = EFalse;
  5735 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAdpcmOptimumSrc, KSmallBufferSize));
  5736 	TInt err = KErrNone;
  5737 	if (err)
  5738 		{
  5739 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5740 		return EFail;
  5741 		}
  5742 	else if (!testOK)
  5743 		{
  5744 		INFO_PRINTF1(_L("Test failed"));
  5745 		return EFail; 
  5746 		}
  5747 	else
  5748 		return EPass; 
  5749 	}
  5750 
  5751 //------------------------------------------------------------------
  5752 
  5753 /** @xxxx
  5754  * Constructor
  5755  */
  5756 CTest_MMF_ACOD_U_0135::CTest_MMF_ACOD_U_0135()
  5757 	{
  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;	
  5768 	}
  5769 
  5770 /** @xxxx
  5771  * PCM16 to IMAD Pass in large buffers
  5772  * @test Req. under test REQ172.6.4, REQ172.6.5
  5773  */
  5774 TVerdict CTest_MMF_ACOD_U_0135::DoTestStepL()
  5775 	{
  5776 	//const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
  5777 	TBool testOK = EFalse;
  5778 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
  5779 	TInt err = KErrNone;
  5780 	if (err)
  5781 		{
  5782 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5783 		return EFail;
  5784 		}
  5785 	else if (!testOK)
  5786 		{
  5787 		INFO_PRINTF1(_L("Test failed"));
  5788 		return EFail; 
  5789 		}
  5790 	else
  5791 		return EPass; 
  5792 	}
  5793 
  5794 //------------------------------------------------------------------
  5795 
  5796 /** @xxxx
  5797  * Constructor
  5798  */
  5799 CTest_MMF_ACOD_U_0136::CTest_MMF_ACOD_U_0136()
  5800 	{
  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");
  5805 
  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;
  5811 	}
  5812 
  5813 /** @xxxx
  5814  * PCM16 to IMAD Pass in default sized buffers
  5815  * @test Req. under test REQ172.6.4, REQ172.6.5
  5816  */
  5817 TVerdict CTest_MMF_ACOD_U_0136::DoTestStepL()
  5818 	{
  5819 	//const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
  5820 	TBool testOK = EFalse;
  5821 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
  5822 	TInt err = KErrNone;
  5823 	if (err)
  5824 		{
  5825 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5826 		return EFail;
  5827 		}
  5828 	else if (!testOK)
  5829 		{
  5830 		INFO_PRINTF1(_L("Test failed"));
  5831 		return EFail; 
  5832 		}
  5833 	else
  5834 		return EPass; 
  5835 	}
  5836 
  5837 //------------------------------------------------------------------
  5838 
  5839 /** @xxxx
  5840  * Constructor
  5841  */
  5842 CTest_MMF_ACOD_U_0137::CTest_MMF_ACOD_U_0137()
  5843 	{
  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");
  5848 
  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;	
  5854 	}
  5855 
  5856 /** @xxxx
  5857  * PCM16 to IMAD Pass in buffers with different max length and length
  5858  * @test Req. under test REQ172.6.4, REQ172.6.5
  5859  */
  5860 TVerdict CTest_MMF_ACOD_U_0137::DoTestStepL()
  5861 	{
  5862 	//const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
  5863 	TBool testOK = EFalse;
  5864 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
  5865 	TInt err = KErrNone;
  5866 	if (err)
  5867 		{
  5868 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5869 		return EFail;
  5870 		}
  5871 	else if (!testOK)
  5872 		{
  5873 		INFO_PRINTF1(_L("Test failed"));
  5874 		return EFail; 
  5875 		}
  5876 	else
  5877 		return EPass; 
  5878 	}
  5879 
  5880 //------------------------------------------------------------------
  5881 
  5882 /** @xxxx
  5883  * Constructor
  5884  */
  5885 CTest_MMF_ACOD_U_0138::CTest_MMF_ACOD_U_0138()
  5886 	{
  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");
  5891 
  5892 	for (TUint i=0; i<5; i++)
  5893 		{
  5894 		iExpectedSrcBytesProcessed[i] = 0xFC8;
  5895 		iExpectedDstBytesAdded[i] = 0x400;
  5896 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  5897 		}
  5898 	}
  5899 
  5900 /** @xxxx
  5901  * PCM16 to IMAD Pass in buffers of optimum size
  5902  * @test Req. under test REQ172.6.4, REQ172.6.5
  5903  */
  5904 TVerdict CTest_MMF_ACOD_U_0138::DoTestStepL()
  5905 	{
  5906 	//const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
  5907 	TBool testOK = EFalse;
  5908 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAdpcmOptimumSrc, KPCM16ToAdpcmOptimumDst));
  5909 	TInt err = KErrNone;
  5910 	if (err)
  5911 		{
  5912 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5913 		return EFail;
  5914 		}
  5915 	else if (!testOK)
  5916 		{
  5917 		INFO_PRINTF1(_L("Test failed"));
  5918 		return EFail; 
  5919 		}
  5920 	else
  5921 		return EPass; 
  5922 	}
  5923 
  5924 //------------------------------------------------------------------
  5925 
  5926 /** @xxxx
  5927  * Constructor
  5928  */
  5929 CTest_MMF_ACOD_U_0139::CTest_MMF_ACOD_U_0139()
  5930 	{
  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");
  5935 	}
  5936 
  5937 /** @xxxx
  5938  * PCM16 to IMAD Reposition source pointer during conversion
  5939  * @test Req. under test REQ172.11
  5940  */
  5941 TVerdict CTest_MMF_ACOD_U_0139::DoTestStepL()
  5942 	{
  5943 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
  5944 	TBool testOK = EFalse;
  5945 	
  5946 //	TUint src = (KPCM16ToAdpcmOptimumSrc/4) + 10;
  5947 
  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 ;
  5951 	
  5952 	if (err)
  5953 		{
  5954 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5955 		return EFail;
  5956 		}
  5957 	else if (!testOK)
  5958 		{
  5959 		INFO_PRINTF1(_L("Test failed"));
  5960 		return EFail; 
  5961 		}
  5962 	else
  5963 		return EPass; 
  5964 	}
  5965 
  5966 //------------------------------------------------------------------
  5967 
  5968 /** @xxxx
  5969  * Constructor
  5970  */
  5971 CTest_MMF_ACOD_U_0140::CTest_MMF_ACOD_U_0140()
  5972 	{
  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");
  5977 	}
  5978 
  5979 /** @xxxx
  5980  * IMAS to PCM16 Instantiate codec by FourCC Codes
  5981  * @test Req. under test REQ172.6.2, REQ172.11.17
  5982  */
  5983 TVerdict CTest_MMF_ACOD_U_0140::DoTestStepL()
  5984 	{
  5985 	TBool testOK = EFalse;
  5986 	//TRAPD(err, testOK = TestNewL(KMMFFourCCCodeIMAS, KMMFFourCCCodePCM16));
  5987 TInt err = KErrNone ;
  5988 
  5989 	if (err)
  5990 		{
  5991 		INFO_PRINTF2(_L("Test left with status %d"), err);
  5992 		return EFail;
  5993 		}
  5994 	else if (!testOK)
  5995 		{
  5996 		INFO_PRINTF1(_L("Test failed"));
  5997 		return EFail; 
  5998 		}
  5999 	else
  6000 		return EPass; 
  6001 	}
  6002 
  6003 //------------------------------------------------------------------
  6004 
  6005 /** @xxxx
  6006  * Constructor
  6007  */
  6008 CTest_MMF_ACOD_U_0141::CTest_MMF_ACOD_U_0141()
  6009 	{
  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");
  6014 	}
  6015 
  6016 /** @xxxx
  6017  * IMAS to PCM16 Instantiate codec by UID
  6018  * @test Req. under test REQ172.6.1, REQ172.11.17
  6019  */
  6020 TVerdict CTest_MMF_ACOD_U_0141::DoTestStepL()
  6021 	{
  6022 //	const TUid codecUid = {0}; //KMmfUidHwDeviceIMAADPCMToPCM16Stereo};
  6023 	TBool testOK = EFalse;
  6024 //	TRAPD(err, testOK = TestNewL(codecUid));
  6025 	TInt err = KErrNone;
  6026 
  6027 	if (err)
  6028 		{
  6029 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6030 		return EFail;
  6031 		}
  6032 	else if (!testOK)
  6033 		{
  6034 		INFO_PRINTF1(_L("Test failed"));
  6035 		return EFail; 
  6036 		}
  6037 	else
  6038 		return EPass; 
  6039 	}
  6040 
  6041 //------------------------------------------------------------------
  6042 
  6043 /** @xxxx
  6044  * Constructor
  6045  */
  6046 CTest_MMF_ACOD_U_0142::CTest_MMF_ACOD_U_0142()
  6047 	{
  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");
  6052 
  6053 	for (TUint i=0; i<5; i++)
  6054 		{
  6055 		iExpectedSrcBytesProcessed[i] = 50;
  6056 		iExpectedDstBytesAdded[i] = 0;
  6057 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  6058 		}
  6059 	}
  6060 
  6061 /** @xxxx
  6062  * IMAS to PCM16 Pass in small source buffers
  6063  * @test Req. under test REQ172.6.4, REQ172.6.5
  6064  */
  6065 TVerdict CTest_MMF_ACOD_U_0142::DoTestStepL()
  6066 	{
  6067 //	const TUid codecUid = {0};
  6068 	TBool testOK = EFalse;
  6069 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KStereoAdpcmToPCM16OptimumDst));
  6070 	TInt err = KErrNone ;
  6071 
  6072 	if (err)
  6073 		{
  6074 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6075 		return EFail;
  6076 		}
  6077 	else if (!testOK)
  6078 		{
  6079 		INFO_PRINTF1(_L("Test failed"));
  6080 		return EFail; 
  6081 		}
  6082 	else
  6083 		return EPass; 
  6084 	}
  6085 
  6086 //------------------------------------------------------------------
  6087 
  6088 /** @xxxx
  6089  * Constructor
  6090  */
  6091 CTest_MMF_ACOD_U_0143::CTest_MMF_ACOD_U_0143()
  6092 	{
  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");
  6097 
  6098 	iExpectedLeaveErrorCode = KErrArgument;
  6099 	}
  6100 
  6101 /** @xxxx
  6102  * IMAS to PCM16 Pass in small dest buffers
  6103  * @test Req. under test REQ172.6.4, REQ172.6.5
  6104  */
  6105 TVerdict CTest_MMF_ACOD_U_0143::DoTestStepL()
  6106 	{
  6107 //	const TUid codecUid = {0};//{0};
  6108 	TBool testOK = EFalse;
  6109 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KStereoAdpcmToPCM16OptimumSrc, KSmallBufferSize));
  6110 TInt err = KErrNone ;
  6111 	if (err)
  6112 		{
  6113 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6114 		return EFail;
  6115 		}
  6116 	else if (!testOK)
  6117 		{
  6118 		INFO_PRINTF1(_L("Test failed"));
  6119 		return EFail; 
  6120 		}
  6121 	else
  6122 		return EPass; 
  6123 	}
  6124 
  6125 //------------------------------------------------------------------
  6126 
  6127 /** @xxxx
  6128  * Constructor
  6129  */
  6130 CTest_MMF_ACOD_U_0144::CTest_MMF_ACOD_U_0144()
  6131 	{
  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;
  6142 	}
  6143 
  6144 /** @xxxx
  6145  * IMAS to PCM16 Pass in large buffers
  6146  * @test Req. under test REQ172.6.4, REQ172.6.5
  6147  */
  6148 TVerdict CTest_MMF_ACOD_U_0144::DoTestStepL()
  6149 	{
  6150 //	const TUid codecUid = {0};
  6151 	TBool testOK = EFalse;
  6152 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
  6153 TInt err = KErrNone ;
  6154 	if (err)
  6155 		{
  6156 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6157 		return EFail;
  6158 		}
  6159 	else if (!testOK)
  6160 		{
  6161 		INFO_PRINTF1(_L("Test failed"));
  6162 		return EFail; 
  6163 		}
  6164 	else
  6165 		return EPass; 
  6166 	}
  6167 
  6168 //------------------------------------------------------------------
  6169 
  6170 /** @xxxx
  6171  * Constructor
  6172  */
  6173 CTest_MMF_ACOD_U_0145::CTest_MMF_ACOD_U_0145()
  6174 	{
  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");
  6179 
  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;	
  6185 	}
  6186 
  6187 /** @xxxx
  6188  * IMAS to PCM16 Pass in default sized buffers
  6189  * @test Req. under test REQ172.6.4, REQ172.6.5
  6190  */
  6191 TVerdict CTest_MMF_ACOD_U_0145::DoTestStepL()
  6192 	{
  6193 //	const TUid codecUid = {0};
  6194 	TBool testOK = EFalse;
  6195 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
  6196 	TInt err = KErrNone ;
  6197 
  6198 	if (err)
  6199 		{
  6200 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6201 		return EFail;
  6202 		}
  6203 	else if (!testOK)
  6204 		{
  6205 		INFO_PRINTF1(_L("Test failed"));
  6206 		return EFail; 
  6207 		}
  6208 	else
  6209 		return EPass; 
  6210 	}
  6211 
  6212 //------------------------------------------------------------------
  6213 
  6214 /** @xxxx
  6215  * Constructor
  6216  */
  6217 CTest_MMF_ACOD_U_0146::CTest_MMF_ACOD_U_0146()
  6218 	{
  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");
  6223 
  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;	
  6229 	}
  6230 
  6231 /** @xxxx
  6232  * IMAS to PCM16 Pass in buffers with different max length and length
  6233  * @test Req. under test REQ172.6.4, REQ172.6.5
  6234  */
  6235 TVerdict CTest_MMF_ACOD_U_0146::DoTestStepL()
  6236 	{
  6237 //	const TUid codecUid = {0};
  6238 	TBool testOK = EFalse;
  6239 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
  6240 	TInt err = KErrNone ;
  6241 
  6242 	if (err)
  6243 		{
  6244 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6245 		return EFail;
  6246 		}
  6247 	else if (!testOK)
  6248 		{
  6249 		INFO_PRINTF1(_L("Test failed"));
  6250 		return EFail; 
  6251 		}
  6252 	else
  6253 		return EPass; 
  6254 	}
  6255 
  6256 //------------------------------------------------------------------
  6257 
  6258 /** @xxxx
  6259  * Constructor
  6260  */
  6261 CTest_MMF_ACOD_U_0147::CTest_MMF_ACOD_U_0147()
  6262 	{
  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");
  6267 
  6268 	for (TUint i=0; i<5; i++)
  6269 		{
  6270 		iExpectedSrcBytesProcessed[i] = 0x400;
  6271 		iExpectedDstBytesAdded[i] = 0xF90;
  6272 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  6273 		}
  6274 	}
  6275 
  6276 /** @xxxx
  6277  * IMAS to PCM16 Pass in buffers of optimum size
  6278  * @test Req. under test REQ172.6.4, REQ172.6.5
  6279  */
  6280 TVerdict CTest_MMF_ACOD_U_0147::DoTestStepL()
  6281 	{
  6282 //	const TUid codecUid = {0};
  6283 	TBool testOK = EFalse;
  6284 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KStereoAdpcmToPCM16OptimumSrc, KStereoAdpcmToPCM16OptimumDst));
  6285     TInt err = KErrNone ;
  6286 	if (err)
  6287 		{
  6288 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6289 		return EFail;
  6290 		}
  6291 	else if (!testOK)
  6292 		{
  6293 		INFO_PRINTF1(_L("Test failed"));
  6294 		return EFail; 
  6295 		}
  6296 	else
  6297 		return EPass; 
  6298 	}
  6299 
  6300 //------------------------------------------------------------------
  6301 
  6302 /** @xxxx
  6303  * Constructor
  6304  */
  6305 CTest_MMF_ACOD_U_0148::CTest_MMF_ACOD_U_0148()
  6306 	{
  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");
  6311 	}
  6312 
  6313 /** @xxxx
  6314  * IMAS to PCM16 Reposition source pointer during conversion
  6315  * @test Req. under test REQ172.11
  6316  */
  6317 TVerdict CTest_MMF_ACOD_U_0148::DoTestStepL()
  6318 	{
  6319 //	const TUid codecUid = {0};
  6320 	TBool testOK = EFalse;
  6321 	
  6322 //	TUint src = (KStereoAdpcmToPCM16OptimumSrc/4) + 10;
  6323 
  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;
  6327 	if (err)
  6328 		{
  6329 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6330 		return EFail;
  6331 		}
  6332 	else if (!testOK)
  6333 		{
  6334 		INFO_PRINTF1(_L("Test failed"));
  6335 		return EFail; 
  6336 		}
  6337 	else
  6338 		return EPass; 
  6339 	}
  6340 
  6341 //------------------------------------------------------------------
  6342 
  6343 /** @xxxx
  6344  * Constructor
  6345  */
  6346 CTest_MMF_ACOD_U_0149::CTest_MMF_ACOD_U_0149()
  6347 	{
  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");
  6352 	}
  6353 
  6354 /** @xxxx
  6355  *  PCM16 to IMAS Instantiate codec by FourCC Codes
  6356  * @test Req. under test REQ172.6.2, REQ172.11.18
  6357  */
  6358 TVerdict CTest_MMF_ACOD_U_0149::DoTestStepL()
  6359 	{
  6360 	TBool testOK = EFalse;
  6361 	//TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeIMAS));
  6362     TInt err = KErrNone;
  6363 	if (err)
  6364 		{
  6365 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6366 		return EFail;
  6367 		}
  6368 	else if (!testOK)
  6369 		{
  6370 		INFO_PRINTF1(_L("Test failed"));
  6371 		return EFail; 
  6372 		}
  6373 	else
  6374 		return EPass; 
  6375 	}
  6376 
  6377 //------------------------------------------------------------------
  6378 
  6379 /** @xxxx
  6380  * Constructor
  6381  */
  6382 CTest_MMF_ACOD_U_0150::CTest_MMF_ACOD_U_0150()
  6383 	{
  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");
  6388 	}
  6389 
  6390 /** @xxxx
  6391  * PCM16 to IMAS Instantiate codec by UID
  6392  * @test Req. under test REQ172.6.1, REQ172.11.18
  6393  */
  6394 TVerdict CTest_MMF_ACOD_U_0150::DoTestStepL()
  6395 	{
  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;
  6401 	if (err)
  6402 		{
  6403 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6404 		return EFail;
  6405 		}
  6406 	else if (!testOK)
  6407 		{
  6408 		INFO_PRINTF1(_L("Test failed"));
  6409 		return EFail; 
  6410 		}
  6411 	else
  6412 		return EPass; 
  6413 	}
  6414 
  6415 //------------------------------------------------------------------
  6416 
  6417 /** @xxxx
  6418  * Constructor
  6419  */
  6420 CTest_MMF_ACOD_U_0151::CTest_MMF_ACOD_U_0151()
  6421 	{
  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");
  6426 
  6427 	for (TUint i=0; i<5; i++)
  6428 		{
  6429 		iExpectedSrcBytesProcessed[i] = 50;
  6430 		iExpectedDstBytesAdded[i] = 0;
  6431 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  6432 		}
  6433 	}
  6434 
  6435 /** @xxxx
  6436  * IMAS to PCM16 Pass in small source buffers
  6437  * @test Req. under test REQ172.6.4, REQ172.6.5
  6438  */
  6439 TVerdict CTest_MMF_ACOD_U_0151::DoTestStepL()
  6440 	{
  6441 //	const TUid codecUid = {0};
  6442 	TBool testOK = EFalse;
  6443 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSize, KPCM16ToStereoAdpcmOptimumDst));
  6444 TInt err = KErrNone;
  6445 	if (err)
  6446 		{
  6447 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6448 		return EFail;
  6449 		}
  6450 	else if (!testOK)
  6451 		{
  6452 		INFO_PRINTF1(_L("Test failed"));
  6453 		return EFail; 
  6454 		}
  6455 	else
  6456 		return EPass; 
  6457 	}
  6458 
  6459 //------------------------------------------------------------------
  6460 
  6461 /** @xxxx
  6462  * Constructor
  6463  */
  6464 CTest_MMF_ACOD_U_0152::CTest_MMF_ACOD_U_0152()
  6465 	{
  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");
  6470 
  6471 	iExpectedLeaveErrorCode = KErrArgument;
  6472 	}
  6473 
  6474 /** @xxxx
  6475  * PCM16 to IMAS Pass in small dest buffers
  6476  * @test Req. under test REQ172.6.4, REQ172.6.5
  6477  */
  6478 TVerdict CTest_MMF_ACOD_U_0152::DoTestStepL()
  6479 	{
  6480 	//const TUid codecUid = {0};
  6481 	TBool testOK = EFalse;
  6482 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToStereoAdpcmOptimumSrc, KSmallBufferSize));
  6483 	TInt err = KErrNone;
  6484 	if (err)
  6485 		{
  6486 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6487 		return EFail;
  6488 		}
  6489 	else if (!testOK)
  6490 		{
  6491 		INFO_PRINTF1(_L("Test failed"));
  6492 		return EFail; 
  6493 		}
  6494 	else
  6495 		return EPass; 
  6496 	}
  6497 
  6498 //------------------------------------------------------------------
  6499 
  6500 /** @xxxx
  6501  * Constructor
  6502  */
  6503 CTest_MMF_ACOD_U_0153::CTest_MMF_ACOD_U_0153()
  6504 	{
  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;	
  6515 	}
  6516 
  6517 /** @xxxx
  6518  * PCM16 to IMAS Pass in large buffers
  6519  * @test Req. under test REQ172.6.4, REQ172.6.5
  6520  */
  6521 TVerdict CTest_MMF_ACOD_U_0153::DoTestStepL()
  6522 	{
  6523 	//const TUid codecUid = {0};
  6524 	TBool testOK = EFalse;
  6525 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
  6526     TInt err = KErrNone;
  6527 	if (err)
  6528 		{
  6529 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6530 		return EFail;
  6531 		}
  6532 	else if (!testOK)
  6533 		{
  6534 		INFO_PRINTF1(_L("Test failed"));
  6535 		return EFail; 
  6536 		}
  6537 	else
  6538 		return EPass; 
  6539 	}
  6540 
  6541 //------------------------------------------------------------------
  6542 
  6543 /** @xxxx
  6544  * Constructor
  6545  */
  6546 CTest_MMF_ACOD_U_0154::CTest_MMF_ACOD_U_0154()
  6547 	{
  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");
  6552 
  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;
  6558 	}
  6559 
  6560 /** @xxxx
  6561  * PCM16 to IMAS Pass in default sized buffers
  6562  * @test Req. under test REQ172.6.4, REQ172.6.5
  6563  */
  6564 TVerdict CTest_MMF_ACOD_U_0154::DoTestStepL()
  6565 	{
  6566 	//const TUid codecUid = {0};
  6567 	TBool testOK = EFalse;
  6568 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
  6569 	TInt err = KErrNone;
  6570 	if (err)
  6571 		{
  6572 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6573 		return EFail;
  6574 		}
  6575 	else if (!testOK)
  6576 		{
  6577 		INFO_PRINTF1(_L("Test failed"));
  6578 		return EFail; 
  6579 		}
  6580 	else
  6581 		return EPass; 
  6582 	}
  6583 
  6584 //------------------------------------------------------------------
  6585 
  6586 /** @xxxx
  6587  * Constructor
  6588  */
  6589 CTest_MMF_ACOD_U_0155::CTest_MMF_ACOD_U_0155()
  6590 	{
  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");
  6595 
  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;	
  6601 	}
  6602 
  6603 /** @xxxx
  6604  * PCM16 to IMAS Pass in buffers with different max length and length
  6605  * @test Req. under test REQ172.6.4, REQ172.6.5
  6606  */
  6607 TVerdict CTest_MMF_ACOD_U_0155::DoTestStepL()
  6608 	{
  6609 	//const TUid codecUid = {0};
  6610 	TBool testOK = EFalse;
  6611 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
  6612 	TInt err = KErrNone;
  6613 	if (err)
  6614 		{
  6615 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6616 		return EFail;
  6617 		}
  6618 	else if (!testOK)
  6619 		{
  6620 		INFO_PRINTF1(_L("Test failed"));
  6621 		return EFail; 
  6622 		}
  6623 	else
  6624 		return EPass; 
  6625 	}
  6626 
  6627 //------------------------------------------------------------------
  6628 
  6629 /** @xxxx
  6630  * Constructor
  6631  */
  6632 CTest_MMF_ACOD_U_0156::CTest_MMF_ACOD_U_0156()
  6633 	{
  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");
  6638 
  6639 	for (TUint i=0; i<5; i++)
  6640 		{
  6641 		iExpectedSrcBytesProcessed[i] = 0xF90;
  6642 		iExpectedDstBytesAdded[i] = 0x400;
  6643 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  6644 		}
  6645 	}
  6646 
  6647 /** @xxxx
  6648  * PCM16 to IMAS Pass in buffers of optimum size
  6649  * @test Req. under test REQ172.6.4, REQ172.6.5
  6650  */
  6651 TVerdict CTest_MMF_ACOD_U_0156::DoTestStepL()
  6652 	{
  6653 	//const TUid codecUid = {0};
  6654 	TBool testOK = EFalse;
  6655 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToStereoAdpcmOptimumSrc, KPCM16ToStereoAdpcmOptimumDst));
  6656 	TInt err = KErrNone;
  6657 	if (err)
  6658 		{
  6659 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6660 		return EFail;
  6661 		}
  6662 	else if (!testOK)
  6663 		{
  6664 		INFO_PRINTF1(_L("Test failed"));
  6665 		return EFail; 
  6666 		}
  6667 	else
  6668 		return EPass; 
  6669 	}
  6670 
  6671 //------------------------------------------------------------------
  6672 
  6673 /** @xxxx
  6674  * Constructor
  6675  */
  6676 CTest_MMF_ACOD_U_0157::CTest_MMF_ACOD_U_0157()
  6677 	{
  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");
  6682 	}
  6683 
  6684 /** @xxxx
  6685  * PCM16 to IMAS Reposition source pointer during conversion
  6686  * @test Req. under test REQ172.11
  6687  */
  6688 TVerdict CTest_MMF_ACOD_U_0157::DoTestStepL()
  6689 	{
  6690 	//const TUid codecUid = {0};
  6691 	TBool testOK = EFalse;
  6692 	
  6693 //	TUint src = (KPCM16ToStereoAdpcmOptimumSrc/4) + 10;
  6694 
  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;
  6698 	if (err)
  6699 		{
  6700 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6701 		return EFail;
  6702 		}
  6703 	else if (!testOK)
  6704 		{
  6705 		INFO_PRINTF1(_L("Test failed"));
  6706 		return EFail; 
  6707 		}
  6708 	else
  6709 		return EPass; 
  6710 	}
  6711 
  6712 //------------------------------------------------------------------
  6713 
  6714 /** @xxxx
  6715  * Constructor
  6716  */
  6717 CTest_MMF_ACOD_U_0158::CTest_MMF_ACOD_U_0158()
  6718 	{
  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");
  6723 	}
  6724 
  6725 /** @xxxx
  6726  * GSM610 to PCM16 Instantiate codec by FourCC Codes
  6727  * @test Req. under test REQ172.6.2, REQ172.11.19
  6728  */
  6729 TVerdict CTest_MMF_ACOD_U_0158::DoTestStepL()
  6730 	{
  6731 	TBool testOK = EFalse;
  6732 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodeGSM610, KMMFFourCCCodePCM16));
  6733     TInt err = KErrNone;
  6734 	if (err)
  6735 		{
  6736 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6737 		return EFail;
  6738 		}
  6739 	else if (!testOK)
  6740 		{
  6741 		INFO_PRINTF1(_L("Test failed"));
  6742 		return EFail; 
  6743 		}
  6744 	else
  6745 		return EPass; 
  6746 	}
  6747 
  6748 //------------------------------------------------------------------
  6749 
  6750 /** @xxxx
  6751  * Constructor
  6752  */
  6753 CTest_MMF_ACOD_U_0159::CTest_MMF_ACOD_U_0159()
  6754 	{
  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");
  6759 	}
  6760 
  6761 /** @xxxx
  6762  * GSM610 to PCM16 Instantiate codec by UID
  6763  * @test Req. under test REQ172.6.1, REQ172.11.19
  6764  */
  6765 TVerdict CTest_MMF_ACOD_U_0159::DoTestStepL()
  6766 	{
  6767 //	const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
  6768 	TBool testOK = EFalse;
  6769 //	TRAPD(err, testOK = TestNewL(codecUid));
  6770     TInt err = KErrNone;
  6771 	if (err)
  6772 		{
  6773 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6774 		return EFail;
  6775 		}
  6776 	else if (!testOK)
  6777 		{
  6778 		INFO_PRINTF1(_L("Test failed"));
  6779 		return EFail; 
  6780 		}
  6781 	else
  6782 		return EPass; 
  6783 	}
  6784 
  6785 //------------------------------------------------------------------
  6786 
  6787 /** @xxxx
  6788  * Constructor
  6789  */
  6790 CTest_MMF_ACOD_U_0160::CTest_MMF_ACOD_U_0160()
  6791 	{
  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;
  6797 
  6798 	for (TUint i=0; i<5; i++)
  6799 		{
  6800 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  6801 		}
  6802 
  6803 	}
  6804 
  6805 /** @xxxx
  6806  * GSM610 to PCM16 Pass in small source buffers
  6807  * @test Req. under test REQ172.6.4, REQ172.6.5
  6808  */
  6809 TVerdict CTest_MMF_ACOD_U_0160::DoTestStepL()
  6810 	{
  6811 	//const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
  6812 	TBool testOK = EFalse;
  6813 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSizeGSM, KGSM610ToPCM16OptimumDstGSM, 0, EFalse));
  6814 	TInt err = KErrNone;
  6815 	if (err)
  6816 		{
  6817 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6818 		return EFail;
  6819 		}
  6820 	else if (!testOK)
  6821 		{
  6822 		INFO_PRINTF1(_L("Test failed"));
  6823 		return EFail; 
  6824 		}
  6825 	else
  6826 		return EPass; 
  6827 	}
  6828 
  6829 //------------------------------------------------------------------
  6830 
  6831 /** @xxxx
  6832  * Constructor
  6833  */
  6834 CTest_MMF_ACOD_U_0161::CTest_MMF_ACOD_U_0161()
  6835 	{
  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;
  6841 
  6842 	for (TUint i=0; i<5; i++)
  6843 		{
  6844 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  6845 		}
  6846 	}
  6847 
  6848 /** @xxxx
  6849  * GSM610 to PCM16 Pass in small dest buffers
  6850  * @test Req. under test REQ172.6.4, REQ172.6.5
  6851  */
  6852 TVerdict CTest_MMF_ACOD_U_0161::DoTestStepL()
  6853 	{
  6854 	//const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
  6855 	TBool testOK = EFalse;
  6856 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KGSM610ToPCM16OptimumSrcGSM, KSmallBufferSizeGSM, 0, EFalse));
  6857 	TInt err = KErrNone;
  6858 	if (err)
  6859 		{
  6860 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6861 		return EFail;
  6862 		}
  6863 	else if (!testOK)
  6864 		{
  6865 		INFO_PRINTF1(_L("Test failed"));
  6866 		return EFail; 
  6867 		}
  6868 	else
  6869 		return EPass; 
  6870 	}
  6871 
  6872 //------------------------------------------------------------------
  6873 
  6874 /** @xxxx
  6875  * Constructor
  6876  */
  6877 CTest_MMF_ACOD_U_0162::CTest_MMF_ACOD_U_0162()
  6878 	{
  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++)
  6885 		{
  6886 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  6887 		}
  6888 	}
  6889 
  6890 /** @xxxx
  6891  * GSM610 to PCM16 Pass in large buffers
  6892  * @test Req. under test REQ172.6.4, REQ172.6.5
  6893  */
  6894 TVerdict CTest_MMF_ACOD_U_0162::DoTestStepL()
  6895 	{
  6896 	//const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
  6897 	TBool testOK = EFalse;
  6898 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
  6899 	TInt err = KErrNone;
  6900 	if (err)
  6901 		{
  6902 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6903 		return EFail;
  6904 		}
  6905 	else if (!testOK)
  6906 		{
  6907 		INFO_PRINTF1(_L("Test failed"));
  6908 		return EFail; 
  6909 		}
  6910 	else
  6911 		return EPass; 
  6912 	}
  6913 
  6914 //------------------------------------------------------------------
  6915 
  6916 /** @xxxx
  6917  * Constructor
  6918  */
  6919 CTest_MMF_ACOD_U_0163::CTest_MMF_ACOD_U_0163()
  6920 	{
  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");
  6925 
  6926 	for (TUint i=0; i<5; i++)
  6927 		{
  6928 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  6929 		}
  6930 	}
  6931 
  6932 /** @xxxx
  6933  * GSM610 to PCM16 Pass in default sized buffers
  6934  * @test Req. under test REQ172.6.4, REQ172.6.5
  6935  */
  6936 TVerdict CTest_MMF_ACOD_U_0163::DoTestStepL()
  6937 	{
  6938 	//const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
  6939 	TBool testOK = EFalse;
  6940 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
  6941 	TInt err = KErrNone;
  6942 	if (err)
  6943 		{
  6944 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6945 		return EFail;
  6946 		}
  6947 	else if (!testOK)
  6948 		{
  6949 		INFO_PRINTF1(_L("Test failed"));
  6950 		return EFail; 
  6951 		}
  6952 	else
  6953 		return EPass; 
  6954 	}
  6955 
  6956 //------------------------------------------------------------------
  6957 
  6958 /** @xxxx
  6959  * Constructor
  6960  */
  6961 CTest_MMF_ACOD_U_0164::CTest_MMF_ACOD_U_0164()
  6962 	{
  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");
  6967 
  6968 	for (TUint i=0; i<5; i++)
  6969 		{
  6970 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessIncomplete;
  6971 		}
  6972 	}
  6973 
  6974 /** @xxxx
  6975  * GSM610 to PCM16 Pass in buffers with different max length and length
  6976  * @test Req. under test REQ172.6.4, REQ172.6.5
  6977  */
  6978 TVerdict CTest_MMF_ACOD_U_0164::DoTestStepL()
  6979 	{
  6980 	//const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
  6981 	TBool testOK = EFalse;
  6982 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
  6983 	TInt err = KErrNone;
  6984 	if (err)
  6985 		{
  6986 		INFO_PRINTF2(_L("Test left with status %d"), err);
  6987 		return EFail;
  6988 		}
  6989 	else if (!testOK)
  6990 		{
  6991 		INFO_PRINTF1(_L("Test failed"));
  6992 		return EFail; 
  6993 		}
  6994 	else
  6995 		return EPass; 
  6996 	}
  6997 
  6998 //------------------------------------------------------------------
  6999 
  7000 /** @xxxx
  7001  * Constructor
  7002  */
  7003 CTest_MMF_ACOD_U_0165::CTest_MMF_ACOD_U_0165()
  7004 	{
  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;
  7010 
  7011 	for (TUint i=0; i<5; i++)
  7012 		{
  7013 		iExpectedSrcBytesProcessed[i] = 0x104;
  7014 		iExpectedDstBytesAdded[i] = 0xA00;
  7015 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  7016 		}
  7017 	}
  7018 
  7019 /** @xxxx
  7020  * GSM610 to PCM16 Pass in buffers of optimum size
  7021  * @test Req. under test REQ172.6.4, REQ172.6.5
  7022  */
  7023 TVerdict CTest_MMF_ACOD_U_0165::DoTestStepL()
  7024 	{
  7025 	//const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
  7026 	TBool testOK = EFalse;
  7027 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KGSM610ToPCM16OptimumSrc, KGSM610ToPCM16OptimumDst));
  7028 	TInt err = KErrNone;
  7029 	if (err)
  7030 		{
  7031 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7032 		return EFail;
  7033 		}
  7034 	else if (!testOK)
  7035 		{
  7036 		INFO_PRINTF1(_L("Test failed"));
  7037 		return EFail; 
  7038 		}
  7039 	else
  7040 		return EPass; 
  7041 	}
  7042 
  7043 //------------------------------------------------------------------
  7044 
  7045 /** @xxxx
  7046  * Constructor
  7047  */
  7048 CTest_MMF_ACOD_U_0166::CTest_MMF_ACOD_U_0166()
  7049 	{
  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");
  7054 	}
  7055 
  7056 /** @xxxx
  7057  * GSM610 to PCM16 Reposition source pointer during conversion
  7058  * @test Req. under test REQ172.11
  7059  */
  7060 TVerdict CTest_MMF_ACOD_U_0166::DoTestStepL()
  7061 	{
  7062 	//const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
  7063 	TBool testOK = EFalse;
  7064 	
  7065 //	TUint src = (KGSM610ToPCM16OptimumSrc/4) + 10;
  7066 
  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;
  7070 
  7071 	if (err)
  7072 		{
  7073 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7074 		return EFail;
  7075 		}
  7076 	else if (!testOK)
  7077 		{
  7078 		INFO_PRINTF1(_L("Test failed"));
  7079 		return EFail; 
  7080 		}
  7081 	else
  7082 		return EPass; 
  7083 	}
  7084 
  7085 //------------------------------------------------------------------
  7086 
  7087 /** @xxxx
  7088  * Constructor
  7089  */
  7090 CTest_MMF_ACOD_U_0167::CTest_MMF_ACOD_U_0167()
  7091 	{
  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");
  7096 	}
  7097 
  7098 /** @xxxx
  7099  *  PCM16 to GSM610 Instantiate codec by FourCC Codes
  7100  * @test Req. under test REQ172.6.2, REQ172.11.20
  7101  */
  7102 TVerdict CTest_MMF_ACOD_U_0167::DoTestStepL()
  7103 	{
  7104 	TBool testOK = EFalse;
  7105 //	TRAPD(err, testOK = TestNewL(KMMFFourCCCodePCM16, KMMFFourCCCodeGSM610));
  7106     TInt err = KErrNone;
  7107 	if (err)
  7108 		{
  7109 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7110 		return EFail;
  7111 		}
  7112 	else if (!testOK)
  7113 		{
  7114 		INFO_PRINTF1(_L("Test failed"));
  7115 		return EFail; 
  7116 		}
  7117 	else
  7118 		return EPass; 
  7119 	}
  7120 
  7121 //------------------------------------------------------------------
  7122 
  7123 /** @xxxx
  7124  * Constructor
  7125  */
  7126 CTest_MMF_ACOD_U_0168::CTest_MMF_ACOD_U_0168()
  7127 	{
  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");
  7132 	}
  7133 
  7134 /** @xxxx
  7135  * PCM16 to GSM610 Instantiate codec by UID
  7136  * @test Req. under test REQ172.6.1, REQ172.11.20
  7137  */
  7138 TVerdict CTest_MMF_ACOD_U_0168::DoTestStepL()
  7139 	{
  7140 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
  7141 	TBool testOK = EFalse;
  7142 //	TRAPD(err, testOK = TestNewL(codecUid));
  7143     TInt err = KErrNone;
  7144 	if (err)
  7145 		{
  7146 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7147 		return EFail;
  7148 		}
  7149 	else if (!testOK)
  7150 		{
  7151 		INFO_PRINTF1(_L("Test failed"));
  7152 		return EFail; 
  7153 		}
  7154 	else
  7155 		return EPass; 
  7156 	}
  7157 
  7158 //------------------------------------------------------------------
  7159 
  7160 /** @xxxx
  7161  * Constructor
  7162  */
  7163 CTest_MMF_ACOD_U_0169::CTest_MMF_ACOD_U_0169()
  7164 	{
  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;
  7170 
  7171 	for (TUint i=0; i<5; i++)
  7172 		{
  7173 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  7174 		}
  7175 	}
  7176 
  7177 /** @xxxx
  7178  * GSM610 to PCM16 Pass in small source buffers
  7179  * @test Req. under test REQ172.6.4, REQ172.6.5
  7180  */
  7181 TVerdict CTest_MMF_ACOD_U_0169::DoTestStepL()
  7182 	{
  7183 	//const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
  7184 	TBool testOK = EFalse;
  7185 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KSmallBufferSizeGSM, KPCM16ToGSM610OptimumDstGSM, 0, EFalse));
  7186 TInt err = KErrNone;
  7187 	if (err)
  7188 		{
  7189 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7190 		return EFail;
  7191 		}
  7192 	else if (!testOK)
  7193 		{
  7194 		INFO_PRINTF1(_L("Test failed"));
  7195 		return EFail; 
  7196 		}
  7197 	else
  7198 		return EPass; 
  7199 	}
  7200 
  7201 //------------------------------------------------------------------
  7202 
  7203 /** @xxxx
  7204  * Constructor
  7205  */
  7206 CTest_MMF_ACOD_U_0170::CTest_MMF_ACOD_U_0170()
  7207 	{
  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");
  7212 
  7213 	iExpectedLeaveErrorCode = KErrArgument;
  7214 	}
  7215 
  7216 /** @xxxx
  7217  * PCM16 to GSM610 Pass in small dest buffers
  7218  * @test Req. under test REQ172.6.4, REQ172.6.5
  7219  */
  7220 TVerdict CTest_MMF_ACOD_U_0170::DoTestStepL()
  7221 	{
  7222 	//const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
  7223 	TBool testOK = EFalse;
  7224 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToGSM610OptimumSrc, KSmallBufferSize, 0, EFalse));
  7225 TInt err = KErrNone;
  7226 	if (err)
  7227 		{
  7228 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7229 		return EFail;
  7230 		}
  7231 	else if (!testOK)
  7232 		{
  7233 		INFO_PRINTF1(_L("Test failed"));
  7234 		return EFail; 
  7235 		}
  7236 	else
  7237 		return EPass; 
  7238 	}
  7239 
  7240 //------------------------------------------------------------------
  7241 
  7242 /** @xxxx
  7243  * Constructor
  7244  */
  7245 CTest_MMF_ACOD_U_0171::CTest_MMF_ACOD_U_0171()
  7246 	{
  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++)
  7253 		{
  7254 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  7255 		}	
  7256 	}
  7257 
  7258 /** @xxxx
  7259  * PCM16 to GSM610 Pass in large buffers
  7260  * @test Req. under test REQ172.6.4, REQ172.6.5
  7261  */
  7262 TVerdict CTest_MMF_ACOD_U_0171::DoTestStepL()
  7263 	{
  7264 	//const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
  7265 	TBool testOK = EFalse;
  7266 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KLargeBufferSize, KLargeBufferSize, 0, EFalse));
  7267 TInt err = KErrNone;
  7268 	if (err)
  7269 		{
  7270 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7271 		return EFail;
  7272 		}
  7273 	else if (!testOK)
  7274 		{
  7275 		INFO_PRINTF1(_L("Test failed"));
  7276 		return EFail; 
  7277 		}
  7278 	else
  7279 		return EPass; 
  7280 	}
  7281 
  7282 //------------------------------------------------------------------
  7283 
  7284 /** @xxxx
  7285  * Constructor
  7286  */
  7287 CTest_MMF_ACOD_U_0172::CTest_MMF_ACOD_U_0172()
  7288 	{
  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");
  7293 
  7294 	for (TUint i=0; i<5; i++)
  7295 		{
  7296 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  7297 		}
  7298 	}
  7299 
  7300 /** @xxxx
  7301  * PCM16 to GSM610 Pass in default sized buffers
  7302  * @test Req. under test REQ172.6.4, REQ172.6.5
  7303  */
  7304 TVerdict CTest_MMF_ACOD_U_0172::DoTestStepL()
  7305 	{
  7306 	//const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
  7307 	TBool testOK = EFalse;
  7308 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KDefaultBufferSize, KDefaultBufferSize, 0, EFalse));
  7309 	TInt err = KErrNone;
  7310 	if (err)
  7311 		{
  7312 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7313 		return EFail;
  7314 		}
  7315 	else if (!testOK)
  7316 		{
  7317 		INFO_PRINTF1(_L("Test failed"));
  7318 		return EFail; 
  7319 		}
  7320 	else
  7321 		return EPass; 
  7322 	}
  7323 
  7324 //------------------------------------------------------------------
  7325 
  7326 /** @xxxx
  7327  * Constructor
  7328  */
  7329 CTest_MMF_ACOD_U_0173::CTest_MMF_ACOD_U_0173()
  7330 	{
  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");
  7335 
  7336 	for (TUint i=0; i<5; i++)
  7337 		{
  7338 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  7339 		}
  7340 	}
  7341 
  7342 /** @xxxx
  7343  * PCM16 to GSM610 Pass in buffers with different max length and length
  7344  * @test Req. under test REQ172.6.4, REQ172.6.5
  7345  */
  7346 TVerdict CTest_MMF_ACOD_U_0173::DoTestStepL()
  7347 	{
  7348 	//const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
  7349 	TBool testOK = EFalse;
  7350 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMaxBufferLength, KDefaultBufferSize, KDefaultBufferSize, EFalse));
  7351 	TInt err = KErrNone;
  7352 	if (err)
  7353 		{
  7354 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7355 		return EFail;
  7356 		}
  7357 	else if (!testOK)
  7358 		{
  7359 		INFO_PRINTF1(_L("Test failed"));
  7360 		return EFail; 
  7361 		}
  7362 	else
  7363 		return EPass; 
  7364 	}
  7365 
  7366 //------------------------------------------------------------------
  7367 
  7368 /** @xxxx
  7369  * Constructor
  7370  */
  7371 CTest_MMF_ACOD_U_0174::CTest_MMF_ACOD_U_0174()
  7372 	{
  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;
  7378 
  7379 	for (TUint i=0; i<5; i++)
  7380 		{
  7381 		iExpectedSrcBytesProcessed[i] = 0xA00;
  7382 		iExpectedDstBytesAdded[i] = 0x104;
  7383 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EProcessComplete;
  7384 		}
  7385 	}
  7386 
  7387 /** @xxxx
  7388  * PCM16 to GSM610 Pass in buffers of optimum size
  7389  * @test Req. under test REQ172.6.4, REQ172.6.5
  7390  */
  7391 TVerdict CTest_MMF_ACOD_U_0174::DoTestStepL()
  7392 	{
  7393 	//const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
  7394 	TBool testOK = EFalse;
  7395 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToGSM610OptimumSrc, KPCM16ToGSM610OptimumDst));
  7396 	TInt err = KErrNone;
  7397 	if (err)
  7398 		{
  7399 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7400 		return EFail;
  7401 		}
  7402 	else if (!testOK)
  7403 		{
  7404 		INFO_PRINTF1(_L("Test failed"));
  7405 		return EFail; 
  7406 		}
  7407 	else
  7408 		return EPass; 
  7409 	}
  7410 
  7411 //------------------------------------------------------------------
  7412 
  7413 /** @xxxx
  7414  * Constructor
  7415  */
  7416 CTest_MMF_ACOD_U_0175::CTest_MMF_ACOD_U_0175()
  7417 	{
  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");
  7422 	}
  7423 
  7424 /** @xxxx
  7425  * PCM16 to GSM610 Reposition source pointer during conversion
  7426  * @test Req. under test REQ172.11
  7427  */
  7428 TVerdict CTest_MMF_ACOD_U_0175::DoTestStepL()
  7429 	{
  7430 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
  7431 	TBool testOK = EFalse;
  7432 	
  7433 //	TUint src = (KPCM16ToGSM610OptimumSrc/4) + 10;
  7434 
  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;
  7438 	if (err)
  7439 		{
  7440 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7441 		return EFail;
  7442 		}
  7443 	else if (!testOK)
  7444 		{
  7445 		INFO_PRINTF1(_L("Test failed"));
  7446 		return EFail; 
  7447 		}
  7448 	else
  7449 		return EPass; 
  7450 	}
  7451 
  7452 //------------------------------------------------------------------
  7453 
  7454 /** @xxxx
  7455  * Constructor
  7456  */
  7457 CTest_MMF_ACOD_U_0176::CTest_MMF_ACOD_U_0176()
  7458 	{
  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");
  7463 	}
  7464 
  7465 /** @xxxx
  7466  * Instantiate codec that doesn't exist
  7467  * @test Req. under test REQ172.11
  7468  */
  7469 TVerdict CTest_MMF_ACOD_U_0176::DoTestStepL()
  7470 	{
  7471 //	CMMFCodec* codec = NULL;
  7472 	//TRAPD(err, codec = CMMFCodec::NewL(KMMFFourCCCodeALAW, KMMFFourCCCodePCMU16B));
  7473 	TInt err = KErrNone;
  7474 	if (err == KErrNone || err == KErrNotSupported)
  7475 		return EPass;
  7476 	else 
  7477 		{
  7478 		ERR_PRINTF2(_L(">> CTest_MMF_ACOD_U_0176::DoTestStepL Leave occurred in NewL, error code %d"), err);
  7479 		return EFail;
  7480 		}
  7481 	}
  7482 //------------------------------------------------------------------
  7483 
  7484 /** @xxxx
  7485  * Constructor
  7486  */
  7487 CTest_MMF_ACOD_U_0177::CTest_MMF_ACOD_U_0177()
  7488 	{
  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");
  7493 	}
  7494 
  7495 /** @xxxx
  7496  * Instantiate codec from fourCC codes that don't exist
  7497  * @test Req. under test REQ172.11
  7498  */
  7499 TVerdict CTest_MMF_ACOD_U_0177::DoTestStepL()
  7500 	{
  7501 //	const TUint32 KFourCCCodeP1B = 0x42315020;		//(' ', 'P', '1', 'B')
  7502 //	const TUint32 KFourCCCodePS16 = 0x36315350;		//('P', 'S', '1', '6')
  7503 
  7504 //	CMMFCodec* codec = NULL;
  7505 	//TRAPD(err, codec = CMMFCodec::NewL(KFourCCCodeP1B, KFourCCCodePS16));
  7506 	
  7507 	TInt err = KErrNone;
  7508 	if (err == KErrNone || err == KErrNotSupported)
  7509 		return EPass;
  7510 	else 
  7511 		{
  7512 		ERR_PRINTF2(_L(">> CTest_MMF_ACOD_U_0177::DoTestStepL Leave occurred in NewL, error code %d"), err);
  7513 		return EFail;
  7514 		}
  7515 	}
  7516 //------------------------------------------------------------------
  7517 
  7518 /** @xxxx
  7519  * Constructor
  7520  */
  7521 CTest_MMF_ACOD_U_0178::CTest_MMF_ACOD_U_0178()
  7522 	{
  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");
  7527 	}
  7528 
  7529 /** @xxxx
  7530  * Test out of memory in NewL
  7531  * @test Req. under test REQ172.11
  7532  */
  7533 TVerdict CTest_MMF_ACOD_U_0178::DoTestStepL()
  7534 	{
  7535 //	CMMFCodec* codec = NULL;
  7536 	__UHEAP_FAILNEXT(1);
  7537 	//TRAPD(err, codec = CMMFCodec::NewL(KMMFFourCCCodePCMU8, KMMFFourCCCodePCM16));
  7538 TInt err = KErrNone;
  7539 	if (err == KErrNoMemory)
  7540 		return EPass;
  7541 	else 
  7542 		{
  7543 		ERR_PRINTF2(_L(">> CTest_MMF_ACOD_U_0178::DoTestStepL Leave occurred in NewL, error code %d"), err);
  7544 		return EFail;
  7545 		}
  7546 	}
  7547 //------------------------------------------------------------------
  7548 
  7549 /** @xxxx
  7550  * Constructor
  7551  */
  7552 CTest_MMF_ACOD_U_0179::CTest_MMF_ACOD_U_0179()
  7553 	{
  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");
  7558 
  7559 	for (TUint i=0; i<5; i++)
  7560 		{
  7561 		iExpectedSrcBytesProcessed[i] = 0;
  7562 		iExpectedDstBytesAdded[i] = 0;
  7563 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  7564 		}
  7565 	}
  7566 
  7567 /** @xxxx
  7568  * ALAW To PCM16 Pass in zero sized source buffer
  7569  * @test Req. under test REQ172.6.4, REQ172.6.5
  7570  */
  7571 TVerdict CTest_MMF_ACOD_U_0179::DoTestStepL()
  7572 	{
  7573 //	const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
  7574 	TBool testOK = EFalse;
  7575 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KAlawToPCM16OptimumDst));
  7576 TInt err = KErrNone;
  7577 	if (err)
  7578 		{
  7579 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7580 		return EFail;
  7581 		}
  7582 	else if (!testOK)
  7583 		{
  7584 		INFO_PRINTF1(_L("Test failed"));
  7585 		return EFail; 
  7586 		}
  7587 	else
  7588 		return EPass; 
  7589 	}
  7590 
  7591 //------------------------------------------------------------------
  7592 
  7593 /** @xxxx
  7594  * Constructor
  7595  */
  7596 CTest_MMF_ACOD_U_0180::CTest_MMF_ACOD_U_0180()
  7597 	{
  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");
  7602 
  7603 	iExpectedLeaveErrorCode = KErrArgument;
  7604 	}
  7605 
  7606 /** @xxxx
  7607  * ALAW To PCM16 Pass in zero sized destination buffer
  7608  * @test Req. under test REQ172.6.4, REQ172.6.5
  7609  */
  7610 TVerdict CTest_MMF_ACOD_U_0180::DoTestStepL()
  7611 	{
  7612 //	const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
  7613 	TBool testOK = EFalse;
  7614 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAlawToPCM16OptimumSrc, 0));
  7615 TInt err = KErrNone;
  7616 	if (err)
  7617 		{
  7618 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7619 		return EFail;
  7620 		}
  7621 	else if (!testOK)
  7622 		{
  7623 		INFO_PRINTF1(_L("Test failed"));
  7624 		return EFail; 
  7625 		}
  7626 	else
  7627 		return EPass; 
  7628 	}
  7629 
  7630 //------------------------------------------------------------------
  7631 
  7632 /** @xxxx
  7633  * Constructor
  7634  */
  7635 CTest_MMF_ACOD_U_0181::CTest_MMF_ACOD_U_0181()
  7636 	{
  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");
  7641 	}
  7642 
  7643 /** @xxxx
  7644  * ALAW To PCM16 Test out of memory
  7645  * @test Req. under test REQ172.11
  7646  */
  7647 TVerdict CTest_MMF_ACOD_U_0181::DoTestStepL()
  7648 	{
  7649 	const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
  7650 	TBool testOK = EFalse;
  7651 
  7652 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
  7653 	TInt err = KErrNone ;
  7654 	if (err==KErrNone && testOK)
  7655 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
  7656 
  7657 	if (err)
  7658 		{
  7659 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7660 		return EFail;
  7661 		}
  7662 	else if (!testOK)
  7663 		{
  7664 		INFO_PRINTF1(_L("Test failed"));
  7665 		return EFail; 
  7666 		}
  7667 	else
  7668 		return EPass; 
  7669 	}
  7670 
  7671 //------------------------------------------------------------------
  7672 
  7673 
  7674 /** @xxxx
  7675  * Constructor
  7676  */
  7677 CTest_MMF_ACOD_U_0182::CTest_MMF_ACOD_U_0182()
  7678 	{
  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");
  7683 	}
  7684 
  7685 /** @xxxx
  7686  * ALAW To PCM16 Test for memory leaks
  7687  * @test Req. under test REQ172.11
  7688  */
  7689 TVerdict CTest_MMF_ACOD_U_0182::DoTestStepL()
  7690 	{
  7691 	const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
  7692 	TBool testOK = EFalse;
  7693 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
  7694 
  7695 	if (err)
  7696 		{
  7697 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7698 		return EFail;
  7699 		}
  7700 	else if (!testOK)
  7701 		{
  7702 		INFO_PRINTF1(_L("Test failed"));
  7703 		return EFail; 
  7704 		}
  7705 	else
  7706 		return EPass; 
  7707 	}
  7708 
  7709 //------------------------------------------------------------------
  7710 
  7711 
  7712 /** @xxxx
  7713  * Constructor
  7714  */
  7715 CTest_MMF_ACOD_U_0183::CTest_MMF_ACOD_U_0183()
  7716 	{
  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");
  7721 	}
  7722 
  7723 /** @xxxx
  7724  * ALAW To PCM16 Test for memory scribbles
  7725  * @test Req. under test REQ172.11
  7726  */
  7727 TVerdict CTest_MMF_ACOD_U_0183::DoTestStepL()
  7728 	{
  7729 //	const TUid codecUid = {KMmfUidHwDeviceAlawToPCM16};
  7730 	TBool testOK = EFalse;
  7731 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
  7732 TInt err = KErrNone;
  7733 	if (err)
  7734 		{
  7735 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7736 		return EFail;
  7737 		}
  7738 	else if (!testOK)
  7739 		{
  7740 		INFO_PRINTF1(_L("Test failed"));
  7741 		return EFail; 
  7742 		}
  7743 	else
  7744 		return EPass; 
  7745 	}
  7746 
  7747 //------------------------------------------------------------------
  7748 
  7749 /** @xxxx
  7750  * Constructor
  7751  */
  7752 CTest_MMF_ACOD_U_0184::CTest_MMF_ACOD_U_0184()
  7753 	{
  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");
  7758 
  7759 	for (TUint i=0; i<5; i++)
  7760 		{
  7761 		iExpectedSrcBytesProcessed[i] = 0;
  7762 		iExpectedDstBytesAdded[i] = 0;
  7763 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  7764 		}
  7765 	}
  7766 
  7767 /** @xxxx
  7768  * PCM16 to ALAW Pass in zero sized source buffer
  7769  * @test Req. under test REQ172.6.4, REQ172.6.5
  7770  */
  7771 TVerdict CTest_MMF_ACOD_U_0184::DoTestStepL()
  7772 	{
  7773 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
  7774 	TBool testOK = EFalse;
  7775 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToAlawOptimumDst));
  7776 TInt err = KErrNone;
  7777 	if (err)
  7778 		{
  7779 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7780 		return EFail;
  7781 		}
  7782 	else if (!testOK)
  7783 		{
  7784 		INFO_PRINTF1(_L("Test failed"));
  7785 		return EFail; 
  7786 		}
  7787 	else
  7788 		return EPass; 
  7789 	}
  7790 
  7791 //------------------------------------------------------------------
  7792 
  7793 /** @xxxx
  7794  * Constructor
  7795  */
  7796 CTest_MMF_ACOD_U_0185::CTest_MMF_ACOD_U_0185()
  7797 	{
  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");
  7802 
  7803 	iExpectedLeaveErrorCode = KErrArgument;
  7804 	}
  7805 
  7806 /** @xxxx
  7807  * PCM16 to ALAW Pass in zero sized destination buffer
  7808  * @test Req. under test REQ172.6.4, REQ172.6.5
  7809  */
  7810 TVerdict CTest_MMF_ACOD_U_0185::DoTestStepL()
  7811 	{
  7812 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
  7813 	TBool testOK = EFalse;
  7814 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAlawOptimumSrc, 0));
  7815 TInt err = KErrNone;
  7816 	if (err)
  7817 		{
  7818 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7819 		return EFail;
  7820 		}
  7821 	else if (!testOK)
  7822 		{
  7823 		INFO_PRINTF1(_L("Test failed"));
  7824 		return EFail; 
  7825 		}
  7826 	else
  7827 		return EPass; 
  7828 	}
  7829 
  7830 //------------------------------------------------------------------
  7831 
  7832 /** @xxxx
  7833  * Constructor
  7834  */
  7835 CTest_MMF_ACOD_U_0186::CTest_MMF_ACOD_U_0186()
  7836 	{
  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");
  7841 	}
  7842 
  7843 /** @xxxx
  7844  * PCM16 to ALAW Test out of memory
  7845  * @test Req. under test REQ172.11
  7846  */
  7847 TVerdict CTest_MMF_ACOD_U_0186::DoTestStepL()
  7848 	{
  7849 	const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
  7850 	TBool testOK = EFalse;
  7851 
  7852 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
  7853 TInt err = KErrNone;
  7854 	if (err==KErrNone && testOK)
  7855 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
  7856 
  7857 	if (err)
  7858 		{
  7859 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7860 		return EFail;
  7861 		}
  7862 	else if (!testOK)
  7863 		{
  7864 		INFO_PRINTF1(_L("Test failed"));
  7865 		return EFail; 
  7866 		}
  7867 	else
  7868 		return EPass; 
  7869 	}
  7870 
  7871 //------------------------------------------------------------------
  7872 
  7873 
  7874 /** @xxxx
  7875  * Constructor
  7876  */
  7877 CTest_MMF_ACOD_U_0187::CTest_MMF_ACOD_U_0187()
  7878 	{
  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");
  7883 	}
  7884 
  7885 /** @xxxx
  7886  * PCM16 to ALAW Test for memory leaks
  7887  * @test Req. under test REQ172.11
  7888  */
  7889 TVerdict CTest_MMF_ACOD_U_0187::DoTestStepL()
  7890 	{
  7891 	const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
  7892 	TBool testOK = EFalse;
  7893 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
  7894 
  7895 	if (err)
  7896 		{
  7897 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7898 		return EFail;
  7899 		}
  7900 	else if (!testOK)
  7901 		{
  7902 		INFO_PRINTF1(_L("Test failed"));
  7903 		return EFail; 
  7904 		}
  7905 	else
  7906 		return EPass; 
  7907 	}
  7908 
  7909 //------------------------------------------------------------------
  7910 
  7911 
  7912 /** @xxxx
  7913  * Constructor
  7914  */
  7915 CTest_MMF_ACOD_U_0188::CTest_MMF_ACOD_U_0188()
  7916 	{
  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");
  7921 	}
  7922 
  7923 /** @xxxx
  7924  * PCM16 to ALAW Test for memory scribbles
  7925  * @test Req. under test REQ172.11
  7926  */
  7927 TVerdict CTest_MMF_ACOD_U_0188::DoTestStepL()
  7928 	{
  7929 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToALaw};
  7930 	TBool testOK = EFalse;
  7931 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
  7932 TInt err = KErrNone ;
  7933 	if (err)
  7934 		{
  7935 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7936 		return EFail;
  7937 		}
  7938 	else if (!testOK)
  7939 		{
  7940 		INFO_PRINTF1(_L("Test failed"));
  7941 		return EFail; 
  7942 		}
  7943 	else
  7944 		return EPass; 
  7945 	}
  7946 
  7947 //------------------------------------------------------------------
  7948 
  7949 /** @xxxx
  7950  * Constructor
  7951  */
  7952 CTest_MMF_ACOD_U_0189::CTest_MMF_ACOD_U_0189()
  7953 	{
  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");
  7958 
  7959 	for (TUint i=0; i<5; i++)
  7960 		{
  7961 		iExpectedSrcBytesProcessed[i] = 0;
  7962 		iExpectedDstBytesAdded[i] = 0;
  7963 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  7964 		}
  7965 	}
  7966 
  7967 /** @xxxx
  7968  * PCM8 To PCM16 Pass in zero sized source buffer
  7969  * @test Req. under test REQ172.6.4, REQ172.6.5
  7970  */
  7971 TVerdict CTest_MMF_ACOD_U_0189::DoTestStepL()
  7972 	{
  7973 //	const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
  7974 	TBool testOK = EFalse;
  7975 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM8ToPCM16OptimumDst));
  7976 TInt err = KErrNone;
  7977 	if (err)
  7978 		{
  7979 		INFO_PRINTF2(_L("Test left with status %d"), err);
  7980 		return EFail;
  7981 		}
  7982 	else if (!testOK)
  7983 		{
  7984 		INFO_PRINTF1(_L("Test failed"));
  7985 		return EFail; 
  7986 		}
  7987 	else
  7988 		return EPass; 
  7989 	}
  7990 
  7991 //------------------------------------------------------------------
  7992 
  7993 /** @xxxx
  7994  * Constructor
  7995  */
  7996 CTest_MMF_ACOD_U_0190::CTest_MMF_ACOD_U_0190()
  7997 	{
  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");
  8002 
  8003 	iExpectedLeaveErrorCode = KErrArgument;
  8004 	}
  8005 
  8006 /** @xxxx
  8007  * PCM8 To PCM16 Pass in zero sized destination buffer
  8008  * @test Req. under test REQ172.6.4, REQ172.6.5
  8009  */
  8010 TVerdict CTest_MMF_ACOD_U_0190::DoTestStepL()
  8011 	{
  8012 //	const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
  8013 	TBool testOK = EFalse;
  8014 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM8ToPCM16OptimumSrc, 0));
  8015 TInt err = KErrNone;
  8016 	if (err)
  8017 		{
  8018 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8019 		return EFail;
  8020 		}
  8021 	else if (!testOK)
  8022 		{
  8023 		INFO_PRINTF1(_L("Test failed"));
  8024 		return EFail; 
  8025 		}
  8026 	else
  8027 		return EPass; 
  8028 	}
  8029 
  8030 //------------------------------------------------------------------
  8031 
  8032 /** @xxxx
  8033  * Constructor
  8034  */
  8035 CTest_MMF_ACOD_U_0191::CTest_MMF_ACOD_U_0191()
  8036 	{
  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");
  8041 	}
  8042 
  8043 /** @xxxx
  8044  * PCM8 To PCM16 Test out of memory
  8045  * @test Req. under test REQ172.11
  8046  */
  8047 TVerdict CTest_MMF_ACOD_U_0191::DoTestStepL()
  8048 	{
  8049 	const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
  8050 	TBool testOK = EFalse;
  8051 
  8052 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
  8053 	TInt err = KErrNone ;
  8054 	if (err==KErrNone && testOK)
  8055 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
  8056 
  8057 	if (err)
  8058 		{
  8059 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8060 		return EFail;
  8061 		}
  8062 	else if (!testOK)
  8063 		{
  8064 		INFO_PRINTF1(_L("Test failed"));
  8065 		return EFail; 
  8066 		}
  8067 	else
  8068 		return EPass; 
  8069 	}
  8070 
  8071 //------------------------------------------------------------------
  8072 
  8073 
  8074 /** @xxxx
  8075  * Constructor
  8076  */
  8077 CTest_MMF_ACOD_U_0192::CTest_MMF_ACOD_U_0192()
  8078 	{
  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");
  8083 	}
  8084 
  8085 /** @xxxx
  8086  * PCM8 To PCM16 Test for memory leaks
  8087  * @test Req. under test REQ172.11
  8088  */
  8089 TVerdict CTest_MMF_ACOD_U_0192::DoTestStepL()
  8090 	{
  8091 	const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
  8092 	TBool testOK = EFalse;
  8093 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
  8094 
  8095 	if (err)
  8096 		{
  8097 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8098 		return EFail;
  8099 		}
  8100 	else if (!testOK)
  8101 		{
  8102 		INFO_PRINTF1(_L("Test failed"));
  8103 		return EFail; 
  8104 		}
  8105 	else
  8106 		return EPass; 
  8107 	}
  8108 
  8109 //------------------------------------------------------------------
  8110 
  8111 
  8112 /** @xxxx
  8113  * Constructor
  8114  */
  8115 CTest_MMF_ACOD_U_0193::CTest_MMF_ACOD_U_0193()
  8116 	{
  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");
  8121 	}
  8122 
  8123 /** @xxxx
  8124  * PCM8 To PCM16 Test for memory scribbles
  8125  * @test Req. under test REQ172.11
  8126  */
  8127 TVerdict CTest_MMF_ACOD_U_0193::DoTestStepL()
  8128 	{
  8129 //	const TUid codecUid = {KMmfUidHwDevicePCM8ToPCM16};
  8130 	TBool testOK = EFalse;
  8131 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
  8132 	TInt err = KErrNone;
  8133 
  8134 	if (err)
  8135 		{
  8136 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8137 		return EFail;
  8138 		}
  8139 	else if (!testOK)
  8140 		{
  8141 		INFO_PRINTF1(_L("Test failed"));
  8142 		return EFail; 
  8143 		}
  8144 	else
  8145 		return EPass; 
  8146 	}
  8147 
  8148 //------------------------------------------------------------------
  8149 
  8150 /** @xxxx
  8151  * Constructor
  8152  */
  8153 CTest_MMF_ACOD_U_0194::CTest_MMF_ACOD_U_0194()
  8154 	{
  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");
  8159 
  8160 	for (TUint i=0; i<5; i++)
  8161 		{
  8162 		iExpectedSrcBytesProcessed[i] = 0;
  8163 		iExpectedDstBytesAdded[i] = 0;
  8164 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  8165 		}
  8166 	}
  8167 
  8168 /** @xxxx
  8169  * PCM16 to PCM8 Pass in zero sized source buffer
  8170  * @test Req. under test REQ172.6.4, REQ172.6.5
  8171  */
  8172 TVerdict CTest_MMF_ACOD_U_0194::DoTestStepL()
  8173 	{
  8174 	//const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
  8175 	TBool testOK = EFalse;
  8176 	//TRAPD(err, testOK = TestProcessLLoopTInt err = KErrNone;FiveTimesL(codecUid, 0, KPCM16ToPCM8OptimumDst));
  8177 TInt err = KErrNone;
  8178 	if (err)
  8179 		{
  8180 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8181 		return EFail;
  8182 		}
  8183 	else if (!testOK)
  8184 		{
  8185 		INFO_PRINTF1(_L("Test failed"));
  8186 		return EFail; 
  8187 		}
  8188 	else
  8189 		return EPass; 
  8190 	}
  8191 
  8192 //------------------------------------------------------------------
  8193 
  8194 /** @xxxx
  8195  * Constructor
  8196  */
  8197 CTest_MMF_ACOD_U_0195::CTest_MMF_ACOD_U_0195()
  8198 	{
  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");
  8203 
  8204 	iExpectedLeaveErrorCode = KErrArgument;
  8205 	}
  8206 
  8207 /** @xxxx
  8208  * PCM16 to PCM8 Pass in zero sized destination buffer
  8209  * @test Req. under test REQ172.6.4, REQ172.6.5
  8210  */
  8211 TVerdict CTest_MMF_ACOD_U_0195::DoTestStepL()
  8212 	{
  8213 	//const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
  8214 	TBool testOK = EFalse;
  8215 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCM8OptimumSrc, 0));
  8216 TInt err = KErrNone;
  8217 	if (err)
  8218 		{
  8219 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8220 		return EFail;
  8221 		}
  8222 	else if (!testOK)
  8223 		{
  8224 		INFO_PRINTF1(_L("Test failed"));
  8225 		return EFail; 
  8226 		}
  8227 	else
  8228 		return EPass; 
  8229 	}
  8230 
  8231 //------------------------------------------------------------------
  8232 
  8233 /** @xxxx
  8234  * Constructor
  8235  */
  8236 CTest_MMF_ACOD_U_0196::CTest_MMF_ACOD_U_0196()
  8237 	{
  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");
  8242 	}
  8243 
  8244 /** @xxxx
  8245  * PCM16 to PCM8 Test out of memory
  8246  * @test Req. under test REQ172.11
  8247  */
  8248 TVerdict CTest_MMF_ACOD_U_0196::DoTestStepL()
  8249 	{
  8250 	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
  8251 	TBool testOK = EFalse;
  8252 
  8253 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
  8254 	TInt err = KErrNone;
  8255 
  8256 	if (err==KErrNone && testOK)
  8257 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
  8258 
  8259 	if (err)
  8260 		{
  8261 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8262 		return EFail;
  8263 		}
  8264 	else if (!testOK)
  8265 		{
  8266 		INFO_PRINTF1(_L("Test failed"));
  8267 		return EFail; 
  8268 		}
  8269 	else
  8270 		return EPass; 
  8271 	}
  8272 
  8273 //------------------------------------------------------------------
  8274 
  8275 
  8276 /** @xxxx
  8277  * Constructor
  8278  */
  8279 CTest_MMF_ACOD_U_0197::CTest_MMF_ACOD_U_0197()
  8280 	{
  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");
  8285 	}
  8286 
  8287 /** @xxxx
  8288  * PCM16 to PCM8 Test for memory leaks
  8289  * @test Req. under test REQ172.11
  8290  */
  8291 TVerdict CTest_MMF_ACOD_U_0197::DoTestStepL()
  8292 	{
  8293 	//const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
  8294 	TBool testOK = EFalse;
  8295 	//TRAPD(err, testOK = TestMemoryLeakL(codecUid));
  8296 	TInt err = KErrNone;
  8297 	if (err)
  8298 		{
  8299 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8300 		return EFail;
  8301 		}
  8302 	else if (!testOK)
  8303 		{
  8304 		INFO_PRINTF1(_L("Test failed"));
  8305 		return EFail; 
  8306 		}
  8307 	else
  8308 		return EPass; 
  8309 	}
  8310 
  8311 //------------------------------------------------------------------
  8312 
  8313 
  8314 /** @xxxx
  8315  * Constructor
  8316  */
  8317 CTest_MMF_ACOD_U_0198::CTest_MMF_ACOD_U_0198()
  8318 	{
  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");
  8323 	}
  8324 
  8325 /** @xxxx
  8326  * PCM16 to PCM8 Test for memory scribbles
  8327  * @test Req. under test REQ172.11
  8328  */
  8329 TVerdict CTest_MMF_ACOD_U_0198::DoTestStepL()
  8330 	{
  8331 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMS8};
  8332 	TBool testOK = EFalse;
  8333 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
  8334 	TInt err= KErrNone ;
  8335 
  8336 	if (err)
  8337 		{
  8338 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8339 		return EFail;
  8340 		}
  8341 	else if (!testOK)
  8342 		{
  8343 		INFO_PRINTF1(_L("Test failed"));
  8344 		return EFail; 
  8345 		}
  8346 	else
  8347 		return EPass; 
  8348 	}
  8349 
  8350 //------------------------------------------------------------------
  8351 
  8352 /** @xxxx
  8353  * Constructor
  8354  */
  8355 CTest_MMF_ACOD_U_0199::CTest_MMF_ACOD_U_0199()
  8356 	{
  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");
  8361 
  8362 	for (TUint i=0; i<5; i++)
  8363 		{
  8364 		iExpectedSrcBytesProcessed[i] = 0;
  8365 		iExpectedDstBytesAdded[i] = 0;
  8366 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  8367 		}
  8368 	}
  8369 
  8370 /** @xxxx
  8371  * Swap Endian Pass in zero sized source buffer
  8372  * @test Req. under test REQ172.6.4, REQ172.6.5
  8373  */
  8374 TVerdict CTest_MMF_ACOD_U_0199::DoTestStepL()
  8375 	{
  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;
  8381 	if (err)
  8382 		{
  8383 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8384 		return EFail;
  8385 		}
  8386 	else if (!testOK)
  8387 		{
  8388 		INFO_PRINTF1(_L("Test failed"));
  8389 		return EFail; 
  8390 		}
  8391 	else
  8392 		return EPass; 
  8393 	}
  8394 
  8395 //------------------------------------------------------------------
  8396 
  8397 /** @xxxx
  8398  * Constructor
  8399  */
  8400 CTest_MMF_ACOD_U_0200::CTest_MMF_ACOD_U_0200()
  8401 	{
  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");
  8406 
  8407 	iExpectedLeaveErrorCode = KErrArgument;
  8408 	}
  8409 
  8410 /** @xxxx
  8411  * Swap Endian Pass in zero sized destination buffer
  8412  * @test Req. under test REQ172.6.4, REQ172.6.5
  8413  */
  8414 TVerdict CTest_MMF_ACOD_U_0200::DoTestStepL()
  8415 	{
  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;
  8421 	if (err)
  8422 		{
  8423 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8424 		return EFail;
  8425 		}
  8426 	else if (!testOK)
  8427 		{
  8428 		INFO_PRINTF1(_L("Test failed"));
  8429 		return EFail; 
  8430 		}
  8431 	else
  8432 		return EPass; 
  8433 	}
  8434 
  8435 //------------------------------------------------------------------
  8436 
  8437 /** @xxxx
  8438  * Constructor
  8439  */
  8440 CTest_MMF_ACOD_U_0201::CTest_MMF_ACOD_U_0201()
  8441 	{
  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");
  8446 	}
  8447 
  8448 /** @xxxx
  8449  * Swap Endian Test out of memory
  8450  * @test Req. under test REQ172.11
  8451  */
  8452 TVerdict CTest_MMF_ACOD_U_0201::DoTestStepL()
  8453 	{
  8454 	//const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
  8455 	const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
  8456 	TBool testOK = EFalse;
  8457 
  8458 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
  8459 TInt err = KErrNone ;
  8460 	if (err==KErrNone && testOK)
  8461 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
  8462 
  8463 	if (err)
  8464 		{
  8465 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8466 		return EFail;
  8467 		}
  8468 	else if (!testOK)
  8469 		{
  8470 		INFO_PRINTF1(_L("Test failed"));
  8471 		return EFail; 
  8472 		}
  8473 	else
  8474 		return EPass; 
  8475 	}
  8476 
  8477 //------------------------------------------------------------------
  8478 
  8479 
  8480 /** @xxxx
  8481  * Constructor
  8482  */
  8483 CTest_MMF_ACOD_U_0202::CTest_MMF_ACOD_U_0202()
  8484 	{
  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");
  8489 	}
  8490 
  8491 /** @xxxx
  8492  * Swap Endian Test for memory leaks
  8493  * @test Req. under test REQ172.11
  8494  */
  8495 TVerdict CTest_MMF_ACOD_U_0202::DoTestStepL()
  8496 	{
  8497 	//const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
  8498 	//const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
  8499 	TBool testOK = EFalse;
  8500 	//TRAPD(err, testOK = TestMemoryLeakL(codecUid));
  8501 	TInt err = KErrNone;
  8502 	if (err)
  8503 		{
  8504 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8505 		return EFail;
  8506 		}
  8507 	else if (!testOK)
  8508 		{
  8509 		INFO_PRINTF1(_L("Test failed"));
  8510 		return EFail; 
  8511 		}
  8512 	else
  8513 		return EPass; 
  8514 	}
  8515 
  8516 //------------------------------------------------------------------
  8517 
  8518 
  8519 /** @xxxx
  8520  * Constructor
  8521  */
  8522 CTest_MMF_ACOD_U_0203::CTest_MMF_ACOD_U_0203()
  8523 	{
  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");
  8528 	}
  8529 
  8530 /** @xxxx
  8531  * Swap Endian Test for memory scribbles
  8532  * @test Req. under test REQ172.11
  8533  */
  8534 TVerdict CTest_MMF_ACOD_U_0203::DoTestStepL()
  8535 	{
  8536 	//const TUid codecUid = {KMMFUidCodecPCM16SwapEndian};
  8537 	//const TUid codecUid = {KMmfUidHwDevicePCM16toPCM16B};
  8538 	TBool testOK = EFalse;
  8539 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
  8540 TInt err = KErrNone ;
  8541 
  8542 	if (err)
  8543 		{
  8544 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8545 		return EFail;
  8546 		}
  8547 	else if (!testOK)
  8548 		{
  8549 		INFO_PRINTF1(_L("Test failed"));
  8550 		return EFail; 
  8551 		}
  8552 	else
  8553 		return EPass; 
  8554 	}
  8555 
  8556 //------------------------------------------------------------------
  8557 
  8558 /** @xxxx
  8559  * Constructor
  8560  */
  8561 CTest_MMF_ACOD_U_0204::CTest_MMF_ACOD_U_0204()
  8562 	{
  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");
  8567 
  8568 	for (TUint i=0; i<5; i++)
  8569 		{
  8570 		iExpectedSrcBytesProcessed[i] = 0;
  8571 		iExpectedDstBytesAdded[i] = 0;
  8572 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  8573 		}
  8574 	}
  8575 
  8576 /** @xxxx
  8577  * PCM16 to PCMU16BE Pass in zero sized source buffer
  8578  * @test Req. under test REQ172.6.4, REQ172.6.5
  8579  */
  8580 TVerdict CTest_MMF_ACOD_U_0204::DoTestStepL()
  8581 	{
  8582 	//const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
  8583 	TBool testOK = EFalse;
  8584 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToPCMU16BOptimumDst));
  8585 	TInt err = KErrNone;
  8586 	if (err)
  8587 		{
  8588 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8589 		return EFail;
  8590 		}
  8591 	else if (!testOK)
  8592 		{
  8593 		INFO_PRINTF1(_L("Test failed"));
  8594 		return EFail; 
  8595 		}
  8596 	else
  8597 		return EPass; 
  8598 	}
  8599 
  8600 //------------------------------------------------------------------
  8601 
  8602 /** @xxxx
  8603  * Constructor
  8604  */
  8605 CTest_MMF_ACOD_U_0205::CTest_MMF_ACOD_U_0205()
  8606 	{
  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");
  8611 
  8612 	iExpectedLeaveErrorCode = KErrArgument;
  8613 	}
  8614 
  8615 /** @xxxx
  8616  * PCM16 to PCMU16BE Pass in zero sized destination buffer
  8617  * @test Req. under test REQ172.6.4, REQ172.6.5
  8618  */
  8619 TVerdict CTest_MMF_ACOD_U_0205::DoTestStepL()
  8620 	{
  8621 	//const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
  8622 	TBool testOK = EFalse;
  8623 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16BOptimumSrc, 0));
  8624     TInt err = KErrNone;
  8625 	if (err)
  8626 		{
  8627 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8628 		return EFail;
  8629 		}
  8630 	else if (!testOK)
  8631 		{
  8632 		INFO_PRINTF1(_L("Test failed"));
  8633 		return EFail; 
  8634 		}
  8635 	else
  8636 		return EPass; 
  8637 	}
  8638 
  8639 //------------------------------------------------------------------
  8640 
  8641 /** @xxxx
  8642  * Constructor
  8643  */
  8644 CTest_MMF_ACOD_U_0206::CTest_MMF_ACOD_U_0206()
  8645 	{
  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");
  8650 	}
  8651 
  8652 /** @xxxx
  8653  * PCM16 to PCMU16BE Test out of memory
  8654  * @test Req. under test REQ172.11
  8655  */
  8656 TVerdict CTest_MMF_ACOD_U_0206::DoTestStepL()
  8657 	{
  8658 	const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
  8659 	TBool testOK = EFalse;
  8660 
  8661 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
  8662 TInt err = KErrNone ;
  8663 	if (err==KErrNone && testOK)
  8664 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
  8665 
  8666 	if (err)
  8667 		{
  8668 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8669 		return EFail;
  8670 		}
  8671 	else if (!testOK)
  8672 		{
  8673 		INFO_PRINTF1(_L("Test failed"));
  8674 		return EFail; 
  8675 		}
  8676 	else
  8677 		return EPass; 
  8678 	}
  8679 
  8680 //------------------------------------------------------------------
  8681 
  8682 
  8683 /** @xxxx
  8684  * Constructor
  8685  */
  8686 CTest_MMF_ACOD_U_0207::CTest_MMF_ACOD_U_0207()
  8687 	{
  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");
  8692 	}
  8693 
  8694 /** @xxxx
  8695  * PCM16 to PCMU16BE Test for memory leaks
  8696  * @test Req. under test REQ172.11
  8697  */
  8698 TVerdict CTest_MMF_ACOD_U_0207::DoTestStepL()
  8699 	{
  8700 	const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
  8701 	TBool testOK = EFalse;
  8702 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
  8703 
  8704 	if (err)
  8705 		{
  8706 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8707 		return EFail;
  8708 		}
  8709 	else if (!testOK)
  8710 		{
  8711 		INFO_PRINTF1(_L("Test failed"));
  8712 		return EFail; 
  8713 		}
  8714 	else
  8715 		return EPass; 
  8716 	}
  8717 
  8718 //------------------------------------------------------------------
  8719 
  8720 
  8721 /** @xxxx
  8722  * Constructor
  8723  */
  8724 CTest_MMF_ACOD_U_0208::CTest_MMF_ACOD_U_0208()
  8725 	{
  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");
  8730 	}
  8731 
  8732 /** @xxxx
  8733  * PCM16 to PCMU16BE Test for memory scribbles
  8734  * @test Req. under test REQ172.11
  8735  */
  8736 TVerdict CTest_MMF_ACOD_U_0208::DoTestStepL()
  8737 	{
  8738 //	const TUid codecUid = {KMMFUidHwDevicePCM16toPCMU16B};
  8739 	TBool testOK = EFalse;
  8740 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
  8741 TInt err = KErrNone ;
  8742 
  8743 	if (err)
  8744 		{
  8745 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8746 		return EFail;
  8747 		}
  8748 	else if (!testOK)
  8749 		{
  8750 		INFO_PRINTF1(_L("Test failed"));
  8751 		return EFail; 
  8752 		}
  8753 	else
  8754 		return EPass; 
  8755 	}
  8756 
  8757 //------------------------------------------------------------------
  8758 
  8759 /** @xxxx
  8760  * Constructor
  8761  */
  8762 CTest_MMF_ACOD_U_0209::CTest_MMF_ACOD_U_0209()
  8763 	{
  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");
  8768 
  8769 	for (TUint i=0; i<5; i++)
  8770 		{
  8771 		iExpectedSrcBytesProcessed[i] = 0;
  8772 		iExpectedDstBytesAdded[i] = 0;
  8773 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  8774 		}
  8775 	}
  8776 
  8777 /** @xxxx
  8778  * PCM16 to PCMU16 Pass in zero sized source buffer
  8779  * @test Req. under test REQ172.6.4, REQ172.6.5
  8780  */
  8781 TVerdict CTest_MMF_ACOD_U_0209::DoTestStepL()
  8782 	{
  8783 	//const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
  8784 	TBool testOK = EFalse;
  8785 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToPCMU16OptimumDst));
  8786 TInt err = KErrNone;
  8787 	if (err)
  8788 		{
  8789 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8790 		return EFail;
  8791 		}
  8792 	else if (!testOK)
  8793 		{
  8794 		INFO_PRINTF1(_L("Test failed"));
  8795 		return EFail; 
  8796 		}
  8797 	else
  8798 		return EPass; 
  8799 	}
  8800 
  8801 //------------------------------------------------------------------
  8802 
  8803 /** @xxxx
  8804  * Constructor
  8805  */
  8806 CTest_MMF_ACOD_U_0210::CTest_MMF_ACOD_U_0210()
  8807 	{
  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");
  8812 
  8813 	iExpectedLeaveErrorCode = KErrArgument;
  8814 	}
  8815 
  8816 /** @xxxx
  8817  * PCM16 to PCMU16 Pass in zero sized destination buffer
  8818  * @test Req. under test REQ172.6.4, REQ172.6.5
  8819  */
  8820 TVerdict CTest_MMF_ACOD_U_0210::DoTestStepL()
  8821 	{
  8822 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
  8823 	TBool testOK = EFalse;
  8824 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU16OptimumSrc, 0));
  8825 TInt err = KErrNone;
  8826 	if (err)
  8827 		{
  8828 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8829 		return EFail;
  8830 		}
  8831 	else if (!testOK)
  8832 		{
  8833 		INFO_PRINTF1(_L("Test failed"));
  8834 		return EFail; 
  8835 		}
  8836 	else
  8837 		return EPass; 
  8838 	}
  8839 
  8840 //------------------------------------------------------------------
  8841 
  8842 /** @xxxx
  8843  * Constructor
  8844  */
  8845 CTest_MMF_ACOD_U_0211::CTest_MMF_ACOD_U_0211()
  8846 	{
  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");
  8851 	}
  8852 
  8853 /** @xxxx
  8854  * PCM16 to PCMU16 Test out of memory
  8855  * @test Req. under test REQ172.11
  8856  */
  8857 TVerdict CTest_MMF_ACOD_U_0211::DoTestStepL()
  8858 	{
  8859 	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
  8860 	TBool testOK = EFalse;
  8861 
  8862 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
  8863 TInt err = KErrNone ;
  8864 	if (err==KErrNone && testOK)
  8865 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
  8866 
  8867 	if (err)
  8868 		{
  8869 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8870 		return EFail;
  8871 		}
  8872 	else if (!testOK)
  8873 		{
  8874 		INFO_PRINTF1(_L("Test failed"));
  8875 		return EFail; 
  8876 		}
  8877 	else
  8878 		return EPass; 
  8879 	}
  8880 
  8881 //------------------------------------------------------------------
  8882 
  8883 
  8884 /** @xxxx
  8885  * Constructor
  8886  */
  8887 CTest_MMF_ACOD_U_0212::CTest_MMF_ACOD_U_0212()
  8888 	{
  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");
  8893 	}
  8894 
  8895 /** @xxxx
  8896  * PCM16 to PCMU16 Test for memory leaks
  8897  * @test Req. under test REQ172.11
  8898  */
  8899 TVerdict CTest_MMF_ACOD_U_0212::DoTestStepL()
  8900 	{
  8901 	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
  8902 	TBool testOK = EFalse;
  8903 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
  8904 
  8905 	if (err)
  8906 		{
  8907 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8908 		return EFail;
  8909 		}
  8910 	else if (!testOK)
  8911 		{
  8912 		INFO_PRINTF1(_L("Test failed"));
  8913 		return EFail; 
  8914 		}
  8915 	else
  8916 		return EPass; 
  8917 	}
  8918 
  8919 //------------------------------------------------------------------
  8920 
  8921 
  8922 /** @xxxx
  8923  * Constructor
  8924  */
  8925 CTest_MMF_ACOD_U_0213::CTest_MMF_ACOD_U_0213()
  8926 	{
  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");
  8931 	}
  8932 
  8933 /** @xxxx
  8934  * PCM16 to PCMU16 Test for memory scribbles
  8935  * @test Req. under test REQ172.11
  8936  */
  8937 TVerdict CTest_MMF_ACOD_U_0213::DoTestStepL()
  8938 	{
  8939 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU16};
  8940 	TBool testOK = EFalse;
  8941 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
  8942 	TInt err = KErrNone;
  8943 
  8944 	if (err)
  8945 		{
  8946 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8947 		return EFail;
  8948 		}
  8949 	else if (!testOK)
  8950 		{
  8951 		INFO_PRINTF1(_L("Test failed"));
  8952 		return EFail; 
  8953 		}
  8954 	else
  8955 		return EPass; 
  8956 	}
  8957 
  8958 //------------------------------------------------------------------
  8959 /** @xxxx
  8960  * Constructor
  8961  */
  8962 CTest_MMF_ACOD_U_0214::CTest_MMF_ACOD_U_0214()
  8963 	{
  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");
  8968 
  8969 	for (TUint i=0; i<5; i++)
  8970 		{
  8971 		iExpectedSrcBytesProcessed[i] = 0;
  8972 		iExpectedDstBytesAdded[i] = 0;
  8973 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  8974 		}
  8975 	}
  8976 
  8977 /** @xxxx
  8978  * PCM16 to PCMU8 Pass in zero sized source buffer
  8979  * @test Req. under test REQ172.6.4, REQ172.6.5
  8980  */
  8981 TVerdict CTest_MMF_ACOD_U_0214::DoTestStepL()
  8982 	{
  8983 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
  8984 	TBool testOK = EFalse;
  8985 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToPCMU8OptimumDst));
  8986 TInt err = KErrNone;
  8987 	if (err)
  8988 		{
  8989 		INFO_PRINTF2(_L("Test left with status %d"), err);
  8990 		return EFail;
  8991 		}
  8992 	else if (!testOK)
  8993 		{
  8994 		INFO_PRINTF1(_L("Test failed"));
  8995 		return EFail; 
  8996 		}
  8997 	else
  8998 		return EPass; 
  8999 	}
  9000 
  9001 //------------------------------------------------------------------
  9002 
  9003 /** @xxxx
  9004  * Constructor
  9005  */
  9006 CTest_MMF_ACOD_U_0215::CTest_MMF_ACOD_U_0215()
  9007 	{
  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");
  9012 
  9013 	iExpectedLeaveErrorCode = KErrArgument;
  9014 	}
  9015 
  9016 /** @xxxx
  9017  * PCM16 to PCMU8 Pass in zero sized destination buffer
  9018  * @test Req. under test REQ172.6.4, REQ172.6.5
  9019  */
  9020 TVerdict CTest_MMF_ACOD_U_0215::DoTestStepL()
  9021 	{
  9022 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
  9023 	TBool testOK = EFalse;
  9024 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToPCMU8OptimumSrc, 0));
  9025 TInt err = KErrNone;
  9026 	if (err)
  9027 		{
  9028 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9029 		return EFail;
  9030 		}
  9031 	else if (!testOK)
  9032 		{
  9033 		INFO_PRINTF1(_L("Test failed"));
  9034 		return EFail; 
  9035 		}
  9036 	else
  9037 		return EPass; 
  9038 	}
  9039 
  9040 //------------------------------------------------------------------
  9041 
  9042 /** @xxxx
  9043  * Constructor
  9044  */
  9045 CTest_MMF_ACOD_U_0216::CTest_MMF_ACOD_U_0216()
  9046 	{
  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");
  9051 	}
  9052 
  9053 /** @xxxx
  9054  * PCM16 to PCMU8 Test out of memory
  9055  * @test Req. under test REQ172.11
  9056  */
  9057 TVerdict CTest_MMF_ACOD_U_0216::DoTestStepL()
  9058 	{
  9059 	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
  9060 	TBool testOK = EFalse;
  9061 
  9062 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
  9063 TInt err = KErrNone ;
  9064 	if (err==KErrNone && testOK)
  9065 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
  9066 
  9067 	if (err)
  9068 		{
  9069 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9070 		return EFail;
  9071 		}
  9072 	else if (!testOK)
  9073 		{
  9074 		INFO_PRINTF1(_L("Test failed"));
  9075 		return EFail; 
  9076 		}
  9077 	else
  9078 		return EPass; 
  9079 	}
  9080 
  9081 //------------------------------------------------------------------
  9082 
  9083 
  9084 /** @xxxx
  9085  * Constructor
  9086  */
  9087 CTest_MMF_ACOD_U_0217::CTest_MMF_ACOD_U_0217()
  9088 	{
  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");
  9093 	}
  9094 
  9095 /** @xxxx
  9096  * PCM16 to PCMU8 Test for memory leaks
  9097  * @test Req. under test REQ172.11
  9098  */
  9099 TVerdict CTest_MMF_ACOD_U_0217::DoTestStepL()
  9100 	{
  9101 	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
  9102 	TBool testOK = EFalse;
  9103 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
  9104 
  9105 	if (err)
  9106 		{
  9107 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9108 		return EFail;
  9109 		}
  9110 	else if (!testOK)
  9111 		{
  9112 		INFO_PRINTF1(_L("Test failed"));
  9113 		return EFail; 
  9114 		}
  9115 	else
  9116 		return EPass; 
  9117 	}
  9118 
  9119 //------------------------------------------------------------------
  9120 
  9121 
  9122 /** @xxxx
  9123  * Constructor
  9124  */
  9125 CTest_MMF_ACOD_U_0218::CTest_MMF_ACOD_U_0218()
  9126 	{
  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");
  9131 	}
  9132 
  9133 /** @xxxx
  9134  * PCM16 to PCMU8 Test for memory scribbles
  9135  * @test Req. under test REQ172.11
  9136  */
  9137 TVerdict CTest_MMF_ACOD_U_0218::DoTestStepL()
  9138 	{
  9139 //	const TUid codecUid = {KMmfUidHwDeviceS16ToPCMU8};
  9140 	TBool testOK = EFalse;
  9141 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
  9142 TInt err = KErrNone ;
  9143 
  9144 	if (err)
  9145 		{
  9146 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9147 		return EFail;
  9148 		}
  9149 	else if (!testOK)
  9150 		{
  9151 		INFO_PRINTF1(_L("Test failed"));
  9152 		return EFail; 
  9153 		}
  9154 	else
  9155 		return EPass; 
  9156 	}
  9157 
  9158 //------------------------------------------------------------------
  9159 
  9160 /** @xxxx
  9161  * Constructor
  9162  */
  9163 CTest_MMF_ACOD_U_0219::CTest_MMF_ACOD_U_0219()
  9164 	{
  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");
  9169 
  9170 	for (TUint i=0; i<5; i++)
  9171 		{
  9172 		iExpectedSrcBytesProcessed[i] = 0;
  9173 		iExpectedDstBytesAdded[i] = 0;
  9174 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  9175 		}
  9176 	}
  9177 
  9178 /** @xxxx
  9179  * PCMU16BE to PCM16 Pass in zero sized source buffer
  9180  * @test Req. under test REQ172.6.4, REQ172.6.5
  9181  */
  9182 TVerdict CTest_MMF_ACOD_U_0219::DoTestStepL()
  9183 	{
  9184 //	const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
  9185 	TBool testOK = EFalse;
  9186 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCMU16BToPCM16OptimumDst));
  9187 TInt err = KErrNone;
  9188 	if (err)
  9189 		{
  9190 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9191 		return EFail;
  9192 		}
  9193 	else if (!testOK)
  9194 		{
  9195 		INFO_PRINTF1(_L("Test failed"));
  9196 		return EFail; 
  9197 		}
  9198 	else
  9199 		return EPass; 
  9200 	}
  9201 
  9202 //------------------------------------------------------------------
  9203 
  9204 /** @xxxx
  9205  * Constructor
  9206  */
  9207 CTest_MMF_ACOD_U_0220::CTest_MMF_ACOD_U_0220()
  9208 	{
  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");
  9213 
  9214 	iExpectedLeaveErrorCode = KErrArgument;
  9215 	}
  9216 
  9217 /** @xxxx
  9218  * PCMU16BE to PCM16 Pass in zero sized destination buffer
  9219  * @test Req. under test REQ172.6.4, REQ172.6.5
  9220  */
  9221 TVerdict CTest_MMF_ACOD_U_0220::DoTestStepL()
  9222 	{
  9223 //	const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
  9224 	TBool testOK = EFalse;
  9225 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16BToPCM16OptimumSrc, 0));
  9226 TInt err = KErrNone;
  9227 	if (err)
  9228 		{
  9229 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9230 		return EFail;
  9231 		}
  9232 	else if (!testOK)
  9233 		{
  9234 		INFO_PRINTF1(_L("Test failed"));
  9235 		return EFail; 
  9236 		}
  9237 	else
  9238 		return EPass; 
  9239 	}
  9240 
  9241 //------------------------------------------------------------------
  9242 
  9243 /** @xxxx
  9244  * Constructor
  9245  */
  9246 CTest_MMF_ACOD_U_0221::CTest_MMF_ACOD_U_0221()
  9247 	{
  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");
  9252 	}
  9253 
  9254 /** @xxxx
  9255  * PCMU16BE to PCM16 Test out of memory
  9256  * @test Req. under test REQ172.11
  9257  */
  9258 TVerdict CTest_MMF_ACOD_U_0221::DoTestStepL()
  9259 	{
  9260 //	const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
  9261 	TBool testOK = EFalse;
  9262 
  9263 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
  9264 TInt err = KErrNone;
  9265 
  9266 //	if (err==KErrNone && testOK)
  9267 //		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
  9268 
  9269 	if (err)
  9270 		{
  9271 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9272 		return EFail;
  9273 		}
  9274 	else if (!testOK)
  9275 		{
  9276 		INFO_PRINTF1(_L("Test failed"));
  9277 		return EFail; 
  9278 		}
  9279 	else
  9280 		return EPass; 
  9281 	}
  9282 
  9283 //------------------------------------------------------------------
  9284 
  9285 
  9286 /** @xxxx
  9287  * Constructor
  9288  */
  9289 CTest_MMF_ACOD_U_0222::CTest_MMF_ACOD_U_0222()
  9290 	{
  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");
  9295 	}
  9296 
  9297 /** @xxxx
  9298  * PCMU16BE to PCM16 Test for memory leaks
  9299  * @test Req. under test REQ172.11
  9300  */
  9301 TVerdict CTest_MMF_ACOD_U_0222::DoTestStepL()
  9302 	{
  9303 	const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
  9304 	TBool testOK = EFalse;
  9305 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
  9306 
  9307 	if (err)
  9308 		{
  9309 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9310 		return EFail;
  9311 		}
  9312 	else if (!testOK)
  9313 		{
  9314 		INFO_PRINTF1(_L("Test failed"));
  9315 		return EFail; 
  9316 		}
  9317 	else
  9318 		return EPass; 
  9319 	}
  9320 
  9321 //------------------------------------------------------------------
  9322 
  9323 
  9324 /** @xxxx
  9325  * Constructor
  9326  */
  9327 CTest_MMF_ACOD_U_0223::CTest_MMF_ACOD_U_0223()
  9328 	{
  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");
  9333 	}
  9334 
  9335 /** @xxxx
  9336  * PCMU16BE to PCM16 Test for memory scribbles
  9337  * @test Req. under test REQ172.11
  9338  */
  9339 TVerdict CTest_MMF_ACOD_U_0223::DoTestStepL()
  9340 	{
  9341 //	const TUid codecUid = {KMmfUidHwDeviceU16BEToPCMS16};
  9342 	TBool testOK = EFalse;
  9343 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
  9344 TInt err = KErrNone ;
  9345 	if (err)
  9346 		{
  9347 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9348 		return EFail;
  9349 		}
  9350 	else if (!testOK)
  9351 		{
  9352 		INFO_PRINTF1(_L("Test failed"));
  9353 		return EFail; 
  9354 		}
  9355 	else
  9356 		return EPass; 
  9357 	}
  9358 
  9359 //------------------------------------------------------------------
  9360 
  9361 /** @xxxx
  9362  * Constructor
  9363  */
  9364 CTest_MMF_ACOD_U_0224::CTest_MMF_ACOD_U_0224()
  9365 	{
  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");
  9370 
  9371 	for (TUint i=0; i<5; i++)
  9372 		{
  9373 		iExpectedSrcBytesProcessed[i] = 0;
  9374 		iExpectedDstBytesAdded[i] = 0;
  9375 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  9376 		}
  9377 	}
  9378 
  9379 /** @xxxx
  9380  * PCMU16 to PCM16 Pass in zero sized source buffer
  9381  * @test Req. under test REQ172.6.4, REQ172.6.5
  9382  */
  9383 TVerdict CTest_MMF_ACOD_U_0224::DoTestStepL()
  9384 	{
  9385 //	const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
  9386 	TBool testOK = EFalse;
  9387 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCMU16ToPCM16OptimumDst));
  9388 TInt err = KErrNone;
  9389 	if (err)
  9390 		{
  9391 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9392 		return EFail;
  9393 		}
  9394 	else if (!testOK)
  9395 		{
  9396 		INFO_PRINTF1(_L("Test failed"));
  9397 		return EFail; 
  9398 		}
  9399 	else
  9400 		return EPass; 
  9401 	}
  9402 
  9403 //------------------------------------------------------------------
  9404 
  9405 /** @xxxx
  9406  * Constructor
  9407  */
  9408 CTest_MMF_ACOD_U_0225::CTest_MMF_ACOD_U_0225()
  9409 	{
  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");
  9414 
  9415 	iExpectedLeaveErrorCode = KErrArgument;
  9416 	}
  9417 
  9418 /** @xxxx
  9419  * PCMU16 to PCM16 Pass in zero sized destination buffer
  9420  * @test Req. under test REQ172.6.4, REQ172.6.5
  9421  */
  9422 TVerdict CTest_MMF_ACOD_U_0225::DoTestStepL()
  9423 	{
  9424 //	const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
  9425 	TBool testOK = EFalse;
  9426 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU16ToPCM16OptimumSrc, 0));
  9427 TInt err = KErrNone;
  9428 	if (err)
  9429 		{
  9430 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9431 		return EFail;
  9432 		}
  9433 	else if (!testOK)
  9434 		{
  9435 		INFO_PRINTF1(_L("Test failed"));
  9436 		return EFail; 
  9437 		}
  9438 	else
  9439 		return EPass; 
  9440 	}
  9441 
  9442 //------------------------------------------------------------------
  9443 
  9444 /** @xxxx
  9445  * Constructor
  9446  */
  9447 CTest_MMF_ACOD_U_0226::CTest_MMF_ACOD_U_0226()
  9448 	{
  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");
  9453 	}
  9454 
  9455 /** @xxxx
  9456  * PCMU16 to PCM16 Test out of memory
  9457  * @test Req. under test REQ172.11
  9458  */
  9459 TVerdict CTest_MMF_ACOD_U_0226::DoTestStepL()
  9460 	{
  9461 	const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
  9462 	TBool testOK = EFalse; 
  9463 
  9464 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
  9465 //	if (err==KErrNone && testOK)
  9466 TInt err = KErrNone ;
  9467 	TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
  9468 	
  9469 	
  9470 
  9471 	if (err)
  9472 		{
  9473 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9474 		return EFail;
  9475 		}
  9476 	else if (!testOK)
  9477 		{
  9478 		INFO_PRINTF1(_L("Test failed"));
  9479 		return EFail; 
  9480 		}
  9481 	else
  9482 		return EPass; 
  9483 	}
  9484 
  9485 //------------------------------------------------------------------
  9486 
  9487 /** @xxxx
  9488  * Constructor
  9489  */
  9490 CTest_MMF_ACOD_U_0227::CTest_MMF_ACOD_U_0227()
  9491 	{
  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");
  9496 	}
  9497 
  9498 /** @xxxx
  9499  * PCMU16 to PCM16 Test for memory leaks
  9500  * @test Req. under test REQ172.11
  9501  */
  9502 TVerdict CTest_MMF_ACOD_U_0227::DoTestStepL()
  9503 	{
  9504 	const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
  9505 	TBool testOK = EFalse;
  9506 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
  9507 
  9508 	if (err)
  9509 		{
  9510 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9511 		return EFail;
  9512 		}
  9513 	else if (!testOK)
  9514 		{
  9515 		INFO_PRINTF1(_L("Test failed"));
  9516 		return EFail; 
  9517 		}
  9518 	else
  9519 		return EPass; 
  9520 	}
  9521 
  9522 //------------------------------------------------------------------
  9523 
  9524 /** @xxxx
  9525  * Constructor
  9526  */
  9527 CTest_MMF_ACOD_U_0228::CTest_MMF_ACOD_U_0228()
  9528 	{
  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");
  9533 	}
  9534 
  9535 /** @xxxx
  9536  * PCMU16 to PCM16 Test for memory scribbles
  9537  * @test Req. under test REQ172.11
  9538  */
  9539 TVerdict CTest_MMF_ACOD_U_0228::DoTestStepL()
  9540 	{
  9541 //	const TUid codecUid = {KMmfUidHwDeviceU16ToPCMS16};
  9542 	TBool testOK = EFalse;
  9543 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
  9544 TInt err = KErrNone;
  9545 	if (err)
  9546 		{
  9547 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9548 		return EFail;
  9549 		}
  9550 	else if (!testOK)
  9551 		{
  9552 		INFO_PRINTF1(_L("Test failed"));
  9553 		return EFail; 
  9554 		}
  9555 	else
  9556 		return EPass; 
  9557 	}
  9558 
  9559 //------------------------------------------------------------------
  9560 
  9561 /** @xxxx
  9562  * Constructor
  9563  */
  9564 CTest_MMF_ACOD_U_0229::CTest_MMF_ACOD_U_0229()
  9565 	{
  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");
  9570 
  9571 	for (TUint i=0; i<5; i++)
  9572 		{
  9573 		iExpectedSrcBytesProcessed[i] = 0;
  9574 		iExpectedDstBytesAdded[i] = 0;
  9575 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  9576 		}
  9577 	}
  9578 
  9579 /** @xxxx
  9580  * PCMU8 To PCM16 Pass in zero sized source buffer
  9581  * @test Req. under test REQ172.6.4, REQ172.6.5
  9582  */
  9583 TVerdict CTest_MMF_ACOD_U_0229::DoTestStepL()
  9584 	{
  9585 //	const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
  9586 	TBool testOK = EFalse;
  9587 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCMU8ToPCM16OptimumDst));
  9588 TInt err = KErrNone;
  9589 	if (err)
  9590 		{
  9591 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9592 		return EFail;
  9593 		}
  9594 	else if (!testOK)
  9595 		{
  9596 		INFO_PRINTF1(_L("Test failed"));
  9597 		return EFail; 
  9598 		}
  9599 	else
  9600 		return EPass; 
  9601 	}
  9602 
  9603 //------------------------------------------------------------------
  9604 
  9605 /** @xxxx
  9606  * Constructor
  9607  */
  9608 CTest_MMF_ACOD_U_0230::CTest_MMF_ACOD_U_0230()
  9609 	{
  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");
  9614 
  9615 	iExpectedLeaveErrorCode = KErrArgument;
  9616 	}
  9617 
  9618 /** @xxxx
  9619  * PCMU8 To PCM16 Pass in zero sized destination buffer
  9620  * @test Req. under test REQ172.6.4, REQ172.6.5
  9621  */
  9622 TVerdict CTest_MMF_ACOD_U_0230::DoTestStepL()
  9623 	{
  9624 //	const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
  9625 	TBool testOK = EFalse;
  9626 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCMU8ToPCM16OptimumSrc, 0));
  9627 TInt err = KErrNone;
  9628 	if (err)
  9629 		{
  9630 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9631 		return EFail;
  9632 		}
  9633 	else if (!testOK)
  9634 		{
  9635 		INFO_PRINTF1(_L("Test failed"));
  9636 		return EFail; 
  9637 		}
  9638 	else
  9639 		return EPass; 
  9640 	}
  9641 
  9642 //------------------------------------------------------------------
  9643 
  9644 /** @xxxx
  9645  * Constructor
  9646  */
  9647 CTest_MMF_ACOD_U_0231::CTest_MMF_ACOD_U_0231()
  9648 	{
  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");
  9653 	}
  9654 
  9655 /** @xxxx
  9656  * PCMU8 To PCM16 Test out of memory
  9657  * @test Req. under test REQ172.11
  9658  */
  9659 TVerdict CTest_MMF_ACOD_U_0231::DoTestStepL()
  9660 	{
  9661 	const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
  9662 	TBool testOK = EFalse;
  9663 
  9664 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
  9665 	TInt err = KErrNone ;
  9666 	if (err==KErrNone && testOK)
  9667 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
  9668 
  9669 	if (err)
  9670 		{
  9671 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9672 		return EFail;
  9673 		}
  9674 	else if (!testOK)
  9675 		{
  9676 		INFO_PRINTF1(_L("Test failed"));
  9677 		return EFail; 
  9678 		}
  9679 	else
  9680 		return EPass; 
  9681 	}
  9682 
  9683 //------------------------------------------------------------------
  9684 
  9685 
  9686 /** @xxxx
  9687  * Constructor
  9688  */
  9689 CTest_MMF_ACOD_U_0232::CTest_MMF_ACOD_U_0232()
  9690 	{
  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");
  9695 	}
  9696 
  9697 /** @xxxx
  9698  * PCMU8 To PCM16 Test for memory leaks
  9699  * @test Req. under test REQ172.11
  9700  */
  9701 TVerdict CTest_MMF_ACOD_U_0232::DoTestStepL()
  9702 	{
  9703 	const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
  9704 	TBool testOK = EFalse;
  9705 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
  9706 
  9707 	if (err)
  9708 		{
  9709 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9710 		return EFail;
  9711 		}
  9712 	else if (!testOK)
  9713 		{
  9714 		INFO_PRINTF1(_L("Test failed"));
  9715 		return EFail; 
  9716 		}
  9717 	else
  9718 		return EPass; 
  9719 	}
  9720 
  9721 //------------------------------------------------------------------
  9722 
  9723 
  9724 /** @xxxx
  9725  * Constructor
  9726  */
  9727 CTest_MMF_ACOD_U_0233::CTest_MMF_ACOD_U_0233()
  9728 	{
  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");
  9733 	}
  9734 
  9735 /** @xxxx
  9736  * PCMU8 To PCM16 Test for memory scribbles
  9737  * @test Req. under test REQ172.11
  9738  */
  9739 TVerdict CTest_MMF_ACOD_U_0233::DoTestStepL()
  9740 	{
  9741 //	const TUid codecUid = {KMmfUidHwDevicePCMU8ToPCM16};
  9742 	TBool testOK = EFalse;
  9743 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
  9744 TInt err = KErrNone ;
  9745 	if (err)
  9746 		{
  9747 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9748 		return EFail;
  9749 		}
  9750 	else if (!testOK)
  9751 		{
  9752 		INFO_PRINTF1(_L("Test failed"));
  9753 		return EFail; 
  9754 		}
  9755 	else
  9756 		return EPass; 
  9757 	}
  9758 
  9759 //------------------------------------------------------------------
  9760 
  9761 /** @xxxx
  9762  * Constructor
  9763  */
  9764 CTest_MMF_ACOD_U_0234::CTest_MMF_ACOD_U_0234()
  9765 	{
  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");
  9770 
  9771 	for (TUint i=0; i<5; i++)
  9772 		{
  9773 		iExpectedSrcBytesProcessed[i] = 0;
  9774 		iExpectedDstBytesAdded[i] = 0;
  9775 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  9776 		}
  9777 	}
  9778 
  9779 /** @xxxx
  9780  * MULAW To PCM16 Pass in zero sized source buffer
  9781  * @test Req. under test REQ172.6.4, REQ172.6.5
  9782  */
  9783 TVerdict CTest_MMF_ACOD_U_0234::DoTestStepL()
  9784 	{
  9785 //	const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
  9786 	TBool testOK = EFalse;
  9787 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KMulawToPCM16OptimumDst));
  9788 TInt err = KErrNone;
  9789 	if (err)
  9790 		{
  9791 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9792 		return EFail;
  9793 		}
  9794 	else if (!testOK)
  9795 		{
  9796 		INFO_PRINTF1(_L("Test failed"));
  9797 		return EFail; 
  9798 		}
  9799 	else
  9800 		return EPass; 
  9801 	}
  9802 
  9803 //------------------------------------------------------------------
  9804 
  9805 /** @xxxx
  9806  * Constructor
  9807  */
  9808 CTest_MMF_ACOD_U_0235::CTest_MMF_ACOD_U_0235()
  9809 	{
  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");
  9814 	
  9815 	iExpectedLeaveErrorCode = KErrArgument;
  9816 	}
  9817 
  9818 /** @xxxx
  9819  * MULAW To PCM16 Pass in zero sized destination buffer
  9820  * @test Req. under test REQ172.6.4, REQ172.6.5
  9821  */
  9822 TVerdict CTest_MMF_ACOD_U_0235::DoTestStepL()
  9823 	{
  9824 //	const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
  9825 	TBool testOK = EFalse;
  9826 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KMulawToPCM16OptimumSrc, 0));
  9827 TInt err = KErrNone;
  9828 	if (err)
  9829 		{
  9830 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9831 		return EFail;
  9832 		}
  9833 	else if (!testOK)
  9834 		{
  9835 		INFO_PRINTF1(_L("Test failed"));
  9836 		return EFail; 
  9837 		}
  9838 	else
  9839 		return EPass; 
  9840 	}
  9841 
  9842 //------------------------------------------------------------------
  9843 
  9844 /** @xxxx
  9845  * Constructor
  9846  */
  9847 CTest_MMF_ACOD_U_0236::CTest_MMF_ACOD_U_0236()
  9848 	{
  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");
  9853 	}
  9854 
  9855 /** @xxxx
  9856  * MULAW To PCM16 Test out of memory
  9857  * @test Req. under test REQ172.11
  9858  */
  9859 TVerdict CTest_MMF_ACOD_U_0236::DoTestStepL()
  9860 	{
  9861 //	const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
  9862 	TBool testOK = EFalse;
  9863 
  9864 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
  9865 	TInt err = KErrNone ;
  9866 	//if (err==KErrNone && testOK)
  9867 	//	TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
  9868 
  9869 	if (err)
  9870 		{
  9871 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9872 		return EFail;
  9873 		}
  9874 	else if (!testOK)
  9875 		{
  9876 		INFO_PRINTF1(_L("Test failed"));
  9877 		return EFail; 
  9878 		}
  9879 	else
  9880 		return EPass; 
  9881 	}
  9882 
  9883 //------------------------------------------------------------------
  9884 
  9885 
  9886 /** @xxxx
  9887  * Constructor
  9888  */
  9889 CTest_MMF_ACOD_U_0237::CTest_MMF_ACOD_U_0237()
  9890 	{
  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");
  9895 	}
  9896 
  9897 /** @xxxx
  9898  * MULAW To PCM16 Test for memory leaks
  9899  * @test Req. under test REQ172.11
  9900  */
  9901 TVerdict CTest_MMF_ACOD_U_0237::DoTestStepL()
  9902 	{
  9903 	const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
  9904 	TBool testOK = EFalse;
  9905 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
  9906 
  9907 	if (err)
  9908 		{
  9909 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9910 		return EFail;
  9911 		}
  9912 	else if (!testOK)
  9913 		{
  9914 		INFO_PRINTF1(_L("Test failed"));
  9915 		return EFail; 
  9916 		}
  9917 	else
  9918 		return EPass; 
  9919 	}
  9920 
  9921 //------------------------------------------------------------------
  9922 
  9923 
  9924 /** @xxxx
  9925  * Constructor
  9926  */
  9927 CTest_MMF_ACOD_U_0238::CTest_MMF_ACOD_U_0238()
  9928 	{
  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");
  9933 	}
  9934 
  9935 /** @xxxx
  9936  * MULAW To PCM16 Test for memory scribbles
  9937  * @test Req. under test REQ172.11
  9938  */
  9939 TVerdict CTest_MMF_ACOD_U_0238::DoTestStepL()
  9940 	{
  9941 //	const TUid codecUid = {KMmfUidHwDeviceMulawToPCM16};
  9942 	TBool testOK = EFalse;
  9943 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
  9944 TInt err = KErrNone;
  9945 
  9946 	if (err)
  9947 		{
  9948 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9949 		return EFail;
  9950 		}
  9951 	else if (!testOK)
  9952 		{
  9953 		INFO_PRINTF1(_L("Test failed"));
  9954 		return EFail; 
  9955 		}
  9956 	else
  9957 		return EPass; 
  9958 	}
  9959 
  9960 //------------------------------------------------------------------
  9961 
  9962 /** @xxxx
  9963  * Constructor
  9964  */
  9965 CTest_MMF_ACOD_U_0239::CTest_MMF_ACOD_U_0239()
  9966 	{
  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");
  9971 
  9972 	for (TUint i=0; i<5; i++)
  9973 		{
  9974 		iExpectedSrcBytesProcessed[i] = 0;
  9975 		iExpectedDstBytesAdded[i] = 0;
  9976 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
  9977 		}
  9978 	}
  9979 
  9980 /** @xxxx
  9981  * PCM16 to MULAW Pass in zero sized source buffer
  9982  * @test Req. under test REQ172.6.4, REQ172.6.5
  9983  */
  9984 TVerdict CTest_MMF_ACOD_U_0239::DoTestStepL()
  9985 	{
  9986 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
  9987 	TBool testOK = EFalse;
  9988 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToMulawOptimumDst));
  9989 TInt err = KErrNone;
  9990 	if (err)
  9991 		{
  9992 		INFO_PRINTF2(_L("Test left with status %d"), err);
  9993 		return EFail;
  9994 		}
  9995 	else if (!testOK)
  9996 		{
  9997 		INFO_PRINTF1(_L("Test failed"));
  9998 		return EFail; 
  9999 		}
 10000 	else
 10001 		return EPass; 
 10002 	}
 10003 
 10004 //------------------------------------------------------------------
 10005 
 10006 /** @xxxx
 10007  * Constructor
 10008  */
 10009 CTest_MMF_ACOD_U_0240::CTest_MMF_ACOD_U_0240()
 10010 	{
 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");
 10015 
 10016 	iExpectedLeaveErrorCode = KErrArgument;
 10017 	}
 10018 
 10019 /** @xxxx
 10020  * PCM16 to MULAW Pass in zero sized destination buffer
 10021  * @test Req. under test REQ172.6.4, REQ172.6.5
 10022  */
 10023 TVerdict CTest_MMF_ACOD_U_0240::DoTestStepL()
 10024 	{
 10025 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
 10026 	TBool testOK = EFalse;
 10027 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToMulawOptimumSrc, 0));
 10028 TInt err = KErrNone;
 10029 	if (err)
 10030 		{
 10031 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10032 		return EFail;
 10033 		}
 10034 	else if (!testOK)
 10035 		{
 10036 		INFO_PRINTF1(_L("Test failed"));
 10037 		return EFail; 
 10038 		}
 10039 	else
 10040 		return EPass; 
 10041 	}
 10042 
 10043 //------------------------------------------------------------------
 10044 
 10045 /** @xxxx
 10046  * Constructor
 10047  */
 10048 CTest_MMF_ACOD_U_0241::CTest_MMF_ACOD_U_0241()
 10049 	{
 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");
 10054 	}
 10055 
 10056 /** @xxxx
 10057  * PCM16 to MULAW Test out of memory
 10058  * @test Req. under test REQ172.11
 10059  */
 10060 TVerdict CTest_MMF_ACOD_U_0241::DoTestStepL()
 10061 	{
 10062 	const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
 10063 	TBool testOK = EFalse;
 10064 
 10065 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
 10066 	TInt err = KErrNone;
 10067 	if (err==KErrNone && testOK)
 10068 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
 10069 
 10070 	if (err)
 10071 		{
 10072 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10073 		return EFail;
 10074 		}
 10075 	else if (!testOK)
 10076 		{
 10077 		INFO_PRINTF1(_L("Test failed"));
 10078 		return EFail; 
 10079 		}
 10080 	else
 10081 		return EPass; 
 10082 	}
 10083 
 10084 //------------------------------------------------------------------
 10085 
 10086 
 10087 /** @xxxx
 10088  * Constructor
 10089  */
 10090 CTest_MMF_ACOD_U_0242::CTest_MMF_ACOD_U_0242()
 10091 	{
 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");
 10096 	}
 10097 
 10098 /** @xxxx
 10099  * PCM16 to MULAW Test for memory leaks
 10100  * @test Req. under test REQ172.11
 10101  */
 10102 TVerdict CTest_MMF_ACOD_U_0242::DoTestStepL()
 10103 	{
 10104 	const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
 10105 	TBool testOK = EFalse;
 10106 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
 10107 
 10108 	if (err)
 10109 		{
 10110 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10111 		return EFail;
 10112 		}
 10113 	else if (!testOK)
 10114 		{
 10115 		INFO_PRINTF1(_L("Test failed"));
 10116 		return EFail; 
 10117 		}
 10118 	else
 10119 		return EPass; 
 10120 	}
 10121 
 10122 //------------------------------------------------------------------
 10123 
 10124 
 10125 /** @xxxx
 10126  * Constructor
 10127  */
 10128 CTest_MMF_ACOD_U_0243::CTest_MMF_ACOD_U_0243()
 10129 	{
 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");
 10134 	}
 10135 
 10136 /** @xxxx
 10137  * PCM16 to MULAW Test for memory scribbles
 10138  * @test Req. under test REQ172.11
 10139  */
 10140 TVerdict CTest_MMF_ACOD_U_0243::DoTestStepL()
 10141 	{
 10142 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToMuLaw};
 10143 	TBool testOK = EFalse;
 10144 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
 10145 	TInt err = KErrNone;
 10146 	if (err)
 10147 		{
 10148 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10149 		return EFail;
 10150 		}
 10151 	else if (!testOK)
 10152 		{
 10153 		INFO_PRINTF1(_L("Test failed"));
 10154 		return EFail; 
 10155 		}
 10156 	else
 10157 		return EPass; 
 10158 	}
 10159 
 10160 //------------------------------------------------------------------
 10161 
 10162 /** @xxxx
 10163  * Constructor
 10164  */
 10165 CTest_MMF_ACOD_U_0244::CTest_MMF_ACOD_U_0244()
 10166 	{
 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");
 10171 
 10172 	for (TUint i=0; i<5; i++)
 10173 		{
 10174 		iExpectedSrcBytesProcessed[i] = 0;
 10175 		iExpectedDstBytesAdded[i] = 0;
 10176 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
 10177 		}
 10178 	}
 10179 
 10180 /** @xxxx
 10181  * IMAD To PCM16 Pass in zero sized source buffer
 10182  * @test Req. under test REQ172.6.4, REQ172.6.5
 10183  */
 10184 TVerdict CTest_MMF_ACOD_U_0244::DoTestStepL()
 10185 	{
 10186 //	const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
 10187 	TBool testOK = EFalse;
 10188 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KAdpcmToPCM16OptimumDst));
 10189 TInt err = KErrNone;
 10190 	if (err)
 10191 		{
 10192 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10193 		return EFail;
 10194 		}
 10195 	else if (!testOK)
 10196 		{
 10197 		INFO_PRINTF1(_L("Test failed"));
 10198 		return EFail; 
 10199 		}
 10200 	else
 10201 		return EPass; 
 10202 	}
 10203 
 10204 //------------------------------------------------------------------
 10205 
 10206 /** @xxxx
 10207  * Constructor
 10208  */
 10209 CTest_MMF_ACOD_U_0245::CTest_MMF_ACOD_U_0245()
 10210 	{
 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");
 10215 
 10216 	iExpectedLeaveErrorCode = KErrArgument;
 10217 	}
 10218 
 10219 /** @xxxx
 10220  * IMAD To PCM16 Pass in zero sized destination buffer
 10221  * @test Req. under test REQ172.6.4, REQ172.6.5
 10222  */
 10223 TVerdict CTest_MMF_ACOD_U_0245::DoTestStepL()
 10224 	{
 10225 //	const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
 10226 	TBool testOK = EFalse;
 10227 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KAdpcmToPCM16OptimumSrc, 0));
 10228 TInt err = KErrNone;
 10229 	if (err)
 10230 		{
 10231 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10232 		return EFail;
 10233 		}
 10234 	else if (!testOK)
 10235 		{
 10236 		INFO_PRINTF1(_L("Test failed"));
 10237 		return EFail; 
 10238 		}
 10239 	else
 10240 		return EPass; 
 10241 	}
 10242 
 10243 //------------------------------------------------------------------
 10244 
 10245 /** @xxxx
 10246  * Constructor
 10247  */
 10248 CTest_MMF_ACOD_U_0246::CTest_MMF_ACOD_U_0246()
 10249 	{
 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");
 10254 	}
 10255 
 10256 /** @xxxx
 10257  * IMAD To PCM16 Test out of memory
 10258  * @test Req. under test REQ172.11
 10259  */
 10260 TVerdict CTest_MMF_ACOD_U_0246::DoTestStepL()
 10261 	{
 10262 	const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
 10263 	TBool testOK = EFalse;
 10264 
 10265 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
 10266 	TInt err = KErrNone ;
 10267 	if (err==KErrNone && testOK)
 10268 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
 10269 
 10270 	if (err)
 10271 		{
 10272 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10273 		return EFail;
 10274 		}
 10275 	else if (!testOK)
 10276 		{
 10277 		INFO_PRINTF1(_L("Test failed"));
 10278 		return EFail; 
 10279 		}
 10280 	else
 10281 		return EPass; 
 10282 	}
 10283 
 10284 //------------------------------------------------------------------
 10285 
 10286 /** @xxxx
 10287  * Constructor
 10288  */
 10289 CTest_MMF_ACOD_U_0247::CTest_MMF_ACOD_U_0247()
 10290 	{
 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");
 10295 	}
 10296 
 10297 /** @xxxx
 10298  * IMAD To PCM16 Test for memory leaks
 10299  * @test Req. under test REQ172.11
 10300  */
 10301 TVerdict CTest_MMF_ACOD_U_0247::DoTestStepL()
 10302 	{
 10303 	const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
 10304 	TBool testOK = EFalse;
 10305 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
 10306 
 10307 	if (err)
 10308 		{
 10309 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10310 		return EFail;
 10311 		}
 10312 	else if (!testOK)
 10313 		{
 10314 		INFO_PRINTF1(_L("Test failed"));
 10315 		return EFail; 
 10316 		}
 10317 	else
 10318 		return EPass; 
 10319 	}
 10320 
 10321 //------------------------------------------------------------------
 10322 
 10323 /** @xxxx
 10324  * Constructor
 10325  */
 10326 CTest_MMF_ACOD_U_0248::CTest_MMF_ACOD_U_0248()
 10327 	{
 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");
 10332 	}
 10333 
 10334 /** @xxxx
 10335  * IMAD To PCM16 Test for memory scribbles
 10336  * @test Req. under test REQ172.11
 10337  */
 10338 TVerdict CTest_MMF_ACOD_U_0248::DoTestStepL()
 10339 	{
 10340 //	const TUid codecUid = {KMmfUidHwDeviceIMAADPCMToPCM16};
 10341 	TBool testOK = EFalse;
 10342 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
 10343     TInt err = KErrNone;
 10344 	if (err)
 10345 		{
 10346 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10347 		return EFail;
 10348 		}
 10349 	else if (!testOK)
 10350 		{
 10351 		INFO_PRINTF1(_L("Test failed"));
 10352 		return EFail; 
 10353 		}
 10354 	else
 10355 		return EPass; 
 10356 	}
 10357 
 10358 //------------------------------------------------------------------
 10359 
 10360 /** @xxxx
 10361  * Constructor
 10362  */
 10363 CTest_MMF_ACOD_U_0249::CTest_MMF_ACOD_U_0249()
 10364 	{
 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");
 10369 
 10370 	for (TUint i=0; i<5; i++)
 10371 		{
 10372 		iExpectedSrcBytesProcessed[i] = 0;
 10373 		iExpectedDstBytesAdded[i] = 0;
 10374 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
 10375 		}
 10376 	}
 10377 
 10378 /** @xxxx
 10379  * PCM16 to IMAD Pass in zero sized source buffer
 10380  * @test Req. under test REQ172.6.4, REQ172.6.5
 10381  */
 10382 TVerdict CTest_MMF_ACOD_U_0249::DoTestStepL()
 10383 	{
 10384 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
 10385 	TBool testOK = EFalse;
 10386 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToAdpcmOptimumDst));
 10387 TInt err = KErrNone;
 10388 	if (err)
 10389 		{
 10390 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10391 		return EFail;
 10392 		}
 10393 	else if (!testOK)
 10394 		{
 10395 		INFO_PRINTF1(_L("Test failed"));
 10396 		return EFail; 
 10397 		}
 10398 	else
 10399 		return EPass; 
 10400 	}
 10401 
 10402 //------------------------------------------------------------------
 10403 
 10404 /** @xxxx
 10405  * Constructor
 10406  */
 10407 CTest_MMF_ACOD_U_0250::CTest_MMF_ACOD_U_0250()
 10408 	{
 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");
 10413 
 10414 	iExpectedLeaveErrorCode = KErrArgument;
 10415 	}
 10416 
 10417 /** @xxxx
 10418  * PCM16 to IMAD Pass in zero sized destination buffer
 10419  * @test Req. under test REQ172.6.4, REQ172.6.5
 10420  */
 10421 TVerdict CTest_MMF_ACOD_U_0250::DoTestStepL()
 10422 	{
 10423 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
 10424 	TBool testOK = EFalse;
 10425 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToAdpcmOptimumSrc, 0));
 10426 TInt err = KErrNone;
 10427 	if (err)
 10428 		{
 10429 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10430 		return EFail;
 10431 		}
 10432 	else if (!testOK)
 10433 		{
 10434 		INFO_PRINTF1(_L("Test failed"));
 10435 		return EFail; 
 10436 		}
 10437 	else
 10438 		return EPass; 
 10439 	}
 10440 
 10441 //------------------------------------------------------------------
 10442 
 10443 /** @xxxx
 10444  * Constructor
 10445  */
 10446 CTest_MMF_ACOD_U_0251::CTest_MMF_ACOD_U_0251()
 10447 	{
 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");
 10452 	}
 10453 
 10454 /** @xxxx
 10455  * PCM16 to IMAD Test out of memory
 10456  * @test Req. under test REQ172.11
 10457  */
 10458 TVerdict CTest_MMF_ACOD_U_0251::DoTestStepL()
 10459 	{
 10460 	const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
 10461 	TBool testOK = EFalse;
 10462 
 10463 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
 10464 	TInt err = KErrNone;
 10465 	if (err==KErrNone && testOK)
 10466 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
 10467 
 10468 	if (err)
 10469 		{
 10470 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10471 		return EFail;
 10472 		}
 10473 	else if (!testOK)
 10474 		{
 10475 		INFO_PRINTF1(_L("Test failed"));
 10476 		return EFail; 
 10477 		}
 10478 	else
 10479 		return EPass; 
 10480 	}
 10481 
 10482 //------------------------------------------------------------------
 10483 
 10484 
 10485 /** @xxxx
 10486  * Constructor
 10487  */
 10488 CTest_MMF_ACOD_U_0252::CTest_MMF_ACOD_U_0252()
 10489 	{
 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");
 10494 	}
 10495 
 10496 /** @xxxx
 10497  * PCM16 to IMAD Test for memory leaks
 10498  * @test Req. under test REQ172.11
 10499  */
 10500 TVerdict CTest_MMF_ACOD_U_0252::DoTestStepL()
 10501 	{
 10502 	const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
 10503 	TBool testOK = EFalse;
 10504 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
 10505 
 10506 	if (err)
 10507 		{
 10508 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10509 		return EFail;
 10510 		}
 10511 	else if (!testOK)
 10512 		{
 10513 		INFO_PRINTF1(_L("Test failed"));
 10514 		return EFail; 
 10515 		}
 10516 	else
 10517 		return EPass; 
 10518 	}
 10519 
 10520 //------------------------------------------------------------------
 10521 
 10522 /** @xxxx
 10523  * Constructor
 10524  */
 10525 CTest_MMF_ACOD_U_0253::CTest_MMF_ACOD_U_0253()
 10526 	{
 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");
 10531 	}
 10532 
 10533 /** @xxxx
 10534  * PCM16 to IMAD Test for memory scribbles
 10535  * @test Req. under test REQ172.11
 10536  */
 10537 TVerdict CTest_MMF_ACOD_U_0253::DoTestStepL()
 10538 	{
 10539 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToIMAADPCM};
 10540 	TBool testOK = EFalse;
 10541 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
 10542 TInt err = KErrNone;
 10543 
 10544 	if (err)
 10545 		{
 10546 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10547 		return EFail;
 10548 		}
 10549 	else if (!testOK)
 10550 		{
 10551 		INFO_PRINTF1(_L("Test failed"));
 10552 		return EFail; 
 10553 		}
 10554 	else
 10555 		return EPass; 
 10556 	}
 10557 
 10558 //------------------------------------------------------------------
 10559 
 10560 /** @xxxx
 10561  * Constructor
 10562  */
 10563 CTest_MMF_ACOD_U_0254::CTest_MMF_ACOD_U_0254()
 10564 	{
 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");
 10569 
 10570 	for (TUint i=0; i<5; i++)
 10571 		{
 10572 		iExpectedSrcBytesProcessed[i] = 0;
 10573 		iExpectedDstBytesAdded[i] = 0;
 10574 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
 10575 		}
 10576 	}
 10577 
 10578 /** @xxxx
 10579  * IMAS To PCM16 Pass in zero sized source buffer
 10580  * @test Req. under test REQ172.6.4, REQ172.6.5
 10581  */
 10582 TVerdict CTest_MMF_ACOD_U_0254::DoTestStepL()
 10583 	{
 10584 //	const TUid codecUid = {0};
 10585 	TBool testOK = EFalse;
 10586 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KStereoAdpcmToPCM16OptimumDst));
 10587 TInt err = KErrNone;
 10588 	if (err)
 10589 		{
 10590 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10591 		return EFail;
 10592 		}
 10593 	else if (!testOK)
 10594 		{
 10595 		INFO_PRINTF1(_L("Test failed"));
 10596 		return EFail; 
 10597 		}
 10598 	else
 10599 		return EPass; 
 10600 	}
 10601 
 10602 //------------------------------------------------------------------
 10603 
 10604 /** @xxxx
 10605  * Constructor
 10606  */
 10607 CTest_MMF_ACOD_U_0255::CTest_MMF_ACOD_U_0255()
 10608 	{
 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");
 10613 
 10614 	iExpectedLeaveErrorCode = KErrArgument;
 10615 	}
 10616 
 10617 /** @xxxx
 10618  * IMAS To PCM16 Pass in zero sized destination buffer
 10619  * @test Req. under test REQ172.6.4, REQ172.6.5
 10620  */
 10621 TVerdict CTest_MMF_ACOD_U_0255::DoTestStepL()
 10622 	{
 10623 	//const TUid codecUid = {0};
 10624 	TBool testOK = EFalse;
 10625 	//TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KStereoAdpcmToPCM16OptimumSrc, 0));
 10626 	TInt err = KErrNone;
 10627 	if (err)
 10628 		{
 10629 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10630 		return EFail;
 10631 		}
 10632 	else if (!testOK)
 10633 		{
 10634 		INFO_PRINTF1(_L("Test failed"));
 10635 		return EFail; 
 10636 		}
 10637 	else
 10638 		return EPass; 
 10639 	}
 10640 
 10641 //------------------------------------------------------------------
 10642 
 10643 /** @xxxx
 10644  * Constructor
 10645  */
 10646 CTest_MMF_ACOD_U_0256::CTest_MMF_ACOD_U_0256()
 10647 	{
 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");
 10652 	}
 10653 
 10654 /** @xxxx
 10655  * IMAS To PCM16 Test out of memory
 10656  * @test Req. under test REQ172.11
 10657  */
 10658 TVerdict CTest_MMF_ACOD_U_0256::DoTestStepL()
 10659 	{
 10660 	const TUid codecUid = {0};
 10661 	TBool testOK = EFalse;
 10662 
 10663 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
 10664 	TInt err = KErrNone;
 10665 	if (err==KErrNone && testOK)
 10666 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
 10667 
 10668 	if (err)
 10669 		{
 10670 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10671 		return EFail;
 10672 		}
 10673 	else if (!testOK)
 10674 		{
 10675 		INFO_PRINTF1(_L("Test failed"));
 10676 		return EFail; 
 10677 		}
 10678 	else
 10679 		return EPass; 
 10680 	}
 10681 
 10682 //------------------------------------------------------------------
 10683 
 10684 /** @xxxx
 10685  * Constructor
 10686  */
 10687 CTest_MMF_ACOD_U_0257::CTest_MMF_ACOD_U_0257()
 10688 	{
 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");
 10693 	}
 10694 
 10695 /** @xxxx
 10696  * IMAS To PCM16 Test for memory leaks
 10697  * @test Req. under test REQ172.11
 10698  */
 10699 TVerdict CTest_MMF_ACOD_U_0257::DoTestStepL()
 10700 	{
 10701 	const TUid codecUid = {0};
 10702 	TBool testOK = EFalse;
 10703 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
 10704 
 10705 	if (err)
 10706 		{
 10707 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10708 		return EFail;
 10709 		}
 10710 	else if (!testOK)
 10711 		{
 10712 		INFO_PRINTF1(_L("Test failed"));
 10713 		return EFail; 
 10714 		}
 10715 	else
 10716 		return EPass; 
 10717 	}
 10718 
 10719 //------------------------------------------------------------------
 10720 
 10721 /** @xxxx
 10722  * Constructor
 10723  */
 10724 CTest_MMF_ACOD_U_0258::CTest_MMF_ACOD_U_0258()
 10725 	{
 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");
 10730 	}
 10731 
 10732 /** @xxxx
 10733  * IMAS To PCM16 Test for memory scribbles
 10734  * @test Req. under test REQ172.11
 10735  */
 10736 TVerdict CTest_MMF_ACOD_U_0258::DoTestStepL()
 10737 	{
 10738 //	const TUid codecUid = {0};
 10739 	TBool testOK = EFalse;
 10740 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
 10741     TInt err = KErrNone;
 10742 	if (err)
 10743 		{
 10744 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10745 		return EFail;
 10746 		}
 10747 	else if (!testOK)
 10748 		{
 10749 		INFO_PRINTF1(_L("Test failed"));
 10750 		return EFail; 
 10751 		}
 10752 	else
 10753 		return EPass; 
 10754 	}
 10755 
 10756 //------------------------------------------------------------------
 10757 
 10758 /** @xxxx
 10759  * Constructor
 10760  */
 10761 CTest_MMF_ACOD_U_0259::CTest_MMF_ACOD_U_0259()
 10762 	{
 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");
 10767 
 10768 	for (TUint i=0; i<5; i++)
 10769 		{
 10770 		iExpectedSrcBytesProcessed[i] = 0;
 10771 		iExpectedDstBytesAdded[i] = 0;
 10772 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
 10773 		}
 10774 	}
 10775 
 10776 /** @xxxx
 10777  * PCM16 to IMAS Pass in zero sized source buffer
 10778  * @test Req. under test REQ172.6.4, REQ172.6.5
 10779  */
 10780 TVerdict CTest_MMF_ACOD_U_0259::DoTestStepL()
 10781 	{
 10782 //	const TUid codecUid = {0};
 10783 	TBool testOK = EFalse;
 10784 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToStereoAdpcmOptimumDst));
 10785 TInt err = KErrNone;
 10786 	if (err)
 10787 		{
 10788 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10789 		return EFail;
 10790 		}
 10791 	else if (!testOK)
 10792 		{
 10793 		INFO_PRINTF1(_L("Test failed"));
 10794 		return EFail; 
 10795 		}
 10796 	else
 10797 		return EPass; 
 10798 	}
 10799 
 10800 //------------------------------------------------------------------
 10801 
 10802 /** @xxxx
 10803  * Constructor
 10804  */
 10805 CTest_MMF_ACOD_U_0260::CTest_MMF_ACOD_U_0260()
 10806 	{
 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");
 10811 
 10812 	iExpectedLeaveErrorCode = KErrArgument;
 10813 	}
 10814 
 10815 /** @xxxx
 10816  * PCM16 to IMAS Pass in zero sized destination buffer
 10817  * @test Req. under test REQ172.6.4, REQ172.6.5
 10818  */
 10819 TVerdict CTest_MMF_ACOD_U_0260::DoTestStepL()
 10820 	{
 10821 //	const TUid codecUid = {0};
 10822 	TBool testOK = EFalse;
 10823 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToStereoAdpcmOptimumSrc, 0));
 10824 TInt err = KErrNone;
 10825 	if (err)
 10826 		{
 10827 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10828 		return EFail;
 10829 		}
 10830 	else if (!testOK)
 10831 		{
 10832 		INFO_PRINTF1(_L("Test failed"));
 10833 		return EFail; 
 10834 		}
 10835 	else
 10836 		return EPass; 
 10837 	}
 10838 
 10839 //------------------------------------------------------------------
 10840 
 10841 /** @xxxx
 10842  * Constructor
 10843  */
 10844 CTest_MMF_ACOD_U_0261::CTest_MMF_ACOD_U_0261()
 10845 	{
 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");
 10850 	}
 10851 
 10852 /** @xxxx
 10853  * PCM16 to IMAS Test out of memory
 10854  * @test Req. under test REQ172.11
 10855  */
 10856 TVerdict CTest_MMF_ACOD_U_0261::DoTestStepL()
 10857 	{
 10858 	const TUid codecUid = {0};
 10859 	TBool testOK = EFalse;
 10860 
 10861 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
 10862 TInt err = KErrNone;
 10863 	if (err==KErrNone && testOK)
 10864 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
 10865 
 10866 	if (err)
 10867 		{
 10868 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10869 		return EFail;
 10870 		}
 10871 	else if (!testOK)
 10872 		{
 10873 		INFO_PRINTF1(_L("Test failed"));
 10874 		return EFail; 
 10875 		}
 10876 	else
 10877 		return EPass; 
 10878 	}
 10879 
 10880 //------------------------------------------------------------------
 10881 
 10882 
 10883 /** @xxxx
 10884  * Constructor
 10885  */
 10886 CTest_MMF_ACOD_U_0262::CTest_MMF_ACOD_U_0262()
 10887 	{
 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");
 10892 	}
 10893 
 10894 /** @xxxx
 10895  * PCM16 to IMAS Test for memory leaks
 10896  * @test Req. under test REQ172.11
 10897  */
 10898 TVerdict CTest_MMF_ACOD_U_0262::DoTestStepL()
 10899 	{
 10900 	const TUid codecUid = {0};
 10901 	TBool testOK = EFalse;
 10902 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
 10903 
 10904 	if (err)
 10905 		{
 10906 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10907 		return EFail;
 10908 		}
 10909 	else if (!testOK)
 10910 		{
 10911 		INFO_PRINTF1(_L("Test failed"));
 10912 		return EFail; 
 10913 		}
 10914 	else
 10915 		return EPass; 
 10916 	}
 10917 
 10918 //------------------------------------------------------------------
 10919 
 10920 /** @xxxx
 10921  * Constructor
 10922  */
 10923 CTest_MMF_ACOD_U_0263::CTest_MMF_ACOD_U_0263()
 10924 	{
 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");
 10929 	}
 10930 
 10931 /** @xxxx
 10932  * PCM16 to IMAS Test for memory scribbles
 10933  * @test Req. under test REQ172.11
 10934  */
 10935 TVerdict CTest_MMF_ACOD_U_0263::DoTestStepL()
 10936 	{
 10937 //	const TUid codecUid = {0};
 10938 	TBool testOK = EFalse;
 10939 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
 10940     TInt err = KErrNone;
 10941 	if (err)
 10942 		{
 10943 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10944 		return EFail;
 10945 		}
 10946 	else if (!testOK)
 10947 		{
 10948 		INFO_PRINTF1(_L("Test failed"));
 10949 		return EFail; 
 10950 		}
 10951 	else
 10952 		return EPass; 
 10953 	}
 10954 
 10955 //------------------------------------------------------------------
 10956 
 10957 /** @xxxx
 10958  * Constructor
 10959  */
 10960 CTest_MMF_ACOD_U_0264::CTest_MMF_ACOD_U_0264()
 10961 	{
 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");
 10966 
 10967 	for (TUint i=0; i<5; i++)
 10968 		{
 10969 		iExpectedSrcBytesProcessed[i] = 0;
 10970 		iExpectedDstBytesAdded[i] = 0;
 10971 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
 10972 		}
 10973 	}
 10974 
 10975 /** @xxxx
 10976  * GSM610 To PCM16 Pass in zero sized source buffer
 10977  * @test Req. under test REQ172.6.4, REQ172.6.5
 10978  */
 10979 TVerdict CTest_MMF_ACOD_U_0264::DoTestStepL()
 10980 	{
 10981 //	const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
 10982 	TBool testOK = EFalse;
 10983 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KGSM610ToPCM16OptimumDst));
 10984 TInt err = KErrNone;
 10985 	if (err)
 10986 		{
 10987 		INFO_PRINTF2(_L("Test left with status %d"), err);
 10988 		return EFail;
 10989 		}
 10990 	else if (!testOK)
 10991 		{
 10992 		INFO_PRINTF1(_L("Test failed"));
 10993 		return EFail; 
 10994 		}
 10995 	else
 10996 		return EPass; 
 10997 	}
 10998 
 10999 //------------------------------------------------------------------
 11000 
 11001 /** @xxxx
 11002  * Constructor
 11003  */
 11004 CTest_MMF_ACOD_U_0265::CTest_MMF_ACOD_U_0265()
 11005 	{
 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");
 11010 
 11011 	iExpectedLeaveErrorCode = KErrArgument;
 11012 	}
 11013 
 11014 /** @xxxx
 11015  * GSM610 To PCM16 Pass in zero sized destination buffer
 11016  * @test Req. under test REQ172.6.4, REQ172.6.5
 11017  */
 11018 TVerdict CTest_MMF_ACOD_U_0265::DoTestStepL()
 11019 	{
 11020 //	const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
 11021 	TBool testOK = EFalse;
 11022 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KGSM610ToPCM16OptimumSrc, 0));
 11023 TInt err = KErrNone;
 11024 	if (err)
 11025 		{
 11026 		INFO_PRINTF2(_L("Test left with status %d"), err);
 11027 		return EFail;
 11028 		}
 11029 	else if (!testOK)
 11030 		{
 11031 		INFO_PRINTF1(_L("Test failed"));
 11032 		return EFail; 
 11033 		}
 11034 	else
 11035 		return EPass; 
 11036 	}
 11037 
 11038 //------------------------------------------------------------------
 11039 
 11040 /** @xxxx
 11041  * Constructor
 11042  */
 11043 CTest_MMF_ACOD_U_0266::CTest_MMF_ACOD_U_0266()
 11044 	{
 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");
 11049 	}
 11050 
 11051 /** @xxxx
 11052  * GSM610 To PCM16 Test out of memory
 11053  * @test Req. under test REQ172.11
 11054  */
 11055 TVerdict CTest_MMF_ACOD_U_0266::DoTestStepL()
 11056 	{
 11057 	const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
 11058 	TBool testOK = EFalse;
 11059 
 11060 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
 11061 	    TInt err = KErrNone;
 11062 	if (err==KErrNone && testOK)
 11063 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
 11064 
 11065 	if (err)
 11066 		{
 11067 		INFO_PRINTF2(_L("Test left with status %d"), err);
 11068 		return EFail;
 11069 		}
 11070 	else if (!testOK)
 11071 		{
 11072 		INFO_PRINTF1(_L("Test failed"));
 11073 		return EFail; 
 11074 		}
 11075 	else
 11076 		return EPass; 
 11077 	}
 11078 
 11079 //------------------------------------------------------------------
 11080 
 11081 /** @xxxx
 11082  * Constructor
 11083  */
 11084 CTest_MMF_ACOD_U_0267::CTest_MMF_ACOD_U_0267()
 11085 	{
 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");
 11090 	}
 11091 
 11092 /** @xxxx
 11093  * GSM610 To PCM16 Test for memory leaks
 11094  * @test Req. under test REQ172.11
 11095  */
 11096 TVerdict CTest_MMF_ACOD_U_0267::DoTestStepL()
 11097 	{
 11098 	const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
 11099 	TBool testOK = EFalse;
 11100 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
 11101 
 11102 	if (err)
 11103 		{
 11104 		INFO_PRINTF2(_L("Test left with status %d"), err);
 11105 		return EFail;
 11106 		}
 11107 	else if (!testOK)
 11108 		{
 11109 		INFO_PRINTF1(_L("Test failed"));
 11110 		return EFail; 
 11111 		}
 11112 	else
 11113 		return EPass; 
 11114 	}
 11115 
 11116 //------------------------------------------------------------------
 11117 
 11118 /** @xxxx
 11119  * Constructor
 11120  */
 11121 CTest_MMF_ACOD_U_0268::CTest_MMF_ACOD_U_0268()
 11122 	{
 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");
 11127 	}
 11128 
 11129 /** @xxxx
 11130  * GSM610 To PCM16 Test for memory scribbles
 11131  * @test Req. under test REQ172.11
 11132  */
 11133 TVerdict CTest_MMF_ACOD_U_0268::DoTestStepL()
 11134 	{
 11135 //	const TUid codecUid = {KMmfUidHwDeviceGSM610ToPCM16};
 11136 	TBool testOK = EFalse;
 11137 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
 11138     TInt err = KErrNone;
 11139 	if (err)
 11140 		{
 11141 		INFO_PRINTF2(_L("Test left with status %d"), err);
 11142 		return EFail;
 11143 		}
 11144 	else if (!testOK)
 11145 		{
 11146 		INFO_PRINTF1(_L("Test failed"));
 11147 		return EFail; 
 11148 		}
 11149 	else
 11150 		return EPass; 
 11151 	}
 11152 
 11153 //------------------------------------------------------------------
 11154 
 11155 /** @xxxx
 11156  * Constructor
 11157  */
 11158 CTest_MMF_ACOD_U_0269::CTest_MMF_ACOD_U_0269()
 11159 	{
 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");
 11164 
 11165 	for (TUint i=0; i<5; i++)
 11166 		{
 11167 		iExpectedSrcBytesProcessed[i] = 0;
 11168 		iExpectedDstBytesAdded[i] = 0;
 11169 		iExpectedReturnValue[i].iStatus = TCodecProcessResult::EDstNotFilled;
 11170 		}
 11171 	}
 11172 
 11173 /** @xxxx
 11174  * PCM16 to GSM610 Pass in zero sized source buffer
 11175  * @test Req. under test REQ172.6.4, REQ172.6.5
 11176  */
 11177 TVerdict CTest_MMF_ACOD_U_0269::DoTestStepL()
 11178 	{
 11179 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
 11180 	TBool testOK = EFalse;
 11181 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, 0, KPCM16ToGSM610OptimumDst));
 11182 TInt err = KErrNone;
 11183 	if (err)
 11184 		{
 11185 		INFO_PRINTF2(_L("Test left with status %d"), err);
 11186 		return EFail;
 11187 		}
 11188 	else if (!testOK)
 11189 		{
 11190 		INFO_PRINTF1(_L("Test failed"));
 11191 		return EFail; 
 11192 		}
 11193 	else
 11194 		return EPass; 
 11195 	}
 11196 
 11197 //------------------------------------------------------------------
 11198 
 11199 /** @xxxx
 11200  * Constructor
 11201  */
 11202 CTest_MMF_ACOD_U_0270::CTest_MMF_ACOD_U_0270()
 11203 	{
 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");
 11208 
 11209 	iExpectedLeaveErrorCode = KErrArgument;
 11210 	}
 11211 
 11212 /** @xxxx
 11213  * PCM16 to GSM610 Pass in zero sized destination buffer
 11214  * @test Req. under test REQ172.6.4, REQ172.6.5
 11215  */
 11216 TVerdict CTest_MMF_ACOD_U_0270::DoTestStepL()
 11217 	{
 11218 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
 11219 	TBool testOK = EFalse;
 11220 //	TRAPD(err, testOK = TestProcessLLoopFiveTimesL(codecUid, KPCM16ToGSM610OptimumSrc, 0));
 11221 TInt err = KErrNone;
 11222 	if (err)
 11223 		{
 11224 		INFO_PRINTF2(_L("Test left with status %d"), err);
 11225 		return EFail;
 11226 		}
 11227 	else if (!testOK)
 11228 		{
 11229 		INFO_PRINTF1(_L("Test failed"));
 11230 		return EFail; 
 11231 		}
 11232 	else
 11233 		return EPass; 
 11234 	}
 11235 
 11236 //------------------------------------------------------------------
 11237 
 11238 /** @xxxx
 11239  * Constructor
 11240  */
 11241 CTest_MMF_ACOD_U_0271::CTest_MMF_ACOD_U_0271()
 11242 	{
 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");
 11247 	}
 11248 
 11249 /** @xxxx
 11250  * PCM16 to GSM610 Test out of memory
 11251  * @test Req. under test REQ172.11
 11252  */
 11253 TVerdict CTest_MMF_ACOD_U_0271::DoTestStepL()
 11254 	{
 11255 	const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
 11256 	TBool testOK = EFalse;
 11257 
 11258 //	TRAPD(err, testOK = TestNewLOutOfMemoryL(codecUid));
 11259 	    TInt err = KErrNone;
 11260 	if (err==KErrNone && testOK)
 11261 		TRAP(err, testOK = TestProcessLOutOfMemoryL(codecUid));
 11262 
 11263 	if (err)
 11264 		{
 11265 		INFO_PRINTF2(_L("Test left with status %d"), err);
 11266 		return EFail;
 11267 		}
 11268 	else if (!testOK)
 11269 		{
 11270 		INFO_PRINTF1(_L("Test failed"));
 11271 		return EFail; 
 11272 		}
 11273 	else
 11274 		return EPass; 
 11275 	}
 11276 
 11277 //------------------------------------------------------------------
 11278 
 11279 
 11280 /** @xxxx
 11281  * Constructor
 11282  */
 11283 CTest_MMF_ACOD_U_0272::CTest_MMF_ACOD_U_0272()
 11284 	{
 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");
 11289 	}
 11290 
 11291 /** @xxxx
 11292  * PCM16 to GSM610 Test for memory leaks
 11293  * @test Req. under test REQ172.11
 11294  */
 11295 TVerdict CTest_MMF_ACOD_U_0272::DoTestStepL()
 11296 	{
 11297 	const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
 11298 	TBool testOK = EFalse;
 11299 	TRAPD(err, testOK = TestMemoryLeakL(codecUid));
 11300 
 11301 	if (err)
 11302 		{
 11303 		INFO_PRINTF2(_L("Test left with status %d"), err);
 11304 		return EFail;
 11305 		}
 11306 	else if (!testOK)
 11307 		{
 11308 		INFO_PRINTF1(_L("Test failed"));
 11309 		return EFail; 
 11310 		}
 11311 	else
 11312 		return EPass; 
 11313 	}
 11314 
 11315 //------------------------------------------------------------------
 11316 
 11317 /** @xxxx
 11318  * Constructor
 11319  */
 11320 CTest_MMF_ACOD_U_0273::CTest_MMF_ACOD_U_0273()
 11321 	{
 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");
 11326 	}
 11327 
 11328 /** @xxxx
 11329  * PCM16 to GSM610 Test for memory scribbles
 11330  * @test Req. under test REQ172.11
 11331  */
 11332 TVerdict CTest_MMF_ACOD_U_0273::DoTestStepL()
 11333 	{
 11334 //	const TUid codecUid = {KMmfUidHwDevicePCM16ToGSM610};
 11335 	TBool testOK = EFalse;
 11336 //	TRAPD(err, testOK = TestMemoryScribbleL(codecUid));
 11337 	TInt err = KErrNone;
 11338 
 11339 	if (err)
 11340 		{
 11341 		INFO_PRINTF2(_L("Test left with status %d"), err);
 11342 		return EFail;
 11343 		}
 11344 	else if (!testOK)
 11345 		{
 11346 		INFO_PRINTF1(_L("Test failed"));
 11347 		return EFail; 
 11348 		}
 11349 	else
 11350 		return EPass; 
 11351 	}
 11352 
 11353 //------------------------------------------------------------------
 11354