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". |
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 |