os/ossrv/lowlevellibsandfws/apputils/tsrc/t_strings/StringPoolTransitionValidation.inl
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // The implementation of the transition validation classes upon the RStringPool class methods.
    15 // 
    16 //
    17 
    18 // ______________________________________________________________________________
    19 //
    20 inline TStringPool_True_TransitionValidator::TStringPool_True_TransitionValidator(CUnitTestContext& aUTContext)
    21 :TTransitionValidator(aUTContext)
    22 	{
    23 	// Do nothing
    24 	}
    25 
    26 inline TBool TStringPool_True_TransitionValidator::ValidatePreConditions()
    27 	{
    28 	return ETrue;
    29 	}
    30 	
    31 inline TBool TStringPool_True_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
    32 	{
    33 	return ETrue;
    34 	}
    35 	
    36 // ______________________________________________________________________________
    37 //
    38 inline TStringPool_False_TransitionValidator::TStringPool_False_TransitionValidator(CUnitTestContext& aUTContext)
    39 :TTransitionValidator(aUTContext)
    40 	{
    41 	// Do nothing
    42 	}
    43 
    44 inline TBool TStringPool_False_TransitionValidator::ValidatePreConditions()
    45 	{
    46 	return ETrue;
    47 	}
    48 
    49 inline TBool TStringPool_False_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
    50 	{
    51 	return (static_cast<CStringPool_UnitTestContext&>(iUTContext).iResult == EFalse);
    52 	}
    53