os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/Ctlfrm/TSI_MmfCtlfrmSuite.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 // TSIMmfCtlfrmSuite.cpp
    15 // 
    16 //
    17 
    18 
    19 // EPOC includes
    20 #include <e32base.h>
    21 
    22 // Test system includes
    23 #include <testframework.h>
    24 
    25 #include "TSI_MmfCtlfrmSuite.h"
    26 #include "TSI_MmfCtlfrm.h"
    27 #include "TSI_MmfCtlfrmNeg.h"
    28 
    29 
    30 
    31 
    32 /**
    33  * NewTestSuite is exported at ordinal 1
    34  * this provides the interface to allow schedule test
    35  * to create instances of this test suite
    36  */
    37 EXPORT_C CTestSuite* NewTestSuiteL()
    38     {
    39 	CTestMmfCtlfrmSuite* result = new (ELeave) CTestMmfCtlfrmSuite;
    40 	CleanupStack::PushL(result);
    41 	result->ConstructL();
    42 	CleanupStack::Pop(); // result
    43 	return result;
    44     }
    45 
    46 /**
    47  * destructor
    48  */
    49 CTestMmfCtlfrmSuite::~CTestMmfCtlfrmSuite()
    50 	{
    51 	}
    52 
    53 /**
    54  * make a version string available for test system
    55  * @return version string
    56  */
    57 TPtrC CTestMmfCtlfrmSuite::GetVersion() const
    58 	{
    59 	_LIT(KTxtVersion,"1.0");
    60 	return KTxtVersion();
    61 	}
    62 
    63 /**
    64  * Constructor for test suite
    65  * this creates all the test steps and 
    66  * stores them inside CTestMmfCtlfrmSuite 
    67  */
    68 void CTestMmfCtlfrmSuite::InitialiseL()
    69 	{
    70 	// store the name of this test suite 
    71 	iSuiteName = _L("TSIMmfCtlfrm");
    72 
    73 	AddTestStepL(RTestMmfCtlfrmI0001::NewL());
    74 	AddTestStepL(RTestMmfCtlfrmI0002::NewL());
    75 	AddTestStepL(RTestMmfCtlfrmI0003::NewL());
    76 
    77 	AddTestStepL(RTestMmfCtlfrmI0102::NewL());
    78 	AddTestStepL(RTestMmfCtlfrmI0105::NewL());
    79 	AddTestStepL(RTestMmfCtlfrmI0106::NewL());
    80 	AddTestStepL(RTestMmfCtlfrmI0107::NewL());
    81 	AddTestStepL(RTestMmfCtlfrmI0108::NewL());
    82 	AddTestStepL(RTestMmfCtlfrmI0109::NewL());
    83 
    84 	AddTestStepL(RTestMmfCtlfrmI0111::NewL());
    85 	AddTestStepL(RTestMmfCtlfrmI0112::NewL());
    86 	AddTestStepL(RTestMmfCtlfrmI0113::NewL());
    87 	AddTestStepL(RTestMmfCtlfrmI0114::NewL());
    88 	AddTestStepL(RTestMmfCtlfrmI0117::NewL());
    89 	AddTestStepL(RTestMmfCtlfrmI0118::NewL());
    90 	AddTestStepL(RTestMmfCtlfrmI0119::NewL());
    91 	AddTestStepL(RTestMmfCtlfrmI0120::NewL());
    92 
    93 	AddTestStepL(RTestMmfCtlfrmI0121::NewL());
    94 	AddTestStepL(RTestMmfCtlfrmI0122::NewL());
    95 	AddTestStepL(RTestMmfCtlfrmI0123::NewL());
    96 	AddTestStepL(RTestMmfCtlfrmI0124::NewL());
    97 	AddTestStepL(RTestMmfCtlfrmI0125::NewL());
    98 	AddTestStepL(RTestMmfCtlfrmI0128::NewL());
    99 	AddTestStepL(RTestMmfCtlfrmI0129::NewL());
   100 
   101 	AddTestStepL(RTestMmfCtlfrmI0131::NewL());
   102 	AddTestStepL(RTestMmfCtlfrmI0132::NewL());
   103 
   104 	AddTestStepL(RTestMmfCtlfrmI0141::NewL());
   105 	AddTestStepL(RTestMmfCtlfrmI0142::NewL());
   106 	AddTestStepL(RTestMmfCtlfrmI0143::NewL());
   107 	AddTestStepL(RTestMmfCtlfrmI0144::NewL());
   108 
   109 	AddTestStepL(RTestMmfCtlfrmI0151::NewL());
   110 	AddTestStepL(RTestMmfCtlfrmI0152::NewL());
   111 
   112 	// negative testing
   113 	AddTestStepL(RTestMmfCtlfrmI0502::NewL());
   114 	AddTestStepL(RTestMmfCtlfrmI0504::NewL());
   115 
   116 	AddTestStepL(RTestMmfCtlfrmI0511::NewL());
   117 	AddTestStepL(RTestMmfCtlfrmI0512::NewL());
   118 	AddTestStepL(RTestMmfCtlfrmI0513::NewL());
   119 	AddTestStepL(RTestMmfCtlfrmI0514::NewL());
   120 	AddTestStepL(RTestMmfCtlfrmI0515::NewL());
   121 
   122 	AddTestStepL(RTestMmfCtlfrmI0521::NewL());
   123 	AddTestStepL(RTestMmfCtlfrmI0522::NewL());
   124 	AddTestStepL(RTestMmfCtlfrmI0523::NewL());
   125 	AddTestStepL(RTestMmfCtlfrmI0524::NewL());
   126 	AddTestStepL(RTestMmfCtlfrmI0525::NewL());
   127 	AddTestStepL(RTestMmfCtlfrmI0526::NewL());
   128 	AddTestStepL(RTestMmfCtlfrmI0527::NewL());
   129 
   130 	AddTestStepL(RTestMmfCtlfrmI0531::NewL());
   131 	AddTestStepL(RTestMmfCtlfrmI0532::NewL());
   132 
   133 	AddTestStepL(RTestMmfCtlfrmI0541::NewL());
   134 	AddTestStepL(RTestMmfCtlfrmI0542::NewL());
   135 
   136 	AddTestStepL(RTestMmfCtlfrmI0551::NewL());
   137 	AddTestStepL(RTestMmfCtlfrmI0552::NewL());
   138 	AddTestStepL(RTestMmfCtlfrmI0553::NewL());
   139 	AddTestStepL(RTestMmfCtlfrmI0554::NewL());
   140 	}
   141 
   142