telephonyserverplugins/simatktsy/tests/inc/ccsatsendreceivedatafu.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
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 SAT.
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @file The TEFUnit header file which tests the SendReceiveData
       
    21 */
       
    22 
       
    23 #ifndef CCSATSENDRECEIVEDATAFU_H
       
    24 #define CCSATSENDRECEIVEDATAFU_H
       
    25 
       
    26 #include <test/tefunit.h>
       
    27 
       
    28 #include <etelmm.h>
       
    29 #include <etelmmcs.h>
       
    30 #include <ctsy/ltsy/sat_defs.h>
       
    31 
       
    32 #include "ccsatcomponenttestbase.h"
       
    33 
       
    34 const TUint8 KPCmdNumberOne = 1;
       
    35 
       
    36 class CCSatSendReceiveDataFU : public CCSatComponentTestBase
       
    37 	{
       
    38 public:
       
    39 	// Create a suite of all the tests
       
    40 	static CTestSuite* CreateSuiteL(const TDesC& aName);
       
    41 
       
    42 public:
       
    43 	// Individual test steps
       
    44 
       
    45 	void TestNotifyReceiveDataPCmd0001L();
       
    46 	void TestNotifyReceiveDataPCmd0001bL();
       
    47 	void TestNotifyReceiveDataPCmd0002L();
       
    48 	void TestNotifyReceiveDataPCmd0004L();
       
    49 	void TestNotifySendDataPCmd0001L();
       
    50 	void TestNotifySendDataPCmd0001bL();
       
    51 	void TestNotifySendDataPCmd0002L();
       
    52 	void TestNotifySendDataPCmd0004L();
       
    53 	
       
    54 private:
       
    55 
       
    56 	void PrepareSendDataCompleteDataL(
       
    57 			const TDesC8* aChannelData,
       
    58 			TInt aDelay = KDefaultNoDelay);
       
    59 	
       
    60 	void PrepareSendDataCompleteDataL(
       
    61 			const TDesC8* aChannelData,
       
    62 			TUint8 aPCmdNumber,
       
    63 			TUint8 aCmdQual,
       
    64 			TUint8 aDestDeviceId,
       
    65 			const TDesC8* aAlphaId,
       
    66 			RSat::TIconQualifier aIconQual,
       
    67 			TInt aResult,
       
    68 			TInt aDelay = KDefaultNoDelay);
       
    69 
       
    70 	void TestNotifySendDataPCmdL(
       
    71 			const TDesC8* aChannelData,
       
    72 			TUint8 aCmdQual = KBipSendDataImmediately);
       
    73 
       
    74 	void TestNotifySendDataPCmdErrorL(
       
    75 			const TDesC8* aChannelData,
       
    76 			TInt aError);
       
    77 
       
    78 	void TestNotifySendDataPCmdL(
       
    79 			const TDesC8* aChannelData,
       
    80 			RSat::TDeviceId aDestDeviceId);
       
    81 
       
    82 	void TestNotifySendDataPCmdL(
       
    83 			const TDesC8* aChannelData,
       
    84 			const TDesC8* aAlphaId,
       
    85 			const TDesC16* aAlphaIdCheck = NULL,
       
    86 			RSat::TIconQualifier aIconQual = RSat::EIconQualifierNotSet);
       
    87 	
       
    88 	void TestNotifySendDataPCmdL(
       
    89 			const TDesC8* aChannelData,
       
    90 			TUint8 aPCmdNumber,
       
    91 			TUint8 aCmdQual,
       
    92 			RSat::TDeviceId aDestDeviceId,
       
    93 			const TDesC8* aAlphaId,
       
    94 			RSat::TIconQualifier aIconQual,
       
    95 			TInt aResult,
       
    96 			const TDesC16* aAlphaIdCheck);
       
    97 	
       
    98 	void GenerateSendDataTerminalResponseL(const RSat::TSendDataRspV2& aResp);
       
    99 
       
   100 	void GenerateSendDataTerminalResponseL(
       
   101 			const RSat::TSendDataRspV2& aResp,
       
   102 			TUint8 aCmdQual,
       
   103 			TInt aExpResult = KErrNone);
       
   104 
       
   105 	void PrepareReceiveDataCompleteDataL(
       
   106 			const TUint8* aChannelDataLength,
       
   107 			TInt aDelay = KDefaultNoDelay);
       
   108 	
       
   109 	void PrepareReceiveDataCompleteDataL(
       
   110 			TUint8 aPCmdNumber,
       
   111 			const TUint8* aChannelDataLength,
       
   112 			const TDesC8* aAlphaId,
       
   113 			RSat::TIconQualifier aIconQual,
       
   114 			TInt aResult,
       
   115 			TInt aDelay,
       
   116 			TUint8 aDestDeviceId);
       
   117 
       
   118 	void TestNotifyReceiveDataPCmdL(
       
   119 			const TUint8* aChannelDataLength,
       
   120 			TInt aResult = KErrNone);
       
   121 	
       
   122 	void TestNotifyReceiveDataPCmdL(
       
   123 			const TUint8* aChannelDataLength,
       
   124 			RSat::TDeviceId aDestDeviceId);
       
   125 	
       
   126 	void TestNotifyReceiveDataPCmdL(
       
   127 			const TUint8* aChannelDataLength,
       
   128 			const TDesC8* aAlphaId,
       
   129 			const TDesC16* aAlphaIdCheck = NULL,
       
   130 			RSat::TIconQualifier aIconQual = RSat::EIconQualifierNotSet);
       
   131 	
       
   132 	void TestNotifyReceiveDataPCmdL(
       
   133 			TUint8 aPCmdNumber,
       
   134 			const TUint8* aChannelDataLength,
       
   135 			const TDesC8* aAlphaId,
       
   136 			RSat::TIconQualifier aIconQual,
       
   137 			TInt aResult,
       
   138 			const TDesC16* aAlphaIdCheck,
       
   139 			RSat::TDeviceId aDestDeviceId);
       
   140 	
       
   141 	void GenerateReceiveDataTerminalResponseL(
       
   142 			const RSat::TReceiveDataRspV2& aResp,
       
   143 			TInt aExpResult = KErrNone);
       
   144 
       
   145 	}; // class CCSatSendReceiveDataFU
       
   146 
       
   147 #endif // CCSATSENDRECEIVEDATAFU_H
       
   148