24
|
1 |
// Copyright (c) 2008-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 |
// functional unit of the Common TSY.
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file The TEFUnit header file which tests the CustomIPC
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef CCTSYCUSTOMIPCFU_H
|
|
23 |
#define CCTSYCUSTOMIPCFU_H
|
|
24 |
|
|
25 |
#include <test/tefunit.h>
|
|
26 |
|
|
27 |
#include <etelmm.h>
|
|
28 |
#include <etelmmcs.h>
|
|
29 |
|
|
30 |
#include "cctsycomponenttestbase.h"
|
|
31 |
#include "CMmSIMTsy.h" // KPhEngMaxViagHomeZones & KPhEngMaxCacheId
|
|
32 |
#include <ctsy/rmmcustomapi.h>
|
|
33 |
|
|
34 |
|
|
35 |
#define CMDBUFLEN 4
|
|
36 |
typedef TBuf8<CMDBUFLEN> CmdDataBuf;
|
|
37 |
#define RSPDATALEN 20
|
|
38 |
typedef TBuf8<RSPDATALEN> RspDataBuf;
|
|
39 |
#define RSPDATALENTOOBIG 300
|
|
40 |
typedef TBuf8<RSPDATALENTOOBIG> RspBigBuf;
|
|
41 |
|
|
42 |
class CCTsyCustomIPCFU : public CCtsyComponentTestBase
|
|
43 |
{
|
|
44 |
public:
|
|
45 |
// Create a suite of all the tests
|
|
46 |
static CTestSuite* CreateSuiteL(const TDesC& aName);
|
|
47 |
|
|
48 |
public:
|
|
49 |
// Individual test steps
|
|
50 |
|
|
51 |
void TestSetDriveMode0001L();
|
|
52 |
void TestSetDriveMode0002L();
|
|
53 |
void TestSetDriveMode0004L();
|
|
54 |
void TestSetDriveMode0005L();
|
|
55 |
void TestActivateSimLock0001L();
|
|
56 |
void TestActivateSimLock0002L();
|
|
57 |
void TestActivateSimLock0003L();
|
|
58 |
void TestActivateSimLock0004L();
|
|
59 |
void TestActivateSimLock0005L();
|
|
60 |
void TestDeActivateSimLock0001L();
|
|
61 |
void TestDeActivateSimLock0002L();
|
|
62 |
void TestDeActivateSimLock0003L();
|
|
63 |
void TestDeActivateSimLock0004L();
|
|
64 |
void TestDeActivateSimLock0005L();
|
|
65 |
void TestNotifyDtmfEvent0001L();
|
|
66 |
void TestNotifyDtmfEvent0002L();
|
|
67 |
void TestNotifyDtmfEvent0004L();
|
|
68 |
void TestGetDiagnosticInfo0001L();
|
|
69 |
void TestSetAlsBlocked0001L();
|
|
70 |
void TestSetAlsBlocked0002L();
|
|
71 |
void TestSetAlsBlocked0004L();
|
|
72 |
void TestSetAlsBlocked0005L();
|
|
73 |
void TestGetAlsBlocked0001L();
|
|
74 |
void TestGetAlsBlocked0002L();
|
|
75 |
void TestGetAlsBlocked0004L();
|
|
76 |
void TestGetAlsBlocked0005L();
|
|
77 |
void TestCheckAlsPpSupport0001L();
|
|
78 |
void TestCheckAlsPpSupport0002L();
|
|
79 |
void TestCheckAlsPpSupport0004L();
|
|
80 |
void TestCheckAlsPpSupport0005L();
|
|
81 |
void TestGetRemoteAlertingToneStatus0001L();
|
|
82 |
void TestCallOrigin0001L();
|
|
83 |
|
|
84 |
void TestTerminateCall0001L();
|
|
85 |
void TestTerminateCall0002L();
|
|
86 |
void TestTerminateCall0003L();
|
|
87 |
void TestTerminateCall0004L();
|
|
88 |
void TestTerminateCall0005L();
|
|
89 |
void TestNotifyAlsBlockedChanged0001L();
|
|
90 |
void TestNotifyAlsBlockedChanged0002L();
|
|
91 |
void TestNotifyAlsBlockedChanged0004L();
|
|
92 |
void TestGetCipheringInfo0001L();
|
|
93 |
void TestGetCipheringInfo0002L();
|
|
94 |
void TestGetCipheringInfo0004L();
|
|
95 |
void TestGetCipheringInfo0005L();
|
|
96 |
void TestNotifyCipheringInfoChange0001L();
|
|
97 |
void TestNotifyCipheringInfoChange0002L();
|
|
98 |
void TestNotifyCipheringInfoChange0004L();
|
|
99 |
void TestNotifyNSPSStatus0001L();
|
|
100 |
void TestNotifyNSPSStatus0002L();
|
|
101 |
void TestNotifyNSPSStatus0004L();
|
|
102 |
void TestNetWakeup0001L();
|
|
103 |
void TestNetWakeup0002L();
|
|
104 |
void TestNetWakeup0004L();
|
|
105 |
void TestNetWakeup0005L();
|
|
106 |
void TestReadViagHomeZoneParams0001L();
|
|
107 |
void TestReadViagHomeZoneParams0002L();
|
|
108 |
void TestReadViagHomeZoneParams0003L();
|
|
109 |
void TestReadViagHomeZoneParams0004L();
|
|
110 |
void TestReadViagHomeZoneParams0005L();
|
|
111 |
void TestReadViagHomeZoneCache0001L();
|
|
112 |
void TestReadViagHomeZoneCache0001bL();
|
|
113 |
void TestReadViagHomeZoneCache0001cL();
|
|
114 |
void TestReadViagHomeZoneCache0002L();
|
|
115 |
void TestReadViagHomeZoneCache0003L();
|
|
116 |
void TestReadViagHomeZoneCache0004L();
|
|
117 |
void TestReadViagHomeZoneCache0005L();
|
|
118 |
void TestWriteViagHomeZoneCache0001L();
|
|
119 |
void TestWriteViagHomeZoneCache0002L();
|
|
120 |
void TestWriteViagHomeZoneCache0003L();
|
|
121 |
void TestWriteViagHomeZoneCache0004L();
|
|
122 |
void TestWriteViagHomeZoneCache0005L();
|
|
123 |
void TestClearCallBlackList0001L();
|
|
124 |
void TestClearCallBlackList0002L();
|
|
125 |
void TestClearCallBlackList0004L();
|
|
126 |
void TestClearCallBlackList0005L();
|
|
127 |
void TestSsAdditionalInfoNotification0001L();
|
|
128 |
void TestSsAdditionalInfoNotification0002L();
|
|
129 |
void TestSsAdditionalInfoNotification0004L();
|
|
130 |
void TestSsRequestCompleteNotification0001L();
|
|
131 |
void TestSsRequestCompleteNotification0002L();
|
|
132 |
void TestSsRequestCompleteNotification0004L();
|
|
133 |
void TestIsBlocked0001L();
|
|
134 |
void TestIsBlocked0005L();
|
|
135 |
void TestCheckSecurityCode0001L();
|
|
136 |
void TestCheckSecurityCode0002L();
|
|
137 |
void TestCheckSecurityCode0004L();
|
|
138 |
void TestCheckSecurityCode0005L();
|
|
139 |
void TestGetActivePin0001L();
|
|
140 |
void TestGetAirTimeDuration0001L();
|
|
141 |
void TestGetNetworkProviderName0001L();
|
|
142 |
void TestGetNetworkProviderName0002L();
|
|
143 |
void TestGetNetworkProviderName0003L();
|
|
144 |
void TestGetNetworkProviderName0004L();
|
|
145 |
void TestGetNetworkProviderName0005L();
|
|
146 |
void TestCheckEmergencyNumber0001L();
|
|
147 |
void TestCheckEmergencyNumber0002L();
|
|
148 |
void TestCheckEmergencyNumber0004L();
|
|
149 |
void TestCheckEmergencyNumber0005L();
|
|
150 |
void TestNotifyPndCacheReady0001L();
|
|
151 |
void TestNotifyPndCacheReady0001bL();
|
|
152 |
void TestNotifyPndCacheReady0002L();
|
|
153 |
void TestNotifyPndCacheReady0003L();
|
|
154 |
void TestNotifyPndCacheReady0004L();
|
|
155 |
void TestGetPndCacheStatus0001L();
|
|
156 |
void TestGetPndCacheStatus0003L();
|
|
157 |
void TestGetOperatorName0001L();
|
|
158 |
void TestGetOperatorName0002L();
|
|
159 |
void TestGetOperatorName0004L();
|
|
160 |
void TestGetOperatorName0005L();
|
|
161 |
void TestGetProgrammableOperatorLogo0001L();
|
|
162 |
void TestGetProgrammableOperatorLogo0002L();
|
|
163 |
void TestGetProgrammableOperatorLogo0003L();
|
|
164 |
void TestGetProgrammableOperatorLogo0004L();
|
|
165 |
void TestGetProgrammableOperatorLogo0005L();
|
|
166 |
void TestNotifyProgrammableOperatorLogoChange0001L();
|
|
167 |
void TestNotifySsNetworkEvent0001L();
|
|
168 |
void TestNotifySsNetworkEvent0002L();
|
|
169 |
void TestNotifySsNetworkEvent0004L();
|
|
170 |
void TestCancelUssdSession0001L();
|
|
171 |
void TestSatRefreshCompleteNotification0001L();
|
|
172 |
void TestSatRefreshCompleteNotification0002L();
|
|
173 |
void TestSatRefreshCompleteNotification0004L();
|
|
174 |
void TestCheckTwoDigitDialSupport0001L();
|
|
175 |
void TestCheckTwoDigitDialSupport0002L();
|
|
176 |
void TestCheckTwoDigitDialSupport0004L();
|
|
177 |
void TestCheckTwoDigitDialSupport0005L();
|
|
178 |
void TestResetNetServer0001L();
|
|
179 |
void TestResetNetServer0002L();
|
|
180 |
void TestResetNetServer0004L();
|
|
181 |
void TestResetNetServer0005L();
|
|
182 |
void TestReleaseFile0001L();
|
|
183 |
void TestRestartFile0001L();
|
|
184 |
void TestStartSimCbTopicBrowsing0001L();
|
|
185 |
void TestStartSimCbTopicBrowsing0003L();
|
|
186 |
void TestStartSimCbTopicBrowsing0005L();
|
|
187 |
void TestGetNextSimCbTopic0001L();
|
|
188 |
void TestDeleteSimCbTopic0001L();
|
|
189 |
void TestDeleteSimCbTopic0002L();
|
|
190 |
void TestDeleteSimCbTopic0003L();
|
|
191 |
void TestDeleteSimCbTopic0004L();
|
|
192 |
void TestDeleteSimCbTopic0005L();
|
|
193 |
void TestNotifyNetworkConnectionFailure0001L();
|
|
194 |
void TestNotifyNetworkConnectionFailure0002L();
|
|
195 |
void TestNotifyNetworkConnectionFailure0004L();
|
|
196 |
void TestSendAPDUReq0001L();
|
|
197 |
void TestSendAPDUReq0002L();
|
|
198 |
void TestSendAPDUReq0003L();
|
|
199 |
void TestSendAPDUReq0004L();
|
|
200 |
void TestSendAPDUReq0005L();
|
|
201 |
void TestDisablePhoneLock0001L();
|
|
202 |
void TestDisablePhoneLock0002L();
|
|
203 |
void TestDisablePhoneLock0004L();
|
|
204 |
void TestDisablePhoneLock0005L();
|
|
205 |
void TestNotifyEGprsInfoChange0001L();
|
|
206 |
void TestNotifyEGprsInfoChange0002L();
|
|
207 |
void TestNotifyEGprsInfoChange0003L();
|
|
208 |
void TestNotifyEGprsInfoChange0004L();
|
|
209 |
void TestGetEGprsInfo0001L();
|
|
210 |
void TestGetEGprsInfo0003L();
|
|
211 |
void TestReadSimFile0001L();
|
|
212 |
void TestReadSimFile0002L();
|
|
213 |
void TestReadSimFile0003L();
|
|
214 |
void TestReadSimFile0004L();
|
|
215 |
void TestReadSimFile0005L();
|
|
216 |
void TestGetLifeTime0001L();
|
|
217 |
void TestGetLifeTime0002L();
|
|
218 |
void TestGetLifeTime0003L();
|
|
219 |
void TestGetLifeTime0004L();
|
|
220 |
void TestGet3GPBInfo0001L();
|
|
221 |
void TestGetSystemNetworkModes0001L();
|
|
222 |
void TestGetSystemNetworkModes0002L();
|
|
223 |
void TestGetSystemNetworkModes0004L();
|
|
224 |
void TestGetSystemNetworkModes0005L();
|
|
225 |
void TestSetSystemNetworkMode0001L();
|
|
226 |
void TestSetSystemNetworkMode0002L();
|
|
227 |
void TestSetSystemNetworkMode0004L();
|
|
228 |
void TestSetSystemNetworkMode0005L();
|
|
229 |
void TestGetCurrentSystemNetworkModes0001L();
|
|
230 |
void TestGetCurrentSystemNetworkModes0002L();
|
|
231 |
void TestGetCurrentSystemNetworkModes0004L();
|
|
232 |
void TestGetCurrentSystemNetworkModes0005L();
|
|
233 |
void TestPowerSimOn0001L();
|
|
234 |
void TestPowerSimOn0002L();
|
|
235 |
void TestPowerSimOn0004L();
|
|
236 |
void TestPowerSimOn0005L();
|
|
237 |
void TestPowerSimOff0001L();
|
|
238 |
void TestPowerSimOff0002L();
|
|
239 |
void TestPowerSimOff0004L();
|
|
240 |
void TestPowerSimOff0005L();
|
|
241 |
void TestSimWarmReset0001L();
|
|
242 |
void TestSimWarmReset0002L();
|
|
243 |
void TestSimWarmReset0004L();
|
|
244 |
void TestSimWarmReset0005L();
|
|
245 |
void TestGetATR0001L();
|
|
246 |
void TestGetATR0002L();
|
|
247 |
void TestGetATR0003L();
|
|
248 |
void TestGetATR0004L();
|
|
249 |
void TestGetATR0005L();
|
|
250 |
void TestGetSimCardReaderStatus0001L();
|
|
251 |
void TestGetSimCardReaderStatus0002L();
|
|
252 |
void TestGetSimCardReaderStatus0004L();
|
|
253 |
void TestGetSimCardReaderStatus0005L();
|
|
254 |
void TestNotifySimCardStatus0001L();
|
|
255 |
void TestNotifySimCardStatus0002L();
|
|
256 |
void TestNotifySimCardStatus0004L();
|
|
257 |
void TestGetWlanSimAuthenticationData0001L();
|
|
258 |
void TestGetWlanSimAuthenticationData0002L();
|
|
259 |
void TestGetWlanSimAuthenticationData0003L();
|
|
260 |
void TestGetWlanSimAuthenticationData0004L();
|
|
261 |
void TestGetWlanSimAuthenticationData0005L();
|
|
262 |
void TestSetSimMessageStatusRead0001L();
|
|
263 |
void TestWriteViagHomeZoneUHZIUESettings0001L();
|
|
264 |
void TestWriteViagHomeZoneUHZIUESettings0002L();
|
|
265 |
void TestWriteViagHomeZoneUHZIUESettings0004L();
|
|
266 |
void TestWriteViagHomeZoneUHZIUESettings0005L();
|
|
267 |
void TestSetAlwaysOn0001L();
|
|
268 |
void TestSetAlwaysOn0002L();
|
|
269 |
void TestSetAlwaysOn0003L();
|
|
270 |
void TestSetAlwaysOn0004L();
|
|
271 |
void TestNotifyRauEvent0001L();
|
|
272 |
void TestNotifyRauEvent0002L();
|
|
273 |
void TestNotifyRauEvent0004L();
|
|
274 |
void TestReadHSxPAStatus0001L();
|
|
275 |
void TestReadHSxPAStatus0002L();
|
|
276 |
void TestReadHSxPAStatus0004L();
|
|
277 |
void TestReadHSxPAStatus0005L();
|
|
278 |
void TestWriteHSxPAStatus0001L();
|
|
279 |
void TestWriteHSxPAStatus0002L();
|
|
280 |
void TestWriteHSxPAStatus0004L();
|
|
281 |
void TestWriteHSxPAStatus0005L();
|
|
282 |
void TestNotifyHSxPAStatus0001L();
|
|
283 |
void TestNotifyHSxPAStatus0002L();
|
|
284 |
void TestNotifyHSxPAStatus0004L();
|
|
285 |
void TestGetIccCallForwardingIndicatorStatus0001L();
|
|
286 |
void TestGetIccCallForwardingIndicatorStatus0002L();
|
|
287 |
void TestGetIccCallForwardingIndicatorStatus0003L();
|
|
288 |
void TestGetIccCallForwardingIndicatorStatus0004L();
|
|
289 |
void TestGetIccCallForwardingIndicatorStatus0005L();
|
|
290 |
void TestNotifyIccCallForwardingStatusChange0001L();
|
|
291 |
void TestNotifyIccCallForwardingStatusChange0002L();
|
|
292 |
void TestNotifyIccCallForwardingStatusChange0003L();
|
|
293 |
void TestNotifyIccCallForwardingStatusChange0004L();
|
|
294 |
void TestGetCellInfo0001L();
|
|
295 |
void TestGetCellInfo0002L();
|
|
296 |
void TestGetCellInfo0003L();
|
|
297 |
void TestGetCellInfo0004L();
|
|
298 |
void TestGetCellInfo0005L();
|
|
299 |
void TestNotifyCellInfoChange0001L();
|
|
300 |
void TestNotifyCellInfoChange0002L();
|
|
301 |
void TestNotifyCellInfoChange0003L();
|
|
302 |
void TestNotifyCellInfoChange0004L();
|
|
303 |
void TestWriteAlphaString0001L();
|
|
304 |
void TestReadAlphaString0001L();
|
|
305 |
void TestDeleteAlphaString0001L();
|
|
306 |
void TestGetSystemNetworkBand0001L();
|
|
307 |
void TestGetSystemNetworkBand0002L();
|
|
308 |
void TestGetSystemNetworkBand0004L();
|
|
309 |
void TestGetSystemNetworkBand0005L();
|
|
310 |
void TestSetSystemNetworkBand0001L();
|
|
311 |
void TestSetSystemNetworkBand0002L();
|
|
312 |
void TestSetSystemNetworkBand0004L();
|
|
313 |
void TestSetSystemNetworkBand0005L();
|
|
314 |
|
|
315 |
void TestGetUSIMServiceSupport0001L();
|
|
316 |
void TestGetUSIMServiceSupport0002L();
|
|
317 |
void TestGetUSIMServiceSupport0003L();
|
|
318 |
void TestGetUSIMServiceSupport0004L();
|
|
319 |
void TestGetUSIMServiceSupport0005L();
|
|
320 |
|
|
321 |
|
|
322 |
private:
|
|
323 |
|
|
324 |
void OpenCustomAPILC(RMmCustomAPI& aCustomAPI, RMobilePhone& aPhone, TBool aExpectNeeded = ETrue);
|
|
325 |
void OpenCustomAPILC(RMmCustomAPI& aCustomAPI);
|
|
326 |
void OpenLineLC(RLine& aLine, RPhone& aPhone, const TDesC& aName);
|
|
327 |
void CreateAndOpenIncomingCalLC(RLine &aLine,
|
|
328 |
RCall &aCall,
|
|
329 |
TName &aCallName,
|
|
330 |
const TDesC& aLineName,
|
|
331 |
const TInt aCallId,
|
|
332 |
RMobileCall::TMobileCallStatus aMobileCallStatus,
|
|
333 |
RMobilePhone::TMobileService aMobileService
|
|
334 |
);
|
|
335 |
void OpenPhoneAndCustomAPILC(RMmCustomAPI& aCustomAPI, TInt aNtsyError = KErrNone);
|
|
336 |
void MockPrimeEReadViagHomeZoneCacheIPCL(TInt aCacheId,TInt aRecordId, TBool aDoComplete = ETrue, TBool aDoExpect = ETrue, TInt aNtsyError = KErrNone);
|
|
337 |
void FillWithRandomData( RMmCustomAPI::TMmCellInfo& cell, TInt aRnd = 0) const;
|
|
338 |
void FillWithRandomDataLC( RMmCustomAPI::TViagElements*& cell, TInt aRnd = 0) const;
|
|
339 |
void InitSimCbTopicsL(RMmCustomAPI &aCustomApi, const TDesC& aTopic, TInt aNum);
|
|
340 |
|
|
341 |
void AuxReadViagHomeZoneParamsL();
|
|
342 |
void AuxReadViagHomeZoneParamsForIncreasingCoverageL();
|
|
343 |
void OpenPhoneBookStoreWithSIMRefreshL(RMobilePhoneBookStore &aStore, TName &aName, RMobilePhone &aPhone, TInt aSimError);
|
|
344 |
static void FillRandom(TDes8 &aBuff);
|
|
345 |
RMmCustomAPI::TViagCacheRecordContent iViagHomeZoneCache[KPhEngMaxViagHomeZones][KPhEngMaxCacheId];
|
|
346 |
}; // class CCTsyCustomIPCFU
|
|
347 |
|
|
348 |
#endif // CCTSYCUSTOMIPCFU_H
|
|
349 |
|