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