contextframework/cfw/tsrc/public/basic/UT_CFActivatorEngine/UT_CFActivatorEngine.cpp
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2006 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". |
33 #include "CFActivatorTimedSchedulerWait.h" |
33 #include "CFActivatorTimedSchedulerWait.h" |
34 #include "TestActionPlugIn.h" |
34 #include "TestActionPlugIn.h" |
35 #include "cfactionindicationimpl.h" |
35 #include "cfactionindicationimpl.h" |
36 #include "cfactionsubscriptionimpl.h" |
36 #include "cfactionsubscriptionimpl.h" |
37 #include "cfscriptevent.h" |
37 #include "cfscriptevent.h" |
|
38 #include "cfenvutils.h" |
38 #include "TestActionPluginConst.hrh" |
39 #include "TestActionPluginConst.hrh" |
39 #include "cfactionpluginthread.h" |
40 #include "cfactionpluginthread.h" |
40 |
41 |
41 // CONSTANTS |
42 // CONSTANTS |
42 |
43 |
94 |
95 |
95 // Destructor (virtual by CBase) |
96 // Destructor (virtual by CBase) |
96 UT_CFActivatorEngine::~UT_CFActivatorEngine() |
97 UT_CFActivatorEngine::~UT_CFActivatorEngine() |
97 { |
98 { |
98 Teardown(); |
99 Teardown(); |
|
100 |
|
101 // Enable screen saver again |
|
102 CFEnvUtils::EnableScreenSaver( ETrue ); |
99 } |
103 } |
100 |
104 |
101 // Default constructor |
105 // Default constructor |
102 UT_CFActivatorEngine::UT_CFActivatorEngine() |
106 UT_CFActivatorEngine::UT_CFActivatorEngine() |
103 { |
107 { |
106 // Second phase construct |
110 // Second phase construct |
107 void UT_CFActivatorEngine::ConstructL() |
111 void UT_CFActivatorEngine::ConstructL() |
108 { |
112 { |
109 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
113 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
110 // It generates the test case table. |
114 // It generates the test case table. |
111 CEUnitTestSuiteClass::ConstructL(); |
115 CEUnitTestSuiteClass::ConstructL(); |
|
116 |
|
117 // Disable screen saver since it is causing false memory leaks |
|
118 CFEnvUtils::EnableScreenSaver( EFalse ); |
112 } |
119 } |
113 |
120 |
114 // METHODS |
121 // METHODS |
115 |
122 |
116 void UT_CFActivatorEngine::ActionIndicationL( CCFActionIndication* aIndication ) |
123 void UT_CFActivatorEngine::ActionIndicationL( CCFActionIndication* aIndication ) |