contextframework/cfw/tsrc/public/basic/UT_CCFEngine/UT_CCFEngine.cpp
changeset 28 b0b858956ed5
parent 0 2e3d3ce01487
child 63 c2c61fdca848
equal deleted inserted replaced
21:c4cbaa4fb734 28:b0b858956ed5
     1 /*
     1 /*
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2007-2010 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"
       
    34 
    33 
    35 // CONSTANTS
    34 // CONSTANTS
    36 const TInt KSecond = 1000000;
    35 const TInt KSecond = 1000000;
    37 
    36 
    38 // CONSTRUCTION
    37 // CONSTRUCTION
    55     }
    54     }
    56 
    55 
    57 // Destructor (virtual by CBase)
    56 // Destructor (virtual by CBase)
    58 UT_CCFEngine::~UT_CCFEngine()
    57 UT_CCFEngine::~UT_CCFEngine()
    59     {
    58     {
    60     // Enable screen saver
       
    61     CFEnvUtils::EnableScreenSaver( ETrue );
       
    62     }
    59     }
    63 
    60 
    64 // Default constructor
    61 // Default constructor
    65 UT_CCFEngine::UT_CCFEngine()
    62 UT_CCFEngine::UT_CCFEngine()
    66     {
    63     {
    70 void UT_CCFEngine::ConstructL()
    67 void UT_CCFEngine::ConstructL()
    71     {
    68     {
    72     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
    69     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
    73     // It generates the test case table.
    70     // It generates the test case table.
    74     CEUnitTestSuiteClass::ConstructL();
    71     CEUnitTestSuiteClass::ConstructL();
    75 
       
    76     // Disable screen saver
       
    77     CFEnvUtils::EnableScreenSaver( EFalse );
       
    78     }
    72     }
    79     
    73     
    80     
    74     
    81 // INTERFACE IMPLEMENTATIONS
    75 // INTERFACE IMPLEMENTATIONS
    82 
    76