1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmlibs/mmfw/tsrc/mmfunittest/ctlfrm/TSU_MMF_CTLFRMSuite.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,315 @@
1.4 +// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// This is the main DLL entry point for the TSU_MMF_CTLFRM.dll
1.18 +//
1.19 +//
1.20 +
1.21 +// EPOC includes
1.22 +#include <e32base.h>
1.23 +
1.24 +// Test system includes
1.25 +#include "TSU_MMF_CTLFRMSuite.h"
1.26 +#include "TSU_MMF_CTLFRM.h"
1.27 +
1.28 +
1.29 +
1.30 +/**
1.31 + *
1.32 + * Create an instance of this test suite.
1.33 + *
1.34 + * NewTestSuiteL is exported at ordinal 1.
1.35 + * This provides the interface to allow the Test Framework
1.36 + * to create instances of this test suite.
1.37 + *
1.38 + * @return "CTestSuite_MMF_CTLFRM*"
1.39 + * The newly created test suite
1.40 + */
1.41 +EXPORT_C CTestSuite_MMF_CTLFRM* NewTestSuiteL()
1.42 + {
1.43 + CTestSuite_MMF_CTLFRM* result = new (ELeave) CTestSuite_MMF_CTLFRM;
1.44 + CleanupStack::PushL(result);
1.45 + result->ConstructL();
1.46 + CleanupStack::Pop(); // result
1.47 + return result;
1.48 + }
1.49 +
1.50 +/**
1.51 + *
1.52 + * CTestSuiteCTLFRMasses destructor
1.53 + *
1.54 + * @xxxx
1.55 + *
1.56 + */
1.57 +CTestSuite_MMF_CTLFRM::~CTestSuite_MMF_CTLFRM()
1.58 + {
1.59 + }
1.60 +
1.61 +
1.62 +/**
1.63 + *
1.64 + * Get test suite version.
1.65 + *
1.66 + * @return "TPtrC"
1.67 + * The version string.
1.68 + *
1.69 + * @xxxx
1.70 + *
1.71 + */
1.72 +_LIT(KTxtVersion,"0.1");
1.73 +TPtrC CTestSuite_MMF_CTLFRM::GetVersion( void ) const
1.74 + {
1.75 +
1.76 + return KTxtVersion();
1.77 + }
1.78 +
1.79 +/**
1.80 + *
1.81 + * Add a test step into the suite.
1.82 + *
1.83 + * @param "CTestStepSelfTest* aPtrTestStep"
1.84 + * The test step to be added.
1.85 + * @xxxx
1.86 + *
1.87 + */
1.88 +
1.89 +
1.90 +/**
1.91 + *
1.92 + * Initialiser for test suite.
1.93 + * This creates all the test steps and stores them
1.94 + * inside CTestSuiteCTLFRMasses
1.95 + *
1.96 + * @xxxx
1.97 + *
1.98 + */
1.99 +void CTestSuite_MMF_CTLFRM::InitialiseL( void )
1.100 + {
1.101 +
1.102 + // store the name of this test suite
1.103 + iSuiteName = _L("TSU_MMF_CTLFRM");
1.104 +
1.105 + // add test steps
1.106 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0001 );
1.107 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0007 );
1.108 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0008 );
1.109 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0009 );
1.110 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0010 );
1.111 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0011 );
1.112 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0012 );
1.113 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0013 );
1.114 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0014 );
1.115 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0015 );
1.116 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0016 );
1.117 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0017 );
1.118 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0018 );
1.119 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0019 );
1.120 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0020 );
1.121 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0021 );
1.122 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0022 );
1.123 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0023 );
1.124 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0024 );
1.125 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0027 );
1.126 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0028 );
1.127 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0029 );
1.128 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0030 );
1.129 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0031 );
1.130 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0032 );
1.131 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0033 );
1.132 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0034 );
1.133 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0035 );
1.134 +
1.135 +
1.136 + // Standard Custom Commands
1.137 +
1.138 + //------------------------------------//
1.139 + // Audio Play Device Custom Commands //
1.140 + //------------------------------------//
1.141 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0040 );
1.142 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0041 );
1.143 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0042 );
1.144 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0043 );
1.145 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0044 );
1.146 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0045 );
1.147 +
1.148 + //------------------------------------//
1.149 + // Audio Record Device Custom Commands//
1.150 + //------------------------------------//
1.151 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0050 );
1.152 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0051 );
1.153 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0052 );
1.154 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0053 );
1.155 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0054 );
1.156 +
1.157 + //---------------------------------------//
1.158 + // Audio Play Controller Custom Commands //
1.159 + //---------------------------------------//
1.160 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0060 );
1.161 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0061 );
1.162 +
1.163 +
1.164 + //-----------------------------------------//
1.165 + // Audio Record Controller Custom Commands //
1.166 + //-----------------------------------------//
1.167 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0070 );
1.168 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0071 );
1.169 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0072 );
1.170 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0073 );
1.171 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0074 );
1.172 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0075 );
1.173 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0076 );
1.174 +
1.175 + //----------------------------------//
1.176 + // Audio Controller Custom Commands //
1.177 + //----------------------------------//
1.178 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0080 );
1.179 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0081 );
1.180 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0082 );
1.181 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0083 );
1.182 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0084 );
1.183 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0085 );
1.184 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0086 );
1.185 +
1.186 + //---------------------------------------//
1.187 + // Video Surface support Custom Commands //
1.188 + //---------------------------------------//
1.189 +#ifdef SYMBIAN_BUILD_GCE
1.190 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0301 );
1.191 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0303 );
1.192 + TSurfaceId surfaceId;
1.193 + surfaceId.iInternal[0] = 11111;
1.194 + surfaceId.iInternal[1] = 22222;
1.195 + surfaceId.iInternal[2] = 33333;
1.196 + surfaceId.iInternal[3] = 44444;
1.197 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0305(surfaceId, EFalse) );
1.198 + // negative test
1.199 + surfaceId.iInternal[0] = 88888;
1.200 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0305(surfaceId, ETrue) );
1.201 +#endif // SYMBIAN_BUILD_GCE
1.202 +
1.203 + //----------------------------------//
1.204 + // Subtitle support Custom Commands //
1.205 + //----------------------------------//
1.206 +#ifdef SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
1.207 + AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_400());
1.208 + AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_401());
1.209 + AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_402());
1.210 + AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_403());
1.211 + AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_404());
1.212 + AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_405());
1.213 + AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_406());
1.214 + AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_407());
1.215 + AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_408());
1.216 + AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_409());
1.217 + AddTestStepL(new(ELeave) CTestStep_MMF_CTRLFRM_U_410());
1.218 +#endif //SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
1.219 +
1.220 + //-----------------------------------//
1.221 + // Adding Multiple Sources and Sinks //
1.222 + //-----------------------------------//
1.223 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0100 );
1.224 +
1.225 + //-------------------------------------//
1.226 + // CMMFFormatSelectionParameters //
1.227 + //-------------------------------------//
1.228 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0120 );
1.229 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0121 );
1.230 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0122 );
1.231 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0123 );
1.232 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0124 );
1.233 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0125 );
1.234 +
1.235 + //------------------------------------------//
1.236 + // CMMFControllerPluginSelectionParameters //
1.237 + //------------------------------------------//
1.238 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0130 );
1.239 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0131 );
1.240 +
1.241 + //-------------------------------------//
1.242 + // CMMFPluginImplementationInformation //
1.243 + //-------------------------------------//
1.244 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0140 );
1.245 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0141 );
1.246 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0142 );
1.247 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0143 );
1.248 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0144 );
1.249 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0145 );
1.250 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0146 );
1.251 +
1.252 + //------------------------------------------//
1.253 + // CMMFControllerImplementationInformation //
1.254 + //------------------------------------------//
1.255 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0150 );
1.256 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0151 );
1.257 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0152 );
1.258 +
1.259 + //--------------------------------------//
1.260 + // CMMFFormatImplementationInformation //
1.261 + //--------------------------------------//
1.262 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0160 );
1.263 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0161 );
1.264 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0162 );
1.265 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0163 );
1.266 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0164 );
1.267 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0165 );
1.268 +
1.269 + //-------------------------------------//
1.270 + // CMMFFormatPluginSelectionParameters // (Encode)
1.271 + //-------------------------------------//
1.272 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0170 );
1.273 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0171 );
1.274 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0172 );
1.275 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0173 );
1.276 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0174 );
1.277 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0175 );
1.278 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0176 );
1.279 +
1.280 +
1.281 + //-----------------------------------------------//
1.282 + // CMMFFormatPluginSelectionParameters, Negative //
1.283 + //-----------------------------------------------//
1.284 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0180 );
1.285 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0181 );
1.286 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0182 );
1.287 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0183 );
1.288 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0184 );
1.289 +
1.290 +
1.291 + //-------------------------------------//
1.292 + // CMMFFormatPluginSelectionParameters // (Decode)
1.293 + //-------------------------------------//
1.294 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0190 );
1.295 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0191 );
1.296 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0192 );
1.297 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0193 );
1.298 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0194 );
1.299 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0195 );
1.300 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0196 );
1.301 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0197 );
1.302 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0198 );
1.303 +
1.304 +
1.305 + //--------------------------------//
1.306 + // CMMFTestTerminationController //
1.307 + //--------------------------------//
1.308 + AddTestStepL( new(ELeave) RTestStep_MMF_CTLFRM_U_0200 );
1.309 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0201 );
1.310 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0202 );
1.311 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0203 );
1.312 +
1.313 + //CR1655 - MMF support for configurable controller stack size
1.314 + AddTestStepL( new(ELeave) CTestStep_MMF_CTLFRM_U_0300 );
1.315 + }
1.316 +
1.317 +
1.318 +// -------------------------