telephonyserverplugins/simatktsy/tests/inc/ccsatprovidelocalinfofu.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 ProvideLocalInfo
       
    21 */
       
    22 
       
    23 #ifndef CCSATPROVIDELOCALINFOFU_H
       
    24 #define CCSATPROVIDELOCALINFOFU_H
       
    25 
       
    26 #include <test/tefunit.h>
       
    27 
       
    28 #include <etelmm.h>
       
    29 #include <etelmmcs.h>
       
    30 
       
    31 #include "ccsatcomponenttestbase.h"
       
    32 
       
    33 class CCSatProvideLocalInfoFU : public CCSatComponentTestBase
       
    34 	{
       
    35 public:
       
    36 	// Create a suite of all the tests
       
    37 	static CTestSuite* CreateSuiteL(const TDesC& aName);
       
    38 	
       
    39 public:
       
    40 	// Test API
       
    41 	void TestNotifyLocalInfoPCmd0001L();
       
    42 	void TestNotifyLocalInfoPCmd0002L();	
       
    43 	void TestNotifyLocalInfoPCmd0004L();	
       
    44 		
       
    45 	void TestNotifyLocalInfoPCmd0001bL();	
       
    46 	void TestNotifyLocalInfoPCmd0001cL();	
       
    47 	void TestNotifyLocalInfoPCmd0001dL();
       
    48 	void TestNotifyLocalInfoPCmd0001eL();
       
    49 	void TestNotifyLocalInfoPCmd0001fL();
       
    50 	void TestNotifyLocalInfoPCmd0001gL();
       
    51 	void TestNotifyLocalInfoPCmd0001hL();
       
    52 	void TestNotifyLocalInfoPCmd0001iL();
       
    53 	void TestNotifyLocalInfoPCmd0001jL();
       
    54 	void TestNotifyLocalInfoPCmd0001kL();
       
    55 
       
    56 private:	
       
    57 	
       
    58 	void PrepareMockLDataWithExpL(TUint8 aPCmdNumber);	
       
    59 	void PrepareTlv(TTlv& aTlv, TUint8 aPCmdNumber, TUint8 aLocalInfoQualifier);		
       
    60 	void CompleteMockDispatchSatPcmdL( TPtrC8 aCompleteTlv, TInt aError );	
       
    61 	void PrepareTerminalResponseMockDataWithExpL (	TUint8 aPCmdNumber,												
       
    62 												TUint8 aCommandQualifier,
       
    63 												const TDesC& aGeneralResultAddInfo,
       
    64 												RSat::TPCmdResult aGeneralResult,
       
    65 												const TDesC8& aAdditionalInfoTlv);		
       
    66 	void TerminalResponseL(	const TDesC8& aRspPckg, TInt aExpectedError = KErrNone);	
       
    67 	
       
    68 	void SetDateTimeTimeZone ( RSat::TLocalInfoRspV3& aLocalInfoRspV3, TUint8 aTimeZone);	
       
    69 	
       
    70 	void OpenSatWithZeroImeiL();
       
    71 	}; // class CCSatProvideLocalInfoFU
       
    72 
       
    73 #endif // CCSATPROVIDELOCALINFOFU_H
       
    74