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