os/ossrv/lowlevellibsandfws/pluginfw/Framework/DiscovererTest/DiscovererUnitTestContext.cpp
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // The context for the tests upon the CDiscoverer class
18 #include "DiscovererObserver.h"
19 #include "DiscovererTransitions.h"
20 #include "DiscovererObserverStub.h"
22 // ______________________________________________________________________________
24 CDiscoverer_UnitTestContext::CDiscoverer_UnitTestContext(CDataLogger& aDataLogger,
25 MStateAccessor& aStateAccessor,
26 MTransitionObserver& aObserver,
28 : CUnitTestContext(aDataLogger, aStateAccessor, aObserver), iFs(aFs)
33 CDiscoverer_UnitTestContext::~CDiscoverer_UnitTestContext()
36 delete iDiscovererObserver;
38 delete iReturnedFileEntry;
41 MDiscovererObserver& CDiscoverer_UnitTestContext::DiscovererObserver()
43 return *STATIC_CAST(MDiscovererObserver*, iDiscovererObserver);