1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmlibs/mmfw/tsrc/mmfunittest/SbcCodec/TSU_MMF_SbcCodecSuite.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,86 @@
1.4 +
1.5 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of "Eclipse Public License v1.0"
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +// This main DLL entry point for the TSU_MMF_SBCCODEC.dll
1.19 +//
1.20 +//
1.21 +
1.22 +// EPOC includes
1.23 +#include <e32base.h>
1.24 +
1.25 +// Test system includes
1.26 +#include "TSU_MMF_SbcCodecSuite.h"
1.27 +#include "TSU_MMF_SbcCodec.h"
1.28 +
1.29 +
1.30 +/**
1.31 + * NewTestSuite is exported at ordinal 1
1.32 + * this provides the interface to allow schedule test
1.33 + * to create instances of this test suite
1.34 + */
1.35 +EXPORT_C CTestSuite_MMF_SbcCodec* NewTestSuiteL()
1.36 + {
1.37 + CTestSuite_MMF_SbcCodec* self = new(ELeave) CTestSuite_MMF_SbcCodec;
1.38 + CleanupStack::PushL(self);
1.39 + self->ConstructL();
1.40 + CleanupStack::Pop(); // result
1.41 + return self;
1.42 + }
1.43 +
1.44 +/**
1.45 + * Destructor
1.46 + */
1.47 +CTestSuite_MMF_SbcCodec::~CTestSuite_MMF_SbcCodec()
1.48 + {
1.49 + }
1.50 +
1.51 +/**
1.52 + * Get Test Suite version
1.53 + */
1.54 +TPtrC CTestSuite_MMF_SbcCodec::GetVersion()
1.55 + {
1.56 + _LIT(KTxtVersion, "1.0");
1.57 + return KTxtVersion();
1.58 + }
1.59 +
1.60 +/**
1.61 + * This function initialises the test suite
1.62 + * this creates all the test steps and stores them inside CTestSuite_MMF_SbcCodec
1.63 + */
1.64 +void CTestSuite_MMF_SbcCodec::InitialiseL()
1.65 + {
1.66 + // store the name of this test suite
1.67 + iSuiteName = _L("TSU_MMF_SbcCodec");
1.68 +
1.69 + // NewL() tests
1.70 + AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_001);
1.71 + AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_002);
1.72 +
1.73 + // ProcessL() tests
1.74 + AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_010);
1.75 + AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_011);
1.76 + AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_012);
1.77 + AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_013);
1.78 + AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_014);
1.79 + AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_015);
1.80 + AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_016);
1.81 +
1.82 + // Memory tests
1.83 + AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_021);
1.84 + AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_022);
1.85 + AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_023);
1.86 + AddTestStepL(new(ELeave) CTest_MMF_SbcCodec_U_024);
1.87 + }
1.88 +
1.89 +