contextframework/cfw/tsrc/public/basic/UT_CFActivatorEngine/UT_CFActivatorEngine.cpp
branchRCL_3
changeset 63 c2c61fdca848
parent 62 924385140d98
--- a/contextframework/cfw/tsrc/public/basic/UT_CFActivatorEngine/UT_CFActivatorEngine.cpp	Tue Aug 31 15:24:25 2010 +0300
+++ b/contextframework/cfw/tsrc/public/basic/UT_CFActivatorEngine/UT_CFActivatorEngine.cpp	Wed Sep 01 12:24:48 2010 +0100
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). 
+* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -35,6 +35,7 @@
 #include "cfactionindicationimpl.h"
 #include "cfactionsubscriptionimpl.h"
 #include "cfscriptevent.h"
+#include "cfenvutils.h"
 #include "TestActionPluginConst.hrh"
 #include "cfactionpluginthread.h"
 
@@ -96,6 +97,9 @@
 UT_CFActivatorEngine::~UT_CFActivatorEngine()
     {
     Teardown();
+
+    // Enable screen saver again
+    CFEnvUtils::EnableScreenSaver( ETrue );
     }
 
 // Default constructor
@@ -108,7 +112,10 @@
     {
     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
     // It generates the test case table.
-    CEUnitTestSuiteClass::ConstructL();
+    CEUnitTestSuiteClass::ConstructL();    
+
+    // Disable screen saver since it is causing false memory leaks
+    CFEnvUtils::EnableScreenSaver( EFalse );
     }
 
 // METHODS