sysstatemgmt/systemstateplugins/test/tintadptplugin/src/ti_adaptationplugin_stepbase.cpp
--- a/sysstatemgmt/systemstateplugins/test/tintadptplugin/src/ti_adaptationplugin_stepbase.cpp Tue Aug 31 16:29:05 2010 +0300
+++ b/sysstatemgmt/systemstateplugins/test/tintadptplugin/src/ti_adaptationplugin_stepbase.cpp Wed Sep 01 12:34:26 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
@@ -21,9 +21,6 @@
#include "ti_adaptationplugin_stepbase.h"
#include <e32debug.h>
-#include <e32property.h>
-
-_LIT (KExeToDefineTestPS, "\\sys\\bin\\definetestps.exe");
static TInt StopScheduler(TAny* aTestAdaptStep)
{
@@ -54,41 +51,6 @@
TVerdict CTestAdaptStep::doTestStepPreambleL()
{
- RProcess processHandle;
- CleanupClosePushL(processHandle);
-
- //Start the test exe which defines property keys for loading reference plugins
-
- TInt err = processHandle.Create(KExeToDefineTestPS, KNullDesC);
- INFO_PRINTF2(_L("Process creation returned : %d"), err);
- User::LeaveIfError(err);
- processHandle.Resume();
-
- // wait for the newly created process to rendezvous
- TRequestStatus status;
- processHandle.Rendezvous(status);
- User::WaitForRequest(status);
- TInt retVal = status.Int();
- INFO_PRINTF2(_L("iStatus.Int() returned : %d"), retVal);
- TEST(KErrNone == retVal);
- CleanupStack::PopAndDestroy();
-
- // Set all the property keys
- err = RProperty::Set(KPropertyCategory, KEmergencyCallRfAdaptationPluginPropertyKey, 1);
- TEST(KErrNone == err);
-
- err = RProperty::Set(KPropertyCategory, KStateAdaptationPluginPropertyKey, 1);
- TEST(KErrNone == err);
-
- err = RProperty::Set(KPropertyCategory, KRtcAdaptationPluginPropertyKey, 1);
- TEST(KErrNone == err);
-
- err = RProperty::Set(KPropertyCategory, KSimPluginPropertyKey, 1);
- TEST(KErrNone == err);
-
- err = RProperty::Set(KPropertyCategory, KMiscPluginPropertyKey, 1);
- TEST(KErrNone == err);
-
INFO_PRINTF1(_L("Starting the scheduler in CTestEmergencyAdaptStep::doTestStepPreambleL ..."));
iActiveScheduler = new(ELeave) CActiveScheduler;
CActiveScheduler::Install (iActiveScheduler);
@@ -103,22 +65,5 @@
/** */
TVerdict CTestAdaptStep::doTestStepPostambleL()
{
- //Unset all the PandS keys
- TInt err = RProperty::Set(KPropertyCategory, KEmergencyCallRfAdaptationPluginPropertyKey, 0);
- TEST(KErrNone == err);
-
- err = RProperty::Set(KPropertyCategory, KStateAdaptationPluginPropertyKey, 0);
- TEST(KErrNone == err);
-
- err = RProperty::Set(KPropertyCategory, KRtcAdaptationPluginPropertyKey, 0);
- TEST(KErrNone == err);
-
- err = RProperty::Set(KPropertyCategory, KSimPluginPropertyKey, 0);
- TEST(KErrNone == err);
-
- err = RProperty::Set(KPropertyCategory, KMiscPluginPropertyKey, 0);
- TEST(KErrNone == err);
-
-
return CTestStep::doTestStepPostambleL();
}