24
|
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 TestDial0001cL();
|
|
51 |
void TestDial0002L();
|
|
52 |
void TestDial0003L();
|
|
53 |
void TestDial0004L();
|
|
54 |
void TestDial0005L();
|
|
55 |
void TestDial0006L();
|
|
56 |
void TestDial0006bL();
|
|
57 |
void TestDial0006cL();
|
|
58 |
void TestDial0006dL();
|
|
59 |
void TestDial0006eL();
|
|
60 |
void TestDial0006fL();
|
|
61 |
void TestDial0006gL();
|
|
62 |
void TestDial0006hL();
|
|
63 |
void TestDial0006iL();
|
|
64 |
void TestDial0007L();
|
|
65 |
void TestDial0008L();
|
|
66 |
void TestDial0009L();
|
|
67 |
void TestDial0009bL();
|
|
68 |
void TestDial0009cL();
|
|
69 |
void TestDial00010L();
|
|
70 |
void TestDial00011L();
|
|
71 |
void TestHangUp0001L();
|
|
72 |
void TestHangUp0002L();
|
|
73 |
void TestHangUp0004L();
|
|
74 |
void TestHangUp0005L();
|
|
75 |
void TestHangUp0006L();
|
|
76 |
void TestHangUp0007L();
|
|
77 |
void TestHangUp0009L();
|
|
78 |
void TestHangUp00010L();
|
|
79 |
void TestHangUp00011L();
|
|
80 |
void TestHangUp00011bL();
|
|
81 |
void TestHangUp00011cL();
|
|
82 |
void TestHangUp00012L();
|
|
83 |
void TestHangUp00014L();
|
|
84 |
void TestHangUp00015L();
|
|
85 |
void TestHold0001L();
|
|
86 |
void TestHold0002L();
|
|
87 |
void TestHold0004L();
|
|
88 |
void TestHold0005L();
|
|
89 |
void TestHold0006L();
|
|
90 |
void TestHold00011L();
|
|
91 |
void TestHold0001aL();
|
|
92 |
void TestSwap0001L();
|
|
93 |
void TestSwap0002L();
|
|
94 |
void TestSwap0004L();
|
|
95 |
void TestSwap0005L();
|
|
96 |
void TestSwap0006L();
|
|
97 |
void TestSwap00011L();
|
|
98 |
void TestResume0001L();
|
|
99 |
void TestResume0002L();
|
|
100 |
void TestResume0004L();
|
|
101 |
void TestResume0005L();
|
|
102 |
void TestResume0006L();
|
|
103 |
void TestResume00011L();
|
|
104 |
void TestDeflect0001L();
|
|
105 |
void TestDeflect0002L();
|
|
106 |
void TestDeflect0003L();
|
|
107 |
void TestTransfer0001L();
|
|
108 |
void TestTransfer0002L();
|
|
109 |
void TestTransfer0004L();
|
|
110 |
void TestTransfer0005L();
|
|
111 |
void TestTransfer0006L();
|
|
112 |
void TestTransfer0009L();
|
|
113 |
void TestTransfer00011L();
|
|
114 |
void TestTerminateAllCalls0001L();
|
|
115 |
void TestTerminateAllCalls0002L();
|
|
116 |
void TestTerminateAllCalls0004L();
|
|
117 |
void TestTerminateAllCalls0005L();
|
|
118 |
void TestTerminateActiveCalls0001L();
|
|
119 |
void TestTerminateActiveCalls0001bL();
|
|
120 |
void TestTerminateActiveCalls0001cL();
|
|
121 |
void TestTerminateActiveCalls0002L();
|
|
122 |
void TestTerminateActiveCalls0004L();
|
|
123 |
void TestTerminateActiveCalls0005L();
|
|
124 |
void TestSetIncomingCallType0001L();
|
|
125 |
void TestAnswerIncomingCallISV0001L();
|
|
126 |
void TestAnswerIncomingCallISV0002L();
|
|
127 |
void TestAnswerIncomingCallISV0004L();
|
|
128 |
void TestAnswerIncomingCallISV0005L();
|
|
129 |
void TestAnswerIncomingCallISV0006L();
|
|
130 |
void TestAnswerIncomingCallISV00011L();
|
|
131 |
void TestDialISV0001L();
|
|
132 |
void TestDialISV0006L();
|
|
133 |
void TestDialISV00011L();
|
|
134 |
void TestDialCallControl0001L();
|
|
135 |
void TestDialCallControl0006L();
|
|
136 |
void TestDialCallControl00011L();
|
|
137 |
void TestEnumerateCall0001L();
|
|
138 |
void TestEnumerateCall0006L();
|
|
139 |
void TestEnumerateCall00011L();
|
|
140 |
void TestNotifyHookChange0001L();
|
|
141 |
void TestNotifyHookChange0006L();
|
|
142 |
void TestNotifyHookChange00011L();
|
|
143 |
void TestCompleteNotifyStatusChange0001L();
|
|
144 |
void TestUpdateLifeTime0001L();
|
|
145 |
|
|
146 |
private:
|
|
147 |
|
|
148 |
TInt OpenNewLineLC(RMobilePhone& aPhone, RLine& aLine, const TDesC& aLineName);
|
|
149 |
TInt CreateIncomingCallL(RLine& aLine, const TInt aCallId,
|
|
150 |
TName& aIncomingCallName,
|
|
151 |
RMobilePhone::TMobileService aMobileService,
|
|
152 |
RMobileCall::TMobileCallStatus aMobileCallStatus);
|
|
153 |
void CloseIncomingCallL(RCall& aCall, const TInt aCallId, RMobilePhone::TMobileService aMobileService = RMobilePhone::EVoiceService);
|
|
154 |
void CallGetMobileCallInfoL(TInt aCallId,
|
|
155 |
RMobilePhone::TMobileService aService,
|
|
156 |
const TDesC &aTelNumber);
|
|
157 |
|
|
158 |
void AuxEnumerateCallL(const TDesC& aName);
|
|
159 |
void AuxNotifyHookChangeL(const TDesC& aName);
|
|
160 |
void AuxCompleteNotifyStatusChangeL(const TDesC& aName);
|
|
161 |
|
|
162 |
TInt TestAnsweringFailsBecauseHoldDoesNotWorkL( const TDesC& aLineName );
|
|
163 |
|
|
164 |
void DialDataCallAndCancelL(RLine& aLine,const TDesC8& aCallData,RBuf8& expectData,RBuf8& completeData);
|
|
165 |
|
|
166 |
|
|
167 |
}; // class CCTsyCallControlFU
|
|
168 |
|
|
169 |
#endif // CCTSYCALLCONTROLFU_H
|
|
170 |
|