contextframework/cfw/tsrc/public/basic/UT_CCFContextManager/UT_CCFContextManager.cpp
equal
deleted
inserted
replaced
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". |
26 // INTERNAL INCLUDES |
26 // INTERNAL INCLUDES |
27 #include "CFContextManager.h" |
27 #include "CFContextManager.h" |
28 #include "CFContextIndication.h" |
28 #include "CFContextIndication.h" |
29 #include "CFContextSubscription.h" |
29 #include "CFContextSubscription.h" |
30 #include "cfcontextobjectimpl.h" |
30 #include "cfcontextobjectimpl.h" |
|
31 #include "cfenvutils.h" |
31 |
32 |
32 |
33 |
33 // CONSTRUCTION |
34 // CONSTRUCTION |
34 UT_CCFContextManager* UT_CCFContextManager::NewL() |
35 UT_CCFContextManager* UT_CCFContextManager::NewL() |
35 { |
36 { |
50 } |
51 } |
51 |
52 |
52 // Destructor (virtual by CBase) |
53 // Destructor (virtual by CBase) |
53 UT_CCFContextManager::~UT_CCFContextManager() |
54 UT_CCFContextManager::~UT_CCFContextManager() |
54 { |
55 { |
|
56 // ETrue screen saver |
|
57 CFEnvUtils::EnableScreenSaver( ETrue ); |
55 } |
58 } |
56 |
59 |
57 // Default constructor |
60 // Default constructor |
58 UT_CCFContextManager::UT_CCFContextManager() |
61 UT_CCFContextManager::UT_CCFContextManager() |
59 { |
62 { |
63 void UT_CCFContextManager::ConstructL() |
66 void UT_CCFContextManager::ConstructL() |
64 { |
67 { |
65 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
68 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
66 // It generates the test case table. |
69 // It generates the test case table. |
67 CEUnitTestSuiteClass::ConstructL(); |
70 CEUnitTestSuiteClass::ConstructL(); |
|
71 |
|
72 // Disable screen saver |
|
73 CFEnvUtils::EnableScreenSaver( EFalse ); |
68 } |
74 } |
69 |
75 |
70 |
76 |
71 // INTERFACE IMPLEMENTATIONS |
77 // INTERFACE IMPLEMENTATIONS |
72 |
78 |