testexecfw/stf/stfext/testmodules/teftestmod/teftestmodulefw/tefunit/src/cactivetestfixture.cpp
changeset 2 8bb370ba6d1d
equal deleted inserted replaced
1:bbd31066657e 2:8bb370ba6d1d
       
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file CActiveTestFixture.cpp
       
    22 */
       
    23 
       
    24 #include "tefunit.h"
       
    25 
       
    26 CActiveTestFixture::~CActiveTestFixture()
       
    27 /**
       
    28  * Destructor
       
    29  */
       
    30 	{
       
    31 	}
       
    32 
       
    33 void CActiveTestFixture::SetupL()
       
    34 /**
       
    35  * SetupL
       
    36  */
       
    37 	{
       
    38 	}
       
    39 
       
    40 void CActiveTestFixture::TearDownL()
       
    41 /**
       
    42  * TearDownL
       
    43  */
       
    44 	{
       
    45 	}
       
    46 
       
    47 void CActiveTestFixture::ConstructEnvL()
       
    48 /**
       
    49  * ConstructEnvL
       
    50  */
       
    51 	{
       
    52 	// Construct a new ActiveScheduler and install it
       
    53 	iSched = new (ELeave) CActiveScheduler();
       
    54 	CActiveScheduler::Install(iSched);
       
    55 	}
       
    56 
       
    57 void CActiveTestFixture::DestroyEnvL()
       
    58 /**
       
    59  * DestroyEnvL
       
    60  */
       
    61 	{
       
    62 	delete iSched;
       
    63 	iSched = NULL;
       
    64 	}
       
    65 
       
    66 void CActiveTestFixture::StartEnvL()
       
    67 /**
       
    68  * StartEnvL
       
    69  */
       
    70 	{
       
    71 	// Start the ActiveScheduler
       
    72 	CActiveScheduler::Start();
       
    73 	}
       
    74 
       
    75 void CActiveTestFixture::StopEnvL()
       
    76 /**
       
    77  * StopEnvL
       
    78  */
       
    79 	{
       
    80 	// Stop the ActiveScheduler
       
    81 	CActiveScheduler::Stop();
       
    82 	}