telephonyserverplugins/common_tsy/test/component/inc/cctsycustomipcfu.h
changeset 0 3553901f7fa8
child 14 7ef16719d8cb
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     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 TestReadViagHomeZoneCache0002L();
       
   113 	void TestReadViagHomeZoneCache0003L();
       
   114 	void TestReadViagHomeZoneCache0004L();
       
   115 	void TestReadViagHomeZoneCache0005L();
       
   116 	void TestWriteViagHomeZoneCache0001L();
       
   117 	void TestWriteViagHomeZoneCache0002L();
       
   118 	void TestWriteViagHomeZoneCache0003L();
       
   119 	void TestWriteViagHomeZoneCache0004L();
       
   120 	void TestWriteViagHomeZoneCache0005L();
       
   121 	void TestClearCallBlackList0001L();
       
   122 	void TestClearCallBlackList0002L();
       
   123 	void TestClearCallBlackList0004L();
       
   124 	void TestClearCallBlackList0005L();
       
   125 	void TestSsAdditionalInfoNotification0001L();
       
   126 	void TestSsAdditionalInfoNotification0002L();
       
   127 	void TestSsAdditionalInfoNotification0004L();
       
   128 	void TestSsRequestCompleteNotification0001L();
       
   129 	void TestSsRequestCompleteNotification0002L();
       
   130 	void TestSsRequestCompleteNotification0004L();
       
   131 	void TestIsBlocked0001L();
       
   132 	void TestIsBlocked0005L();
       
   133 	void TestCheckSecurityCode0001L();
       
   134 	void TestCheckSecurityCode0002L();
       
   135 	void TestCheckSecurityCode0004L();
       
   136 	void TestCheckSecurityCode0005L();
       
   137 	void TestGetActivePin0001L();
       
   138 	void TestGetAirTimeDuration0001L();
       
   139 	void TestGetNetworkProviderName0001L();
       
   140 	void TestGetNetworkProviderName0002L();
       
   141 	void TestGetNetworkProviderName0003L();
       
   142 	void TestGetNetworkProviderName0004L();
       
   143 	void TestGetNetworkProviderName0005L();
       
   144 	void TestCheckEmergencyNumber0001L();
       
   145 	void TestCheckEmergencyNumber0002L();
       
   146 	void TestCheckEmergencyNumber0004L();
       
   147 	void TestCheckEmergencyNumber0005L();
       
   148 	void TestNotifyPndCacheReady0001L();
       
   149 	void TestNotifyPndCacheReady0001bL();
       
   150 	void TestNotifyPndCacheReady0002L();
       
   151 	void TestNotifyPndCacheReady0003L();
       
   152 	void TestNotifyPndCacheReady0004L();
       
   153 	void TestGetPndCacheStatus0001L();
       
   154 	void TestGetPndCacheStatus0003L();
       
   155 	void TestGetOperatorName0001L();
       
   156 	void TestGetOperatorName0002L();
       
   157 	void TestGetOperatorName0004L();
       
   158 	void TestGetOperatorName0005L();
       
   159 	void TestGetProgrammableOperatorLogo0001L();
       
   160 	void TestGetProgrammableOperatorLogo0002L();
       
   161 	void TestGetProgrammableOperatorLogo0003L();
       
   162 	void TestGetProgrammableOperatorLogo0004L();
       
   163 	void TestGetProgrammableOperatorLogo0005L();
       
   164 	void TestNotifyProgrammableOperatorLogoChange0001L();
       
   165 	void TestNotifySsNetworkEvent0001L();
       
   166 	void TestNotifySsNetworkEvent0002L();
       
   167 	void TestNotifySsNetworkEvent0004L();
       
   168 	void TestCancelUssdSession0001L();
       
   169 	void TestSatRefreshCompleteNotification0001L();
       
   170 	void TestSatRefreshCompleteNotification0002L();
       
   171 	void TestSatRefreshCompleteNotification0004L();
       
   172 	void TestCheckTwoDigitDialSupport0001L();
       
   173 	void TestCheckTwoDigitDialSupport0002L();
       
   174 	void TestCheckTwoDigitDialSupport0004L();
       
   175 	void TestCheckTwoDigitDialSupport0005L();
       
   176 	void TestResetNetServer0001L();
       
   177 	void TestResetNetServer0002L();
       
   178 	void TestResetNetServer0004L();
       
   179 	void TestResetNetServer0005L();
       
   180 	void TestReleaseFile0001L();
       
   181 	void TestRestartFile0001L();
       
   182 	void TestStartSimCbTopicBrowsing0001L();
       
   183 	void TestStartSimCbTopicBrowsing0003L();
       
   184 	void TestStartSimCbTopicBrowsing0005L();
       
   185 	void TestGetNextSimCbTopic0001L();
       
   186 	void TestDeleteSimCbTopic0001L();
       
   187 	void TestDeleteSimCbTopic0002L();
       
   188 	void TestDeleteSimCbTopic0003L();
       
   189 	void TestDeleteSimCbTopic0004L();
       
   190 	void TestDeleteSimCbTopic0005L();
       
   191 	void TestNotifyNetworkConnectionFailure0001L();
       
   192 	void TestNotifyNetworkConnectionFailure0002L();
       
   193 	void TestNotifyNetworkConnectionFailure0004L();
       
   194 	void TestSendAPDUReq0001L();
       
   195 	void TestSendAPDUReq0002L();
       
   196 	void TestSendAPDUReq0003L();
       
   197 	void TestSendAPDUReq0004L();
       
   198 	void TestSendAPDUReq0005L();
       
   199 	void TestDisablePhoneLock0001L();
       
   200 	void TestDisablePhoneLock0002L();
       
   201 	void TestDisablePhoneLock0004L();
       
   202 	void TestDisablePhoneLock0005L();
       
   203 	void TestNotifyEGprsInfoChange0001L();
       
   204 	void TestNotifyEGprsInfoChange0002L();
       
   205 	void TestNotifyEGprsInfoChange0003L();
       
   206 	void TestNotifyEGprsInfoChange0004L();
       
   207 	void TestGetEGprsInfo0001L();
       
   208 	void TestGetEGprsInfo0003L();
       
   209 	void TestReadSimFile0001L();
       
   210 	void TestReadSimFile0002L();
       
   211 	void TestReadSimFile0003L();
       
   212 	void TestReadSimFile0004L();
       
   213 	void TestReadSimFile0005L();
       
   214 	void TestGetLifeTime0001L();
       
   215 	void TestGetLifeTime0002L();
       
   216 	void TestGetLifeTime0003L();
       
   217 	void TestGetLifeTime0004L();
       
   218 	void TestGet3GPBInfo0001L();
       
   219 	void TestGetSystemNetworkModes0001L();
       
   220 	void TestGetSystemNetworkModes0002L();
       
   221 	void TestGetSystemNetworkModes0004L();
       
   222 	void TestGetSystemNetworkModes0005L();
       
   223 	void TestSetSystemNetworkMode0001L();
       
   224 	void TestSetSystemNetworkMode0002L();
       
   225 	void TestSetSystemNetworkMode0004L();
       
   226 	void TestSetSystemNetworkMode0005L();
       
   227 	void TestGetCurrentSystemNetworkModes0001L();
       
   228 	void TestGetCurrentSystemNetworkModes0002L();
       
   229 	void TestGetCurrentSystemNetworkModes0004L();
       
   230 	void TestGetCurrentSystemNetworkModes0005L();
       
   231 	void TestPowerSimOn0001L();
       
   232 	void TestPowerSimOn0002L();
       
   233 	void TestPowerSimOn0004L();
       
   234 	void TestPowerSimOn0005L();
       
   235 	void TestPowerSimOff0001L();
       
   236 	void TestPowerSimOff0002L();
       
   237 	void TestPowerSimOff0004L();
       
   238 	void TestPowerSimOff0005L();
       
   239 	void TestSimWarmReset0001L();
       
   240 	void TestSimWarmReset0002L();
       
   241 	void TestSimWarmReset0004L();
       
   242 	void TestSimWarmReset0005L();
       
   243 	void TestGetATR0001L();
       
   244 	void TestGetATR0002L();
       
   245 	void TestGetATR0003L();
       
   246 	void TestGetATR0004L();
       
   247 	void TestGetATR0005L();
       
   248 	void TestGetSimCardReaderStatus0001L();
       
   249 	void TestGetSimCardReaderStatus0002L();
       
   250 	void TestGetSimCardReaderStatus0004L();
       
   251 	void TestGetSimCardReaderStatus0005L();
       
   252 	void TestNotifySimCardStatus0001L();
       
   253 	void TestNotifySimCardStatus0002L();
       
   254 	void TestNotifySimCardStatus0004L();
       
   255 	void TestGetWlanSimAuthenticationData0001L();
       
   256 	void TestGetWlanSimAuthenticationData0002L();
       
   257 	void TestGetWlanSimAuthenticationData0003L();
       
   258 	void TestGetWlanSimAuthenticationData0004L();
       
   259 	void TestGetWlanSimAuthenticationData0005L();
       
   260 	void TestSetSimMessageStatusRead0001L();
       
   261 	void TestWriteViagHomeZoneUHZIUESettings0001L();
       
   262 	void TestWriteViagHomeZoneUHZIUESettings0002L();
       
   263 	void TestWriteViagHomeZoneUHZIUESettings0004L();
       
   264 	void TestWriteViagHomeZoneUHZIUESettings0005L();
       
   265 	void TestSetAlwaysOn0001L();
       
   266 	void TestSetAlwaysOn0002L();
       
   267 	void TestSetAlwaysOn0003L();
       
   268 	void TestSetAlwaysOn0004L();
       
   269 	void TestNotifyRauEvent0001L();
       
   270 	void TestNotifyRauEvent0002L();
       
   271 	void TestNotifyRauEvent0004L();
       
   272 	void TestReadHSxPAStatus0001L();
       
   273 	void TestReadHSxPAStatus0002L();
       
   274 	void TestReadHSxPAStatus0004L();
       
   275 	void TestReadHSxPAStatus0005L();
       
   276 	void TestWriteHSxPAStatus0001L();
       
   277 	void TestWriteHSxPAStatus0002L();
       
   278 	void TestWriteHSxPAStatus0004L();
       
   279 	void TestWriteHSxPAStatus0005L();
       
   280 	void TestNotifyHSxPAStatus0001L();
       
   281 	void TestNotifyHSxPAStatus0002L();
       
   282 	void TestNotifyHSxPAStatus0004L();
       
   283 	void TestGetIccCallForwardingIndicatorStatus0001L();
       
   284 	void TestGetIccCallForwardingIndicatorStatus0002L();
       
   285 	void TestGetIccCallForwardingIndicatorStatus0003L();
       
   286 	void TestGetIccCallForwardingIndicatorStatus0004L();
       
   287 	void TestGetIccCallForwardingIndicatorStatus0005L();
       
   288 	void TestNotifyIccCallForwardingStatusChange0001L();
       
   289 	void TestNotifyIccCallForwardingStatusChange0002L();
       
   290 	void TestNotifyIccCallForwardingStatusChange0003L();
       
   291 	void TestNotifyIccCallForwardingStatusChange0004L();
       
   292 	void TestGetCellInfo0001L();
       
   293 	void TestGetCellInfo0002L();
       
   294 	void TestGetCellInfo0003L();
       
   295 	void TestGetCellInfo0004L();
       
   296 	void TestGetCellInfo0005L();
       
   297 	void TestNotifyCellInfoChange0001L();
       
   298 	void TestNotifyCellInfoChange0002L();
       
   299 	void TestNotifyCellInfoChange0003L();
       
   300 	void TestNotifyCellInfoChange0004L();
       
   301 	void TestWriteAlphaString0001L();
       
   302 	void TestReadAlphaString0001L();
       
   303 	void TestDeleteAlphaString0001L();
       
   304 	void TestGetSystemNetworkBand0001L();
       
   305 	void TestGetSystemNetworkBand0002L();
       
   306 	void TestGetSystemNetworkBand0004L();
       
   307 	void TestGetSystemNetworkBand0005L();
       
   308 	void TestSetSystemNetworkBand0001L();
       
   309 	void TestSetSystemNetworkBand0002L();
       
   310 	void TestSetSystemNetworkBand0004L();
       
   311 	void TestSetSystemNetworkBand0005L();
       
   312 
       
   313 	void TestGetUSIMServiceSupport0001L();
       
   314 	void TestGetUSIMServiceSupport0002L();
       
   315 	void TestGetUSIMServiceSupport0003L();
       
   316 	void TestGetUSIMServiceSupport0004L();
       
   317 	void TestGetUSIMServiceSupport0005L();
       
   318 	
       
   319 	
       
   320 private:
       
   321 
       
   322 	void OpenCustomAPILC(RMmCustomAPI& aCustomAPI, RMobilePhone& aPhone, TBool aExpectNeeded = ETrue);
       
   323 	void OpenCustomAPILC(RMmCustomAPI& aCustomAPI);
       
   324 	void OpenLineLC(RLine& aLine, RPhone& aPhone, const TDesC& aName);
       
   325 	void CreateAndOpenIncomingCalLC(RLine &aLine, 
       
   326 									RCall &aCall,
       
   327 									TName &aCallName,
       
   328 									const TDesC& aLineName,
       
   329 									const TInt aCallId,
       
   330 									RMobileCall::TMobileCallStatus aMobileCallStatus,
       
   331 									RMobilePhone::TMobileService aMobileService
       
   332 									);
       
   333 	void OpenPhoneAndCustomAPILC(RMmCustomAPI& aCustomAPI);
       
   334 	void MockPrimeEReadViagHomeZoneCacheIPCL(TInt aCacheId,TInt aRecordId, TBool aDoComplete = ETrue, TBool aDoExpect = ETrue);
       
   335 	void FillWithRandomData( RMmCustomAPI::TMmCellInfo& cell, TInt aRnd = 0) const;
       
   336 	void FillWithRandomDataLC( RMmCustomAPI::TViagElements*& cell, TInt aRnd = 0) const;
       
   337 	void InitSimCbTopicsL(RMmCustomAPI &aCustomApi, const TDesC& aTopic, TInt aNum);
       
   338 
       
   339 	void AuxReadViagHomeZoneParamsL();
       
   340 	void AuxReadViagHomeZoneParamsForIncreasingCoverageL();
       
   341 	void OpenPhoneBookStoreWithSIMRefreshL(RMobilePhoneBookStore &aStore, TName &aName, RMobilePhone &aPhone, TInt aSimError);
       
   342     static void FillRandom(TDes8 &aBuff);
       
   343 	RMmCustomAPI::TViagCacheRecordContent iViagHomeZoneCache[KPhEngMaxViagHomeZones][KPhEngMaxCacheId];
       
   344 	}; // class CCTsyCustomIPCFU
       
   345 
       
   346 #endif // CCTSYCUSTOMIPCFU_H
       
   347