contextframework/cfw/tsrc/public/basic/UT_CFContextSourceSettingsManager/UT_CFContextSourceSettingsManager.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". |
27 #include "cfcontextsourcesettingimpl.h" |
27 #include "cfcontextsourcesettingimpl.h" |
28 #include "cfcontextsourcesettingarrayimpl.h" |
28 #include "cfcontextsourcesettingarrayimpl.h" |
29 #include "cfcontextsourcesettingparameterimpl.h" |
29 #include "cfcontextsourcesettingparameterimpl.h" |
30 #include "cfcontextsourcesettingsmanagerimpl.h" |
30 #include "cfcontextsourcesettingsmanagerimpl.h" |
31 #include "cfcontextsourcesettingarrayimpl.h" |
31 #include "cfcontextsourcesettingarrayimpl.h" |
|
32 #include "cfenvutils.h" |
32 |
33 |
33 // Cleans up RKeyValueArray instance |
34 // Cleans up RKeyValueArray instance |
34 LOCAL_C void CleanupKeyValueArray( TAny* aArray ) |
35 LOCAL_C void CleanupKeyValueArray( TAny* aArray ) |
35 { |
36 { |
36 static_cast<RKeyValueArray*>( aArray )->ResetAndDestroy(); |
37 static_cast<RKeyValueArray*>( aArray )->ResetAndDestroy(); |
64 |
65 |
65 // Destructor (virtual by CBase) |
66 // Destructor (virtual by CBase) |
66 UT_CFContextSourceSettingsManager::~UT_CFContextSourceSettingsManager() |
67 UT_CFContextSourceSettingsManager::~UT_CFContextSourceSettingsManager() |
67 { |
68 { |
68 Teardown(); |
69 Teardown(); |
|
70 |
|
71 // Enable screen saver |
|
72 CFEnvUtils::EnableScreenSaver( ETrue ); |
69 } |
73 } |
70 |
74 |
71 // Default constructor |
75 // Default constructor |
72 UT_CFContextSourceSettingsManager::UT_CFContextSourceSettingsManager() |
76 UT_CFContextSourceSettingsManager::UT_CFContextSourceSettingsManager() |
73 { |
77 { |
77 void UT_CFContextSourceSettingsManager::ConstructL() |
81 void UT_CFContextSourceSettingsManager::ConstructL() |
78 { |
82 { |
79 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
83 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
80 // It generates the test case table. |
84 // It generates the test case table. |
81 CEUnitTestSuiteClass::ConstructL(); |
85 CEUnitTestSuiteClass::ConstructL(); |
|
86 |
|
87 // Disable screen saver |
|
88 CFEnvUtils::EnableScreenSaver( EFalse ); |
82 } |
89 } |
83 |
90 |
84 // METHODS |
91 // METHODS |
85 |
92 |
86 void UT_CFContextSourceSettingsManager::SetupEmptyL( ) |
93 void UT_CFContextSourceSettingsManager::SetupEmptyL( ) |