os/ossrv/lowlevellibsandfws/pluginfw/Test_Bed/inc/Transition.inl
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 //
    15 
    16 inline CUnitTestContext::CUnitTestContext(CDataLogger&			aDataLogger, 
    17 										  MStateAccessor&		aAccessor,
    18 										  MTransitionObserver&	aObserver)
    19 : CBase(), iDataLogger(aDataLogger), iObserver(aObserver), iStateAccessor(aAccessor)
    20 	{
    21 	// Do nothing here
    22 	}
    23 
    24 inline CDataLogger& CUnitTestContext::DataLogger() const
    25 	{
    26 	return iDataLogger;
    27 	}
    28 
    29 inline MTransitionObserver& CUnitTestContext::TransitionObserver() const
    30 	{
    31 	return iObserver;
    32 	}
    33 
    34 inline MStateAccessor& CUnitTestContext::StateAccessor() const
    35 	{
    36 	return iStateAccessor;
    37 	}
    38 
    39 inline TTransitionValidator::TTransitionValidator(CUnitTestContext& aUTContext)
    40 : iUTContext(aUTContext)
    41 	{
    42 	// Do nothing here
    43 	}
    44 
    45 inline TTransitionValidator::~TTransitionValidator()
    46 	{
    47 	// Do nothing here
    48 	}
    49 
    50 inline TBool TTransitionValidator::ValidatePreConditions()
    51 	{
    52 	return ETrue;
    53 	}
    54 
    55 inline TBool TTransitionValidator::ValidatePostConditions(TTestBedAsyncState /*aAsyncState*/)
    56 	{
    57 	return ETrue;
    58 	}
    59 
    60 inline TTransitionInfo::TTransitionInfo(const TDesC& aTransitionId, 
    61 										CDataLogger& aDataLogger)
    62 : iTransitionId(aTransitionId),	iIteration(0),	iDataLogger(aDataLogger)
    63 	{
    64 	// Do nothing here
    65 	}
    66