sl@0: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // The context for the tests upon the CDiscoverer class sl@0: // sl@0: // sl@0: sl@0: #include "DiscovererObserver.h" sl@0: #include "DiscovererTransitions.h" sl@0: #include "DiscovererObserverStub.h" sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: CDiscoverer_UnitTestContext::CDiscoverer_UnitTestContext(CDataLogger& aDataLogger, sl@0: MStateAccessor& aStateAccessor, sl@0: MTransitionObserver& aObserver, sl@0: RFs& aFs) sl@0: : CUnitTestContext(aDataLogger, aStateAccessor, aObserver), iFs(aFs) sl@0: { sl@0: //Do nothing sl@0: } sl@0: sl@0: CDiscoverer_UnitTestContext::~CDiscoverer_UnitTestContext() sl@0: { sl@0: delete iDiscoverer; sl@0: delete iDiscovererObserver; sl@0: delete iDir; sl@0: delete iReturnedFileEntry; sl@0: } sl@0: sl@0: MDiscovererObserver& CDiscoverer_UnitTestContext::DiscovererObserver() sl@0: { sl@0: return *STATIC_CAST(MDiscovererObserver*, iDiscovererObserver); sl@0: } sl@0: