omxil/omxilunittest/contentpipe/src/tsu_omxil_dummycontentpipesuite.cpp
changeset 56 b6488ac24ddc
parent 47 481b3bce574a
child 57 1cbb0d5bf7f2
equal deleted inserted replaced
47:481b3bce574a 56:b6488ac24ddc
     1 // Copyright (c) 2008-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_omxil_dummycontentpipe.dll
       
    15 // 
       
    16 //
       
    17 
       
    18 // EPOC includes
       
    19 #include <e32base.h>
       
    20 
       
    21 // Test system includes
       
    22 #include "tsu_omxil_dummycontentpipesuite.h"
       
    23 #include "tsu_omxil_dummycontentpipe.h"
       
    24 
       
    25 
       
    26 
       
    27 /**
       
    28  *
       
    29  * Create an instance of this test suite.
       
    30  *
       
    31  * NewTestSuiteL is exported at ordinal 1.
       
    32  * This provides the interface to allow the Test Framework
       
    33  * to create instances of this test suite.
       
    34  *
       
    35  * @return	"CTestSuite_OMXIL_DummyContentPipe*"
       
    36  *			The newly created test suite
       
    37  */
       
    38 EXPORT_C CTestSuite_OMXIL_DummyContentPipe* NewTestSuiteL() 
       
    39     { 
       
    40 	CTestSuite_OMXIL_DummyContentPipe* result = new (ELeave) CTestSuite_OMXIL_DummyContentPipe;
       
    41 	CleanupStack::PushL(result);
       
    42 	result->ConstructL();
       
    43 	CleanupStack::Pop(); // result
       
    44 	return result;
       
    45     }
       
    46 
       
    47 CTestSuite_OMXIL_DummyContentPipe::~CTestSuite_OMXIL_DummyContentPipe()
       
    48 	{
       
    49 	}
       
    50 
       
    51 
       
    52 /**
       
    53  *
       
    54  * Get test suite version.
       
    55  *
       
    56  * @return	"TPtrC"
       
    57  *			The version string.
       
    58  *
       
    59  * @xxxx
       
    60  *
       
    61  */
       
    62 _LIT(KTxtVersion,"0.1");
       
    63 TPtrC CTestSuite_OMXIL_DummyContentPipe::GetVersion( void ) const
       
    64 	{
       
    65 
       
    66 	return KTxtVersion();
       
    67 	}
       
    68 
       
    69 /**
       
    70  *
       
    71  * Initialiser for test suite.
       
    72  * This creates all the test steps and stores them
       
    73  * inside test suite
       
    74  *
       
    75  * @xxxx
       
    76  * 
       
    77  */
       
    78 void CTestSuite_OMXIL_DummyContentPipe::InitialiseL( void )
       
    79 	{
       
    80 
       
    81 	// store the name of this test suite
       
    82 	iSuiteName = _L("TSU_OMXIL_DUMMYCONTENTPIPE");
       
    83 
       
    84 	// add test steps
       
    85 	AddTestStepL( new(ELeave) CTestStep_OMXIL_DummyContentPipe_U_0001 );
       
    86 	AddTestStepL( new(ELeave) CTestStep_OMXIL_DummyContentPipe_U_0002 );
       
    87 	AddTestStepL( new(ELeave) CTestStep_OMXIL_DummyContentPipe_U_0003 );
       
    88 	AddTestStepL( new(ELeave) CTestStep_OMXIL_DummyContentPipe_U_0004 );
       
    89 	}
       
    90 
       
    91 
       
    92 // -------------------------