sysstatemgmt/systemstatereferenceplugins/test/tintcustcmd/src/tcustcmd_step_deactivateemergencycall.cpp
changeset 63 09d657f1ee00
parent 0 4e1aa6a622a0
child 61 8cb079868133
equal deleted inserted replaced
54:072a9626b290 63:09d657f1ee00
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
    15 
    16 #include "tcustcmd_step_deactivateemergencycall.h"
    16 #include "tcustcmd_step_deactivateemergencycall.h"
       
    17 #include "tcustcmd_const.h"
    17 
    18 
    18 
    19 
    19 CCustomCmdTestDeActivateEmergencyCall::~CCustomCmdTestDeActivateEmergencyCall()
    20 CCustomCmdTestDeActivateEmergencyCall::~CCustomCmdTestDeActivateEmergencyCall()
    20 	{
    21 	{
    21 	delete iAsyncStopScheduler;
    22 	delete iAsyncStopScheduler;
    43 TVerdict CCustomCmdTestDeActivateEmergencyCall::doTestStepL()
    44 TVerdict CCustomCmdTestDeActivateEmergencyCall::doTestStepL()
    44 	{
    45 	{
    45 	INFO_PRINTF1(_L("doTestStepL"));
    46 	INFO_PRINTF1(_L("doTestStepL"));
    46 	TInt err = 0;
    47 	TInt err = 0;
    47 	__UHEAP_MARK;
    48 	__UHEAP_MARK;
       
    49 	
       
    50 	TInt res = RProperty::Define(KPropertyCategory, KEmergencyCallRfAdaptationPluginPropertyKey, RProperty::EInt);
       
    51     INFO_PRINTF2(_L("RProperty::Define(KPropertyCategory, KEmergencyCallRfAdaptationPluginPropertyKey, RProperty::EInt); returns %d"), res);
       
    52     res = RProperty::Set(KPropertyCategory, KEmergencyCallRfAdaptationPluginPropertyKey, 1);
       
    53     INFO_PRINTF2(_L("RProperty::Set(KPropertyCategory, KEmergencyCallRfAdaptationPluginPropertyKey, 1); returns %d"), res);
       
    54 
    48 	TRAP(err,TestHandleDeActivateEmergencyCallL());
    55 	TRAP(err,TestHandleDeActivateEmergencyCallL());
    49 	TEST(KErrNone == err);
    56 	TEST(KErrNone == err);
    50 	TRAP(err,TestHandleDeActivateEmergencyCallCancelL());
    57 	TRAP(err,TestHandleDeActivateEmergencyCallCancelL());
    51 	TEST(KErrNone == err);
    58 	TEST(KErrNone == err);
       
    59 	
       
    60 	res = RProperty::Delete(KPropertyCategory, KEmergencyCallRfAdaptationPluginPropertyKey);
       
    61     INFO_PRINTF2(_L("RProperty::Delete(KPropertyCategory, KEmergencyCallRfAdaptationPluginPropertyKey); returns %d"), res);
       
    62 
    52 	return TestStepResult();
    63 	return TestStepResult();
    53 	}
    64 	}
    54 
    65 
    55 /**
    66 /**
    56 Old Test CaseID 		APPFWK-CUSTCMD-0023
    67 Old Test CaseID 		APPFWK-CUSTCMD-0023