1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/compressionlibs/ziplib/test/tef/tlibz/src/tzlibserver.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,1211 @@
1.4 +// Copyright (c) 2007-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 +// Name : tzlibserver.cpp
1.18 +//
1.19 +//
1.20 +
1.21 +
1.22 +#include <c32comm.h>
1.23 +
1.24 +#if defined (__WINS__)
1.25 +#define PDD_NAME _L("ECDRV")
1.26 +#else
1.27 +#define PDD_NAME _L("EUART1")
1.28 +#define PDD2_NAME _L("EUART2")
1.29 +#define PDD3_NAME _L("EUART3")
1.30 +#define PDD4_NAME _L("EUART4")
1.31 +#endif
1.32 +
1.33 +#define LDD_NAME _L("ECOMM")
1.34 +
1.35 +/**
1.36 + * @file
1.37 + *
1.38 + * Pipe test server implementation
1.39 + */
1.40 +#include "tzlibserver.h"
1.41 +#include "tzlib.h"
1.42 +
1.43 +
1.44 +_LIT(KServerName, "tzlib");
1.45 +
1.46 +CZlibTestServer* CZlibTestServer::NewL()
1.47 + {
1.48 + CZlibTestServer *server = new(ELeave) CZlibTestServer();
1.49 + CleanupStack::PushL(server);
1.50 + server->ConstructL(KServerName);
1.51 + CleanupStack::Pop(server);
1.52 + return server;
1.53 + }
1.54 +
1.55 +static void InitCommsL()
1.56 + {
1.57 + TInt ret = User::LoadPhysicalDevice(PDD_NAME);
1.58 + User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
1.59 +
1.60 +#ifndef __WINS__
1.61 + ret = User::LoadPhysicalDevice(PDD2_NAME);
1.62 + ret = User::LoadPhysicalDevice(PDD3_NAME);
1.63 + ret = User::LoadPhysicalDevice(PDD4_NAME);
1.64 +#endif
1.65 +
1.66 + ret = User::LoadLogicalDevice(LDD_NAME);
1.67 + User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
1.68 + ret = StartC32();
1.69 + User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
1.70 + }
1.71 +
1.72 +LOCAL_C void MainL()
1.73 + {
1.74 + // Leave the hooks in for platform security
1.75 +#if (defined __DATA_CAGING__)
1.76 + RProcess().DataCaging(RProcess::EDataCagingOn);
1.77 + RProcess().SecureApi(RProcess::ESecureApiOn);
1.78 +#endif
1.79 + //InitCommsL();
1.80 +
1.81 + CActiveScheduler* sched=NULL;
1.82 + sched=new(ELeave) CActiveScheduler;
1.83 + CActiveScheduler::Install(sched);
1.84 + CZlibTestServer* server = NULL;
1.85 + // Create the CTestServer derived server
1.86 + TRAPD(err, server = CZlibTestServer::NewL());
1.87 + if(!err)
1.88 + {
1.89 + // Sync with the client and enter the active scheduler
1.90 + RProcess::Rendezvous(KErrNone);
1.91 + sched->Start();
1.92 + }
1.93 + delete server;
1.94 + delete sched;
1.95 + }
1.96 +
1.97 +/**
1.98 + * Server entry point
1.99 + * @return Standard Epoc error code on exit
1.100 + */
1.101 +TInt main()
1.102 + {
1.103 + __UHEAP_MARK;
1.104 + CTrapCleanup* cleanup = CTrapCleanup::New();
1.105 + if(cleanup == NULL)
1.106 + {
1.107 + return KErrNoMemory;
1.108 + }
1.109 + TRAP_IGNORE(MainL());
1.110 + delete cleanup;
1.111 + __UHEAP_MARKEND;
1.112 +
1.113 + return KErrNone;
1.114 + }
1.115 +
1.116 +CTestStep* CZlibTestServer::CreateTestStep(const TDesC& aStepName)
1.117 + {
1.118 + CTestStep* testStep = NULL;
1.119 +
1.120 + // This server creates just one step but create as many as you want
1.121 + // They are created "just in time" when the worker thread is created
1.122 + // install steps
1.123 +
1.124 + if(aStepName == Ktest_zlibVersion)
1.125 + {
1.126 + testStep = new CTestZlib(aStepName);
1.127 + }
1.128 + else if(aStepName == Ktest_compress01)
1.129 + {
1.130 + testStep = new CTestZlib(aStepName);
1.131 + }
1.132 + else if(aStepName == Ktest_deflate01)
1.133 + {
1.134 + testStep = new CTestZlib(aStepName);
1.135 + }
1.136 + else if(aStepName == Ktest_deflate02)
1.137 + {
1.138 + testStep = new CTestZlib(aStepName);
1.139 + }
1.140 + else if(aStepName == Ktest_deflateEnd)
1.141 + {
1.142 + testStep = new CTestZlib(aStepName);
1.143 + }
1.144 + else if(aStepName == Ktest_inflate01)
1.145 + {
1.146 + testStep = new CTestZlib(aStepName);
1.147 + }
1.148 + else if(aStepName == Ktest_inflate02)
1.149 + {
1.150 + testStep = new CTestZlib(aStepName);
1.151 + }
1.152 + else if(aStepName == Ktest_inflate03)
1.153 + {
1.154 + testStep = new CTestZlib(aStepName);
1.155 + }
1.156 + else if(aStepName == Ktest_inflate04)
1.157 + {
1.158 + testStep = new CTestZlib(aStepName);
1.159 + }
1.160 + else if(aStepName == Ktest_inflate05)
1.161 + {
1.162 + testStep = new CTestZlib(aStepName);
1.163 + }
1.164 + else if(aStepName == Ktest_inflate06)
1.165 + {
1.166 + testStep = new CTestZlib(aStepName);
1.167 + }
1.168 + else if(aStepName == Ktest_inflateEnd)
1.169 + {
1.170 + testStep = new CTestZlib(aStepName);
1.171 + }
1.172 + else if(aStepName == Ktest_deflateSetDictionary01)
1.173 + {
1.174 + testStep = new CTestZlib(aStepName);
1.175 + }
1.176 + else if(aStepName == Ktest_deflateSetDictionary02)
1.177 + {
1.178 + testStep = new CTestZlib(aStepName);
1.179 + }
1.180 + else if(aStepName == Ktest_deflateSetDictionary03)
1.181 + {
1.182 + testStep = new CTestZlib(aStepName);
1.183 + }
1.184 + else if(aStepName == Ktest_deflateSetDictionary04)
1.185 + {
1.186 + testStep = new CTestZlib(aStepName);
1.187 + }
1.188 + else if(aStepName == Ktest_deflateSetDictionary05)
1.189 + {
1.190 + testStep = new CTestZlib(aStepName);
1.191 + }
1.192 + else if(aStepName == Ktest_gzio)
1.193 + {
1.194 + testStep = new CTestZlib(aStepName);
1.195 + }
1.196 + else if(aStepName == Ktest_gzdirect)
1.197 + {
1.198 + testStep = new CTestZlib(aStepName);
1.199 + }
1.200 + else if(aStepName == Ktest_gzdirectnull)
1.201 + {
1.202 + testStep = new CTestZlib(aStepName);
1.203 + }
1.204 + else if(aStepName == Ktest_gzclearerr)
1.205 + {
1.206 + testStep = new CTestZlib(aStepName);
1.207 + }
1.208 + else if(aStepName == Ktest_gzclearerr_null)
1.209 + {
1.210 + testStep = new CTestZlib(aStepName);
1.211 + }
1.212 + else if(aStepName == Ktest_gzerror_streamend)
1.213 + {
1.214 + testStep = new CTestZlib(aStepName);
1.215 + }
1.216 + else if(aStepName == Ktest_gzungetcnegative)
1.217 + {
1.218 + testStep = new CTestZlib(aStepName);
1.219 + }
1.220 + else if(aStepName == Ktest_gzseeknegative)
1.221 + {
1.222 + testStep = new CTestZlib(aStepName);
1.223 + }
1.224 + else if(aStepName == Ktest_gzdirecttxt)
1.225 + {
1.226 + testStep = new CTestZlib(aStepName);
1.227 + }
1.228 + else if(aStepName == KtestGzungetcChain)
1.229 + {
1.230 + testStep = new CTestZlib(aStepName);
1.231 + }
1.232 + else if(aStepName == KtestGzseekBack)
1.233 + {
1.234 + testStep = new CTestZlib(aStepName);
1.235 + }
1.236 + else if(aStepName == KtestGzseekAppend)
1.237 + {
1.238 + testStep = new CTestZlib(aStepName);
1.239 + }
1.240 + else if(aStepName == KtestGzseekHugeOffset)
1.241 + {
1.242 + testStep = new CTestZlib(aStepName);
1.243 + }
1.244 + else if(aStepName == KtestGzseekNoSize)
1.245 + {
1.246 + testStep = new CTestZlib(aStepName);
1.247 + }
1.248 + else if(aStepName == KtestGzopenLongPath01)
1.249 + {
1.250 + testStep = new CTestZlib(aStepName);
1.251 + }
1.252 + else if(aStepName == KtestGzseekLongPath01)
1.253 + {
1.254 + testStep = new CTestZlib(aStepName);
1.255 + }
1.256 + else if(aStepName == KtestGzopenLongPath02)
1.257 + {
1.258 + testStep = new CTestZlib(aStepName);
1.259 + }
1.260 + else if(aStepName == KtestGzseekMixedFile01)
1.261 + {
1.262 + testStep = new CTestZlib(aStepName);
1.263 + }
1.264 + else if(aStepName == KtestGzopenNoMode)
1.265 + {
1.266 + testStep = new CTestZlib(aStepName);
1.267 + }
1.268 + else if(aStepName == KtestGzopenNoPath)
1.269 + {
1.270 + testStep = new CTestZlib(aStepName);
1.271 + }
1.272 + else if(aStepName == KtestGzopenNoPathMode)
1.273 + {
1.274 + testStep = new CTestZlib(aStepName);
1.275 + }
1.276 + else if(aStepName == KtestGzseekConcatedFile01)
1.277 + {
1.278 + testStep = new CTestZlib(aStepName);
1.279 + }
1.280 + else if(aStepName == KtestGzopenDiffMode)
1.281 + {
1.282 + testStep = new CTestZlib(aStepName);
1.283 + }
1.284 + else if(aStepName == KtestGzseekConcatedFile02)
1.285 + {
1.286 + testStep = new CTestZlib(aStepName);
1.287 + }
1.288 + else if(aStepName == KtestGzprintf01)
1.289 + {
1.290 + testStep = new CTestZlib(aStepName);
1.291 + }
1.292 + else if(aStepName == KtestGzprintf02)
1.293 + {
1.294 + testStep = new CTestZlib(aStepName);
1.295 + }
1.296 + else if(aStepName == KtestGzflushNull)
1.297 + {
1.298 + testStep = new CTestZlib(aStepName);
1.299 + }
1.300 + else if(aStepName == KtestGzflushRepeat)
1.301 + {
1.302 + testStep = new CTestZlib(aStepName);
1.303 + }
1.304 + else if(aStepName == KtestGzflushHugeBuf)
1.305 + {
1.306 + testStep = new CTestZlib(aStepName);
1.307 + }
1.308 + else if(aStepName == KtestGzrewindNull)
1.309 + {
1.310 + testStep = new CTestZlib(aStepName);
1.311 + }
1.312 + else if(aStepName == KtestGzrewindTransparent)
1.313 + {
1.314 + testStep = new CTestZlib(aStepName);
1.315 + }
1.316 + else if(aStepName == KtestGzgetsBufNull)
1.317 + {
1.318 + testStep = new CTestZlib(aStepName);
1.319 + }
1.320 + else if(aStepName == KtestGzgetsSmallBuf)
1.321 + {
1.322 + testStep = new CTestZlib(aStepName);
1.323 + }
1.324 +
1.325 + else if(aStepName == KtestDeflateReset)
1.326 + {
1.327 + testStep = new CTestZlib(aStepName);
1.328 + }
1.329 + else if(aStepName == KtestDeflateReset_fail)
1.330 + {
1.331 + testStep = new CTestZlib(aStepName);
1.332 + }
1.333 + else if(aStepName == KtestDeflateInit2_bits)
1.334 + {
1.335 + testStep = new CTestZlib(aStepName);
1.336 + }
1.337 + else if(aStepName == KtestDeflateInit2_level)
1.338 + {
1.339 + testStep = new CTestZlib(aStepName);
1.340 + }
1.341 + else if(aStepName == KtestInflateInit2_bits)
1.342 + {
1.343 + testStep = new CTestZlib(aStepName);
1.344 + }
1.345 + else if(aStepName == KtestGzread)
1.346 + {
1.347 + testStep = new CTestZlib(aStepName);
1.348 + }
1.349 + else if(aStepName == KtestGzread_fail)
1.350 + {
1.351 + testStep = new CTestZlib(aStepName);
1.352 + }
1.353 + else if(aStepName == KtestUncompress)
1.354 + {
1.355 + testStep = new CTestZlib(aStepName);
1.356 + }
1.357 + else if(aStepName == KtestUncompressfail)
1.358 + {
1.359 + testStep = new CTestZlib(aStepName);
1.360 + }
1.361 + else if(aStepName == KtestInflateSetDictionary)
1.362 + {
1.363 + testStep = new CTestZlib(aStepName);
1.364 + }
1.365 + else if(aStepName == KtestInflateSetDictionary_size)
1.366 + {
1.367 + testStep = new CTestZlib(aStepName);
1.368 + }
1.369 + else if(aStepName == KtestInflateSetDictionary_null)
1.370 + {
1.371 + testStep = new CTestZlib(aStepName);
1.372 + }
1.373 + else if(aStepName == KtestGzgets)
1.374 + {
1.375 + testStep = new CTestZlib(aStepName);
1.376 + }
1.377 + else if(aStepName == KtestgzgetsFail)
1.378 + {
1.379 + testStep = new CTestZlib(aStepName);
1.380 + }
1.381 + else if(aStepName == KtestgzgetsopenFail)
1.382 + {
1.383 + testStep = new CTestZlib(aStepName);
1.384 + }
1.385 + else if(aStepName == KtestInflate)
1.386 + {
1.387 + testStep = new CTestZlib(aStepName);
1.388 + }
1.389 + else if(aStepName == KtestInflate_fail1)
1.390 + {
1.391 + testStep = new CTestZlib(aStepName);
1.392 + }
1.393 + else if(aStepName == KtestInflate_fail2)
1.394 + {
1.395 + testStep = new CTestZlib(aStepName);
1.396 + }
1.397 + else if(aStepName == KtestInflate_fail3)
1.398 + {
1.399 + testStep = new CTestZlib(aStepName);
1.400 + }
1.401 + else if(aStepName == KtestInflateend)
1.402 + {
1.403 + testStep = new CTestZlib(aStepName);
1.404 + }
1.405 + else if(aStepName == KtestInflateend_fail)
1.406 + {
1.407 + testStep = new CTestZlib(aStepName);
1.408 + }
1.409 + else if(aStepName == KtestInflateReset)
1.410 + {
1.411 + testStep = new CTestZlib(aStepName);
1.412 + }
1.413 + else if(aStepName == KtestInflateResetfail1)
1.414 + {
1.415 + testStep = new CTestZlib(aStepName);
1.416 + }
1.417 + else if(aStepName == KtestInflateInit2_)
1.418 + {
1.419 + testStep = new CTestZlib(aStepName);
1.420 + }
1.421 + else if(aStepName == KtestInflateInit_)
1.422 + {
1.423 + testStep = new CTestZlib(aStepName);
1.424 + }
1.425 + else if(aStepName == KtestInflateInit2_negative)
1.426 + {
1.427 + testStep = new CTestZlib(aStepName);
1.428 + }
1.429 + else if(aStepName == KtestInflateInit_negative)
1.430 + {
1.431 + testStep = new CTestZlib(aStepName);
1.432 + }
1.433 + else if(aStepName == KtestInflateInit2_versioncheck)
1.434 + {
1.435 + testStep = new CTestZlib(aStepName);
1.436 + }
1.437 + else if(aStepName == KtestInflateInit_versioncheck)
1.438 + {
1.439 + testStep = new CTestZlib(aStepName);
1.440 + }
1.441 + else if(aStepName == KtestAdlerinit)
1.442 + {
1.443 + testStep = new CTestZlib(aStepName);
1.444 + }
1.445 + else if(aStepName == KtestAdler)
1.446 + {
1.447 + testStep = new CTestZlib(aStepName);
1.448 + }
1.449 + else if(aStepName == KtestCompress)
1.450 + {
1.451 + testStep = new CTestZlib(aStepName);
1.452 + }
1.453 + else if(aStepName == KtestCompress_negative)
1.454 + {
1.455 + testStep = new CTestZlib(aStepName);
1.456 + }
1.457 + else if(aStepName == KtestCompress2_positive)
1.458 + {
1.459 + testStep = new CTestZlib(aStepName);
1.460 + }
1.461 + else if(aStepName == KtestCompress2_negative)
1.462 + {
1.463 + testStep = new CTestZlib(aStepName);
1.464 + }
1.465 + else if(aStepName == KtestCompressbound)
1.466 + {
1.467 + testStep = new CTestZlib(aStepName);
1.468 + }
1.469 + else if(aStepName == KtestDeflatebound)
1.470 + {
1.471 + testStep = new CTestZlib(aStepName);
1.472 + }
1.473 + else if(aStepName == KtestDeflateparams)
1.474 + {
1.475 + testStep = new CTestZlib(aStepName);
1.476 + }
1.477 + else if(aStepName == KtestDeflateparamsfail1)
1.478 + {
1.479 + testStep = new CTestZlib(aStepName);
1.480 + }
1.481 + else if(aStepName == KtestDeflateparamsfail2)
1.482 + {
1.483 + testStep = new CTestZlib(aStepName);
1.484 + }
1.485 + else if(aStepName == KtestCrcinit)
1.486 + {
1.487 + testStep = new CTestZlib(aStepName);
1.488 + }
1.489 + else if(aStepName == KtestCrc)
1.490 + {
1.491 + testStep = new CTestZlib(aStepName);
1.492 + }
1.493 + else if(aStepName == KtestGet_crc_table)
1.494 + {
1.495 + testStep = new CTestZlib(aStepName);
1.496 + }
1.497 + else if(aStepName == KtestDeflateInit_)
1.498 + {
1.499 + testStep = new CTestZlib(aStepName);
1.500 + }
1.501 + else if(aStepName == KtestDeflateInit_level)
1.502 + {
1.503 + testStep = new CTestZlib(aStepName);
1.504 + }
1.505 + else if(aStepName == KtestDeflateInit2_)
1.506 + {
1.507 + testStep = new CTestZlib(aStepName);
1.508 + }
1.509 + else if(aStepName == KtestDeflatefail)
1.510 + {
1.511 + testStep = new CTestZlib(aStepName);
1.512 + }
1.513 + else if(aStepName == KtestDeflatefail2)
1.514 + {
1.515 + testStep = new CTestZlib(aStepName);
1.516 + }
1.517 + else if(aStepName == KtestZlibversion)
1.518 + {
1.519 + testStep = new CTestZlib(aStepName);
1.520 + }
1.521 + else if(aStepName == KtestGzputc)
1.522 + {
1.523 + testStep = new CTestZlib(aStepName);
1.524 + }
1.525 + else if(aStepName == KtestGzopen)
1.526 + {
1.527 + testStep = new CTestZlib(aStepName);
1.528 + }
1.529 + else if(aStepName == KtestGzopenmode)
1.530 + {
1.531 + testStep = new CTestZlib(aStepName);
1.532 + }
1.533 + else if(aStepName == KtestGzopenfail)
1.534 + {
1.535 + testStep = new CTestZlib(aStepName);
1.536 + }
1.537 + else if(aStepName == KtestGzputcfail)
1.538 + {
1.539 + testStep = new CTestZlib(aStepName);
1.540 + }
1.541 + else if(aStepName == KtestGzputcreturn)
1.542 + {
1.543 + testStep = new CTestZlib(aStepName);
1.544 + }
1.545 + else if(aStepName == KtestGzputs)
1.546 + {
1.547 + testStep = new CTestZlib(aStepName);
1.548 + }
1.549 + else if(aStepName == KtestGzputsfail)
1.550 + {
1.551 + testStep = new CTestZlib(aStepName);
1.552 + }
1.553 + else if(aStepName == KtestGzprintf)
1.554 + {
1.555 + testStep = new CTestZlib(aStepName);
1.556 + }
1.557 + else if(aStepName == KtestGzprintf_trying)
1.558 + {
1.559 + testStep = new CTestZlib(aStepName);
1.560 + }
1.561 + else if(aStepName == KtestGzwrite)
1.562 + {
1.563 + testStep = new CTestZlib(aStepName);
1.564 + }
1.565 + else if(aStepName == KtestGzwritefail)
1.566 + {
1.567 + testStep = new CTestZlib(aStepName);
1.568 + }
1.569 + else if(aStepName == KtestGztell)
1.570 + {
1.571 + testStep = new CTestZlib(aStepName);
1.572 + }
1.573 + else if(aStepName == KtestGztell1)
1.574 + {
1.575 + testStep = new CTestZlib(aStepName);
1.576 + }
1.577 + else if(aStepName == KtestGztellfail1)
1.578 + {
1.579 + testStep = new CTestZlib(aStepName);
1.580 + }
1.581 + else if(aStepName == KtestDeflatecopy)
1.582 + {
1.583 + testStep = new CTestZlib(aStepName);
1.584 + }
1.585 + else if(aStepName == KtestDeflatecopyfail)
1.586 + {
1.587 + testStep = new CTestZlib(aStepName);
1.588 + }
1.589 + else if(aStepName == KtestGzclose)
1.590 + {
1.591 + testStep = new CTestZlib(aStepName);
1.592 + }
1.593 + else if(aStepName == KtestGzclose_fail)
1.594 + {
1.595 + testStep = new CTestZlib(aStepName);
1.596 + }
1.597 + else if(aStepName == KtestGzeof)
1.598 + {
1.599 + testStep = new CTestZlib(aStepName);
1.600 + }
1.601 + else if(aStepName == KtestGzeoffail1)
1.602 + {
1.603 + testStep = new CTestZlib(aStepName);
1.604 + }
1.605 + else if(aStepName == KtestGzeoffail2)
1.606 + {
1.607 + testStep = new CTestZlib(aStepName);
1.608 + }
1.609 + else if(aStepName == KtestGzgetc)
1.610 + {
1.611 + testStep = new CTestZlib(aStepName);
1.612 + }
1.613 + else if(aStepName == KtestGzflush)
1.614 + {
1.615 + testStep = new CTestZlib(aStepName);
1.616 + }
1.617 + else if(aStepName == KtestGzflushsync)
1.618 + {
1.619 + testStep = new CTestZlib(aStepName);
1.620 + }
1.621 + else if(aStepName == KtestGzflushfail)
1.622 + {
1.623 + testStep = new CTestZlib(aStepName);
1.624 + }
1.625 + else if(aStepName == KtestGzerror)
1.626 + {
1.627 + testStep = new CTestZlib(aStepName);
1.628 + }
1.629 + else if(aStepName == KtestGzerrorfail1)
1.630 + {
1.631 + testStep = new CTestZlib(aStepName);
1.632 + }
1.633 + else if(aStepName == KtestGzgetcfail)
1.634 + {
1.635 + testStep = new CTestZlib(aStepName);
1.636 + }
1.637 + else if(aStepName == KtestDeflateSetDictionary)
1.638 + {
1.639 + testStep = new CTestZlib(aStepName);
1.640 + }
1.641 + else if(aStepName == KtestDeflateSetDictionary_nodict)
1.642 + {
1.643 + testStep = new CTestZlib(aStepName);
1.644 + }
1.645 + else if(aStepName == KtestDeflateSetDictionary_fail)
1.646 + {
1.647 + testStep = new CTestZlib(aStepName);
1.648 + }
1.649 + else if(aStepName == KtestDeflateend)
1.650 + {
1.651 + testStep = new CTestZlib(aStepName);
1.652 + }
1.653 + else if(aStepName == KtestDeflateendfail1)
1.654 + {
1.655 + testStep = new CTestZlib(aStepName);
1.656 + }
1.657 + else if(aStepName == KtestDeflate)
1.658 + {
1.659 + testStep = new CTestZlib(aStepName);
1.660 + }
1.661 + else if(aStepName == KtestGzseek)
1.662 + {
1.663 + testStep = new CTestZlib(aStepName);
1.664 + }
1.665 + else if(aStepName == KtestGzseekfail1)
1.666 + {
1.667 + testStep = new CTestZlib(aStepName);
1.668 + }
1.669 + else if(aStepName == KtestGzseekfail2)
1.670 + {
1.671 + testStep = new CTestZlib(aStepName);
1.672 + }
1.673 + else if(aStepName == KtestGzsetparams)
1.674 + {
1.675 + testStep = new CTestZlib(aStepName);
1.676 + }
1.677 + else if(aStepName == KtestGzsetparams_fail1)
1.678 + {
1.679 + testStep = new CTestZlib(aStepName);
1.680 + }
1.681 + else if(aStepName == KtestGzsetparams_fail2)
1.682 + {
1.683 + testStep = new CTestZlib(aStepName);
1.684 + }
1.685 + else if(aStepName == KtestGzsetparams_fail3)
1.686 + {
1.687 + testStep = new CTestZlib(aStepName);
1.688 + }
1.689 + else if(aStepName == KtestGzrewind)
1.690 + {
1.691 + testStep = new CTestZlib(aStepName);
1.692 + }
1.693 + else if(aStepName == KtestGzrewindfail)
1.694 + {
1.695 + testStep = new CTestZlib(aStepName);
1.696 + }
1.697 + else if(aStepName == KtestGzdopen)
1.698 + {
1.699 + testStep = new CTestZlib(aStepName);
1.700 + }
1.701 + else if(aStepName == KtestGzdopen_fail)
1.702 + {
1.703 + testStep = new CTestZlib(aStepName);
1.704 + }
1.705 + else if(aStepName == KtestGzdopen_fail2)
1.706 + {
1.707 + testStep = new CTestZlib(aStepName);
1.708 + }
1.709 + else if(aStepName == KtestInflateSync)
1.710 + {
1.711 + testStep = new CTestZlib(aStepName);
1.712 + }
1.713 + else if(aStepName == KtestinflateSyncfail)
1.714 + {
1.715 + testStep = new CTestZlib(aStepName);
1.716 + }
1.717 + else if(aStepName == KtestInflateSyncPoint)
1.718 + {
1.719 + testStep = new CTestZlib(aStepName);
1.720 + }
1.721 + else if(aStepName == KtestInflateSyncPoint_null)
1.722 + {
1.723 + testStep = new CTestZlib(aStepName);
1.724 + }
1.725 + else if(aStepName == KtestZerror)
1.726 + {
1.727 + testStep = new CTestZlib(aStepName);
1.728 + }
1.729 + else if(aStepName == KtestZerror1)
1.730 + {
1.731 + testStep = new CTestZlib(aStepName);
1.732 + }
1.733 + else if(aStepName == KtestZerror2)
1.734 + {
1.735 + testStep = new CTestZlib(aStepName);
1.736 + }
1.737 +
1.738 +
1.739 + else if(aStepName == KTestDeflateTest01)
1.740 + {
1.741 + testStep = new CTestZlib(aStepName);
1.742 + }
1.743 + else if(aStepName == KTestDeflatecopyDestNull)
1.744 + {
1.745 + testStep = new CTestZlib(aStepName);
1.746 + }
1.747 + else if(aStepName == KTestDeflateCopyStreamStateNull)
1.748 + {
1.749 + testStep = new CTestZlib(aStepName);
1.750 + }
1.751 + else if(aStepName == KTestDeflateInit2_WindowBits)
1.752 + {
1.753 + testStep = new CTestZlib(aStepName);
1.754 + }
1.755 + else if(aStepName == KTestDeflateInit2_StreamSize)
1.756 + {
1.757 + testStep = new CTestZlib(aStepName);
1.758 + }
1.759 + else if(aStepName == KTestDeflateInit2_MemLevel)
1.760 + {
1.761 + testStep = new CTestZlib(aStepName);
1.762 + }
1.763 + else if(aStepName == KTestDeflateInit2_Level)
1.764 + {
1.765 + testStep = new CTestZlib(aStepName);
1.766 + }
1.767 + else if(aStepName == KTestDeflateInit2_Strategy)
1.768 + {
1.769 + testStep = new CTestZlib(aStepName);
1.770 + }
1.771 + else if(aStepName == KTestDeflateInit2_Version)
1.772 + {
1.773 + testStep = new CTestZlib(aStepName);
1.774 + }
1.775 + else if(aStepName == KTestDeflateInit2_VersionNull)
1.776 + {
1.777 + testStep = new CTestZlib(aStepName);
1.778 + }
1.779 + else if(aStepName == KTestDeflateInit2_StreamNull)
1.780 + {
1.781 + testStep = new CTestZlib(aStepName);
1.782 + }
1.783 + else if(aStepName == KTestInflateInit2_Version)
1.784 + {
1.785 + testStep = new CTestZlib(aStepName);
1.786 + }
1.787 + else if(aStepName == KTestInflateInit2_VersionNull)
1.788 + {
1.789 + testStep = new CTestZlib(aStepName);
1.790 + }
1.791 + else if(aStepName == KTestInflateInit2_WindowBits)
1.792 + {
1.793 + testStep = new CTestZlib(aStepName);
1.794 + }
1.795 + else if(aStepName == KTestInflateInit2_StreamNull)
1.796 + {
1.797 + testStep = new CTestZlib(aStepName);
1.798 + }
1.799 + else if(aStepName == KTestDeflate_HuffmanStrategy)
1.800 + {
1.801 + testStep = new CTestZlib(aStepName);
1.802 + }
1.803 + else if(aStepName == KTestDeflate_AvailInZero)
1.804 + {
1.805 + testStep = new CTestZlib(aStepName);
1.806 + }
1.807 + else if(aStepName == KTestGzsetparamDefaultCompression)
1.808 + {
1.809 + testStep = new CTestZlib(aStepName);
1.810 + }
1.811 + else if(aStepName == KTestDeflateResetNullStream)
1.812 + {
1.813 + testStep = new CTestZlib(aStepName);
1.814 + }
1.815 + else if(aStepName == KTestDeflateResetStreamStateNull)
1.816 + {
1.817 + testStep = new CTestZlib(aStepName);
1.818 + }
1.819 + else if(aStepName == KTestDeflate_Scenarios)
1.820 + {
1.821 + testStep = new CTestZlib(aStepName);
1.822 + }
1.823 + else if(aStepName == KTestDeflate_NullStream)
1.824 + {
1.825 + testStep = new CTestZlib(aStepName);
1.826 + }
1.827 + else if(aStepName == KTestDeflate_StreamStateNull)
1.828 + {
1.829 + testStep = new CTestZlib(aStepName);
1.830 + }
1.831 + else if(aStepName == KTestDeflateEndNull)
1.832 + {
1.833 + testStep = new CTestZlib(aStepName);
1.834 + }
1.835 + else if(aStepName == KTestDeflateEndStreamStateNull)
1.836 + {
1.837 + testStep = new CTestZlib(aStepName);
1.838 + }
1.839 + else if(aStepName == KTestDeflate_WindowBits)
1.840 + {
1.841 + testStep = new CTestZlib(aStepName);
1.842 + }
1.843 + else if(aStepName == KTestDeflateBoundStreamNotNull)
1.844 + {
1.845 + testStep = new CTestZlib(aStepName);
1.846 + }
1.847 + else if(aStepName == KTestDeflateBoundStreamNull)
1.848 + {
1.849 + testStep = new CTestZlib(aStepName);
1.850 + }
1.851 + else if(aStepName == KTestDeflateBoundStreamStateNull)
1.852 + {
1.853 + testStep = new CTestZlib(aStepName);
1.854 + }
1.855 + else if(aStepName == KTestDeflateSetDictionaryWrap)
1.856 + {
1.857 + testStep = new CTestZlib(aStepName);
1.858 + }
1.859 + else if(aStepName == KTestDeflateSetDictionaryLen)
1.860 + {
1.861 + testStep = new CTestZlib(aStepName);
1.862 + }
1.863 + else if(aStepName == KTestDeflateParamsStreamStateNull)
1.864 + {
1.865 + testStep = new CTestZlib(aStepName);
1.866 + }
1.867 + else if(aStepName == KTestInflateSyncAvailInNull)
1.868 + {
1.869 + testStep = new CTestZlib(aStepName);
1.870 + }
1.871 + else if(aStepName == KTestInflateSyncStreamNull)
1.872 + {
1.873 + testStep = new CTestZlib(aStepName);
1.874 + }
1.875 + else if(aStepName == KTestInflateSyncStreamStateNull)
1.876 + {
1.877 + testStep = new CTestZlib(aStepName);
1.878 + }
1.879 + else if(aStepName == KTestAdlerScenarios)
1.880 + {
1.881 + testStep = new CTestZlib(aStepName);
1.882 + }
1.883 + else if(aStepName == KTestGzsetparamsFileNull)
1.884 + {
1.885 + testStep = new CTestZlib(aStepName);
1.886 + }
1.887 + else if(aStepName == KTestDeflateTest01)
1.888 + {
1.889 + testStep = new CTestZlib(aStepName);
1.890 + }
1.891 + else if(aStepName == KTestDeflatecopyDestNull)
1.892 + {
1.893 + testStep = new CTestZlib(aStepName);
1.894 + }
1.895 + else if(aStepName == KTestDeflateCopyStreamStateNull)
1.896 + {
1.897 + testStep = new CTestZlib(aStepName);
1.898 + }
1.899 + else if(aStepName == KTestDeflateInit2_WindowBits)
1.900 + {
1.901 + testStep = new CTestZlib(aStepName);
1.902 + }
1.903 + else if(aStepName == KTestDeflateInit2_StreamSize)
1.904 + {
1.905 + testStep = new CTestZlib(aStepName);
1.906 + }
1.907 + else if(aStepName == KTestDeflateInit2_MemLevel)
1.908 + {
1.909 + testStep = new CTestZlib(aStepName);
1.910 + }
1.911 + else if(aStepName == KTestDeflateInit2_Level)
1.912 + {
1.913 + testStep = new CTestZlib(aStepName);
1.914 + }
1.915 + else if(aStepName == KTestDeflateInit2_Strategy)
1.916 + {
1.917 + testStep = new CTestZlib(aStepName);
1.918 + }
1.919 + else if(aStepName == KTestDeflateInit2_Version)
1.920 + {
1.921 + testStep = new CTestZlib(aStepName);
1.922 + }
1.923 + else if(aStepName == KTestDeflateInit2_VersionNull)
1.924 + {
1.925 + testStep = new CTestZlib(aStepName);
1.926 + }
1.927 + else if(aStepName == KTestDeflateInit2_StreamNull)
1.928 + {
1.929 + testStep = new CTestZlib(aStepName);
1.930 + }
1.931 + else if(aStepName == KTestInflateInit2_Version)
1.932 + {
1.933 + testStep = new CTestZlib(aStepName);
1.934 + }
1.935 + else if(aStepName == KTestInflateInit2_VersionNull)
1.936 + {
1.937 + testStep = new CTestZlib(aStepName);
1.938 + }
1.939 + else if(aStepName == KTestInflateInit2_WindowBits)
1.940 + {
1.941 + testStep = new CTestZlib(aStepName);
1.942 + }
1.943 + else if(aStepName == KTestInflateInit2_StreamNull)
1.944 + {
1.945 + testStep = new CTestZlib(aStepName);
1.946 + }
1.947 + else if(aStepName == KTestDeflate_HuffmanStrategy)
1.948 + {
1.949 + testStep = new CTestZlib(aStepName);
1.950 + }
1.951 + else if(aStepName == KTestDeflate_AvailInZero)
1.952 + {
1.953 + testStep = new CTestZlib(aStepName);
1.954 + }
1.955 + else if(aStepName == KTestGzsetparamDefaultCompression)
1.956 + {
1.957 + testStep = new CTestZlib(aStepName);
1.958 + }
1.959 + else if(aStepName == KTestDeflateResetNullStream)
1.960 + {
1.961 + testStep = new CTestZlib(aStepName);
1.962 + }
1.963 + else if(aStepName == KTestDeflateResetStreamStateNull)
1.964 + {
1.965 + testStep = new CTestZlib(aStepName);
1.966 + }
1.967 + else if(aStepName == KTestDeflate_Scenarios)
1.968 + {
1.969 + testStep = new CTestZlib(aStepName);
1.970 + }
1.971 + else if(aStepName == KTestDeflate_NullStream)
1.972 + {
1.973 + testStep = new CTestZlib(aStepName);
1.974 + }
1.975 + else if(aStepName == KTestDeflate_StreamStateNull)
1.976 + {
1.977 + testStep = new CTestZlib(aStepName);
1.978 + }
1.979 + else if(aStepName == KTestDeflateEndNull)
1.980 + {
1.981 + testStep = new CTestZlib(aStepName);
1.982 + }
1.983 + else if(aStepName == KTestDeflateEndStreamStateNull)
1.984 + {
1.985 + testStep = new CTestZlib(aStepName);
1.986 + }
1.987 + else if(aStepName == KTestDeflate_WindowBits)
1.988 + {
1.989 + testStep = new CTestZlib(aStepName);
1.990 + }
1.991 + else if(aStepName == KTestDeflateBoundStreamNotNull)
1.992 + {
1.993 + testStep = new CTestZlib(aStepName);
1.994 + }
1.995 + else if(aStepName == KTestDeflateBoundStreamNull)
1.996 + {
1.997 + testStep = new CTestZlib(aStepName);
1.998 + }
1.999 + else if(aStepName == KTestDeflateBoundStreamStateNull)
1.1000 + {
1.1001 + testStep = new CTestZlib(aStepName);
1.1002 + }
1.1003 + else if(aStepName == KTestDeflateSetDictionaryWrap)
1.1004 + {
1.1005 + testStep = new CTestZlib(aStepName);
1.1006 + }
1.1007 + else if(aStepName == KTestDeflateSetDictionaryLen)
1.1008 + {
1.1009 + testStep = new CTestZlib(aStepName);
1.1010 + }
1.1011 + else if(aStepName == KTestInflateSetDictionaryBadMode)
1.1012 + {
1.1013 + testStep = new CTestZlib(aStepName);
1.1014 + }
1.1015 + else if(aStepName == KTestInflateSetDictionaryStreamStateNull)
1.1016 + {
1.1017 + testStep = new CTestZlib(aStepName);
1.1018 + }
1.1019 + else if(aStepName == KTestDeflateParamsStreamStateNull)
1.1020 + {
1.1021 + testStep = new CTestZlib(aStepName);
1.1022 + }
1.1023 + else if(aStepName == KTestInflateSyncAvailInNull)
1.1024 + {
1.1025 + testStep = new CTestZlib(aStepName);
1.1026 + }
1.1027 + else if(aStepName == KTestInflateSyncStreamNull)
1.1028 + {
1.1029 + testStep = new CTestZlib(aStepName);
1.1030 + }
1.1031 + else if(aStepName == KTestInflateSyncStreamStateNull)
1.1032 + {
1.1033 + testStep = new CTestZlib(aStepName);
1.1034 + }
1.1035 + else if(aStepName == KTestInflateSyncPointStreamStateNull)
1.1036 + {
1.1037 + testStep = new CTestZlib(aStepName);
1.1038 + }
1.1039 + else if(aStepName == KTestAdlerScenarios)
1.1040 + {
1.1041 + testStep = new CTestZlib(aStepName);
1.1042 + }
1.1043 + else if(aStepName == KTestGzsetparamsFileNull)
1.1044 + {
1.1045 + testStep = new CTestZlib(aStepName);
1.1046 + }
1.1047 + else if(aStepName == KTestGzopenWrite)
1.1048 + {
1.1049 + testStep = new CTestZlib(aStepName);
1.1050 + }
1.1051 + else if(aStepName == KTestGzreadLargeFile)
1.1052 + {
1.1053 + testStep = new CTestZlib(aStepName);
1.1054 + }
1.1055 + else if(aStepName == KTestGzopenWriteNoPath)
1.1056 + {
1.1057 + testStep = new CTestZlib(aStepName);
1.1058 + }
1.1059 + else if(aStepName == KTestGzreadLenZero)
1.1060 + {
1.1061 + testStep = new CTestZlib(aStepName);
1.1062 + }
1.1063 + else if(aStepName == KTestGzreadBufZero)
1.1064 + {
1.1065 + testStep = new CTestZlib(aStepName);
1.1066 + }
1.1067 + else if(aStepName == KTestGzreadNonGzFile)
1.1068 + {
1.1069 + testStep = new CTestZlib(aStepName);
1.1070 + }
1.1071 + else if(aStepName == KTestGzrewindNonGzFile)
1.1072 + {
1.1073 + testStep = new CTestZlib(aStepName);
1.1074 + }
1.1075 + else if(aStepName == KTestGzrewindFileNull)
1.1076 + {
1.1077 + testStep = new CTestZlib(aStepName);
1.1078 + }
1.1079 + else if(aStepName == KTestGzflushWithZFinish)
1.1080 + {
1.1081 + testStep = new CTestZlib(aStepName);
1.1082 + }
1.1083 + else if(aStepName == KTestUncompressLenSmall)
1.1084 + {
1.1085 + testStep = new CTestZlib(aStepName);
1.1086 + }
1.1087 + else if(aStepName == KTestUncompressBufNull)
1.1088 + {
1.1089 + testStep = new CTestZlib(aStepName);
1.1090 + }
1.1091 + else if(aStepName == KTestUncompressLenNull)
1.1092 + {
1.1093 + testStep = new CTestZlib(aStepName);
1.1094 + }
1.1095 + else if(aStepName == KTestInflateScenarios)
1.1096 + {
1.1097 + testStep = new CTestZlib(aStepName);
1.1098 + }
1.1099 + else if(aStepName == KTestInflateStreamStateNull)
1.1100 + {
1.1101 + testStep = new CTestZlib(aStepName);
1.1102 + }
1.1103 + else if(aStepName == KTestInflateResetStreamStateNull)
1.1104 + {
1.1105 + testStep = new CTestZlib(aStepName);
1.1106 + }
1.1107 + else if(aStepName == KTestDeflateTuneL)
1.1108 + {
1.1109 + testStep = new CTestZlib(aStepName);
1.1110 + }
1.1111 + else if(aStepName == KTestDeflateTuneFailL)
1.1112 + {
1.1113 + testStep = new CTestZlib(aStepName);
1.1114 + }
1.1115 + else if(aStepName == KTestDefInfGZipDefaultHeaderIgnoreL)
1.1116 + {
1.1117 + testStep = new CTestZlib(aStepName);
1.1118 + }
1.1119 + else if(aStepName == KTestDefInfGZipDefaultHeaderAutoL)
1.1120 + {
1.1121 + testStep = new CTestZlib(aStepName);
1.1122 + }
1.1123 + else if(aStepName == KTestDefInfGZipSpecifiedHeaderManualL)
1.1124 + {
1.1125 + testStep = new CTestZlib(aStepName);
1.1126 + }
1.1127 + else if(aStepName == KTestDefInfGZipSpecifiedHeaderAutoL)
1.1128 + {
1.1129 + testStep = new CTestZlib(aStepName);
1.1130 + }
1.1131 + else if(aStepName == KTestDefInfZlibHeaderAutoL)
1.1132 + {
1.1133 + testStep = new CTestZlib(aStepName);
1.1134 + }
1.1135 + else if(aStepName == KTestDeflateSetHeaderFailsL)
1.1136 + {
1.1137 + testStep = new CTestZlib(aStepName);
1.1138 + }
1.1139 + else if(aStepName == KTestInflateGetHeaderFailsL)
1.1140 + {
1.1141 + testStep = new CTestZlib(aStepName);
1.1142 + }
1.1143 + else if(aStepName == KTestDefInfRawL)
1.1144 + {
1.1145 + testStep = new CTestZlib(aStepName);
1.1146 + }
1.1147 + else if(aStepName == KTestDefRawFailsL)
1.1148 + {
1.1149 + testStep = new CTestZlib(aStepName);
1.1150 + }
1.1151 + else if(aStepName == KTestDefInfRawFailsL)
1.1152 + {
1.1153 + testStep = new CTestZlib(aStepName);
1.1154 + }
1.1155 + else if(aStepName == KTestDeflatePrimeL)
1.1156 + {
1.1157 + testStep = new CTestZlib(aStepName);
1.1158 + }
1.1159 + else if(aStepName == KTestDeflatePrimeFailsL)
1.1160 + {
1.1161 + testStep = new CTestZlib(aStepName);
1.1162 + }
1.1163 + else if(aStepName == KTestInflatePrimeFailsL)
1.1164 + {
1.1165 + testStep = new CTestZlib(aStepName);
1.1166 + }
1.1167 + else if(aStepName == KTestInflateCopyL)
1.1168 + {
1.1169 + testStep = new CTestZlib(aStepName);
1.1170 + }
1.1171 + else if(aStepName == KTestInflateCopyFailsParamsL)
1.1172 + {
1.1173 + testStep = new CTestZlib(aStepName);
1.1174 + }
1.1175 + else if(aStepName == KTestInflateCopyFailsMemL)
1.1176 + {
1.1177 + testStep = new CTestZlib(aStepName);
1.1178 + }
1.1179 + else if(aStepName == KTestInflateBackL)
1.1180 + {
1.1181 + testStep = new CTestZlib(aStepName);
1.1182 + }
1.1183 + else if(aStepName == KTestInflateBackEndFailsL)
1.1184 + {
1.1185 + testStep = new CTestZlib(aStepName);
1.1186 + }
1.1187 + else if(aStepName == KTestInflateBackFailsL)
1.1188 + {
1.1189 + testStep = new CTestZlib(aStepName);
1.1190 + }
1.1191 + else if(aStepName == KTestInflateBackInitFailsParamsL)
1.1192 + {
1.1193 + testStep = new CTestZlib(aStepName);
1.1194 + }
1.1195 + else if(aStepName == KTestInflateBackInitFailsMem)
1.1196 + {
1.1197 + testStep = new CTestZlib(aStepName);
1.1198 + }
1.1199 + else if(aStepName == KTestAdler32CombineL)
1.1200 + {
1.1201 + testStep = new CTestZlib(aStepName);
1.1202 + }
1.1203 + else if(aStepName == KTestCrc32CombineL)
1.1204 + {
1.1205 + testStep = new CTestZlib(aStepName);
1.1206 + }
1.1207 + else if(aStepName == KTestZlibCompileFlagsL)
1.1208 + {
1.1209 + testStep = new CTestZlib(aStepName);
1.1210 + }
1.1211 +
1.1212 + return testStep;
1.1213 + }
1.1214 +