imagingandcamerafws/imagingunittest/tsu_icl_mediasvr/src/TestSuiteMediaSvr.cpp
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     1 // Copyright (c) 2002-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 // EPOC includes
       
    17 #include <e32base.h>
       
    18 
       
    19 // Test system includes
       
    20 #include <testframework.h>
       
    21 #include "TestStepMediaSvr.h"
       
    22 #include "MediaSvrTest.h"
       
    23 #include "TestSuiteMediaSvr.h"
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 /**
       
    29  *
       
    30  * Create an instance of this test suite.
       
    31  *
       
    32  * NewTestSuiteMediaSvrL is exported at ordinal 1.
       
    33  * This provides the interface to allow the Test Framework
       
    34  * to create instances of this test suite.
       
    35  *
       
    36  * @return	"CTestSuiteMediaSvr*"
       
    37  *			The newly created test suite
       
    38  */
       
    39 EXPORT_C CTestSuiteMediaSvr* NewTestSuiteMediaSvrL() 
       
    40     { 
       
    41 	CTestSuiteMediaSvr* result = new (ELeave) CTestSuiteMediaSvr;
       
    42 	CleanupStack::PushL(result);
       
    43 	result->ConstructL();
       
    44 	CleanupStack::Pop(); // result
       
    45 	return result;
       
    46     }
       
    47 
       
    48 /**
       
    49  *
       
    50  * This test suite version string
       
    51  *
       
    52  * @xxxx
       
    53  *
       
    54  */
       
    55 _LIT(KTxtVersion,"1.00 (build 21-Aug-2002)");
       
    56 
       
    57 /**
       
    58  *
       
    59  * Get test suite version.
       
    60  *
       
    61  * @return	"TPtrC"
       
    62  *			The version string.
       
    63  *
       
    64  * @xxxx
       
    65  *
       
    66  */
       
    67 TPtrC CTestSuiteMediaSvr::GetVersion() const
       
    68 	{
       
    69 	return KTxtVersion();
       
    70 	}
       
    71 
       
    72 /**
       
    73  *
       
    74  * Initialiser for test suite.
       
    75  * This creates all the test steps and stores them
       
    76  * inside CTestSuiteMediaSvr
       
    77  *
       
    78  * @xxxx
       
    79  * 
       
    80  */
       
    81 void CTestSuiteMediaSvr::InitialiseL()
       
    82 	{
       
    83 
       
    84 	// store the name of this test suite
       
    85 	iSuiteName = _L("TSU_ICL_MediaSvr");
       
    86 
       
    87 	// add test steps
       
    88 	AddTestStepL(CMediaSvrTest::NewL());
       
    89 	AddTestStepL(CMediaSvrTest2::NewL());
       
    90 	AddTestStepL(CMediaSvrTest3::NewL());
       
    91 	AddTestStepL(CMediaSvrTest4::NewL());
       
    92 	AddTestStepL(CMediaSvrTest5::NewL());
       
    93 	AddTestStepL(CMediaSvrTest6::NewL());
       
    94 	AddTestStepL(CMediaSvrTest7::NewL());
       
    95 	AddTestStepL(CMediaSvrTest8::NewL());
       
    96 	AddTestStepL(CMediaSvrTest9::NewL());
       
    97 	AddTestStepL(CMediaSvrTest10::NewL());
       
    98 	AddTestStepL(CMediaSvrTest11::NewL());
       
    99 	AddTestStepL(CMediaSvrTest12::NewL());
       
   100 	AddTestStepL(CMediaSvrTest13::NewL());
       
   101 	AddTestStepL(CMediaSvrTest14::NewL());
       
   102 	AddTestStepL(CMediaSvrTest15::NewL());
       
   103 	AddTestStepL(CMediaSvrTest16::NewL());
       
   104 	AddTestStepL(CMediaSvrTest17::NewL());
       
   105 	AddTestStepL(CMediaSvrTest18::NewL());
       
   106 	AddTestStepL(CMediaSvrTest19::NewL());
       
   107 	AddTestStepL(CMediaSvrTest20::NewL());
       
   108 	AddTestStepL(CMediaSvrTest21::NewL());
       
   109 	AddTestStepL(CMediaSvrTest22::NewL());
       
   110 	}