|
1 // Copyright (c) 2007-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 // The TEFUnit header file which tests the CallControl |
|
15 // functional unit of the Common TSY. |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef CCTSYCALLCONTROLFU_H |
|
20 #define CCTSYCALLCONTROLFU_H |
|
21 |
|
22 #include <test/tefunit.h> |
|
23 |
|
24 #include <etelmm.h> |
|
25 #include <etelmmcs.h> |
|
26 |
|
27 #include "cctsycomponenttestbase.h" |
|
28 |
|
29 class CCTsyCallControlFU : public CCtsyComponentTestBase |
|
30 { |
|
31 public: |
|
32 // Create a suite of all the tests |
|
33 static CTestSuite* CreateSuiteL(const TDesC& aName); |
|
34 |
|
35 public: |
|
36 // Individual test steps |
|
37 |
|
38 void TestAnswerIncomingCall0001L(); |
|
39 void TestAnswerIncomingCall0002L(); |
|
40 void TestAnswerIncomingCall0004L(); |
|
41 void TestAnswerIncomingCall0005L(); |
|
42 void TestAnswerIncomingCall0006L(); |
|
43 void TestAnswerIncomingCall0007L(); |
|
44 void TestAnswerIncomingCall0008L(); |
|
45 void TestAnswerIncomingCall0009L(); |
|
46 void TestAnswerIncomingCall00010L(); |
|
47 void TestAnswerIncomingCall00011L(); |
|
48 void TestDial0001L(); |
|
49 void TestDial0001bL(); |
|
50 void TestDial0002L(); |
|
51 void TestDial0003L(); |
|
52 void TestDial0004L(); |
|
53 void TestDial0005L(); |
|
54 void TestDial0006L(); |
|
55 void TestDial0006bL(); |
|
56 void TestDial0006cL(); |
|
57 void TestDial0006dL(); |
|
58 void TestDial0006eL(); |
|
59 void TestDial0006fL(); |
|
60 void TestDial0006gL(); |
|
61 void TestDial0006hL(); |
|
62 void TestDial0006iL(); |
|
63 void TestDial0007L(); |
|
64 void TestDial0008L(); |
|
65 void TestDial0009L(); |
|
66 void TestDial0009bL(); |
|
67 void TestDial0009cL(); |
|
68 void TestDial00010L(); |
|
69 void TestDial00011L(); |
|
70 void TestHangUp0001L(); |
|
71 void TestHangUp0002L(); |
|
72 void TestHangUp0004L(); |
|
73 void TestHangUp0005L(); |
|
74 void TestHangUp0006L(); |
|
75 void TestHangUp0007L(); |
|
76 void TestHangUp0009L(); |
|
77 void TestHangUp00010L(); |
|
78 void TestHangUp00011L(); |
|
79 void TestHangUp00011bL(); |
|
80 void TestHangUp00011cL(); |
|
81 void TestHangUp00012L(); |
|
82 void TestHangUp00014L(); |
|
83 void TestHangUp00015L(); |
|
84 void TestHold0001L(); |
|
85 void TestHold0002L(); |
|
86 void TestHold0004L(); |
|
87 void TestHold0005L(); |
|
88 void TestHold0006L(); |
|
89 void TestHold00011L(); |
|
90 void TestHold0001aL(); |
|
91 void TestSwap0001L(); |
|
92 void TestSwap0002L(); |
|
93 void TestSwap0004L(); |
|
94 void TestSwap0005L(); |
|
95 void TestSwap0006L(); |
|
96 void TestSwap00011L(); |
|
97 void TestResume0001L(); |
|
98 void TestResume0002L(); |
|
99 void TestResume0004L(); |
|
100 void TestResume0005L(); |
|
101 void TestResume0006L(); |
|
102 void TestResume00011L(); |
|
103 void TestDeflect0001L(); |
|
104 void TestDeflect0002L(); |
|
105 void TestDeflect0003L(); |
|
106 void TestTransfer0001L(); |
|
107 void TestTransfer0002L(); |
|
108 void TestTransfer0004L(); |
|
109 void TestTransfer0005L(); |
|
110 void TestTransfer0006L(); |
|
111 void TestTransfer0009L(); |
|
112 void TestTransfer00011L(); |
|
113 void TestTerminateAllCalls0001L(); |
|
114 void TestTerminateAllCalls0002L(); |
|
115 void TestTerminateAllCalls0004L(); |
|
116 void TestTerminateAllCalls0005L(); |
|
117 void TestSetIncomingCallType0001L(); |
|
118 void TestAnswerIncomingCallISV0001L(); |
|
119 void TestAnswerIncomingCallISV0002L(); |
|
120 void TestAnswerIncomingCallISV0004L(); |
|
121 void TestAnswerIncomingCallISV0005L(); |
|
122 void TestAnswerIncomingCallISV0006L(); |
|
123 void TestAnswerIncomingCallISV00011L(); |
|
124 void TestDialISV0001L(); |
|
125 void TestDialISV0006L(); |
|
126 void TestDialISV00011L(); |
|
127 void TestDialCallControl0001L(); |
|
128 void TestDialCallControl0006L(); |
|
129 void TestDialCallControl00011L(); |
|
130 void TestEnumerateCall0001L(); |
|
131 void TestEnumerateCall0006L(); |
|
132 void TestEnumerateCall00011L(); |
|
133 void TestNotifyHookChange0001L(); |
|
134 void TestNotifyHookChange0006L(); |
|
135 void TestNotifyHookChange00011L(); |
|
136 void TestCompleteNotifyStatusChange0001L(); |
|
137 void TestUpdateLifeTime0001L(); |
|
138 |
|
139 private: |
|
140 |
|
141 TInt OpenNewLineLC(RMobilePhone& aPhone, RLine& aLine, const TDesC& aLineName); |
|
142 TInt CreateIncomingCallL(RLine& aLine, const TInt aCallId, |
|
143 TName& aIncomingCallName, |
|
144 RMobilePhone::TMobileService aMobileService, |
|
145 RMobileCall::TMobileCallStatus aMobileCallStatus); |
|
146 void CloseIncomingCallL(RCall& aCall, const TInt aCallId, RMobilePhone::TMobileService aMobileService = RMobilePhone::EVoiceService); |
|
147 void CallGetMobileCallInfoL(TInt aCallId, |
|
148 RMobilePhone::TMobileService aService, |
|
149 const TDesC &aTelNumber); |
|
150 |
|
151 void AuxEnumerateCallL(const TDesC& aName); |
|
152 void AuxNotifyHookChangeL(const TDesC& aName); |
|
153 void AuxCompleteNotifyStatusChangeL(const TDesC& aName); |
|
154 |
|
155 TInt TestAnsweringFailsBecauseHoldDoesNotWorkL( const TDesC& aLineName ); |
|
156 |
|
157 void DialDataCallAndCancelL(RLine& aLine,const TDesC8& aCallData,RBuf8& expectData,RBuf8& completeData); |
|
158 |
|
159 |
|
160 }; // class CCTsyCallControlFU |
|
161 |
|
162 #endif // CCTSYCALLCONTROLFU_H |
|
163 |