lowlevellibsandfws/pluginfw/Test_Bed/inc/Transition.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 02:01:42 +0200
changeset 0 e4d67989cc36
permissions -rw-r--r--
Revision: 201002 Kit: 201005

// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

inline CUnitTestContext::CUnitTestContext(CDataLogger&			aDataLogger, 
										  MStateAccessor&		aAccessor,
										  MTransitionObserver&	aObserver)
: CBase(), iDataLogger(aDataLogger), iObserver(aObserver), iStateAccessor(aAccessor)
	{
	// Do nothing here
	}

inline CDataLogger& CUnitTestContext::DataLogger() const
	{
	return iDataLogger;
	}

inline MTransitionObserver& CUnitTestContext::TransitionObserver() const
	{
	return iObserver;
	}

inline MStateAccessor& CUnitTestContext::StateAccessor() const
	{
	return iStateAccessor;
	}

inline TTransitionValidator::TTransitionValidator(CUnitTestContext& aUTContext)
: iUTContext(aUTContext)
	{
	// Do nothing here
	}

inline TTransitionValidator::~TTransitionValidator()
	{
	// Do nothing here
	}

inline TBool TTransitionValidator::ValidatePreConditions()
	{
	return ETrue;
	}

inline TBool TTransitionValidator::ValidatePostConditions(TTestBedAsyncState /*aAsyncState*/)
	{
	return ETrue;
	}

inline TTransitionInfo::TTransitionInfo(const TDesC& aTransitionId, 
										CDataLogger& aDataLogger)
: iTransitionId(aTransitionId),	iIteration(0),	iDataLogger(aDataLogger)
	{
	// Do nothing here
	}