telephonyserverplugins/simatktsy/tests/inc/ccsatrefreshfu.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 Refresh
       
    21 */
       
    22 
       
    23 #ifndef CCSATREFRESHFU_H
       
    24 #define CCSATREFRESHFU_H
       
    25 
       
    26 #include <test/tefunit.h>
       
    27 
       
    28 #include <etelmm.h>
       
    29 #include <etelmmcs.h>
       
    30 
       
    31 #include "ccsatcomponenttestbase.h"
       
    32 
       
    33 class CCSatRefreshFU : public CCSatComponentTestBase
       
    34 	{
       
    35 public:
       
    36 	// Create a suite of all the tests
       
    37 	static CTestSuite* CreateSuiteL(const TDesC& aName);
       
    38 
       
    39 public:
       
    40 	// Individual test steps
       
    41 
       
    42 	void TestNotifyRefreshPCmd0001L();
       
    43 	void TestNotifyRefreshPCmd0002L();
       
    44 	void TestNotifyRefreshPCmd0004L();
       
    45 	void TestNotifyRefreshPCmd0001bL();
       
    46 
       
    47 private:
       
    48 
       
    49 	/**
       
    50     * prepare tlv buffer for refresh proactive command 
       
    51     * @param aTlv - tlv buffer to prepare
       
    52     * @param aCmdNum - command number
       
    53     * @param aCmdQualifier - type of refresh command
       
    54     */   	
       
    55 	static void PrepareTlv(TTlv& aTlv, TUint8 aCmdNum, TUint8 aCmdQualifier);
       
    56 
       
    57 	/**
       
    58     * prepare mock for dispatch of sat notification  
       
    59     */   	
       
    60 	void PrepareRefreshDispatchL();
       
    61 
       
    62 	/**
       
    63     * prepare mock complete for processing of proactive command
       
    64     * @param aTlvDsc - tlv buffer to send
       
    65     * @param aRes - result for request completion
       
    66     */   	
       
    67 	void CompleteRefreshDispatchL(const TDesC8& aTlvDsc, TInt aRes = KErrNone);
       
    68 	
       
    69 	/**
       
    70     * call RefreshAllowed() for completion of NotifyRefreshPCmd()
       
    71     * @param aRes - result for completion
       
    72     * @param aCache - bitmask indicating files in cache to refresh
       
    73     * @param aFileList - buffer with filelist
       
    74     * @param aAid - application id   
       
    75     */   	
       
    76 	void PrepareAndCallRefreshAllowedL(RSat::TPCmdResult aRes = RSat::KSuccess, TUint16 aCache = 0x00, 
       
    77 			const TDesC8& aFileList = KNullDesC8, const TDesC8& aAid = KNullDesC8);
       
    78 	
       
    79 	}; // class CCSatRefreshFU
       
    80 
       
    81 #endif // CCSATREFRESHFU_H
       
    82