contextframework/cfw/tsrc/public/basic/UT_CCFEngine/UT_CCFEngine.cpp
branchRCL_3
changeset 20 c2c61fdca848
parent 19 924385140d98
equal deleted inserted replaced
19:924385140d98 20:c2c61fdca848
     1 /*
     1 /*
     2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    28 #include "CFEngine.h"
    28 #include "CFEngine.h"
    29 #include "cftestcontextlistener.h"
    29 #include "cftestcontextlistener.h"
    30 #include "CFContextInterface.h"
    30 #include "CFContextInterface.h"
    31 #include "CFContextSubscription.h"
    31 #include "CFContextSubscription.h"
    32 #include "CFContextIndication.h"
    32 #include "CFContextIndication.h"
       
    33 #include "cfenvutils.h"
    33 
    34 
    34 // CONSTANTS
    35 // CONSTANTS
    35 const TInt KSecond = 1000000;
    36 const TInt KSecond = 1000000;
    36 
    37 
    37 // CONSTRUCTION
    38 // CONSTRUCTION
    54     }
    55     }
    55 
    56 
    56 // Destructor (virtual by CBase)
    57 // Destructor (virtual by CBase)
    57 UT_CCFEngine::~UT_CCFEngine()
    58 UT_CCFEngine::~UT_CCFEngine()
    58     {
    59     {
       
    60     // Enable screen saver
       
    61     CFEnvUtils::EnableScreenSaver( ETrue );
    59     }
    62     }
    60 
    63 
    61 // Default constructor
    64 // Default constructor
    62 UT_CCFEngine::UT_CCFEngine()
    65 UT_CCFEngine::UT_CCFEngine()
    63     {
    66     {
    67 void UT_CCFEngine::ConstructL()
    70 void UT_CCFEngine::ConstructL()
    68     {
    71     {
    69     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
    72     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
    70     // It generates the test case table.
    73     // It generates the test case table.
    71     CEUnitTestSuiteClass::ConstructL();
    74     CEUnitTestSuiteClass::ConstructL();
       
    75 
       
    76     // Disable screen saver
       
    77     CFEnvUtils::EnableScreenSaver( EFalse );
    72     }
    78     }
    73     
    79     
    74     
    80     
    75 // INTERFACE IMPLEMENTATIONS
    81 // INTERFACE IMPLEMENTATIONS
    76 
    82