telephonyserverplugins/simatktsy/tests/inc/ccsatclosechannelfu.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 CloseChannel
       
    21 */
       
    22 
       
    23 #ifndef CCSATCLOSECHANNELFU_H
       
    24 #define CCSATCLOSECHANNELFU_H
       
    25 
       
    26 #include <test/tefunit.h>
       
    27 
       
    28 #include <etelmm.h>
       
    29 #include <etelmmcs.h>
       
    30 
       
    31 #include "ccsatcomponenttestbase.h"
       
    32 
       
    33 
       
    34 
       
    35 class CCSatCloseChannelFU : public CCSatComponentTestBase
       
    36 	{
       
    37 public:
       
    38 	// Create a suite of all the tests
       
    39 	static CTestSuite* CreateSuiteL(const TDesC& aName);
       
    40 
       
    41 public:
       
    42 	// Individual test steps
       
    43 
       
    44 	void TestNotifyCloseChannelPCmd0001L();
       
    45 	void TestNotifyCloseChannelPCmd0002L();
       
    46 	void TestNotifyCloseChannelPCmd0004L();
       
    47 	
       
    48 private:
       
    49    /**
       
    50     * prepare tlv buffer for OpenChannel proactive command 
       
    51     * @param aTlv - tlv buffer to prepare
       
    52     * @param aCmdNum - command number
       
    53     * @param aCmdQualifier - type of command
       
    54     * @param aAlpha - alpha identifier 
       
    55     */   	
       
    56 	static void PrepareTlv(TTlv& aTlv, TUint8 aCmdNum, TUint8 aCmdQualifier, TUint8 aChan, 
       
    57 			const TDesC8& aAlpha = KNullDesC8); 
       
    58 	
       
    59    /**
       
    60     * prepare mock for processing of proactive command
       
    61     * @param aTlvDsc - tlv buffer to send
       
    62     * @param aRes - result for request completion
       
    63     */   	
       
    64 	void CompleteDispatchL(TPtrC8 aTlvDsc, TInt aRes = KErrNone);
       
    65 	
       
    66    /**
       
    67     * prepare complete for dispatch of sat notification  
       
    68     */   	
       
    69 	void PrepareDispatchL();
       
    70 
       
    71 	/**
       
    72 	 * Tests all possible "TERMINAL RESPONSE" cases. 
       
    73 	 * API should return KErrNone for all valid responses and KErrCorrupt 
       
    74 	 * for those that can not be used with "Close channel" command  
       
    75 	 */
       
    76 	void DoTestTerminalResponseL();
       
    77 	
       
    78 	}; // class CCSatCloseChannelFU
       
    79 
       
    80 #endif // CCSATCLOSECHANNELFU_H
       
    81