sysstatemgmt/systemstatereferenceplugins/test/tintcustcmd/src/tcustcmd_step_deactivateemergencycall.cpp
branchRCL_3
changeset 22 8cb079868133
parent 21 ccb4f6b3db21
equal deleted inserted replaced
21:ccb4f6b3db21 22:8cb079868133
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2009 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"
       
    18 
    17 
    19 
    18 
    20 CCustomCmdTestDeActivateEmergencyCall::~CCustomCmdTestDeActivateEmergencyCall()
    19 CCustomCmdTestDeActivateEmergencyCall::~CCustomCmdTestDeActivateEmergencyCall()
    21 	{
    20 	{
    22 	delete iAsyncStopScheduler;
    21 	delete iAsyncStopScheduler;
    44 TVerdict CCustomCmdTestDeActivateEmergencyCall::doTestStepL()
    43 TVerdict CCustomCmdTestDeActivateEmergencyCall::doTestStepL()
    45 	{
    44 	{
    46 	INFO_PRINTF1(_L("doTestStepL"));
    45 	INFO_PRINTF1(_L("doTestStepL"));
    47 	TInt err = 0;
    46 	TInt err = 0;
    48 	__UHEAP_MARK;
    47 	__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 
       
    55 	TRAP(err,TestHandleDeActivateEmergencyCallL());
    48 	TRAP(err,TestHandleDeActivateEmergencyCallL());
    56 	TEST(KErrNone == err);
    49 	TEST(KErrNone == err);
    57 	TRAP(err,TestHandleDeActivateEmergencyCallCancelL());
    50 	TRAP(err,TestHandleDeActivateEmergencyCallCancelL());
    58 	TEST(KErrNone == err);
    51 	TEST(KErrNone == err);
    59 	
       
    60 	res = RProperty::Delete(KPropertyCategory, KEmergencyCallRfAdaptationPluginPropertyKey);
       
    61     INFO_PRINTF2(_L("RProperty::Delete(KPropertyCategory, KEmergencyCallRfAdaptationPluginPropertyKey); returns %d"), res);
       
    62 
       
    63 	return TestStepResult();
    52 	return TestStepResult();
    64 	}
    53 	}
    65 
    54 
    66 /**
    55 /**
    67 Old Test CaseID 		APPFWK-CUSTCMD-0023
    56 Old Test CaseID 		APPFWK-CUSTCMD-0023