devsound/devsoundrefplugin/tsrc/swcdwrap/TSU_MMF_SWCDWRAP_Suite.cpp
changeset 0 79dd3e2336a0
equal deleted inserted replaced
-1:000000000000 0:79dd3e2336a0
       
     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 // This is the main DLL entry point for the TSU_MMF_SWCDWRAP.dll
       
    15 // 
       
    16 //
       
    17 
       
    18 // EPOC includes
       
    19 #include <e32base.h>
       
    20 
       
    21 // Test system includes
       
    22 #include "TSU_MMF_SWCDWRAP_Suite.h"
       
    23 #include "TSU_MMF_SWCDWRAP_Step.h"
       
    24 #include "TSU_MMF_SWCDWRAP_StepStartDecode.h"
       
    25 #include "TSU_MMF_SWCDWRAP_StepStartEncode.h"
       
    26 #include "TSU_MMF_SWCDWRAP_StepStartConvert.h"
       
    27 
       
    28 
       
    29 /**
       
    30  *
       
    31  * Create an instance of this test suite.
       
    32  *
       
    33  * NewTestSuiteL is exported at ordinal 1.
       
    34  * This provides the interface to allow the Test Framework
       
    35  * to create instances of this test suite.
       
    36  *
       
    37  * @return	"CTestSuite_MMF_SWCDWRAP*"
       
    38  *			The newly created test suite
       
    39  */
       
    40 EXPORT_C CTestSuite_MMF_SWCDWRAP* NewTestSuiteL() 
       
    41     { 
       
    42 	CTestSuite_MMF_SWCDWRAP* result = new (ELeave) CTestSuite_MMF_SWCDWRAP;
       
    43 	CleanupStack::PushL(result);
       
    44 	result->ConstructL();
       
    45 	CleanupStack::Pop(); // result
       
    46 	return result;
       
    47     }
       
    48 
       
    49 
       
    50 CTestSuite_MMF_SWCDWRAP::~CTestSuite_MMF_SWCDWRAP()
       
    51 	{
       
    52 	}
       
    53 
       
    54 
       
    55 /**
       
    56  *
       
    57  * Get test suite version.
       
    58  *
       
    59  * @return	"TPtrC"
       
    60  *			The version string.
       
    61  *
       
    62  */
       
    63 TPtrC CTestSuite_MMF_SWCDWRAP::GetVersion( void ) const
       
    64 	{
       
    65 	_LIT(KTxtVersion,"1.6");
       
    66 	return KTxtVersion();
       
    67 	}
       
    68 
       
    69 /**
       
    70  *
       
    71  * Initialiser for test suite.
       
    72  * This creates all the test steps and stores them
       
    73  * inside CTestSuiteSWCDWRAPasses
       
    74  *
       
    75  * @xxxx
       
    76  * 
       
    77  */
       
    78 void CTestSuite_MMF_SWCDWRAP::InitialiseL( void )
       
    79 	{
       
    80 
       
    81 	// store the name of this test suite
       
    82 	iSuiteName = _L("TSU_MMF_SWCDWRAP");
       
    83 
       
    84 	// General tests
       
    85 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0001 );
       
    86 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0002 );
       
    87 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0003 );
       
    88 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0004 );
       
    89 
       
    90 	//play tests
       
    91 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0010 );
       
    92 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0011 );
       
    93 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0012 );
       
    94 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0013 );
       
    95 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0014 );
       
    96 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0015 );
       
    97 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0016 );
       
    98 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0017 );
       
    99 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0018 );
       
   100 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0019 );
       
   101 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0020 );
       
   102 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0021 );
       
   103 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0040 );
       
   104 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0040 );
       
   105 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0041 );
       
   106 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0042 );
       
   107 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0043 );
       
   108 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0044 );
       
   109 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0045 );
       
   110 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0046 );
       
   111 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0047 );
       
   112 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0048 );
       
   113 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0049 );
       
   114 	// call new methods StopAndDeleteCodec() and DeleteCodec()
       
   115 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0050 );
       
   116 	
       
   117 	//record tests
       
   118 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0100 );
       
   119 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0101 );
       
   120 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0102 );
       
   121 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0103 );
       
   122 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0104 );
       
   123 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0105 );
       
   124 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0106 );
       
   125 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0140 );
       
   126 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0141 );
       
   127 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0142 );
       
   128 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0143 );
       
   129 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0144 );
       
   130 
       
   131 	//convert tests
       
   132 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0200 );
       
   133 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0240 );
       
   134 
       
   135 	//OOM test
       
   136 	AddTestStepL( new(ELeave) CTestStep_MMF_SWCDWRAP_U_0300 );
       
   137 
       
   138 	}
       
   139 
       
   140 
       
   141 // -------------------------