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