os/ossrv/lowlevellibsandfws/pluginfw/Framework/RegistryDataTest/RegistryDataTransitions.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/lowlevellibsandfws/pluginfw/Framework/RegistryDataTest/RegistryDataTransitions.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,932 @@
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 definition of the transition classes for the CRegistryData tests.
1.18 +//
1.19 +//
1.20 +
1.21 +#ifndef __REGISTRYDATATRANSITIONS_H__
1.22 +#define __REGISTRYDATATRANSITIONS_H__
1.23 +
1.24 +#include "RegistryData.h"
1.25 +
1.26 +#include <test_bed/datalogger.h>
1.27 +#include "LeakTestTransition.h"
1.28 +#include "RegistryDataStateAccessor.h"
1.29 +
1.30 +#define CTransitionType CLeakTestTransition
1.31 +
1.32 +// ______________________________________________________________________________
1.33 +//
1.34 +/**
1.35 + @internalComponent
1.36 + Comments : Provide all the CRegistryData specific
1.37 + parameters and behaviour on the CRegistryData
1.38 + test class for a transition.
1.39 + */
1.40 +class CRegistryData_UnitTestContext : public CUnitTestContext
1.41 + {
1.42 +public:
1.43 + /**
1.44 + @fn CRegistryData_UnitTestContext(CDataLogger& aDataLogger,
1.45 + MStateAccessor& aStateAccessor,
1.46 + MTransitionObserver& aObserver,
1.47 + RFs& aFs)
1.48 + Intended Usage : Default constructor.
1.49 + Error Condition : None.
1.50 + @since 7.0
1.51 + @param aDataLogger The output logging object.
1.52 + @param aObserver The observer of this UnitTest's Transitions.
1.53 + @param aStateAccessor WhiteBox state access to the CRegistryData class under test.
1.54 + @param aFs A reference to a connected file server instance.
1.55 + @pre None.
1.56 + @post CRegistryData_UnitTestContext is fully constructed, and initialised.
1.57 + */
1.58 + inline CRegistryData_UnitTestContext(CDataLogger& aDataLogger,
1.59 + MStateAccessor& aStateAccessor,
1.60 + MTransitionObserver& aObserver,
1.61 + RFs& aFs);
1.62 +
1.63 + /**
1.64 + @fn ~CRegistryData_UnitTestContext()
1.65 + Intended Usage : Default Destructor
1.66 + @since 7.0
1.67 + @pre CRegistryData_UnitTestContext is fully constructed.
1.68 + @post CRegistryData_UnitTestContext is fully destroyed
1.69 + */
1.70 + virtual inline ~CRegistryData_UnitTestContext();
1.71 +
1.72 + /** The instance of the class under test */
1.73 + CRegistryData* iRegistryData;
1.74 + /** A reference to an connected file server instance. */
1.75 + RFs& iFs;
1.76 + /** The current drive unit identifier */
1.77 + TDriveUnit iDriveUnit;
1.78 + /** The pointer to the DllData entry */
1.79 + CRegistryData::CDllData* iDllData;
1.80 + /** The updated entry which we use in call to UpdateDllEntry */
1.81 + CRegistryData::CDllData* iNewDllData;
1.82 + /**
1.83 + A reference to the implementation entry in the registry :
1.84 + */
1.85 + const CImplementationInformation* iImplementationRef;
1.86 + /**
1.87 + A reference to the implementation entry in the registry :
1.88 + */
1.89 + const CImplementationInformation* iSecondImplementationRef;
1.90 + /**
1.91 + A list of returned UIDs from the list methods
1.92 + */
1.93 + RImplInfoArray* iUidList;
1.94 + /** UID for an implementation of an interface */
1.95 + TUid iImplementationUid;
1.96 + /** UID to identify a particular interface */
1.97 + TUid iInterfaceUid;
1.98 + /** UID to identify a specific dll */
1.99 + TUid iDllUid;
1.100 + /** The directory entry data for a dll */
1.101 + TEntry iDllEntry;
1.102 + /** The update flag */
1.103 + TBool iUpdate;
1.104 + /** Input file stream for registry load testing */
1.105 + RFileReadStream iReadStream;
1.106 + /** Output file streams for registry persistence testing */
1.107 + RFileWriteStream iWriteStream;
1.108 + /** A methods return status code */
1.109 + TInt iMethodCompletionStatus;
1.110 + /** The drive index returned by IsRegistered... so we know which drive to update on */
1.111 + TInt iFoundDriveIndex;
1.112 + /** Used by SetEnabledState() - ETrue to enable an implementation, EFalse to disable it. */
1.113 + TBool iEnabledState;
1.114 + }; // CRegistryData_UnitTestContext
1.115 +
1.116 +// ______________________________________________________________________________
1.117 +//
1.118 +/**
1.119 + @internalComponent
1.120 + Comments : Transition test of the CRegistryData::NewL method.
1.121 + */
1.122 +class CRegistryData_NewL_Transition : public CTransition
1.123 + {
1.124 +public:
1.125 + /**
1.126 + @fn CRegistryData_NewL_Transition(CUnitTestContext& aUTContext,
1.127 + TTransitionValidator& aValidator)
1.128 + Intended Usage : Standard c'tor method.
1.129 + Error Condition : None.
1.130 + @since 7.0
1.131 + @param aUTContext The context this transition is operating in.
1.132 + @param aValidator Used for checking the pre & post conditions of the test object.
1.133 + @pre None.
1.134 + @post CRegistryData_NewL_Transition is fully constructed.
1.135 + */
1.136 + CRegistryData_NewL_Transition(CUnitTestContext& aUTContext,
1.137 + TTransitionValidator& aValidator);
1.138 + /**
1.139 + @fn TransitMethodL()
1.140 + Intended Usage : To execute the CRegistryData::NewL method for the test harness.
1.141 + Error Condition : Leaves with an error code.
1.142 + @leave KErrNoMemory, (@see CRegistryData::NewL)
1.143 + @since 7.0
1.144 + @return None
1.145 + @pre CRegistryData_NewL_Transition is fully constructed.
1.146 + @post No change in the CRegistryData_NewL_Transition apart
1.147 + from iRegistryData, which may have changed state.
1.148 + (@see CRegistryData::NewL post-condition) for iRegistryData's new state.
1.149 + */
1.150 + inline void TransitMethodL();
1.151 +
1.152 + /**
1.153 + @fn Context() const
1.154 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.155 + Error Condition : None.
1.156 + @since 7.0
1.157 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.158 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.159 + @post No change in the CRegistryData_NewL_Transition
1.160 + */
1.161 + inline CRegistryData_UnitTestContext& Context() const;
1.162 + }; // CRegistryData_NewL_Transition
1.163 +
1.164 +// ______________________________________________________________________________
1.165 +//
1.166 +/**
1.167 + @internalComponent
1.168 + Comments : Transition test of the CRegistryData::Dtor method.
1.169 + */
1.170 +class CRegistryData_Dtor_Transition : public CTransition
1.171 + {
1.172 +public:
1.173 + /**
1.174 + @fn CRegistryData_Dtor_Transition(CUnitTestContext& aUTContext,
1.175 + TTransitionValidator& aValidator)
1.176 + Intended Usage : Standard c'tor method.
1.177 + Error Condition : None.
1.178 + @since 7.0
1.179 + @param aUTContext The context this transition is operating in.
1.180 + @param aValidator Used for checking the pre & post conditions of the test object.
1.181 + @pre None.
1.182 + @post CRegistryData_Dtor_Transition is fully constructed.
1.183 + */
1.184 + CRegistryData_Dtor_Transition(CUnitTestContext& aUTContext,
1.185 + TTransitionValidator& aValidator);
1.186 + /**
1.187 + @fn TransitMethodL()
1.188 + Intended Usage : To execute the CRegistryData::Dtor method for the test harness.
1.189 + Error Condition : Leaves with an error code.
1.190 + @leave KErrNoMemory, (@see CRegistryData::Dtor)
1.191 + @since 7.0
1.192 + @return None
1.193 + @pre CRegistryData_Dtor_Transition is fully constructed.
1.194 + @post No change in the CRegistryData_Dtor_Transition apart
1.195 + from iRegistryData, which may have changed state.
1.196 + (@see CRegistryData::Dtor post-condition) for iRegistryData's new state.
1.197 + */
1.198 + inline void TransitMethodL();
1.199 +
1.200 + /**
1.201 + @fn Context() const
1.202 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.203 + Error Condition : None.
1.204 + @since 7.0
1.205 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.206 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.207 + @post No change in the CRegistryData_Dtor_Transition
1.208 + */
1.209 + inline CRegistryData_UnitTestContext& Context() const;
1.210 + }; // CRegistryData_Dtor_Transition
1.211 +
1.212 +// ______________________________________________________________________________
1.213 +//
1.214 +/**
1.215 + @internalComponent
1.216 + Comments : Transition test of the CRegistryData::AddDllDataL method.
1.217 + */
1.218 +class CRegistryData_AddDllDataL_Transition : public CTransitionType
1.219 + {
1.220 +public:
1.221 + /**
1.222 + @fn CRegistryData_AddDllDataL_Transition(CUnitTestContext& aUTContext,
1.223 + TTransitionValidator& aValidator)
1.224 + Intended Usage : Standard c'tor method.
1.225 + Error Condition : None.
1.226 + @since 7.0
1.227 + @param aUTContext The context this transition is operating in.
1.228 + @param aValidator Used for checking the pre & post conditions of the test object.
1.229 + @pre None.
1.230 + @post CRegistryData_AddDllDataL_Transition is fully constructed.
1.231 + */
1.232 + CRegistryData_AddDllDataL_Transition(CUnitTestContext& aUTContext,
1.233 + TTransitionValidator& aValidator);
1.234 + /**
1.235 + @fn TransitMethodL()
1.236 + Intended Usage : To execute the CRegistryData::AddDllDataL method for the test harness.
1.237 + Error Condition : Leaves with an error code.
1.238 + @leave KErrNoMemory, (@see CRegistryData::AddDllDataL)
1.239 + @since 7.0
1.240 + @return None
1.241 + @pre CRegistryData_AddDllDataL_Transition is fully constructed.
1.242 + @post No change in the CRegistryData_AddDllDataL_Transition apart
1.243 + from iRegistryData, which may have changed state.
1.244 + (@see CRegistryData::AddDllDataL post-condition) for iRegistryData's new state.
1.245 + */
1.246 + inline void TransitMethodL();
1.247 +
1.248 + /**
1.249 + @fn Context() const
1.250 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.251 + Error Condition : None.
1.252 + @since 7.0
1.253 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.254 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.255 + @post No change in the CRegistryData_AddDllDataL_Transition
1.256 + */
1.257 + inline CRegistryData_UnitTestContext& Context() const;
1.258 + }; // CRegistryData_AddDllDataL_Transition
1.259 +
1.260 +// ______________________________________________________________________________
1.261 +//
1.262 +/**
1.263 + @internalComponent
1.264 + Comments : Transition test of the CRegistryData::GetImplementationInformationL method.
1.265 + */
1.266 +class CRegistryData_GetImplementationInformationL_Transition : public CTransitionType
1.267 + {
1.268 +public:
1.269 + /**
1.270 + @fn CRegistryData_GetImplementationInformationL_Transition(CUnitTestContext& aUTContext,
1.271 + TTransitionValidator& aValidator)
1.272 + Intended Usage : Standard c'tor method.
1.273 + Error Condition : None.
1.274 + @since 7.0
1.275 + @param aUTContext The context this transition is operating in.
1.276 + @param aValidator Used for checking the pre & post conditions of the test object.
1.277 + @pre None.
1.278 + @post CRegistryData_GetImplementationInformationL_Transition is fully constructed.
1.279 + */
1.280 + CRegistryData_GetImplementationInformationL_Transition(CUnitTestContext& aUTContext,
1.281 + TTransitionValidator& aValidator);
1.282 + /**
1.283 + @fn TransitMethodL()
1.284 + Intended Usage : To execute the CRegistryData::GetImplementationInformationL method for the test harness.
1.285 + Error Condition : Leaves with an error code.
1.286 + @leave KErrNoMemory, (@see CRegistryData::GetImplementationInformationL)
1.287 + @since 7.0
1.288 + @return None
1.289 + @pre CRegistryData_GetImplementationInformationL_Transition is fully constructed.
1.290 + @post No change in the CRegistryData_GetImplementationInformationL_Transition apart
1.291 + from iRegistryData, which may have changed state.
1.292 + (@see CRegistryData::GetImplementationInformationL post-condition) for iRegistryData's new state.
1.293 + */
1.294 + inline void TransitMethodL();
1.295 +
1.296 + /**
1.297 + @fn Context() const
1.298 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.299 + Error Condition : None.
1.300 + @since 7.0
1.301 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.302 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.303 + @post No change in the CRegistryData_GetImplementationInformationL_Transition
1.304 + */
1.305 + inline CRegistryData_UnitTestContext& Context() const;
1.306 + }; // CRegistryData_GetImplementationInformationL_Transition
1.307 +
1.308 +// ______________________________________________________________________________
1.309 +//
1.310 +/**
1.311 + @internalComponent
1.312 + Comments : Transition test of the CRegistryData::IsRegisteredWithDateL method.
1.313 + */
1.314 +class CRegistryData_IsRegisteredWithDateL_Transition : public CTransitionType
1.315 + {
1.316 +public:
1.317 + /**
1.318 + @fn CRegistryData_IsRegisteredWithDateL_Transition(CUnitTestContext& aUTContext,
1.319 + TTransitionValidator& aValidator)
1.320 + Intended Usage : Standard c'tor method.
1.321 + Error Condition : None.
1.322 + @since 7.0
1.323 + @param aUTContext The context this transition is operating in.
1.324 + @param aValidator Used for checking the pre & post conditions of the test object.
1.325 + @pre None.
1.326 + @post CRegistryData_IsRegisteredWithDateL_Transition is fully constructed.
1.327 + */
1.328 + CRegistryData_IsRegisteredWithDateL_Transition(CUnitTestContext& aUTContext,
1.329 + TTransitionValidator& aValidator);
1.330 + /**
1.331 + @fn TransitMethodL()
1.332 + Intended Usage : To execute the CRegistryData::IsRegisteredWithDateL method for the test harness.
1.333 + Error Condition : Leaves with an error code.
1.334 + @leave KErrNoMemory, (@see CRegistryData::IsRegisteredWithDateL)
1.335 + @since 7.0
1.336 + @return None
1.337 + @pre CRegistryData_IsRegisteredWithDateL_Transition is fully constructed.
1.338 + @post No change in the CRegistryData_IsRegisteredWithDateL_Transition apart
1.339 + from iRegistryData, which may have changed state.
1.340 + (@see CRegistryData::IsRegisteredWithDateL post-condition) for iRegistryData's new state.
1.341 + */
1.342 + inline void TransitMethodL();
1.343 +
1.344 + /**
1.345 + @fn Context() const
1.346 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.347 + Error Condition : None.
1.348 + @since 7.0
1.349 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.350 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.351 + @post No change in the CRegistryData_IsRegisteredWithDateL_Transition
1.352 + */
1.353 + inline CRegistryData_UnitTestContext& Context() const;
1.354 + }; // CRegistryData_IsRegisteredWithDateL_Transition
1.355 +
1.356 +// ______________________________________________________________________________
1.357 +//
1.358 +/**
1.359 + @internalComponent
1.360 + Comments : Transition test of the CRegistryData::ListImplementationsL method.
1.361 + */
1.362 +class CRegistryData_ListImplementationsL_Transition : public CTransitionType
1.363 + {
1.364 +public:
1.365 + /**
1.366 + @fn CRegistryData_ListImplementationsL_Transition(CUnitTestContext& aUTContext,
1.367 + TTransitionValidator& aValidator)
1.368 + Intended Usage : Standard c'tor method.
1.369 + Error Condition : None.
1.370 + @since 7.0
1.371 + @param aUTContext The context this transition is operating in.
1.372 + @param aValidator Used for checking the pre & post conditions of the test object.
1.373 + @pre None.
1.374 + @post CRegistryData_ListImplementationsL_Transition is fully constructed.
1.375 + */
1.376 + CRegistryData_ListImplementationsL_Transition(CUnitTestContext& aUTContext,
1.377 + TTransitionValidator& aValidator);
1.378 + /**
1.379 + @fn TransitMethodL()
1.380 + Intended Usage : To execute the CRegistryData::ListImplementationsL method for the test harness.
1.381 + Error Condition : Leaves with an error code.
1.382 + @leave KErrNoMemory, (@see CRegistryData::ListImplementationsL)
1.383 + @since 7.0
1.384 + @return None
1.385 + @pre CRegistryData_ListImplementationsL_Transition is fully constructed.
1.386 + @post No change in the CRegistryData_ListImplementationsL_Transition apart
1.387 + from iRegistryData, which may have changed state.
1.388 + (@see CRegistryData::ListImplementationsL post-condition) for iRegistryData's new state.
1.389 + */
1.390 + inline void TransitMethodL();
1.391 +
1.392 + /**
1.393 + @fn Context() const
1.394 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.395 + Error Condition : None.
1.396 + @since 7.0
1.397 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.398 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.399 + @post No change in the CRegistryData_ListImplementationsL_Transition
1.400 + */
1.401 + inline CRegistryData_UnitTestContext& Context() const;
1.402 + }; // CRegistryData_ListImplementationsL_Transition
1.403 +
1.404 +// ______________________________________________________________________________
1.405 +//
1.406 +/**
1.407 + @internalComponent
1.408 + Comments : Transition test of the CRegistryData::SetEnabledState method.
1.409 + */
1.410 +class CRegistryData_SetEnabledState_Transition : public CTransitionType
1.411 + {
1.412 +public:
1.413 + /**
1.414 + @fn CRegistryData_SetEnabledState_Transition(CUnitTestContext& aUTContext,
1.415 + TTransitionValidator& aValidator)
1.416 + Intended Usage : Standard c'tor method.
1.417 + Error Condition : None.
1.418 + @since 7.0
1.419 + @param aUTContext The context this transition is operating in.
1.420 + @param aValidator Used for checking the pre & post conditions of the test object.
1.421 + @pre None.
1.422 + @post CRegistryData_SetEnabledState_Transition is fully constructed.
1.423 + */
1.424 + CRegistryData_SetEnabledState_Transition(CUnitTestContext& aUTContext,
1.425 + TTransitionValidator& aValidator);
1.426 + /**
1.427 + @fn TransitMethodL()
1.428 + Intended Usage : To execute the CRegistryData::SetEnabledState method for the
1.429 + test harness.
1.430 + Error Condition : Leaves with an error code.
1.431 + @leave KErrNoMemory
1.432 + @since 7.0
1.433 + @return None
1.434 + @pre CRegistryData_SetEnabledState_Transition is fully constructed.
1.435 + @post No change in the CRegistryData_SetEnabledState_Transition apart
1.436 + from iRegistryData, which may have changed state.
1.437 + (@see CRegistryData::SetEnabledState post-condition) for iRegistryData's new state.
1.438 + */
1.439 + inline void TransitMethodL();
1.440 +
1.441 + /**
1.442 + @fn Context() const
1.443 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.444 + Error Condition : None.
1.445 + @since 7.0
1.446 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.447 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.448 + @post No change in the CRegistryData_MarkDisabled_Transition
1.449 + */
1.450 + inline CRegistryData_UnitTestContext& Context() const;
1.451 + }; // CRegistryData_MarkDisabled_Transition
1.452 +
1.453 +// ______________________________________________________________________________
1.454 +//
1.455 +/**
1.456 + @internalComponent
1.457 + Comments : Transition test of the CRegistryData::PersistNowL method.
1.458 + */
1.459 +class CRegistryData_PersistNowL_Transition : public CTransitionType
1.460 + {
1.461 +public:
1.462 + /**
1.463 + @fn CRegistryData_PersistNowL_Transition(CUnitTestContext& aUTContext,
1.464 + TTransitionValidator& aValidator)
1.465 + Intended Usage : Standard c'tor method.
1.466 + Error Condition : None.
1.467 + @since 7.0
1.468 + @param aUTContext The context this transition is operating in.
1.469 + @param aValidator Used for checking the pre & post conditions of the test object.
1.470 + @pre None.
1.471 + @post CRegistryData_PersistNowL_Transition is fully constructed.
1.472 + */
1.473 + CRegistryData_PersistNowL_Transition(CUnitTestContext& aUTContext,
1.474 + TTransitionValidator& aValidator);
1.475 + /**
1.476 + @fn TransitMethodL()
1.477 + Intended Usage : To execute the CRegistryData::PersistNowL method for the test harness.
1.478 + Error Condition : Leaves with an error code.
1.479 + @leave KErrNoMemory, (@see CRegistryData::PersistNowL)
1.480 + @since 7.0
1.481 + @return None
1.482 + @pre CRegistryData_PersistNowL_Transition is fully constructed.
1.483 + @post No change in the CRegistryData_PersistNowL_Transition apart
1.484 + from iRegistryData, which may have changed state.
1.485 + (@see CRegistryData::PersistNowL post-condition) for iRegistryData's new state.
1.486 + */
1.487 + inline void TransitMethodL();
1.488 +
1.489 + /**
1.490 + @fn Context() const
1.491 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.492 + Error Condition : None.
1.493 + @since 7.0
1.494 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.495 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.496 + @post No change in the CRegistryData_PersistNowL_Transition
1.497 + */
1.498 + inline CRegistryData_UnitTestContext& Context() const;
1.499 + }; // CRegistryData_PersistNowL_Transition
1.500 +
1.501 +// ______________________________________________________________________________
1.502 +//
1.503 +/**
1.504 + @internalComponent
1.505 + Comments : Transition test of the CRegistryData::TemporaryUninstallL method.
1.506 + */
1.507 +class CRegistryData_TemporaryUninstallL_Transition : public CTransitionType
1.508 + {
1.509 +public:
1.510 + /**
1.511 + @fn CRegistryData_TemporaryUninstallL_Transition(CUnitTestContext& aUTContext,
1.512 + TTransitionValidator& aValidator)
1.513 + Intended Usage : Standard c'tor method.
1.514 + Error Condition : None.
1.515 + @since 7.0
1.516 + @param aUTContext The context this transition is operating in.
1.517 + @param aValidator Used for checking the pre & post conditions of the test object.
1.518 + @pre None.
1.519 + @post CRegistryData_TemporaryUninstallL_Transition is fully constructed.
1.520 + */
1.521 + CRegistryData_TemporaryUninstallL_Transition(CUnitTestContext& aUTContext,
1.522 + TTransitionValidator& aValidator);
1.523 + /**
1.524 + @fn TransitMethodL()
1.525 + Intended Usage : To execute the CRegistryData::TemporaryUninstall method for the test harness.
1.526 + Error Condition : Leaves with an error code.
1.527 + @leave KErrNoMemory, (@see CRegistryData::TemporaryUninstall)
1.528 + @since 7.0
1.529 + @return None
1.530 + @pre CRegistryData_TemporaryUninstall_Transition is fully constructed.
1.531 + @post No change in the CRegistryData_TemporaryUninstall_Transition apart
1.532 + from iRegistryData, which may have changed state.
1.533 + (@see CRegistryData::TemporaryUninstall post-condition) for iRegistryData's new state.
1.534 + */
1.535 + inline void TransitMethodL();
1.536 +
1.537 + /**
1.538 + @fn Context() const
1.539 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.540 + Error Condition : None.
1.541 + @since 7.0
1.542 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.543 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.544 + @post No change in the CRegistryData_TemporaryUninstall_Transition
1.545 + */
1.546 + inline CRegistryData_UnitTestContext& Context() const;
1.547 + }; // CRegistryData_TemporaryUninstall_Transition
1.548 +
1.549 +// ______________________________________________________________________________
1.550 +//
1.551 +/**
1.552 + @internalComponent
1.553 + Comments : Transition test of the CRegistryData::UndoTemporaryUninstallL method.
1.554 + */
1.555 +class CRegistryData_UndoTemporaryUninstallL_Transition : public CTransitionType
1.556 + {
1.557 +public:
1.558 + /**
1.559 + @fn CRegistryData_UndoTemporaryUninstallL_Transition(CUnitTestContext& aUTContext,
1.560 + TTransitionValidator& aValidator)
1.561 + Intended Usage : Standard c'tor method.
1.562 + Error Condition : None.
1.563 + @since 7.0
1.564 + @param aUTContext The context this transition is operating in.
1.565 + @param aValidator Used for checking the pre & post conditions of the test object.
1.566 + @pre None.
1.567 + @post CRegistryData_UndoTemporaryUninstallL_Transition is fully constructed.
1.568 + */
1.569 + CRegistryData_UndoTemporaryUninstallL_Transition(CUnitTestContext& aUTContext,
1.570 + TTransitionValidator& aValidator);
1.571 + /**
1.572 + @fn TransitMethodL()
1.573 + Intended Usage : To execute the CRegistryData::UndoTemporaryUninstallL method for the test harness.
1.574 + Error Condition : Leaves with an error code.
1.575 + @leave KErrNoMemory, (@see CRegistryData::UndoTemporaryUninstallL)
1.576 + @since 7.0
1.577 + @return None
1.578 + @pre CRegistryData_UndoTemporaryUninstallL_Transition is fully constructed.
1.579 + @post No change in the CRegistryData_UndoTemporaryUninstallL_Transition apart
1.580 + from iRegistryData, which may have changed state.
1.581 + (@see CRegistryData::UndoTemporaryUninstallL post-condition) for iRegistryData's new state.
1.582 + */
1.583 + inline void TransitMethodL();
1.584 +
1.585 + /**
1.586 + @fn Context() const
1.587 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.588 + Error Condition : None.
1.589 + @since 7.0
1.590 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.591 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.592 + @post No change in the CRegistryData_UndoTemporaryUninstallL_Transition
1.593 + */
1.594 + inline CRegistryData_UnitTestContext& Context() const;
1.595 + }; // CRegistryData_UndoTemporaryUninstallL_Transition
1.596 +
1.597 +// ______________________________________________________________________________
1.598 +//
1.599 +/**
1.600 + @internalComponent
1.601 + Comments : Transition test of the CRegistryData::UpdateDllDataL method.
1.602 + */
1.603 +class CRegistryData_UpdateDllDataL_Transition : public CTransitionType
1.604 + {
1.605 +public:
1.606 + /**
1.607 + @fn CRegistryData_UpdateDllDataL_Transition(CUnitTestContext& aUTContext,
1.608 + TTransitionValidator& aValidator)
1.609 + Intended Usage : Standard c'tor method.
1.610 + Error Condition : None.
1.611 + @since 7.0
1.612 + @param aUTContext The context this transition is operating in.
1.613 + @param aValidator Used for checking the pre & post conditions of the test object.
1.614 + @pre None.
1.615 + @post CRegistryData_UpdateDllDataL_Transition is fully constructed.
1.616 + */
1.617 + CRegistryData_UpdateDllDataL_Transition(CUnitTestContext& aUTContext,
1.618 + TTransitionValidator& aValidator);
1.619 + /**
1.620 + @fn TransitMethodL()
1.621 + Intended Usage : To execute the CRegistryData::UpdateDllDataL method for the test harness.
1.622 + Error Condition : Leaves with an error code.
1.623 + @leave KErrNoMemory, (@see CRegistryData::UpdateDllDataL)
1.624 + @since 7.0
1.625 + @return None
1.626 + @pre CRegistryData_UpdateDllDataL_Transition is fully constructed.
1.627 + @post No change in the CRegistryData_UpdateDllDataL_Transition apart
1.628 + from iRegistryData, which may have changed state.
1.629 + (@see CRegistryData::UpdateDllDataL post-condition) for iRegistryData's new state.
1.630 + */
1.631 + inline void TransitMethodL();
1.632 +
1.633 + /**
1.634 + @fn Context() const
1.635 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.636 + Error Condition : None.
1.637 + @since 7.0
1.638 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.639 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.640 + @post No change in the CRegistryData_UpdateDllDataL_Transition
1.641 + */
1.642 + inline CRegistryData_UnitTestContext& Context() const;
1.643 + }; // CRegistryData_UpdateDllDataL_Transition
1.644 +
1.645 +// ______________________________________________________________________________
1.646 +//
1.647 +/**
1.648 + @internalComponent
1.649 + Comments : Transition test of the CRegistryData::BuildIndexesL method.
1.650 + */
1.651 +class CRegistryData_BuildIndexesL_Transition : public CTransitionType
1.652 + {
1.653 +public:
1.654 + /**
1.655 + @fn CRegistryData_BuildIndexesL_Transition(CUnitTestContext& aUTContext,
1.656 + TTransitionValidator& aValidator)
1.657 + Intended Usage : Standard c'tor method.
1.658 + Error Condition : None.
1.659 + @since 7.0
1.660 + @param aUTContext The context this transition is operating in.
1.661 + @param aValidator Used for checking the pre & post conditions of the test object.
1.662 + @pre None.
1.663 + @post CRegistryData_BuildIndexesL_Transition is fully constructed.
1.664 + */
1.665 + CRegistryData_BuildIndexesL_Transition(CUnitTestContext& aUTContext,
1.666 + TTransitionValidator& aValidator);
1.667 + /**
1.668 + @fn TransitMethodL()
1.669 + Intended Usage : To execute the CRegistryData::BuildIndexesL method for the test harness.
1.670 + Error Condition : Leaves with an error code.
1.671 + @leave KErrNoMemory, (@see CRegistryData::BuildIndexesL)
1.672 + @since 7.0
1.673 + @return None
1.674 + @pre CRegistryData_BuildIndexesL_Transition is fully constructed.
1.675 + @post No change in the CRegistryData_BuildIndexesL_Transition apart
1.676 + from iRegistryData, which may have changed state.
1.677 + (@see CRegistryData::BuildIndexesL post-condition) for iRegistryData's new state.
1.678 + */
1.679 + inline void TransitMethodL();
1.680 +
1.681 + /**
1.682 + @fn Context() const
1.683 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.684 + Error Condition : None.
1.685 + @since 7.0
1.686 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.687 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.688 + @post No change in the CRegistryData_BuildIndexesL_Transition
1.689 + */
1.690 + inline CRegistryData_UnitTestContext& Context() const;
1.691 + }; // CRegistryData_BuildIndexesL_Transition
1.692 +
1.693 +// ______________________________________________________________________________
1.694 +//
1.695 +/**
1.696 + @internalComponent
1.697 + Comments : Transition test of the CRegistryData::IndexedFind method.
1.698 + */
1.699 +class CRegistryData_IndexedFind_Transition : public CTransitionType
1.700 + {
1.701 +public:
1.702 + /**
1.703 + @fn CRegistryData_IndexedFind_Transition(CUnitTestContext& aUTContext,
1.704 + TTransitionValidator& aValidator)
1.705 + Intended Usage : Standard c'tor method.
1.706 + Error Condition : None.
1.707 + @since 7.0
1.708 + @param aUTContext The context this transition is operating in.
1.709 + @param aValidator Used for checking the pre & post conditions of the test object.
1.710 + @pre None.
1.711 + @post CRegistryData_IndexedFind_Transition is fully constructed.
1.712 + */
1.713 + CRegistryData_IndexedFind_Transition(CUnitTestContext& aUTContext,
1.714 + TTransitionValidator& aValidator);
1.715 + /**
1.716 + @fn TransitMethodL()
1.717 + Intended Usage : To execute the CRegistryData::IndexedFind method for the test harness.
1.718 + Error Condition : Leaves with an error code.
1.719 + @leave KErrNoMemory, (@see CRegistryData::IndexedFind)
1.720 + @since 7.0
1.721 + @return None
1.722 + @pre CRegistryData_IndexedFind_Transition is fully constructed.
1.723 + @post No change in the CRegistryData_IndexedFind_Transition apart
1.724 + from iRegistryData, which may have changed state.
1.725 + (@see CRegistryData::IndexedFind post-condition) for iRegistryData's new state.
1.726 + */
1.727 + inline void TransitMethodL();
1.728 +
1.729 + /**
1.730 + @fn Context() const
1.731 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.732 + Error Condition : None.
1.733 + @since 7.0
1.734 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.735 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.736 + @post No change in the CRegistryData_IndexedFind_Transition
1.737 + */
1.738 + inline CRegistryData_UnitTestContext& Context() const;
1.739 + }; // CRegistryData_IndexedFind_Transition
1.740 +
1.741 +// ______________________________________________________________________________
1.742 +//
1.743 +/**
1.744 + @internalComponent
1.745 + Comments : Transition test of the CRegistryData::RestoreL method.
1.746 + */
1.747 +class CRegistryData_RestoreL_Transition : public CTransitionType
1.748 + {
1.749 +public:
1.750 + /**
1.751 + @fn CRegistryData_RestoreL_Transition(CUnitTestContext& aUTContext,
1.752 + TTransitionValidator& aValidator)
1.753 + Intended Usage : Standard c'tor method.
1.754 + Error Condition : None.
1.755 + @since 7.0
1.756 + @param aUTContext The context this transition is operating in.
1.757 + @param aValidator Used for checking the pre & post conditions of the test object.
1.758 + @pre None.
1.759 + @post CRegistryData_RestoreL_Transition is fully constructed.
1.760 + */
1.761 + CRegistryData_RestoreL_Transition(CUnitTestContext& aUTContext,
1.762 + TTransitionValidator& aValidator);
1.763 + /**
1.764 + @fn TransitMethodL()
1.765 + Intended Usage : To execute the CRegistryData::RestoreL method for the test harness.
1.766 + Error Condition : Leaves with an error code.
1.767 + @leave KErrNoMemory, (@see CRegistryData::RestoreL)
1.768 + @since 7.0
1.769 + @return None
1.770 + @pre CRegistryData_RestoreL_Transition is fully constructed.
1.771 + @post No change in the CRegistryData_RestoreL_Transition apart
1.772 + from iRegistryData, which may have changed state.
1.773 + (@see CRegistryData::RestoreL post-condition) for iRegistryData's new state.
1.774 + */
1.775 + inline void TransitMethodL();
1.776 +
1.777 + /**
1.778 + @fn Context() const
1.779 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.780 + Error Condition : None.
1.781 + @since 7.0
1.782 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.783 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.784 + @post No change in the CRegistryData_RestoreL_Transition
1.785 + */
1.786 + inline CRegistryData_UnitTestContext& Context() const;
1.787 + }; // CRegistryData_RestoreL_Transition
1.788 +
1.789 +// ______________________________________________________________________________
1.790 +//
1.791 +/**
1.792 + @internalComponent
1.793 + Comments : Transition test of the CRegistryData::StoreL method.
1.794 + */
1.795 +class CRegistryData_StoreL_Transition : public CTransitionType
1.796 + {
1.797 +public:
1.798 + /**
1.799 + @fn CRegistryData_StoreL_Transition(CUnitTestContext& aUTContext,
1.800 + TTransitionValidator& aValidator)
1.801 + Intended Usage : Standard c'tor method.
1.802 + Error Condition : None.
1.803 + @since 7.0
1.804 + @param aUTContext The context this transition is operating in.
1.805 + @param aValidator Used for checking the pre & post conditions of the test object.
1.806 + @pre None.
1.807 + @post CRegistryData_StoreL_Transition is fully constructed.
1.808 + */
1.809 + CRegistryData_StoreL_Transition(CUnitTestContext& aUTContext,
1.810 + TTransitionValidator& aValidator);
1.811 + /**
1.812 + @fn TransitMethodL()
1.813 + Intended Usage : To execute the CRegistryData::StoreL method for the test harness.
1.814 + Error Condition : Leaves with an error code.
1.815 + @leave KErrNoMemory, (@see CRegistryData::StoreL)
1.816 + @since 7.0
1.817 + @return None
1.818 + @pre CRegistryData_StoreL_Transition is fully constructed.
1.819 + @post No change in the CRegistryData_StoreL_Transition apart
1.820 + from iRegistryData, which may have changed state.
1.821 + (@see CRegistryData::StoreL post-condition) for iRegistryData's new state.
1.822 + */
1.823 + inline void TransitMethodL();
1.824 +
1.825 + /**
1.826 + @fn Context() const
1.827 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.828 + Error Condition : None.
1.829 + @since 7.0
1.830 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.831 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.832 + @post No change in the CRegistryData_StoreL_Transition
1.833 + */
1.834 + inline CRegistryData_UnitTestContext& Context() const;
1.835 + }; // CRegistryData_StoreL_Transition
1.836 +
1.837 +// ______________________________________________________________________________
1.838 +//
1.839 +/**
1.840 + @internalComponent
1.841 + Comments : Transition test of the CRegistryData::MatchOnUid method.
1.842 + */
1.843 +class CRegistryData_MatchOnUid_Transition : public CTransitionType
1.844 + {
1.845 +public:
1.846 + /**
1.847 + @fn CRegistryData_MatchOnUid_Transition(CUnitTestContext& aUTContext,
1.848 + TTransitionValidator& aValidator)
1.849 + Intended Usage : Standard c'tor method.
1.850 + Error Condition : None.
1.851 + @since 7.0
1.852 + @param aUTContext The context this transition is operating in.
1.853 + @param aValidator Used for checking the pre & post conditions of the test object.
1.854 + @pre None.
1.855 + @post CRegistryData_MatchOnUid_Transition is fully constructed.
1.856 + */
1.857 + CRegistryData_MatchOnUid_Transition(CUnitTestContext& aUTContext,
1.858 + TTransitionValidator& aValidator);
1.859 + /**
1.860 + @fn TransitMethodL()
1.861 + Intended Usage : To execute the CRegistryData::MatchOnUid method for the test harness.
1.862 + Error Condition : Leaves with an error code.
1.863 + @leave KErrNoMemory, (@see CRegistryData::MatchOnUid)
1.864 + @since 7.0
1.865 + @return None
1.866 + @pre CRegistryData_MatchOnUid_Transition is fully constructed.
1.867 + @post No change in the CRegistryData_MatchOnUid_Transition apart
1.868 + from iRegistryData, which may have changed state.
1.869 + (@see CRegistryData::MatchOnUid post-condition) for iRegistryData's new state.
1.870 + */
1.871 + inline void TransitMethodL();
1.872 +
1.873 + /**
1.874 + @fn Context() const
1.875 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.876 + Error Condition : None.
1.877 + @since 7.0
1.878 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.879 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.880 + @post No change in the CRegistryData_MatchOnUid_Transition
1.881 + */
1.882 + inline CRegistryData_UnitTestContext& Context() const;
1.883 + }; // CRegistryData_MatchOnUid_Transition
1.884 +
1.885 +// ______________________________________________________________________________
1.886 +//
1.887 +/**
1.888 + @internalComponent
1.889 + Comments : Transition test of the CRegistryData::DiscoveriesBeginning method.
1.890 + */
1.891 +class CRegistryData_DiscoveriesBeginning_Transition : public CTransition
1.892 + {
1.893 +public:
1.894 + /**
1.895 + @fn CRegistryData_DiscoveriesBeginning_Transition(CUnitTestContext& aUTContext,
1.896 + TTransitionValidator& aValidator)
1.897 + Intended Usage : Standard c'tor method.
1.898 + Error Condition : None.
1.899 + @since 7.0
1.900 + @param aUTContext The context this transition is operating in.
1.901 + @param aValidator Used for checking the pre & post conditions of the test object.
1.902 + @pre None.
1.903 + @post CRegistryData_DiscoveriesBeginning_Transition is fully constructed.
1.904 + */
1.905 + CRegistryData_DiscoveriesBeginning_Transition(CUnitTestContext& aUTContext,
1.906 + TTransitionValidator& aValidator);
1.907 + /**
1.908 + @fn TransitMethodL()
1.909 + Intended Usage : To execute the CRegistryData::DiscoveriesBeginning method for the test harness.
1.910 + Error Condition : Leaves with an error code.
1.911 + @leave KErrNoMemory, (@see CRegistryData::DiscoveriesBeginning)
1.912 + @since 7.0
1.913 + @return None
1.914 + @pre CRegistryData_DiscoveriesBeginning_Transition is fully constructed.
1.915 + @post No change in the CRegistryData_DiscoveriesBeginning_Transition apart
1.916 + from iRegistryData, which may have changed state.
1.917 + (@see CRegistryData::DiscoveriesBeginning post-condition) for iRegistryData's new state.
1.918 + */
1.919 + inline void TransitMethodL();
1.920 +
1.921 + /**
1.922 + @fn Context() const
1.923 + Intended Usage : To provide access to the unit test context cast to the correct type.
1.924 + Error Condition : None.
1.925 + @since 7.0
1.926 + @return The unit test context cast to a CRegistryData_UnitTestContext
1.927 + @pre iUTContext is a valid CRegistryData_UnitTestContext.
1.928 + @post No change in the CRegistryData_DiscoveriesBeginning_Transition
1.929 + */
1.930 + inline CRegistryData_UnitTestContext& Context() const;
1.931 + }; // CRegistryData_DiscoveriesBeginning_Transition
1.932 +
1.933 +#include "RegistryDataTransitions.inl"
1.934 +
1.935 +#endif // __REGISTRYDATATRANSITIONS_H__