os/ossrv/lowlevellibsandfws/pluginfw/Framework/DiscovererTest/DiscovererUnitTestContext.cpp
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 context for the tests upon the CDiscoverer class
    15 // 
    16 //
    17 
    18 #include "DiscovererObserver.h"
    19 #include "DiscovererTransitions.h"
    20 #include "DiscovererObserverStub.h"
    21 
    22 // ______________________________________________________________________________
    23 //
    24 CDiscoverer_UnitTestContext::CDiscoverer_UnitTestContext(CDataLogger& aDataLogger,
    25 												MStateAccessor& aStateAccessor,
    26 												MTransitionObserver& aObserver,
    27 												RFs& aFs)
    28 : CUnitTestContext(aDataLogger, aStateAccessor, aObserver),	iFs(aFs)
    29 	{
    30 	//Do nothing
    31 	}
    32 
    33 CDiscoverer_UnitTestContext::~CDiscoverer_UnitTestContext()
    34 	{
    35 	delete iDiscoverer;
    36 	delete iDiscovererObserver;
    37 	delete iDir;
    38 	delete iReturnedFileEntry;
    39 	}
    40 
    41 MDiscovererObserver& CDiscoverer_UnitTestContext::DiscovererObserver()
    42 	{
    43 	return *STATIC_CAST(MDiscovererObserver*, iDiscovererObserver);
    44 	}
    45