os/ossrv/lowlevellibsandfws/apputils/tsrc/t_strings/StringPoolTransitions.inl
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/lowlevellibsandfws/apputils/tsrc/t_strings/StringPoolTransitions.inl	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,1760 @@
     1.4 +// Copyright (c) 1997-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 +// The implementation of the transition classes upon the RStringPool class methods.
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#include "short.h"
    1.22 +#include "long.h"
    1.23 +#include "irrelevant.h"
    1.24 +#include "shortcs.h"
    1.25 +#include "longcs.h"
    1.26 +#include "irrelevantcs.h"
    1.27 +#include "short2.h"
    1.28 +#include "short3.h"
    1.29 +#include "short4.h"
    1.30 +#include "shortcs2.h"
    1.31 +#include "shortcs3.h"
    1.32 +#include "shortcs4.h"
    1.33 +#include "securitypolicypluginstrings.h"
    1.34 +
    1.35 +// ______________________________________________________________________________
    1.36 +//
    1.37 +_LIT(KStringPoolNewLTransition,"CStringPool_NewL_Transition");
    1.38 +
    1.39 +inline CStringPool_NewL_Transition::CStringPool_NewL_Transition(CUnitTestContext& aUTContext,
    1.40 +													TTransitionValidator& aValidator)
    1.41 +: CTransitionType(KStringPoolNewLTransition, aUTContext, aValidator)
    1.42 +	{
    1.43 +	// Do nothing here.
    1.44 +	}
    1.45 +
    1.46 +inline void CStringPool_NewL_Transition::TransitMethodL()
    1.47 +	{
    1.48 +	_LIT(KStringPoolNewLTransitMethod, "CStringPool::NewL transition");
    1.49 +	Context().DataLogger().LogInformation(KStringPoolNewLTransitMethod);
    1.50 +	Context().iStringPool.OpenL();
    1.51 +	RStringPool p = Context().iStringPool;
    1.52 +	
    1.53 +	_LIT8(KStringA, "String");
    1.54 +	_LIT8(KStringB, "Another String");
    1.55 +	_LIT8(KStringD, "String");
    1.56 +
    1.57 +	_LIT8(KStringFA, "String");
    1.58 +	_LIT8(KStringFB, "Another String");
    1.59 +	_LIT8(KStringFD, "sTRING");
    1.60 +
    1.61 +	Context().iA = p.OpenStringL(KStringA());
    1.62 +	Context().iB = p.OpenStringL(KStringB());
    1.63 +	Context().iD = p.OpenStringL(KStringD());
    1.64 +
    1.65 +	Context().iFA = p.OpenFStringL(KStringFA());
    1.66 +	Context().iFB = p.OpenFStringL(KStringFB());
    1.67 +	Context().iFD = p.OpenFStringL(KStringFD());
    1.68 +
    1.69 +	Context().iADes.Set(KStringA);
    1.70 +	Context().iBDes.Set(KStringB);
    1.71 +	Context().iDDes.Set(KStringD);
    1.72 +
    1.73 +	Context().iFADes.Set(KStringFA);
    1.74 +	Context().iFBDes.Set(KStringFB);
    1.75 +	Context().iFDDes.Set(KStringFD);
    1.76 +
    1.77 +	Context().iInt = -1;
    1.78 +	Context().iFint = -1;
    1.79 +	}
    1.80 +
    1.81 +inline CStringPool_UnitTestContext& CStringPool_NewL_Transition::Context() const
    1.82 +	{
    1.83 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
    1.84 +	}
    1.85 +
    1.86 +// ______________________________________________________________________________
    1.87 +//
    1.88 +_LIT(KStringPoolDtorTransition,"CStringPool_Dtor_Transition");
    1.89 +
    1.90 +inline CStringPool_Dtor_Transition::CStringPool_Dtor_Transition(CUnitTestContext& aUTContext,
    1.91 +													TTransitionValidator& aValidator)
    1.92 +: CTransitionType(KStringPoolDtorTransition, aUTContext, aValidator)
    1.93 +	{
    1.94 +	// Do nothing here.
    1.95 +	}
    1.96 +
    1.97 +inline void CStringPool_Dtor_Transition::TransitMethodL()
    1.98 +	{
    1.99 +	_LIT(KStringPoolDtorTransitMethod, "CStringPool::Dtor transition");
   1.100 +	Context().DataLogger().LogInformation(KStringPoolDtorTransitMethod);
   1.101 +
   1.102 +	Context().iA.Close();
   1.103 +	Context().iB.Close();
   1.104 +	Context().iD.Close();
   1.105 +
   1.106 +	Context().iFA.Close();
   1.107 +	Context().iFB.Close();
   1.108 +	Context().iFD.Close();
   1.109 +
   1.110 +	Context().iStringPool.Close();
   1.111 +
   1.112 +	
   1.113 +
   1.114 +	}
   1.115 +
   1.116 +inline CStringPool_UnitTestContext& CStringPool_Dtor_Transition::Context() const
   1.117 +	{
   1.118 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.119 +	}
   1.120 +
   1.121 +// Add additional Transition class Implementations here...
   1.122 +
   1.123 +// ______________________________________________________________________________
   1.124 +//
   1.125 +_LIT(KRStringPoolAeqATransition,"CRStringPool_AeqA_Transition");
   1.126 +
   1.127 +inline CStringPool_AeqA_Transition::CStringPool_AeqA_Transition(CUnitTestContext& aUTContext,
   1.128 +													TTransitionValidator& aValidator)
   1.129 +: CTransitionType(KRStringPoolAeqATransition, aUTContext, aValidator)
   1.130 +	{
   1.131 +	// Do nothing here.
   1.132 +	}
   1.133 +
   1.134 +inline void CStringPool_AeqA_Transition::TransitMethodL()
   1.135 +	{
   1.136 +	_LIT(KRStringPoolAeqATransitMethod, "CRStringPool::AeqA transition");
   1.137 +	Context().DataLogger().LogInformation(KRStringPoolAeqATransitMethod);
   1.138 +	RString temp = Context().iA;
   1.139 +	Context().iResult = Context().iA == temp;;
   1.140 +	}
   1.141 +
   1.142 +inline CStringPool_UnitTestContext& CStringPool_AeqA_Transition::Context() const
   1.143 +	{
   1.144 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.145 +	}
   1.146 +
   1.147 +// ______________________________________________________________________________
   1.148 +//
   1.149 +_LIT(KStringPoolAneATransition,"CStringPool_AneA_Transition");
   1.150 +
   1.151 +inline CStringPool_AneA_Transition::CStringPool_AneA_Transition(CUnitTestContext& aUTContext,
   1.152 +													TTransitionValidator& aValidator)
   1.153 +: CTransitionType(KStringPoolAneATransition, aUTContext, aValidator)
   1.154 +	{
   1.155 +	// Do nothing here.
   1.156 +	}
   1.157 +
   1.158 +inline void CStringPool_AneA_Transition::TransitMethodL()
   1.159 +	{
   1.160 +	_LIT(KStringPoolAneATransitMethod, "CStringPool::AneA transition");
   1.161 +	Context().DataLogger().LogInformation(KStringPoolAneATransitMethod);
   1.162 +	RString temp = Context().iA;
   1.163 +	Context().iResult = Context().iA != temp;;
   1.164 +	}
   1.165 +
   1.166 +inline CStringPool_UnitTestContext& CStringPool_AneA_Transition::Context() const
   1.167 +	{
   1.168 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.169 +	}
   1.170 +
   1.171 +// ______________________________________________________________________________
   1.172 +//
   1.173 +_LIT(KStringPoolAeqBTransition,"CStringPool_AeqB_Transition");
   1.174 +
   1.175 +inline CStringPool_AeqB_Transition::CStringPool_AeqB_Transition(CUnitTestContext& aUTContext,
   1.176 +													TTransitionValidator& aValidator)
   1.177 +: CTransitionType(KStringPoolAeqBTransition, aUTContext, aValidator)
   1.178 +	{
   1.179 +	// Do nothing here.
   1.180 +	}
   1.181 +
   1.182 +inline void CStringPool_AeqB_Transition::TransitMethodL()
   1.183 +	{
   1.184 +	_LIT(KStringPoolAeqBTransitMethod, "CStringPool::AeqB transition");
   1.185 +	Context().DataLogger().LogInformation(KStringPoolAeqBTransitMethod);
   1.186 +	Context().iResult = Context().iA == Context().iB;
   1.187 +	}
   1.188 +
   1.189 +inline CStringPool_UnitTestContext& CStringPool_AeqB_Transition::Context() const
   1.190 +	{
   1.191 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.192 +	}
   1.193 +
   1.194 +// ______________________________________________________________________________
   1.195 +//
   1.196 +_LIT(KStringPoolAneBTransition,"CStringPool_AneB_Transition");
   1.197 +
   1.198 +inline CStringPool_AneB_Transition::CStringPool_AneB_Transition(CUnitTestContext& aUTContext,
   1.199 +													TTransitionValidator& aValidator)
   1.200 +: CTransitionType(KStringPoolAneBTransition, aUTContext, aValidator)
   1.201 +	{
   1.202 +	// Do nothing here.
   1.203 +	}
   1.204 +
   1.205 +inline void CStringPool_AneB_Transition::TransitMethodL()
   1.206 +	{
   1.207 +	_LIT(KStringPoolAneBTransitMethod, "CStringPool::AneB transition");
   1.208 +	Context().DataLogger().LogInformation(KStringPoolAneBTransitMethod);
   1.209 +	Context().iResult = Context().iA != Context().iB;
   1.210 +	}
   1.211 +
   1.212 +inline CStringPool_UnitTestContext& CStringPool_AneB_Transition::Context() const
   1.213 +	{
   1.214 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.215 +	}
   1.216 +
   1.217 +// ______________________________________________________________________________
   1.218 +//
   1.219 +_LIT(KStringPoolAeqDTransition,"CStringPool_AeqD_Transition");
   1.220 +
   1.221 +inline CStringPool_AeqD_Transition::CStringPool_AeqD_Transition(CUnitTestContext& aUTContext,
   1.222 +													TTransitionValidator& aValidator)
   1.223 +: CTransitionType(KStringPoolAeqDTransition, aUTContext, aValidator)
   1.224 +	{
   1.225 +	// Do nothing here.
   1.226 +	}
   1.227 +
   1.228 +inline void CStringPool_AeqD_Transition::TransitMethodL()
   1.229 +	{
   1.230 +	_LIT(KStringPoolAeqDTransitMethod, "CStringPool::AeqD transition");
   1.231 +	Context().DataLogger().LogInformation(KStringPoolAeqDTransitMethod);
   1.232 +	Context().iResult = Context().iA == Context().iD;
   1.233 +	}
   1.234 +
   1.235 +inline CStringPool_UnitTestContext& CStringPool_AeqD_Transition::Context() const
   1.236 +	{
   1.237 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.238 +	}
   1.239 +
   1.240 +// ______________________________________________________________________________
   1.241 +//
   1.242 +_LIT(KStringPoolAneDTransition,"CStringPool_AneD_Transition");
   1.243 +
   1.244 +inline CStringPool_AneD_Transition::CStringPool_AneD_Transition(CUnitTestContext& aUTContext,
   1.245 +													TTransitionValidator& aValidator)
   1.246 +: CTransitionType(KStringPoolAneDTransition, aUTContext, aValidator)
   1.247 +	{
   1.248 +	// Do nothing here.
   1.249 +	}
   1.250 +
   1.251 +inline void CStringPool_AneD_Transition::TransitMethodL()
   1.252 +	{
   1.253 +	_LIT(KStringPoolAneDTransitMethod, "CStringPool::AneD transition");
   1.254 +	Context().DataLogger().LogInformation(KStringPoolAneDTransitMethod);
   1.255 +	Context().iResult = Context().iA != Context().iD;
   1.256 +	}
   1.257 +
   1.258 +inline CStringPool_UnitTestContext& CStringPool_AneD_Transition::Context() const
   1.259 +	{
   1.260 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.261 +	}
   1.262 +
   1.263 +
   1.264 +// ______________________________________________________________________________
   1.265 +//
   1.266 +_LIT(KStringPoolDescTransition,"CStringPool_Desc_Transition");
   1.267 +
   1.268 +inline CStringPool_Desc_Transition::CStringPool_Desc_Transition(CUnitTestContext& aUTContext,
   1.269 +													TTransitionValidator& aValidator)
   1.270 +: CTransitionType(KStringPoolDescTransition, aUTContext, aValidator)
   1.271 +	{
   1.272 +	// Do nothing here.
   1.273 +	}
   1.274 +
   1.275 +inline void CStringPool_Desc_Transition::TransitMethodL()
   1.276 +	{
   1.277 +	_LIT(KStringPoolDescTransitMethod, "CStringPool::Desc transition");
   1.278 +	Context().DataLogger().LogInformation(KStringPoolDescTransitMethod);
   1.279 +	Context().iResult = Context().iADes.Compare(Context().iA.DesC());
   1.280 +	}
   1.281 +
   1.282 +inline CStringPool_UnitTestContext& CStringPool_Desc_Transition::Context() const
   1.283 +	{
   1.284 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.285 +	}
   1.286 +
   1.287 +// ______________________________________________________________________________
   1.288 +//
   1.289 +_LIT(KStringPoolCopyTransition,"CStringPool_Copy_Transition");
   1.290 +
   1.291 +inline CStringPool_Copy_Transition::CStringPool_Copy_Transition(CUnitTestContext& aUTContext,
   1.292 +													TTransitionValidator& aValidator)
   1.293 +: CTransitionType(KStringPoolCopyTransition, aUTContext, aValidator)
   1.294 +	{
   1.295 +	// Do nothing here.
   1.296 +	}
   1.297 +
   1.298 +inline void CStringPool_Copy_Transition::TransitMethodL()
   1.299 +	{
   1.300 +	_LIT(KStringPoolCopyTransitMethod, "CStringPool::Copy transition");
   1.301 +	Context().DataLogger().LogInformation(KStringPoolCopyTransitMethod);
   1.302 +	Context().iC = Context().iA.Copy();
   1.303 +	Context().iResult = Context().iA == Context().iC;
   1.304 +	}
   1.305 +
   1.306 +inline CStringPool_UnitTestContext& CStringPool_Copy_Transition::Context() const
   1.307 +	{
   1.308 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.309 +	}
   1.310 +
   1.311 +
   1.312 +// ______________________________________________________________________________
   1.313 +//
   1.314 +_LIT(KStringPoolCDesCTransition,"CStringPool_CDesC_Transition");
   1.315 +
   1.316 +inline CStringPool_CDesC_Transition::CStringPool_CDesC_Transition(CUnitTestContext& aUTContext,
   1.317 +													TTransitionValidator& aValidator)
   1.318 +: CTransitionType(KStringPoolCDesCTransition, aUTContext, aValidator)
   1.319 +	{
   1.320 +	// Do nothing here.
   1.321 +	}
   1.322 +
   1.323 +inline void CStringPool_CDesC_Transition::TransitMethodL()
   1.324 +	{
   1.325 +	_LIT(KStringPoolCDesCTransitMethod, "CStringPool::CDesC transition");
   1.326 +	Context().DataLogger().LogInformation(KStringPoolCDesCTransitMethod);
   1.327 +	Context().iResult = Context().iADes.Compare(Context().iC.DesC());
   1.328 +	}
   1.329 +
   1.330 +inline CStringPool_UnitTestContext& CStringPool_CDesC_Transition::Context() const
   1.331 +	{
   1.332 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.333 +	}
   1.334 +
   1.335 +// ______________________________________________________________________________
   1.336 +//
   1.337 +_LIT(KStringPoolCloseTransition,"CStringPool_Close_Transition");
   1.338 +
   1.339 +inline CStringPool_Close_Transition::CStringPool_Close_Transition(CUnitTestContext& aUTContext,
   1.340 +													TTransitionValidator& aValidator)
   1.341 +: CTransitionType(KStringPoolCloseTransition, aUTContext, aValidator)
   1.342 +	{
   1.343 +	// Do nothing here.
   1.344 +	}
   1.345 +
   1.346 +inline void CStringPool_Close_Transition::TransitMethodL()
   1.347 +	{
   1.348 +	_LIT(KStringPoolCloseTransitMethod, "CStringPool::Close transition");
   1.349 +	Context().DataLogger().LogInformation(KStringPoolCloseTransitMethod);
   1.350 +	Context().iC.Close();
   1.351 +	}
   1.352 +
   1.353 +inline CStringPool_UnitTestContext& CStringPool_Close_Transition::Context() const
   1.354 +	{
   1.355 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.356 +	}
   1.357 +
   1.358 +// ______________________________________________________________________________
   1.359 +//
   1.360 +_LIT(KStringPoolIntTransition,"CStringPool_Int_Transition");
   1.361 +
   1.362 +inline CStringPool_Int_Transition::CStringPool_Int_Transition(CUnitTestContext& aUTContext,
   1.363 +													TTransitionValidator& aValidator)
   1.364 +: CTransitionType(KStringPoolIntTransition, aUTContext, aValidator)
   1.365 +	{
   1.366 +	// Do nothing here.
   1.367 +	}
   1.368 +
   1.369 +inline void CStringPool_Int_Transition::TransitMethodL()
   1.370 +	{
   1.371 +	_LIT(KStringPoolIntTransitMethod, "aaCStringPool::Int transition");
   1.372 +	Context().DataLogger().LogInformation(KStringPoolIntTransitMethod);
   1.373 +	Context().iResult = Context().iTE.Index(Context().iTestTable) == Context().iInt;
   1.374 +	}
   1.375 +
   1.376 +inline CStringPool_UnitTestContext& CStringPool_Int_Transition::Context() const
   1.377 +	{
   1.378 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.379 +	}
   1.380 +// ______________________________________________________________________________
   1.381 +//
   1.382 +_LIT(KStringPoolStringTokenTransition,"CStringPool_StringToken_Transition");
   1.383 +
   1.384 +inline CStringPool_StringToken_Transition::CStringPool_StringToken_Transition(CUnitTestContext& aUTContext,
   1.385 +													TTransitionValidator& aValidator)
   1.386 +: CTransitionType(KStringPoolStringTokenTransition, aUTContext, aValidator)
   1.387 +	{
   1.388 +	// Do nothing here.
   1.389 +	}
   1.390 +
   1.391 +inline void CStringPool_StringToken_Transition::TransitMethodL()
   1.392 +	{
   1.393 +	_LIT(KStringPoolStringTokenTransitMethod, "CStringPool::StringToken transition");
   1.394 +	Context().DataLogger().LogInformation(KStringPoolStringTokenTransitMethod);
   1.395 +	RStringToken t = Context().iA;
   1.396 +	Context().iC = Context().iStringPool.String(t);
   1.397 +	Context().iResult = Context().iC == Context().iA;
   1.398 +	}
   1.399 +
   1.400 +inline CStringPool_UnitTestContext& CStringPool_StringToken_Transition::Context() const
   1.401 +	{
   1.402 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.403 +	}
   1.404 +
   1.405 +
   1.406 +
   1.407 +
   1.408 +
   1.409 +
   1.410 +
   1.411 +
   1.412 +
   1.413 +
   1.414 +
   1.415 +
   1.416 +
   1.417 +
   1.418 +
   1.419 +
   1.420 +
   1.421 +
   1.422 +
   1.423 +
   1.424 +
   1.425 +
   1.426 +
   1.427 +
   1.428 +
   1.429 +
   1.430 +
   1.431 +
   1.432 +
   1.433 +
   1.434 +
   1.435 +
   1.436 +
   1.437 +
   1.438 +
   1.439 +
   1.440 +
   1.441 +
   1.442 +
   1.443 +
   1.444 +
   1.445 +
   1.446 +
   1.447 +
   1.448 +
   1.449 +
   1.450 +
   1.451 +
   1.452 +
   1.453 +
   1.454 +
   1.455 +
   1.456 +
   1.457 +
   1.458 +
   1.459 +// ______________________________________________________________________________
   1.460 +//
   1.461 +_LIT(KRstringPoolFAeqATransition,"CRStringPool_AeqA_Transition");
   1.462 +
   1.463 +inline CStringPool_FAeqA_Transition::CStringPool_FAeqA_Transition(CUnitTestContext& aUTContext,
   1.464 +													TTransitionValidator& aValidator)
   1.465 +: CTransitionType(KRstringPoolFAeqATransition, aUTContext, aValidator)
   1.466 +	{
   1.467 +	// Do nothing here.
   1.468 +	}
   1.469 +
   1.470 +inline void CStringPool_FAeqA_Transition::TransitMethodL()
   1.471 +	{
   1.472 +	_LIT(KRstringPoolFAeqATransitMethod, "CRStringPool::AeqA transition");
   1.473 +	Context().DataLogger().LogInformation(KRstringPoolFAeqATransitMethod);
   1.474 +	RStringF temp = Context().iFA;
   1.475 +	Context().iResult = Context().iFA == temp;;
   1.476 +	}
   1.477 +
   1.478 +inline CStringPool_UnitTestContext& CStringPool_FAeqA_Transition::Context() const
   1.479 +	{
   1.480 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.481 +	}
   1.482 +
   1.483 +// ______________________________________________________________________________
   1.484 +//
   1.485 +_LIT(KStringPoolFAneATransition,"CStringPool_FAneA_Transition");
   1.486 +
   1.487 +inline CStringPool_FAneA_Transition::CStringPool_FAneA_Transition(CUnitTestContext& aUTContext,
   1.488 +													TTransitionValidator& aValidator)
   1.489 +: CTransitionType(KStringPoolFAneATransition, aUTContext, aValidator)
   1.490 +	{
   1.491 +	// Do nothing here.
   1.492 +	}
   1.493 +
   1.494 +inline void CStringPool_FAneA_Transition::TransitMethodL()
   1.495 +	{
   1.496 +	_LIT(KStringPoolFAneATransitMethod, "CStringPoolF::AneA transition");
   1.497 +	Context().DataLogger().LogInformation(KStringPoolFAneATransitMethod);
   1.498 +	RStringF temp = Context().iFA;
   1.499 +	Context().iResult = Context().iFA != temp;;
   1.500 +	}
   1.501 +
   1.502 +inline CStringPool_UnitTestContext& CStringPool_FAneA_Transition::Context() const
   1.503 +	{
   1.504 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.505 +	}
   1.506 +
   1.507 +// ______________________________________________________________________________
   1.508 +//
   1.509 +_LIT(KStringPoolFAeqBTransition,"CStringPool_FAeqB_Transition");
   1.510 +
   1.511 +inline CStringPool_FAeqB_Transition::CStringPool_FAeqB_Transition(CUnitTestContext& aUTContext,
   1.512 +													TTransitionValidator& aValidator)
   1.513 +: CTransitionType(KStringPoolFAeqBTransition, aUTContext, aValidator)
   1.514 +	{
   1.515 +	// Do nothing here.
   1.516 +	}
   1.517 +
   1.518 +inline void CStringPool_FAeqB_Transition::TransitMethodL()
   1.519 +	{
   1.520 +	_LIT(KStringPoolFAeqBTransitMethod, "CStringPoolF::AeqB transition");
   1.521 +	Context().DataLogger().LogInformation(KStringPoolFAeqBTransitMethod);
   1.522 +	Context().iResult = Context().iFA == Context().iFB;
   1.523 +	}
   1.524 +
   1.525 +inline CStringPool_UnitTestContext& CStringPool_FAeqB_Transition::Context() const
   1.526 +	{
   1.527 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.528 +	}
   1.529 +
   1.530 +// ______________________________________________________________________________
   1.531 +//
   1.532 +_LIT(KStringPoolFAneBTransition,"CStringPool_FAneB_Transition");
   1.533 +
   1.534 +inline CStringPool_FAneB_Transition::CStringPool_FAneB_Transition(CUnitTestContext& aUTContext,
   1.535 +													TTransitionValidator& aValidator)
   1.536 +: CTransitionType(KStringPoolFAneBTransition, aUTContext, aValidator)
   1.537 +	{
   1.538 +	// Do nothing here.
   1.539 +	}
   1.540 +
   1.541 +inline void CStringPool_FAneB_Transition::TransitMethodL()
   1.542 +	{
   1.543 +	_LIT(KStringPoolFAneBTransitMethod, "CStringPoolF::AneB transition");
   1.544 +	Context().DataLogger().LogInformation(KStringPoolFAneBTransitMethod);
   1.545 +	Context().iResult = Context().iFA != Context().iFB;
   1.546 +	}
   1.547 +
   1.548 +inline CStringPool_UnitTestContext& CStringPool_FAneB_Transition::Context() const
   1.549 +	{
   1.550 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.551 +	}
   1.552 +
   1.553 +// ______________________________________________________________________________
   1.554 +//
   1.555 +_LIT(KStringPoolFAeqDTransition,"CStringPool_FAeqD_Transition");
   1.556 +
   1.557 +inline CStringPool_FAeqD_Transition::CStringPool_FAeqD_Transition(CUnitTestContext& aUTContext,
   1.558 +													TTransitionValidator& aValidator)
   1.559 +: CTransitionType(KStringPoolFAeqDTransition, aUTContext, aValidator)
   1.560 +	{
   1.561 +	// Do nothing here.
   1.562 +	}
   1.563 +
   1.564 +inline void CStringPool_FAeqD_Transition::TransitMethodL()
   1.565 +	{
   1.566 +	_LIT(KStringPoolFAeqDTransitMethod, "CStringPoolF::AeqD transition");
   1.567 +	Context().DataLogger().LogInformation(KStringPoolFAeqDTransitMethod);
   1.568 +	Context().iResult = Context().iFA == Context().iFD;
   1.569 +	}
   1.570 +
   1.571 +inline CStringPool_UnitTestContext& CStringPool_FAeqD_Transition::Context() const
   1.572 +	{
   1.573 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.574 +	}
   1.575 +
   1.576 +// ______________________________________________________________________________
   1.577 +//
   1.578 +_LIT(KStringPoolFAneDTransition,"CStringPool_FAneD_Transition");
   1.579 +
   1.580 +inline CStringPool_FAneD_Transition::CStringPool_FAneD_Transition(CUnitTestContext& aUTContext,
   1.581 +													TTransitionValidator& aValidator)
   1.582 +: CTransitionType(KStringPoolFAneDTransition, aUTContext, aValidator)
   1.583 +	{
   1.584 +	// Do nothing here.
   1.585 +	}
   1.586 +
   1.587 +inline void CStringPool_FAneD_Transition::TransitMethodL()
   1.588 +	{
   1.589 +	_LIT(KStringPoolFAneDTransitMethod, "CStringPoolF::AneD transition");
   1.590 +	Context().DataLogger().LogInformation(KStringPoolFAneDTransitMethod);
   1.591 +	Context().iResult = Context().iFA != Context().iFD;
   1.592 +	}
   1.593 +
   1.594 +inline CStringPool_UnitTestContext& CStringPool_FAneD_Transition::Context() const
   1.595 +	{
   1.596 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.597 +	}
   1.598 +
   1.599 +
   1.600 +// ______________________________________________________________________________
   1.601 +//
   1.602 +_LIT(KStringPoolFDescTransition,"CStringPool_FDesc_Transition");
   1.603 +
   1.604 +inline CStringPool_FDesc_Transition::CStringPool_FDesc_Transition(CUnitTestContext& aUTContext,
   1.605 +													TTransitionValidator& aValidator)
   1.606 +: CTransitionType(KStringPoolFDescTransition, aUTContext, aValidator)
   1.607 +	{
   1.608 +	// Do nothing here.
   1.609 +	}
   1.610 +
   1.611 +inline void CStringPool_FDesc_Transition::TransitMethodL()
   1.612 +	{
   1.613 +	_LIT(KStringPoolFDescTransitMethod, "CStringPoolF::Desc transition");
   1.614 +	Context().DataLogger().LogInformation(KStringPoolFDescTransitMethod);
   1.615 +	Context().iResult = Context().iADes.Compare(Context().iFA.DesC());
   1.616 +	}
   1.617 +
   1.618 +inline CStringPool_UnitTestContext& CStringPool_FDesc_Transition::Context() const
   1.619 +	{
   1.620 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.621 +	}
   1.622 +
   1.623 +// ______________________________________________________________________________
   1.624 +//
   1.625 +_LIT(KStringPoolFCopyTransition,"CStringPool_FCopy_Transition");
   1.626 +
   1.627 +inline CStringPool_FCopy_Transition::CStringPool_FCopy_Transition(CUnitTestContext& aUTContext,
   1.628 +													TTransitionValidator& aValidator)
   1.629 +: CTransitionType(KStringPoolFCopyTransition, aUTContext, aValidator)
   1.630 +	{
   1.631 +	// Do nothing here.
   1.632 +	}
   1.633 +
   1.634 +inline void CStringPool_FCopy_Transition::TransitMethodL()
   1.635 +	{
   1.636 +	_LIT(KStringPoolFCopyTransitMethod, "CStringPoolF::Copy transition");
   1.637 +	Context().DataLogger().LogInformation(KStringPoolFCopyTransitMethod);
   1.638 +	Context().iFC = Context().iFA.Copy();
   1.639 +	Context().iResult = Context().iFA == Context().iFC;
   1.640 +	}
   1.641 +
   1.642 +inline CStringPool_UnitTestContext& CStringPool_FCopy_Transition::Context() const
   1.643 +	{
   1.644 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.645 +	}
   1.646 +
   1.647 +
   1.648 +// ______________________________________________________________________________
   1.649 +//
   1.650 +_LIT(KStringPoolFCDesCTransition,"CStringPool_FCDesC_Transition");
   1.651 +
   1.652 +inline CStringPool_FCDesC_Transition::CStringPool_FCDesC_Transition(CUnitTestContext& aUTContext,
   1.653 +													TTransitionValidator& aValidator)
   1.654 +: CTransitionType(KStringPoolFCDesCTransition, aUTContext, aValidator)
   1.655 +	{
   1.656 +	// Do nothing here.
   1.657 +	}
   1.658 +
   1.659 +inline void CStringPool_FCDesC_Transition::TransitMethodL()
   1.660 +	{
   1.661 +	_LIT(KStringPoolFCDesCTransitMethod, "CStringPoolF::CDesC transition");
   1.662 +	Context().DataLogger().LogInformation(KStringPoolFCDesCTransitMethod);
   1.663 +	Context().iResult = Context().iADes.Compare(Context().iFC.DesC());
   1.664 +	}
   1.665 +
   1.666 +inline CStringPool_UnitTestContext& CStringPool_FCDesC_Transition::Context() const
   1.667 +	{
   1.668 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.669 +	}
   1.670 +
   1.671 +// ______________________________________________________________________________
   1.672 +//
   1.673 +_LIT(KStringPoolFCloseTransition,"CStringPool_FClose_Transition");
   1.674 +
   1.675 +inline CStringPool_FClose_Transition::CStringPool_FClose_Transition(CUnitTestContext& aUTContext,
   1.676 +													TTransitionValidator& aValidator)
   1.677 +: CTransitionType(KStringPoolFCloseTransition, aUTContext, aValidator)
   1.678 +	{
   1.679 +	// Do nothing here.
   1.680 +	}
   1.681 +
   1.682 +inline void CStringPool_FClose_Transition::TransitMethodL()
   1.683 +	{
   1.684 +	_LIT(KStringPoolFCloseTransitMethod, "CStringPoolF::Close transition");
   1.685 +	Context().DataLogger().LogInformation(KStringPoolFCloseTransitMethod);
   1.686 +	Context().iFC.Close();
   1.687 +	}
   1.688 +
   1.689 +inline CStringPool_UnitTestContext& CStringPool_FClose_Transition::Context() const
   1.690 +	{
   1.691 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.692 +	}
   1.693 +
   1.694 +// ______________________________________________________________________________
   1.695 +//
   1.696 +_LIT(KStringPoolFIntTransition,"CStringPool_FInt_Transition");
   1.697 +
   1.698 +inline CStringPool_FInt_Transition::CStringPool_FInt_Transition(CUnitTestContext& aUTContext,
   1.699 +													TTransitionValidator& aValidator)
   1.700 +: CTransitionType(KStringPoolFIntTransition, aUTContext, aValidator)
   1.701 +	{
   1.702 +	// Do nothing here.
   1.703 +	}
   1.704 +
   1.705 +inline void CStringPool_FInt_Transition::TransitMethodL()
   1.706 +	{
   1.707 +	_LIT(KStringPoolFIntTransitMethod, "CStringPoolF::Int transition");
   1.708 +	Context().DataLogger().LogInformation(KStringPoolFIntTransitMethod);
   1.709 +	Context().iResult = Context().iTFE.Index(Context().iTestTable) == Context().iFint;
   1.710 +	}
   1.711 +
   1.712 +inline CStringPool_UnitTestContext& CStringPool_FInt_Transition::Context() const
   1.713 +	{
   1.714 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.715 +	}
   1.716 +// ______________________________________________________________________________
   1.717 +//
   1.718 +_LIT(KStringPoolFStringTokenTransition,"CStringPool_FStringToken_Transition");
   1.719 +
   1.720 +inline CStringPool_FStringToken_Transition::CStringPool_FStringToken_Transition(CUnitTestContext& aUTContext,
   1.721 +													TTransitionValidator& aValidator)
   1.722 +: CTransitionType(KStringPoolFStringTokenTransition, aUTContext, aValidator)
   1.723 +	{
   1.724 +	// Do nothing here.
   1.725 +	}
   1.726 +
   1.727 +inline void CStringPool_FStringToken_Transition::TransitMethodL()
   1.728 +	{
   1.729 +	_LIT(KStringPoolFStringTokenTransitMethod, "CStringPoolF::StringToken transition");
   1.730 +	Context().DataLogger().LogInformation(KStringPoolFStringTokenTransitMethod);
   1.731 +	RStringTokenF t = Context().iFA;
   1.732 +	Context().iFC = Context().iStringPool.StringF(t);
   1.733 +	Context().iResult = Context().iFC == Context().iFA;
   1.734 +	}
   1.735 +
   1.736 +inline CStringPool_UnitTestContext& CStringPool_FStringToken_Transition::Context() const
   1.737 +	{
   1.738 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.739 +	}
   1.740 +// ______________________________________________________________________________
   1.741 +//
   1.742 +_LIT(KStringPoolSmallCtorTransition,"CStringPool_ShortCtor_Transition");
   1.743 +
   1.744 +inline CStringPool_ShortCtor_Transition::CStringPool_ShortCtor_Transition(CUnitTestContext& aUTContext,
   1.745 +													TTransitionValidator& aValidator)
   1.746 +: CTransitionType(KStringPoolSmallCtorTransition, aUTContext, aValidator)
   1.747 +	{
   1.748 +	// Do nothing here.
   1.749 +	}
   1.750 +
   1.751 +inline void CStringPool_ShortCtor_Transition::TransitMethodL()
   1.752 +	{
   1.753 +	_LIT(KStringPoolSmallCtorTransitMethod, "CStringPool::SmallCtor transition");
   1.754 +	Context().DataLogger().LogInformation(KStringPoolSmallCtorTransitMethod);
   1.755 +
   1.756 +	//Set the table used in this test
   1.757 +	Context().iTestTable=Short::Table;
   1.758 +	Context().iStringPool.OpenL(Context().iTestTable);
   1.759 +	RStringPool p = Context().iStringPool;
   1.760 +	
   1.761 +	_LIT8(KStringA, "String");
   1.762 +	_LIT8(KStringB, "Another String");
   1.763 +	_LIT8(KStringD, "String");
   1.764 +
   1.765 +	_LIT8(KStringFA, "String");
   1.766 +	_LIT8(KStringFB, "Another String");
   1.767 +	_LIT8(KStringFD, "sTRING");
   1.768 +	
   1.769 +	
   1.770 +	Context().iA = p.OpenStringL(KStringA());
   1.771 +	CleanupClosePushL(Context().iA);
   1.772 +	Context().iB = p.OpenStringL(KStringB());
   1.773 +	CleanupClosePushL(Context().iB);
   1.774 +	Context().iD = p.OpenStringL(KStringD());
   1.775 +	CleanupClosePushL(Context().iD);
   1.776 +
   1.777 +	Context().iFA = p.OpenFStringL(KStringFA());
   1.778 +	CleanupClosePushL(Context().iFA);
   1.779 +	Context().iFB = p.OpenFStringL(KStringFB());
   1.780 +	CleanupClosePushL(Context().iFB);
   1.781 +	Context().iFD = p.OpenFStringL(KStringFD());
   1.782 +	CleanupClosePushL(Context().iFD);
   1.783 +
   1.784 +
   1.785 +//	Context().iTE = p.String(0,Context().iTestTable);
   1.786 +	Context().iTFE = p.StringF(0,Context().iTestTable);
   1.787 +
   1.788 +	// Create an empty string 
   1.789 +	Context().iEmptyOne = RStringF() ;
   1.790 +	
   1.791 +
   1.792 +	Context().iADes.Set(KStringA);
   1.793 +	Context().iBDes.Set(KStringB);
   1.794 +	Context().iDDes.Set(KStringD);
   1.795 +
   1.796 +	Context().iFADes.Set(KStringFA);
   1.797 +	Context().iFBDes.Set(KStringFB);
   1.798 +	Context().iFDDes.Set(KStringFD);
   1.799 +
   1.800 +	Context().iInt = 0;
   1.801 +	Context().iFint = 0;
   1.802 +	Context().iNotFound = -1;
   1.803 +	CleanupStack::Pop(6);
   1.804 +	}
   1.805 +
   1.806 +inline CStringPool_UnitTestContext& CStringPool_ShortCtor_Transition::Context() const
   1.807 +	{
   1.808 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.809 +	}
   1.810 +
   1.811 +// ______________________________________________________________________________
   1.812 +//
   1.813 +_LIT(KStringPoolIrrelevantCtorTransition,"CStringPool_IrrelevantCtor_Transition");
   1.814 +
   1.815 +inline CStringPool_IrrelevantCtor_Transition::CStringPool_IrrelevantCtor_Transition(CUnitTestContext& aUTContext,
   1.816 +													TTransitionValidator& aValidator)
   1.817 +: CTransition(KStringPoolIrrelevantCtorTransition, aUTContext, aValidator)
   1.818 +	{
   1.819 +	// Do nothing here.
   1.820 +	}
   1.821 +
   1.822 +inline void CStringPool_IrrelevantCtor_Transition::TransitMethodL()
   1.823 +	{
   1.824 +	_LIT(KStringPoolIrrelevantCtorTransitMethod, "CStringPool::IrrelevantCtor transition");
   1.825 +	Context().DataLogger().LogInformation(KStringPoolIrrelevantCtorTransitMethod);
   1.826 +
   1.827 +	//Set the table used in this test
   1.828 +	Context().iTestTable=Irrelevant::Table;
   1.829 +	Context().iStringPool.OpenL(Context().iTestTable);
   1.830 +	RStringPool p = Context().iStringPool;
   1.831 +	
   1.832 +	_LIT8(KStringA, "String");
   1.833 +	_LIT8(KStringB, "Another String");
   1.834 +	_LIT8(KStringD, "String");
   1.835 +
   1.836 +	_LIT8(KStringFA, "String");
   1.837 +	_LIT8(KStringFB, "Another String");
   1.838 +	_LIT8(KStringFD, "sTRING");
   1.839 +
   1.840 +	Context().iA = p.OpenStringL(KStringA());
   1.841 +	Context().iB = p.OpenStringL(KStringB());
   1.842 +	Context().iD = p.OpenStringL(KStringD());
   1.843 +
   1.844 +	Context().iFA = p.OpenFStringL(KStringFA());
   1.845 +	Context().iFB = p.OpenFStringL(KStringFB());
   1.846 +	Context().iFD = p.OpenFStringL(KStringFD());
   1.847 +
   1.848 +//	Context().iTE = p.String(0,Context().iTestTable);
   1.849 +	Context().iTFE = p.StringF(0,Context().iTestTable);
   1.850 +
   1.851 +	Context().iADes.Set(KStringA);
   1.852 +	Context().iBDes.Set(KStringB);
   1.853 +	Context().iDDes.Set(KStringD);
   1.854 +
   1.855 +	Context().iFADes.Set(KStringFA);
   1.856 +	Context().iFBDes.Set(KStringFB);
   1.857 +	Context().iFDDes.Set(KStringFD);
   1.858 +
   1.859 +
   1.860 +	Context().iFint = 0;
   1.861 +	}
   1.862 +
   1.863 +inline CStringPool_UnitTestContext& CStringPool_IrrelevantCtor_Transition::Context() const
   1.864 +	{
   1.865 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.866 +	}
   1.867 +
   1.868 +// ______________________________________________________________________________
   1.869 +//
   1.870 +_LIT(KStringPoolLongCtorTransition,"CStringPool_LongCtor_Transition");
   1.871 +
   1.872 +inline CStringPool_LongCtor_Transition::CStringPool_LongCtor_Transition(CUnitTestContext& aUTContext,
   1.873 +													TTransitionValidator& aValidator)
   1.874 +: CTransition(KStringPoolLongCtorTransition, aUTContext, aValidator)
   1.875 +	{
   1.876 +	// Do nothing here.
   1.877 +	}
   1.878 +
   1.879 +inline void CStringPool_LongCtor_Transition::TransitMethodL()
   1.880 +	{
   1.881 +	_LIT(KStringPoolLongCtorTransitMethod, "CStringPool::LongCtor transition");
   1.882 +	Context().DataLogger().LogInformation(KStringPoolLongCtorTransitMethod);
   1.883 +
   1.884 +	//Set the table used in this test
   1.885 +	Context().iTestTable=Long::Table;
   1.886 +	Context().iStringPool.OpenL(Context().iTestTable);
   1.887 +	RStringPool p = Context().iStringPool;
   1.888 +	
   1.889 +	_LIT8(KStringA, "String");
   1.890 +	_LIT8(KStringB, "Another String");
   1.891 +	_LIT8(KStringD, "String");
   1.892 +
   1.893 +	_LIT8(KStringFA, "String");
   1.894 +	_LIT8(KStringFB, "Another String");
   1.895 +	_LIT8(KStringFD, "sTRING");
   1.896 +
   1.897 +	Context().iA = p.OpenStringL(KStringA());
   1.898 +	Context().iB = p.OpenStringL(KStringB());
   1.899 +	Context().iD = p.OpenStringL(KStringD());
   1.900 +
   1.901 +	Context().iFA = p.OpenFStringL(KStringFA());
   1.902 +	Context().iFB = p.OpenFStringL(KStringFB());
   1.903 +	Context().iFD = p.OpenFStringL(KStringFD());
   1.904 +
   1.905 +//	Context().iTE = p.String(0,Context().iTestTable);
   1.906 +	Context().iTFE = p.StringF(0,Context().iTestTable);
   1.907 +
   1.908 +	Context().iADes.Set(KStringA);
   1.909 +	Context().iBDes.Set(KStringB);
   1.910 +	Context().iDDes.Set(KStringD);
   1.911 +
   1.912 +	Context().iFADes.Set(KStringFA);
   1.913 +	Context().iFBDes.Set(KStringFB);
   1.914 +	Context().iFDDes.Set(KStringFD);
   1.915 +
   1.916 +	Context().iInt = 0;
   1.917 +	Context().iFint = 0;
   1.918 +	}
   1.919 +
   1.920 +inline CStringPool_UnitTestContext& CStringPool_LongCtor_Transition::Context() const
   1.921 +	{
   1.922 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.923 +	}
   1.924 +
   1.925 +//____________________________________________________________________
   1.926 +//
   1.927 +_LIT(KStringPoolStringF_Index_TableTransition,"CStringPool_StringF_Index_Table_Transition");
   1.928 +
   1.929 +inline CStringPool_StringF_Index_Table_Transition::CStringPool_StringF_Index_Table_Transition(CUnitTestContext& aUTContext,
   1.930 +													TTransitionValidator& aValidator)
   1.931 +: CTransitionType(KStringPoolStringF_Index_TableTransition, aUTContext, aValidator)
   1.932 +	{
   1.933 +	// Do nothing here.
   1.934 +	}
   1.935 +
   1.936 +inline void CStringPool_StringF_Index_Table_Transition::TransitMethodL()
   1.937 +	{
   1.938 +	_LIT(KStringPoolStringF_Index_TableTransitMethod, "CStringPool::StringF_Index_Table transition");
   1.939 +	Context().DataLogger().LogInformation(KStringPoolStringF_Index_TableTransitMethod);
   1.940 +
   1.941 +	Context().iResult = Context().iTFE == Context().iFA;
   1.942 +	}
   1.943 +
   1.944 +inline CStringPool_UnitTestContext& CStringPool_StringF_Index_Table_Transition::Context() const
   1.945 +	{
   1.946 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
   1.947 +	}
   1.948 +
   1.949 +// ______________________________________________________________________________
   1.950 +//
   1.951 +_LIT(KStringPoolshortCSCtorTransition,"CStringPool_ShortCSCtor_Transition");
   1.952 +
   1.953 +inline CStringPool_ShortCSCtor_Transition::CStringPool_ShortCSCtor_Transition(CUnitTestContext& aUTContext,
   1.954 +													TTransitionValidator& aValidator)
   1.955 +: CTransitionType(KStringPoolshortCSCtorTransition, aUTContext, aValidator)
   1.956 +	{
   1.957 +	// Do nothing here.
   1.958 +	}
   1.959 +
   1.960 +inline void CStringPool_ShortCSCtor_Transition::TransitMethodL()
   1.961 +	{
   1.962 +	_LIT(KStringPoolshortCSCtorTransitMethod, "CStringPool::ShortCSCtor transition");
   1.963 +	Context().DataLogger().LogInformation(KStringPoolshortCSCtorTransitMethod);
   1.964 +
   1.965 +
   1.966 +	//Set the table used in this test
   1.967 +	Context().iTestTable=ShortCS::Table;
   1.968 +	Context().iStringPool.OpenL(Context().iTestTable);
   1.969 +	RStringPool p = Context().iStringPool;
   1.970 +	
   1.971 +	_LIT8(KStringA, "String");
   1.972 +	_LIT8(KStringB, "Another String");
   1.973 +	_LIT8(KStringD, "String");
   1.974 +
   1.975 +	_LIT8(KStringFA, "String");
   1.976 +	_LIT8(KStringFB, "Another String");
   1.977 +	_LIT8(KStringFD, "sTRING");
   1.978 +
   1.979 +
   1.980 +	Context().iA = p.OpenStringL(KStringA());
   1.981 +	CleanupClosePushL(Context().iA);
   1.982 +	Context().iB = p.OpenStringL(KStringB());
   1.983 +	CleanupClosePushL(Context().iB);
   1.984 +	Context().iD = p.OpenStringL(KStringD());
   1.985 +	CleanupClosePushL(Context().iD);
   1.986 +
   1.987 +	Context().iFA = p.OpenFStringL(KStringFA());
   1.988 +	CleanupClosePushL(Context().iFA);
   1.989 +	Context().iFB = p.OpenFStringL(KStringFB());
   1.990 +	CleanupClosePushL(Context().iFB);
   1.991 +	Context().iFD = p.OpenFStringL(KStringFD());
   1.992 +	CleanupClosePushL(Context().iFD);
   1.993 +
   1.994 +	Context().iTE = p.String(0,Context().iTestTable);
   1.995 +//	Context().iTFE = p.StringF(0,Context().iTestTable);
   1.996 +
   1.997 +
   1.998 +	Context().iADes.Set(KStringA);
   1.999 +	Context().iBDes.Set(KStringB);
  1.1000 +	Context().iDDes.Set(KStringD);
  1.1001 +
  1.1002 +	Context().iFADes.Set(KStringFA);
  1.1003 +	Context().iFBDes.Set(KStringFB);
  1.1004 +	Context().iFDDes.Set(KStringFD);
  1.1005 +
  1.1006 +	
  1.1007 +	Context().iInt = 0;
  1.1008 +	CleanupStack::Pop(6);
  1.1009 +	}
  1.1010 +
  1.1011 +inline CStringPool_UnitTestContext& CStringPool_ShortCSCtor_Transition::Context() const
  1.1012 +	{
  1.1013 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1014 +	}
  1.1015 +// ______________________________________________________________________________
  1.1016 +//
  1.1017 +_LIT(KStringPoolString_Index_TableTransition,"CStringPool_String_Index_Table_Transition");
  1.1018 +
  1.1019 +inline CStringPool_String_Index_Table_Transition::CStringPool_String_Index_Table_Transition(CUnitTestContext& aUTContext,
  1.1020 +													TTransitionValidator& aValidator)
  1.1021 +: CTransitionType(KStringPoolString_Index_TableTransition, aUTContext, aValidator)
  1.1022 +	{
  1.1023 +	// Do nothing here.
  1.1024 +	}
  1.1025 +
  1.1026 +inline void CStringPool_String_Index_Table_Transition::TransitMethodL()
  1.1027 +	{
  1.1028 +	_LIT(KStringPoolString_Index_TableTransitMethod, "CStringPool::String_Index_Table transition");
  1.1029 +	Context().DataLogger().LogInformation(KStringPoolString_Index_TableTransitMethod);
  1.1030 +
  1.1031 +	Context().iResult = Context().iTE == Context().iA;
  1.1032 +	}
  1.1033 +
  1.1034 +inline CStringPool_UnitTestContext& CStringPool_String_Index_Table_Transition::Context() const
  1.1035 +	{
  1.1036 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1037 +	}
  1.1038 +
  1.1039 +
  1.1040 +
  1.1041 +// ______________________________________________________________________________
  1.1042 +//
  1.1043 +_LIT(KStringPoolIrrelevantCSCtorTransition,"CStringPool_IrrelevantCSCtor_Transition");
  1.1044 +
  1.1045 +inline CStringPool_IrrelevantCSCtor_Transition::CStringPool_IrrelevantCSCtor_Transition(CUnitTestContext& aUTContext,
  1.1046 +													TTransitionValidator& aValidator)
  1.1047 +: CTransitionType(KStringPoolIrrelevantCSCtorTransition, aUTContext, aValidator)
  1.1048 +	{
  1.1049 +	// Do nothing here.
  1.1050 +	}
  1.1051 +
  1.1052 +inline void CStringPool_IrrelevantCSCtor_Transition::TransitMethodL()
  1.1053 +	{
  1.1054 +	_LIT(KStringPoolIrrelevantCSCtorTransitMethod, "CStringPool::IrrelevantCSCtor transition");
  1.1055 +	Context().DataLogger().LogInformation(KStringPoolIrrelevantCSCtorTransitMethod);
  1.1056 +	
  1.1057 +	//Set the table used in this test
  1.1058 +	Context().iTestTable=IrrelevantCS::Table;
  1.1059 +	Context().iStringPool.OpenL(Context().iTestTable);
  1.1060 +	RStringPool p = Context().iStringPool;
  1.1061 +	
  1.1062 +	_LIT8(KStringA, "String");
  1.1063 +	_LIT8(KStringB, "Another String");
  1.1064 +	_LIT8(KStringD, "String");
  1.1065 +
  1.1066 +	_LIT8(KStringFA, "String");
  1.1067 +	_LIT8(KStringFB, "Another String");
  1.1068 +	_LIT8(KStringFD, "sTRING");
  1.1069 +
  1.1070 +	Context().iA = p.OpenStringL(KStringA());
  1.1071 +	Context().iB = p.OpenStringL(KStringB());
  1.1072 +	Context().iD = p.OpenStringL(KStringD());
  1.1073 +
  1.1074 +	Context().iFA = p.OpenFStringL(KStringFA());
  1.1075 +	Context().iFB = p.OpenFStringL(KStringFB());
  1.1076 +	Context().iFD = p.OpenFStringL(KStringFD());
  1.1077 +
  1.1078 +	Context().iTE = p.String(0,Context().iTestTable);
  1.1079 +//	Context().iTFE = p.StringF(0,Context().iTestTable);
  1.1080 +
  1.1081 +	Context().iADes.Set(KStringA);
  1.1082 +	Context().iBDes.Set(KStringB);
  1.1083 +	Context().iDDes.Set(KStringD);
  1.1084 +
  1.1085 +	Context().iFADes.Set(KStringFA);
  1.1086 +	Context().iFBDes.Set(KStringFB);
  1.1087 +	Context().iFDDes.Set(KStringFD);
  1.1088 +
  1.1089 +
  1.1090 +	Context().iFint = 0;
  1.1091 +	Context().iInt = 0;
  1.1092 +	}
  1.1093 +
  1.1094 +inline CStringPool_UnitTestContext& CStringPool_IrrelevantCSCtor_Transition::Context() const
  1.1095 +	{
  1.1096 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1097 +	}
  1.1098 +
  1.1099 +// ______________________________________________________________________________
  1.1100 +//
  1.1101 +_LIT(KStringPoolLargeCSCtorTransition,"CStringPool_LargeCSCtor_Transition");
  1.1102 +
  1.1103 +inline CStringPool_LargeCSCtor_Transition::CStringPool_LargeCSCtor_Transition(CUnitTestContext& aUTContext,
  1.1104 +													TTransitionValidator& aValidator)
  1.1105 +: CTransitionType(KStringPoolLargeCSCtorTransition, aUTContext, aValidator)
  1.1106 +	{
  1.1107 +	// Do nothing here.
  1.1108 +	}
  1.1109 +
  1.1110 +inline void CStringPool_LargeCSCtor_Transition::TransitMethodL()
  1.1111 +	{
  1.1112 +	_LIT(KStringPoolLargeCSCtorTransitMethod, "CStringPool::LargeCSCtor transition");
  1.1113 +	Context().DataLogger().LogInformation(KStringPoolLargeCSCtorTransitMethod);
  1.1114 +	
  1.1115 +	//Set the table used in this test
  1.1116 +	Context().iTestTable=LongCS::Table;
  1.1117 +	Context().iStringPool.OpenL(Context().iTestTable);
  1.1118 +	RStringPool p = Context().iStringPool;
  1.1119 +	
  1.1120 +	_LIT8(KStringA, "String");
  1.1121 +	_LIT8(KStringB, "Another String");
  1.1122 +	_LIT8(KStringD, "String");
  1.1123 +
  1.1124 +	_LIT8(KStringFA, "String");
  1.1125 +	_LIT8(KStringFB, "Another String");
  1.1126 +	_LIT8(KStringFD, "sTRING");
  1.1127 +
  1.1128 +	Context().iA = p.OpenStringL(KStringA());
  1.1129 +	Context().iB = p.OpenStringL(KStringB());
  1.1130 +	Context().iD = p.OpenStringL(KStringD());
  1.1131 +
  1.1132 +	Context().iFA = p.OpenFStringL(KStringFA());
  1.1133 +	Context().iFB = p.OpenFStringL(KStringFB());
  1.1134 +	Context().iFD = p.OpenFStringL(KStringFD());
  1.1135 +
  1.1136 +	Context().iTE = p.String(0,Context().iTestTable);
  1.1137 +//	Context().iTFE = p.StringF(0,Context().iTestTable);
  1.1138 +
  1.1139 +	Context().iADes.Set(KStringA);
  1.1140 +	Context().iBDes.Set(KStringB);
  1.1141 +	Context().iDDes.Set(KStringD);
  1.1142 +
  1.1143 +	Context().iFADes.Set(KStringFA);
  1.1144 +	Context().iFBDes.Set(KStringFB);
  1.1145 +	Context().iFDDes.Set(KStringFD);
  1.1146 +
  1.1147 +	Context().iInt = 0;
  1.1148 +	Context().iFint = 0;
  1.1149 +	}
  1.1150 +
  1.1151 +inline CStringPool_UnitTestContext& CStringPool_LargeCSCtor_Transition::Context() const
  1.1152 +	{
  1.1153 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1154 +	}
  1.1155 +// ______________________________________________________________________________
  1.1156 +//
  1.1157 +_LIT(KStringPoolShortCtor_CBTransition,"CStringPool_Short_CB_Transition");
  1.1158 +
  1.1159 +inline CStringPool_Short_CB_Transition::CStringPool_Short_CB_Transition(CUnitTestContext& aUTContext,
  1.1160 +													TTransitionValidator& aValidator)
  1.1161 +: CTransitionType(KStringPoolShortCtor_CBTransition, aUTContext, aValidator)
  1.1162 +	{
  1.1163 +	// Do nothing here.
  1.1164 +	}
  1.1165 +
  1.1166 +
  1.1167 +
  1.1168 +
  1.1169 +
  1.1170 +inline void CStringPool_Short_CB_Transition::TransitMethodL()
  1.1171 +	{
  1.1172 +	_LIT(KStringPoolShortCtor_CBTransitMethod, "CStringPool::ShortCtor_CB transition");
  1.1173 +	Context().DataLogger().LogInformation(KStringPoolShortCtor_CBTransitMethod);
  1.1174 +	
  1.1175 +	//Set the table used in this test
  1.1176 +	Context().iTestTable=Short::Table;
  1.1177 +
  1.1178 +	Context().iMyExtObj.a=0;
  1.1179 +	Context().iMyExtObj2.a=0;
  1.1180 +	Context().iMyExtObj3.a=0;
  1.1181 +	Context().iStringPool.OpenL(Context().iTestTable,Context().iMyExtObj);
  1.1182 +	CleanupClosePushL(Context().iStringPool);
  1.1183 +	Context().iStringPool.OpenL(Context().iTestTable,Context().iMyExtObj2);
  1.1184 +	Context().iStringPool.OpenL(Context().iTestTable,Context().iMyExtObj3);
  1.1185 +	Context().iStringPool.Close();
  1.1186 +	Context().iResult= (Context().iMyExtObj.a) && (Context().iMyExtObj2.a)&&(Context().iMyExtObj3.a);
  1.1187 +	CleanupStack::Pop();//Context().iStringPool 
  1.1188 +	}
  1.1189 +
  1.1190 +inline CStringPool_UnitTestContext& CStringPool_Short_CB_Transition::Context() const
  1.1191 +	{
  1.1192 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1193 +	}
  1.1194 +
  1.1195 +// ______________________________________________________________________________
  1.1196 +//
  1.1197 +_LIT(KStringPoolMultipleTableCICtorTransition,"CStringPool_MultipleTableCICtor_Transition");
  1.1198 +
  1.1199 +inline CStringPool_MultipleTableCICtor_Transition::CStringPool_MultipleTableCICtor_Transition(CUnitTestContext& aUTContext,
  1.1200 +													TTransitionValidator& aValidator)
  1.1201 +: CTransitionType(KStringPoolMultipleTableCICtorTransition, aUTContext, aValidator)
  1.1202 +	{
  1.1203 +	// Do nothing here.
  1.1204 +	}
  1.1205 +
  1.1206 +inline void CStringPool_MultipleTableCICtor_Transition::TransitMethodL()
  1.1207 +	{
  1.1208 +	_LIT(KStringPoolMultipleTableCICtorTransitMethod, "CStringPool::MultipleTableCICtor transition");
  1.1209 +	Context().DataLogger().LogInformation(KStringPoolMultipleTableCICtorTransitMethod);
  1.1210 +
  1.1211 +	Context().iStringPool.OpenL();	
  1.1212 +
  1.1213 +	_LIT8(KStringA, "AnotherString");
  1.1214 +	CleanupClosePushL(Context().iFF);
  1.1215 +	Context().iFF=Context().iStringPool.OpenFStringL(KStringA);	// Dynamic string
  1.1216 +	CleanupStack::Pop();	// iFF
  1.1217 +	
  1.1218 +
  1.1219 +	Context().iTestTable=Short::Table;
  1.1220 +	Context().iStringPool.OpenL(Context().iTestTable);	
  1.1221 +
  1.1222 +	Context().iTestTable2=Short3::Table;	// Non-duplicate table
  1.1223 +	Context().iStringPool.OpenL(Context().iTestTable2);	
  1.1224 +
  1.1225 +	Context().iTestTable3=Short2::Table;
  1.1226 +	Context().iStringPool.OpenL(Context().iTestTable3);	
  1.1227 +
  1.1228 +	Context().iTestTable4=Short4::Table;	// Duplicate of a duplicate table
  1.1229 +	Context().iStringPool.OpenL(Context().iTestTable4);	
  1.1230 +	Context().iStringPool.OpenL(Context().iTestTable4);	// Add same table twice
  1.1231 +
  1.1232 +	Context().iFA=Context().iStringPool.StringF(Short::EString, Context().iTestTable);	// String
  1.1233 +	Context().iFB=Context().iStringPool.StringF(Short2::EString, Context().iTestTable3); // String
  1.1234 +	Context().iFC=Context().iStringPool.StringF(Short3::EString3, Context().iTestTable2); // String3, non-duplicate
  1.1235 +	Context().iFD=Context().iStringPool.StringF(Short4::EAnotherString , Context().iTestTable4); // AnotherString3 duplicate of a duplicate
  1.1236 +
  1.1237 +	Context().iFE=Context().iStringPool.StringF(Short2::EAnotherString , Context().iTestTable3); // Duplicate of dynamic string
  1.1238 +	
  1.1239 +	Context().iIndex1=Context().iFA.Index(Context().iTestTable);	// 0
  1.1240 +	Context().iIndex2=Context().iFB.Index(Context().iTestTable3);	// 1
  1.1241 +	Context().iIndex3=Context().iFC.Index(Context().iTestTable2);	// 1
  1.1242 +	Context().iIndex4=Context().iFD.Index(Context().iTestTable4);	// 0
  1.1243 +
  1.1244 +	
  1.1245 +	}
  1.1246 +
  1.1247 +inline CStringPool_UnitTestContext& CStringPool_MultipleTableCICtor_Transition::Context() const
  1.1248 +	{
  1.1249 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1250 +	}
  1.1251 +
  1.1252 +
  1.1253 +
  1.1254 +// ______________________________________________________________________________
  1.1255 +//
  1.1256 +_LIT(KStringPoolMutlipleCICeqCTransition,"CStringPool_MutlipleCICeqC_Transition");
  1.1257 +
  1.1258 +inline CStringPool_MutlipleCICeqC_Transition::CStringPool_MutlipleCICeqC_Transition(CUnitTestContext& aUTContext,
  1.1259 +													TTransitionValidator& aValidator)
  1.1260 +: CTransitionType(KStringPoolMutlipleCICeqCTransition, aUTContext, aValidator)
  1.1261 +	{
  1.1262 +	// Do nothing here.
  1.1263 +	}
  1.1264 +
  1.1265 +inline void CStringPool_MutlipleCICeqC_Transition::TransitMethodL()
  1.1266 +	{
  1.1267 +	_LIT(KStringPoolMutlipleCICeqCTransitMethod, "CStringPool::MutlipleCICeqC transition");
  1.1268 +	Context().DataLogger().LogInformation(KStringPoolMutlipleCICeqCTransitMethod);
  1.1269 +	_LIT8(KStringC, "String3");
  1.1270 +	Context().iResult = (Context().iFC.DesC().CompareF(KStringC))==0;
  1.1271 +	}
  1.1272 +
  1.1273 +inline CStringPool_UnitTestContext& CStringPool_MutlipleCICeqC_Transition::Context() const
  1.1274 +	{
  1.1275 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1276 +	}
  1.1277 +
  1.1278 +
  1.1279 +// ______________________________________________________________________________
  1.1280 +//
  1.1281 +_LIT(KStringPoolMultipleCIStringToIndexTransition,"CStringPool_MultipleCIStringToIndex_Transition");
  1.1282 +
  1.1283 +inline CStringPool_MultipleCIStringToIndex_Transition::CStringPool_MultipleCIStringToIndex_Transition(CUnitTestContext& aUTContext,
  1.1284 +													TTransitionValidator& aValidator)
  1.1285 +: CTransitionType(KStringPoolMultipleCIStringToIndexTransition, aUTContext, aValidator)
  1.1286 +	{
  1.1287 +	// Do nothing here.
  1.1288 +	}
  1.1289 +
  1.1290 +inline void CStringPool_MultipleCIStringToIndex_Transition::TransitMethodL()
  1.1291 +	{
  1.1292 +	_LIT(KStringPoolMultipleCIStringToIndexTransitMethod, "CStringPool::MultipleCIStringToIndex transition");
  1.1293 +	Context().DataLogger().LogInformation(KStringPoolMultipleCIStringToIndexTransitMethod);
  1.1294 +	if (Context().iIndex1==0 && Context().iIndex2==1 && Context().iIndex3==1 && Context().iIndex4==0)
  1.1295 +		Context().iResult = ETrue;
  1.1296 +	else
  1.1297 +		Context().iResult = EFalse;
  1.1298 +	}
  1.1299 +
  1.1300 +inline CStringPool_UnitTestContext& CStringPool_MultipleCIStringToIndex_Transition::Context() const
  1.1301 +	{
  1.1302 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1303 +	}
  1.1304 +
  1.1305 +
  1.1306 +// ______________________________________________________________________________
  1.1307 +//
  1.1308 +_LIT(KStringPoolMultipleCIDynamicStringTransition,"CStringPool_MultipleCIDynamicString_Transition");
  1.1309 +
  1.1310 +inline CStringPool_MultipleCIDynamicString_Transition::CStringPool_MultipleCIDynamicString_Transition(CUnitTestContext& aUTContext,
  1.1311 +													TTransitionValidator& aValidator)
  1.1312 +: CTransitionType(KStringPoolMultipleCIDynamicStringTransition, aUTContext, aValidator)
  1.1313 +	{
  1.1314 +	// Do nothing here.
  1.1315 +	}
  1.1316 +
  1.1317 +inline void CStringPool_MultipleCIDynamicString_Transition::TransitMethodL()
  1.1318 +	{
  1.1319 +	_LIT(KStringPoolMultipleCIDynamicStringTransitMethod, "CStringPool::MultipleCIDynamicString transition");
  1.1320 +	Context().DataLogger().LogInformation(KStringPoolMultipleCIDynamicStringTransitMethod);
  1.1321 +	Context().iResult = Context().iFE==Context().iFF;
  1.1322 +	}
  1.1323 +
  1.1324 +inline CStringPool_UnitTestContext& CStringPool_MultipleCIDynamicString_Transition::Context() const
  1.1325 +	{
  1.1326 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1327 +	}
  1.1328 +
  1.1329 +// ______________________________________________________________________________
  1.1330 +//
  1.1331 +_LIT(KStringPoolMultipleCIIndexToStringDynamicTransition,"CStringPool_MultipleCIIndexToStringDynamic_Transition");
  1.1332 +
  1.1333 +inline CStringPool_MultipleCIIndexToStringDynamic_Transition::CStringPool_MultipleCIIndexToStringDynamic_Transition(CUnitTestContext& aUTContext,
  1.1334 +													TTransitionValidator& aValidator)
  1.1335 +: CTransitionType(KStringPoolMultipleCIIndexToStringDynamicTransition, aUTContext, aValidator)
  1.1336 +	{
  1.1337 +	// Do nothing here.
  1.1338 +	}
  1.1339 +
  1.1340 +inline void CStringPool_MultipleCIIndexToStringDynamic_Transition::TransitMethodL()
  1.1341 +	{
  1.1342 +	_LIT(KStringPoolMultipleCIIndexToStringDynamicTransitMethod, "CStringPool::MultipleCIIndexToStringDynamic transition");
  1.1343 +	Context().DataLogger().LogInformation(KStringPoolMultipleCIIndexToStringDynamicTransitMethod);
  1.1344 +	_LIT8(KStringE, "AnotherString");
  1.1345 +	Context().iResult = (Context().iFE.DesC().CompareF(KStringE))==0;
  1.1346 +	}
  1.1347 +
  1.1348 +inline CStringPool_UnitTestContext& CStringPool_MultipleCIIndexToStringDynamic_Transition::Context() const
  1.1349 +	{
  1.1350 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1351 +	}
  1.1352 +
  1.1353 +
  1.1354 +// For case sensitive
  1.1355 +
  1.1356 +
  1.1357 +// ______________________________________________________________________________
  1.1358 +//
  1.1359 +/**
  1.1360 +	@internalComponent
  1.1361 +	Comments : Transition test of the StringPool::MultipleTableCSCtor method.
  1.1362 + */
  1.1363 +class CStringPool_MultipleTableCSCtor_Transition : public CTransitionType
  1.1364 +	{
  1.1365 +public:
  1.1366 +	/**
  1.1367 +		@fn				CStringPool_MultipleTableCSCtor_Transition(CUnitTestContext& aUTContext,
  1.1368 +																	TTransitionValidator& aValidator)
  1.1369 +		Intended Usage	: Standard c'tor method.
  1.1370 +		Error Condition	: None.
  1.1371 +		@since			7.0
  1.1372 +		@param			aUTContext The context this transition is operating in.
  1.1373 +		@param			aValidator Used for checking the pre & post conditions of the test object.
  1.1374 +		@pre 			None.
  1.1375 +		@post			CStringPool_MultipleTableCSCtor_Transition is fully constructed.
  1.1376 +	*/
  1.1377 +	CStringPool_MultipleTableCSCtor_Transition(CUnitTestContext& aUTContext,
  1.1378 +													TTransitionValidator& aValidator);
  1.1379 +	/**
  1.1380 +		@fn				TransitMethodL()
  1.1381 +		Intended Usage	: To execute the StringPool::MultipleTableCSCtor method for the test harness.
  1.1382 +		Error Condition	: Leaves with an error code.
  1.1383 +		@leave		KErrNoMemory, (@see StringPool::MultipleTableCSCtor)
  1.1384 +		@since			7.0
  1.1385 +		@return			None
  1.1386 +		@pre 			CStringPool_MultipleTableCSCtor_Transition is fully constructed.
  1.1387 +		@post			No change in the CStringPool_MultipleTableCSCtor_Transition apart
  1.1388 +						from iStringPool, which may have changed state.
  1.1389 +						(@see StringPool::MultipleTableCSCtor post-condition) for iStringPool's new state.
  1.1390 +	*/
  1.1391 +	inline void TransitMethodL();
  1.1392 +
  1.1393 +	/**
  1.1394 +		@fn				Context() const
  1.1395 +		Intended Usage	: To provide access to the unit test context cast to the correct type.
  1.1396 +		Error Condition	: None.
  1.1397 +		@since			7.0
  1.1398 +		@return			The unit test context cast to a CStringPool_UnitTestContext
  1.1399 +		@pre 			iUTContext is a valid CStringPool_UnitTestContext.
  1.1400 +		@post			No change in the CStringPool_MultipleTableCSCtor_Transition
  1.1401 +	*/
  1.1402 +	inline CStringPool_UnitTestContext& Context() const;
  1.1403 +	};	// CStringPool_MultipleTableCSCtor_Transition
  1.1404 +
  1.1405 +// ______________________________________________________________________________
  1.1406 +//
  1.1407 +_LIT(KStringPoolMultipleTableCSCtorTransition,"CStringPool_MultipleTableCSCtor_Transition");
  1.1408 +
  1.1409 +inline CStringPool_MultipleTableCSCtor_Transition::CStringPool_MultipleTableCSCtor_Transition(CUnitTestContext& aUTContext,
  1.1410 +													TTransitionValidator& aValidator)
  1.1411 +: CTransitionType(KStringPoolMultipleTableCSCtorTransition, aUTContext, aValidator)
  1.1412 +	{
  1.1413 +	// Do nothing here.
  1.1414 +	}
  1.1415 +
  1.1416 +inline void CStringPool_MultipleTableCSCtor_Transition::TransitMethodL()
  1.1417 +	{
  1.1418 +	_LIT(KStringPoolMultipleTableCSCtorTransitMethod, "CStringPool::MultipleTableCSCtor transition");
  1.1419 +	Context().DataLogger().LogInformation(KStringPoolMultipleTableCSCtorTransitMethod);
  1.1420 +	
  1.1421 +	Context().iStringPool.OpenL();	
  1.1422 +
  1.1423 +	_LIT8(KStringA, "AnotherString");
  1.1424 +	CleanupClosePushL(Context().iF);
  1.1425 +	Context().iF=Context().iStringPool.OpenStringL(KStringA);	// Dynamic string
  1.1426 +	CleanupStack::Pop();	// iF
  1.1427 +	
  1.1428 +
  1.1429 +	Context().iTestTable=ShortCS::Table;
  1.1430 +	Context().iStringPool.OpenL(Context().iTestTable);	
  1.1431 +
  1.1432 +	Context().iTestTable2=ShortCS3::Table;	// Non-duplicate table
  1.1433 +	Context().iStringPool.OpenL(Context().iTestTable2);	
  1.1434 +
  1.1435 +	Context().iTestTable3=ShortCS2::Table;
  1.1436 +	Context().iStringPool.OpenL(Context().iTestTable3);	
  1.1437 +
  1.1438 +	Context().iTestTable4=ShortCS4::Table;	// Duplicate of a duplicate table
  1.1439 +	Context().iStringPool.OpenL(Context().iTestTable4);	
  1.1440 +	Context().iStringPool.OpenL(Context().iTestTable4);	// Add same table twice
  1.1441 +
  1.1442 +	Context().iA=Context().iStringPool.String(ShortCS::EString, Context().iTestTable);	// String
  1.1443 +	Context().iB=Context().iStringPool.String(ShortCS2::EString, Context().iTestTable3); // String
  1.1444 +	Context().iC=Context().iStringPool.String(ShortCS3::EString3, Context().iTestTable2); // String3, non-duplicate
  1.1445 +	Context().iD=Context().iStringPool.String(ShortCS4::EAnotherString , Context().iTestTable4); // AnotherString3 duplicate of a duplicate
  1.1446 +
  1.1447 +	Context().iE=Context().iStringPool.String(ShortCS2::EAnotherString , Context().iTestTable3); // Duplicate of dynamic string
  1.1448 +	
  1.1449 +	Context().iIndex1=Context().iA.Index(Context().iTestTable);		// 0
  1.1450 +	Context().iIndex2=Context().iB.Index(Context().iTestTable3);	// 1
  1.1451 +	Context().iIndex3=Context().iC.Index(Context().iTestTable2);	// 1
  1.1452 +	Context().iIndex4=Context().iD.Index(Context().iTestTable4);	// 2
  1.1453 +
  1.1454 +	
  1.1455 +	}
  1.1456 +
  1.1457 +inline CStringPool_UnitTestContext& CStringPool_MultipleTableCSCtor_Transition::Context() const
  1.1458 +	{
  1.1459 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1460 +	}
  1.1461 +
  1.1462 +
  1.1463 +// ______________________________________________________________________________
  1.1464 +//
  1.1465 +_LIT(KStringPoolMutlipleCSCeqCTransition,"CStringPool_MutlipleCSCeqC_Transition");
  1.1466 +
  1.1467 +inline CStringPool_MutlipleCSCeqC_Transition::CStringPool_MutlipleCSCeqC_Transition(CUnitTestContext& aUTContext,
  1.1468 +													TTransitionValidator& aValidator)
  1.1469 +: CTransitionType(KStringPoolMutlipleCSCeqCTransition, aUTContext, aValidator)
  1.1470 +	{
  1.1471 +	// Do nothing here.
  1.1472 +	}
  1.1473 +
  1.1474 +inline void CStringPool_MutlipleCSCeqC_Transition::TransitMethodL()
  1.1475 +	{
  1.1476 +	_LIT(KStringPoolMutlipleCSCeqCTransitMethod, "CStringPool::MutlipleCSCeqC transition");
  1.1477 +	Context().DataLogger().LogInformation(KStringPoolMutlipleCSCeqCTransitMethod);
  1.1478 +	_LIT8(KStringC, "String3");
  1.1479 +	Context().iResult = (Context().iC.DesC().CompareF(KStringC))==0;
  1.1480 +	}
  1.1481 +
  1.1482 +inline CStringPool_UnitTestContext& CStringPool_MutlipleCSCeqC_Transition::Context() const
  1.1483 +	{
  1.1484 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1485 +	}
  1.1486 +
  1.1487 +
  1.1488 +// ______________________________________________________________________________
  1.1489 +//
  1.1490 +_LIT(KStringPoolMultipleCSStringToIndexTransition,"CStringPool_MultipleCSStringToIndex_Transition");
  1.1491 +
  1.1492 +inline CStringPool_MultipleCSStringToIndex_Transition::CStringPool_MultipleCSStringToIndex_Transition(CUnitTestContext& aUTContext,
  1.1493 +													TTransitionValidator& aValidator)
  1.1494 +: CTransitionType(KStringPoolMultipleCSStringToIndexTransition, aUTContext, aValidator)
  1.1495 +	{
  1.1496 +	// Do nothing here.
  1.1497 +	}
  1.1498 +
  1.1499 +inline void CStringPool_MultipleCSStringToIndex_Transition::TransitMethodL()
  1.1500 +	{
  1.1501 +	_LIT(KStringPoolMultipleCSStringToIndexTransitMethod, "CStringPool::MultipleCSStringToIndex transition");
  1.1502 +	Context().DataLogger().LogInformation(KStringPoolMultipleCSStringToIndexTransitMethod);
  1.1503 +	if (Context().iIndex1==0 && Context().iIndex2==1 && Context().iIndex3==1 && Context().iIndex4==2)
  1.1504 +		Context().iResult = ETrue;
  1.1505 +	else
  1.1506 +		Context().iResult = EFalse;
  1.1507 +	}
  1.1508 +
  1.1509 +inline CStringPool_UnitTestContext& CStringPool_MultipleCSStringToIndex_Transition::Context() const
  1.1510 +	{
  1.1511 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1512 +	}
  1.1513 +
  1.1514 +
  1.1515 +// ______________________________________________________________________________
  1.1516 +//
  1.1517 +_LIT(KStringPoolMultipleCSDynamicStringTransition,"CStringPool_MultipleCSDynamicString_Transition");
  1.1518 +
  1.1519 +inline CStringPool_MultipleCSDynamicString_Transition::CStringPool_MultipleCSDynamicString_Transition(CUnitTestContext& aUTContext,
  1.1520 +													TTransitionValidator& aValidator)
  1.1521 +: CTransitionType(KStringPoolMultipleCSDynamicStringTransition, aUTContext, aValidator)
  1.1522 +	{
  1.1523 +	// Do nothing here.
  1.1524 +	}
  1.1525 +
  1.1526 +inline void CStringPool_MultipleCSDynamicString_Transition::TransitMethodL()
  1.1527 +	{
  1.1528 +	_LIT(KStringPoolMultipleCSDynamicStringTransitMethod, "CStringPool::MultipleCSDynamicString transition");
  1.1529 +	Context().DataLogger().LogInformation(KStringPoolMultipleCSDynamicStringTransitMethod);
  1.1530 +	Context().iResult = Context().iE==Context().iF;
  1.1531 +	}
  1.1532 +
  1.1533 +inline CStringPool_UnitTestContext& CStringPool_MultipleCSDynamicString_Transition::Context() const
  1.1534 +	{
  1.1535 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1536 +	}
  1.1537 +
  1.1538 +
  1.1539 +// ______________________________________________________________________________
  1.1540 +//
  1.1541 +_LIT(KStringPoolMultipleCSIndexToStringDynamicTransition,"CStringPool_MultipleCSIndexToStringDynamic_Transition");
  1.1542 +
  1.1543 +inline CStringPool_MultipleCSIndexToStringDynamic_Transition::CStringPool_MultipleCSIndexToStringDynamic_Transition(CUnitTestContext& aUTContext,
  1.1544 +													TTransitionValidator& aValidator)
  1.1545 +: CTransitionType(KStringPoolMultipleCSIndexToStringDynamicTransition, aUTContext, aValidator)
  1.1546 +	{
  1.1547 +	// Do nothing here.
  1.1548 +	}
  1.1549 +
  1.1550 +inline void CStringPool_MultipleCSIndexToStringDynamic_Transition::TransitMethodL()
  1.1551 +	{
  1.1552 +	_LIT(KStringPoolMultipleCSIndexToStringDynamicTransitMethod, "CStringPool::MultipleCSIndexToStringDynamic transition");
  1.1553 +	Context().DataLogger().LogInformation(KStringPoolMultipleCSIndexToStringDynamicTransitMethod);
  1.1554 +	_LIT8(KStringE, "AnotherString");
  1.1555 +	Context().iResult = (Context().iE.DesC().CompareF(KStringE))==0;
  1.1556 +	}
  1.1557 +
  1.1558 +inline CStringPool_UnitTestContext& CStringPool_MultipleCSIndexToStringDynamic_Transition::Context() const
  1.1559 +	{
  1.1560 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1561 +	}
  1.1562 +
  1.1563 +
  1.1564 +// ______________________________________________________________________________
  1.1565 +//
  1.1566 +_LIT(KStringPoolMultipleTableDtorTransition,"CStringPool_MultipleTableDtor_Transition");
  1.1567 +
  1.1568 +inline CStringPool_MultipleTableDtor_Transition::CStringPool_MultipleTableDtor_Transition(CUnitTestContext& aUTContext,
  1.1569 +													TTransitionValidator& aValidator)
  1.1570 +: CTransitionType(KStringPoolMultipleTableDtorTransition, aUTContext, aValidator)
  1.1571 +	{
  1.1572 +	// Do nothing here.
  1.1573 +	}
  1.1574 +
  1.1575 +inline void CStringPool_MultipleTableDtor_Transition::TransitMethodL()
  1.1576 +	{
  1.1577 +	_LIT(KStringPoolMultipleTableDtorTransitMethod, "CStringPool::MultipleTableDtor transition");
  1.1578 +	Context().DataLogger().LogInformation(KStringPoolMultipleTableDtorTransitMethod);
  1.1579 +	Context().iA.Close();
  1.1580 +	Context().iB.Close();
  1.1581 +	Context().iC.Close();
  1.1582 +	Context().iD.Close();
  1.1583 +	Context().iE.Close();
  1.1584 +	Context().iF.Close();
  1.1585 +
  1.1586 +	Context().iFA.Close();
  1.1587 +	Context().iFB.Close();
  1.1588 +	Context().iFC.Close();
  1.1589 +	Context().iFD.Close();
  1.1590 +	Context().iFE.Close();
  1.1591 +	Context().iFF.Close();
  1.1592 +
  1.1593 +	Context().iStringPool.Close();
  1.1594 +	}
  1.1595 +
  1.1596 +inline CStringPool_UnitTestContext& CStringPool_MultipleTableDtor_Transition::Context() const
  1.1597 +	{
  1.1598 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1599 +	}
  1.1600 +
  1.1601 +// ______________________________________________________________________________
  1.1602 +//
  1.1603 +_LIT(KStringPoolBEU55DJG3Transition,"CStringPool_BEU55DJG3_Transition");
  1.1604 +
  1.1605 +inline CStringPool_BEU55DJG3_Transition::CStringPool_BEU55DJG3_Transition(CUnitTestContext& aUTContext,
  1.1606 +													TTransitionValidator& aValidator)
  1.1607 +: CTransitionType(KStringPoolBEU55DJG3Transition, aUTContext, aValidator)
  1.1608 +	{
  1.1609 +	// Do nothing here.
  1.1610 +	}
  1.1611 +
  1.1612 +inline void CStringPool_BEU55DJG3_Transition::TransitMethodL()
  1.1613 +	{
  1.1614 +	_LIT(KStringPoolBEU55DJG3TransitMethod, "CStringPool::BEU55DJG3 transition");
  1.1615 +	_LIT(KMinus1, "The Index() function returns = KErrNotFound");
  1.1616 +	_LIT(KOther, "The Index() function returns something != -1");
  1.1617 +	Context().DataLogger().LogInformation(KStringPoolBEU55DJG3TransitMethod);
  1.1618 +	TInt result;
  1.1619 +	result = Context().iEmptyOne.Index(Context().iTestTable);
  1.1620 +	if (result == KErrNotFound)
  1.1621 +		{
  1.1622 +		Context().iResult = 1; //ETrue 
  1.1623 +		Context().DataLogger().LogInformation(KMinus1);
  1.1624 +		}
  1.1625 +	else
  1.1626 +		{
  1.1627 +		Context().iResult = 0 ;//EFalse
  1.1628 +		Context().DataLogger().LogInformation(KOther);
  1.1629 +		}
  1.1630 +
  1.1631 +	}
  1.1632 +
  1.1633 +inline CStringPool_UnitTestContext& CStringPool_BEU55DJG3_Transition::Context() const
  1.1634 +	{
  1.1635 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1636 +	}
  1.1637 +
  1.1638 +// ______________________________________________________________________________
  1.1639 +//
  1.1640 +_LIT(KStringPoolKRN56NDEZTransition,"CStringPool_KRN56NDEZ_Transition");
  1.1641 +
  1.1642 +inline CStringPool_KRN56NDEZ_Transition::CStringPool_KRN56NDEZ_Transition(CUnitTestContext& aUTContext,
  1.1643 +													TTransitionValidator& aValidator)
  1.1644 +: CTransitionType(KStringPoolKRN56NDEZTransition, aUTContext, aValidator)
  1.1645 +	{
  1.1646 +	// Do nothing here.
  1.1647 +	}
  1.1648 +
  1.1649 +inline void CStringPool_KRN56NDEZ_Transition::TransitMethodL()
  1.1650 +	{
  1.1651 +	_LIT(KStringPoolKRN56NDEZTransitMethod, "CStringPool::KRN56NDEZ transition");
  1.1652 +	_LIT(KTestOK,"\n Test Passed");
  1.1653 +	_LIT(KTestFailed,"\nTest Failed");
  1.1654 +	
  1.1655 +
  1.1656 +	Context().DataLogger().LogInformation(KStringPoolKRN56NDEZTransitMethod);
  1.1657 +
  1.1658 +	//Open 2 tables with some string duplicates and open them
  1.1659 +	Context().iStringPool.OpenL(Short::Table);
  1.1660 +	Context().iStringPool.OpenL(Short2::Table);
  1.1661 +
  1.1662 +	Context().iFAString = Context().iStringPool.StringF(Short2::EString,Short2::Table);
  1.1663 +	const TStringTable* originalTable= Context().iFAString.OriginalTableRef();
  1.1664 +
  1.1665 +	Context().iFADuplicateString = Context().iStringPool.StringF(Short::EString,Short::Table);
  1.1666 +	const TStringTable* ShortTable= Context().iFA.OriginalTableRef();
  1.1667 +
  1.1668 +
  1.1669 +	if (ShortTable==originalTable)
  1.1670 +		{
  1.1671 +		Context().iResult=ETrue;
  1.1672 +		Context().DataLogger().LogInformation(KTestOK);
  1.1673 +		}
  1.1674 +	else
  1.1675 +		{
  1.1676 +		Context().iResult=EFalse;
  1.1677 +		Context().DataLogger().LogInformation(KTestFailed);
  1.1678 +		}
  1.1679 +
  1.1680 +	}
  1.1681 +
  1.1682 +inline CStringPool_UnitTestContext& CStringPool_KRN56NDEZ_Transition::Context() const
  1.1683 +	{
  1.1684 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1685 +	}
  1.1686 +
  1.1687 +// ______________________________________________________________________________
  1.1688 +//
  1.1689 +_LIT(KStringPoolAPY57TEH3Transition,"CStringPool_APY57TEH3_Transition");
  1.1690 +
  1.1691 +inline CStringPool_APY57TEH3_Transition::CStringPool_APY57TEH3_Transition(CUnitTestContext& aUTContext,
  1.1692 +													TTransitionValidator& aValidator)
  1.1693 +: CTransitionType(KStringPoolAPY57TEH3Transition, aUTContext, aValidator)
  1.1694 +	{
  1.1695 +	// Do nothing here.
  1.1696 +	}
  1.1697 +
  1.1698 +inline void CStringPool_APY57TEH3_Transition::TransitMethodL()
  1.1699 +	{
  1.1700 +	_LIT(KStringPoolAPY57TEH3TransitMethod, "CStringPool::APY57TEH3 transition");
  1.1701 +	Context().DataLogger().LogInformation(KStringPoolAPY57TEH3TransitMethod);
  1.1702 +	
  1.1703 +	
  1.1704 +	Context().iResult=(Context().iEmptyOne!=Context().iTFE);
  1.1705 +
  1.1706 +
  1.1707 +	}
  1.1708 +
  1.1709 +inline CStringPool_UnitTestContext& CStringPool_APY57TEH3_Transition::Context() const
  1.1710 +	{
  1.1711 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1712 +	}
  1.1713 +
  1.1714 +
  1.1715 +// ______________________________________________________________________________
  1.1716 +//
  1.1717 +_LIT(KStringPoolHAD57SK27Transition,"CStringPool_HAD57SK27_Transition");
  1.1718 +
  1.1719 +inline CStringPool_HAD57SK27_Transition::CStringPool_HAD57SK27_Transition(CUnitTestContext& aUTContext,
  1.1720 +													TTransitionValidator& aValidator)
  1.1721 +: CTransitionType(KStringPoolHAD57SK27Transition, aUTContext, aValidator)
  1.1722 +	{
  1.1723 +	// Do nothing here.
  1.1724 +	}
  1.1725 +
  1.1726 +inline void CStringPool_HAD57SK27_Transition::TransitMethodL()
  1.1727 +	{
  1.1728 +	_LIT(KStringPoolHAD57SK27TransitMethod, "CStringPool::HAD57SK27 transition");
  1.1729 +	Context().DataLogger().LogInformation(KStringPoolHAD57SK27TransitMethod);
  1.1730 +	
  1.1731 +
  1.1732 +	// Create string pool and load HTTP static table
  1.1733 +	RStringPool pool;
  1.1734 +
  1.1735 +	pool.OpenL();
  1.1736 +
  1.1737 +	_LIT8(KUndeletable_EX, "_ex");
  1.1738 +	Context().iUndeletable_EX = pool.OpenStringL(KUndeletable_EX);
  1.1739 +
  1.1740 +	_LIT8(KUndeletable_A," _a");
  1.1741 +	Context().iUndeletable_A = pool.OpenStringL(KUndeletable_A());
  1.1742 +
  1.1743 +	// Load SecurityPolicyProperties static table
  1.1744 +	pool.OpenL(SecurityPolicyPluginStrings::Table);
  1.1745 +
  1.1746 +	// Close strings opened
  1.1747 +	Context().iUndeletable_EX.Close();
  1.1748 +	Context().iUndeletable_A.Close();
  1.1749 +
  1.1750 +	// Close the string pool
  1.1751 +	pool.Close();
  1.1752 +	//if at this point the m pool string pool closes fine .the test has passed
  1.1753 +	_LIT(KTestHAD57SK27OK,"\n Defect HAD57SK27OK test : OK\n");
  1.1754 +	Context().DataLogger().LogInformation(KTestHAD57SK27OK);
  1.1755 +	Context().iResult=ETrue;
  1.1756 +
  1.1757 +	}
  1.1758 +
  1.1759 +inline CStringPool_UnitTestContext& CStringPool_HAD57SK27_Transition::Context() const
  1.1760 +	{
  1.1761 +	return REINTERPRET_CAST(CStringPool_UnitTestContext&,iUTContext);
  1.1762 +	}
  1.1763 +