os/mm/mmlibs/mmfw/tsrc/mmfunittest/SbcCodec/TSU_MMF_SbcCodecSuite.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 
     2 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     5 // under the terms of "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description:
    15 // This main DLL entry point for the TSU_MMF_SBCCODEC.dll
    16 // 
    17 //
    18 
    19 // EPOC includes
    20 #include <e32base.h>
    21 
    22 // Test system includes
    23 #include "TSU_MMF_SbcCodecSuite.h"
    24 #include "TSU_MMF_SbcCodec.h"
    25 
    26 
    27 /**
    28  * NewTestSuite is exported at ordinal 1
    29  * this provides the interface to allow schedule test
    30  * to create instances of this test suite
    31  */
    32 EXPORT_C CTestSuite_MMF_SbcCodec* NewTestSuiteL() 
    33     { 
    34 	CTestSuite_MMF_SbcCodec* self = new(ELeave) CTestSuite_MMF_SbcCodec;
    35 	CleanupStack::PushL(self);
    36 	self->ConstructL();
    37 	CleanupStack::Pop(); // result
    38 	return self;
    39     }
    40 
    41 /**
    42  * Destructor
    43  */
    44 CTestSuite_MMF_SbcCodec::~CTestSuite_MMF_SbcCodec()
    45 	{
    46 	}
    47 
    48 /**
    49  * Get Test Suite version
    50  */
    51 TPtrC CTestSuite_MMF_SbcCodec::GetVersion()
    52 	{
    53 	_LIT(KTxtVersion, "1.0");
    54 	return KTxtVersion();
    55 	}
    56 
    57 /**
    58  * This function initialises the test suite
    59  * this creates all the test steps and stores them inside CTestSuite_MMF_SbcCodec 
    60  */
    61 void CTestSuite_MMF_SbcCodec::InitialiseL()
    62 	{
    63 	// store the name of this test suite 
    64 	iSuiteName = _L("TSU_MMF_SbcCodec");
    65 
    66 	// NewL() tests
    67 	AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_001);
    68 	AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_002);
    69 	
    70 	// ProcessL() tests
    71 	AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_010);
    72 	AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_011);
    73 	AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_012);
    74 	AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_013);
    75 	AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_014);
    76 	AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_015);
    77 	AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_016);
    78 	
    79 	// Memory tests
    80 	AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_021);
    81 	AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_022);
    82 	AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_023);
    83 	AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_024);
    84 	}
    85 
    86