1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 // |
|
16 |
|
17 //user include |
|
18 #include "testltsycallcontrolnotifyincomingcallcase3.h" |
|
19 |
|
20 |
|
21 CTestLtsyCallControlNotifyIncomingCallCase3::CTestLtsyCallControlNotifyIncomingCallCase3(CTestLtsyModel& aModel) |
|
22 : CTestLtsyCallControlBase(aModel) |
|
23 { |
|
24 |
|
25 } |
|
26 |
|
27 |
|
28 CTestLtsyCallControlNotifyIncomingCallCase3::~CTestLtsyCallControlNotifyIncomingCallCase3() |
|
29 { |
|
30 |
|
31 } |
|
32 |
|
33 |
|
34 TVerdict CTestLtsyCallControlNotifyIncomingCallCase3::doTestStepL() |
|
35 { |
|
36 INFO_PRINTF1(_L("starting CTestLtsyCallControlNotifyIncomingCallCase3::doTestStepL()")); |
|
37 |
|
38 if(TestStepResult() == EPass) |
|
39 { |
|
40 TRAPD(err,NotifyIncomingCallOneL()); |
|
41 if (err != KErrNone) |
|
42 { |
|
43 SetTestStepResult(EFail); |
|
44 INFO_PRINTF2(_L("The error was %d when notify incoming call one"),err); |
|
45 return TestStepResult(); |
|
46 } |
|
47 |
|
48 TRAP(err, AnswerIncomingCallOneL()); |
|
49 if (err != KErrNone) |
|
50 { |
|
51 SetTestStepResult(EFail); |
|
52 INFO_PRINTF2(_L("The error was %d when answer incoming call one"),err); |
|
53 return TestStepResult(); |
|
54 } |
|
55 |
|
56 User::After(1000*1000); |
|
57 |
|
58 HoldCallOne(); |
|
59 |
|
60 ResumeCallOne(); |
|
61 |
|
62 TRAP(err, HangupCallOneL()); |
|
63 if (err != KErrNone) |
|
64 { |
|
65 SetTestStepResult(EFail); |
|
66 INFO_PRINTF2(_L("The error was %d when Hang up call one"),err); |
|
67 return TestStepResult(); |
|
68 } |
|
69 |
|
70 //Close call one |
|
71 CloseCallOne(); |
|
72 } |
|
73 |
|
74 return TestStepResult(); |
|
75 } |
|
76 |
|
77 //End of file |
|