uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginecontactmgmtextention.h
changeset 15 81eeb8c83ce5
parent 0 5e5d6b214f4f
equal deleted inserted replaced
0:5e5d6b214f4f 15:81eeb8c83ce5
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: t_vimpstenginecontactmgmtextention.h
       
    15 *
       
    16 */
       
    17 #ifndef _T_VIMPSTEngineContactMgmtExtention_H_
       
    18 #define _T_VIMPSTEngineContactMgmtExtention_H_
       
    19 
       
    20 //  EXTERNAL INCLUDES
       
    21 #include <CEUnitTestSuiteClass.h>
       
    22 
       
    23 
       
    24 #include "cvimpstenginecontactmgmtextention.h"
       
    25 
       
    26 //Forward declarations
       
    27 class CVIMPSTEngineContactMgmtExtention;
       
    28 class MXIMPClient;
       
    29 class MXIMPContext;
       
    30 class MPresenceFeatures;
       
    31 class CVIMPSTEngineRequestMapper;
       
    32 
       
    33 class T_VIMPSTEngineContactMgmtExtention : public CEUnitTestSuiteClass
       
    34     {
       
    35     public:
       
    36 
       
    37         static T_VIMPSTEngineContactMgmtExtention* NewLC();
       
    38         ~T_VIMPSTEngineContactMgmtExtention();
       
    39 
       
    40     private:
       
    41 
       
    42         void ConstructL();
       
    43         void SetupL();        
       
    44         void Teardown();
       
    45 
       
    46         void TestConstructionL();
       
    47 		void TestCreateIdentityNormalL();
       
    48 
       
    49     	
       
    50     	void TestAddServerContactSuccessValidDataL();
       
    51 		void TestAddServerContactSuccessWithDataLengthZeroL();
       
    52 
       
    53 	    void TestAddServerContactErrorValidDataL();
       
    54     
       
    55     	void TestIsSupported();
       
    56     	void TestType();
       
    57     	
       
    58     	void TestDeleteServerContactSuccessValidDataL();
       
    59 		void TestDeleteServerContactSuccessWithDataLengthZeroL();
       
    60 
       
    61 	    void TestDeleteServerContactErrorValidDataL();
       
    62 	    
       
    63 	    void TestHandleSessionContextEventOperationDeleteL();
       
    64  		void TestHandleSessionContextEventOperationAddL();
       
    65  		
       
    66  		void TestHandleSessionContextEventOperationDeleteErrNoneL();
       
    67     	void TestHandleSessionContextEventOperationAddErrNoneL();
       
    68     	void TestHandleSessionContextEventOperationDeleteNotSupportedL();    
       
    69     	void TestHandleSessionContextEventOperationAddNotSupportedL();
       
    70     	void TestHandleSessionContextEventOperationNotValidOperationL();
       
    71 	    
       
    72     	
       
    73     private:
       
    74 
       
    75         T_VIMPSTEngineContactMgmtExtention() {};
       
    76 
       
    77     
       
    78     private:
       
    79     	CVIMPSTEngineContactMgmtExtention* iContactManager;
       
    80     	
       
    81     	MXIMPClient* iClient;               
       
    82 	    //Create new sink to receive ximp context events
       
    83 		MXIMPContext* iPresenceCtx;
       
    84 	    
       
    85 		MPresenceFeatures* iFeatures;
       
    86 		
       
    87 		MPresentityGroups* iGroups;
       
    88 		
       
    89 		CVIMPSTEngineRequestMapper* iRequestMapper;
       
    90 	
       
    91     	EUNIT_DECLARE_TEST_TABLE;
       
    92     };
       
    93 
       
    94 #endif      //  _T_CSCPUtility_H_
       
    95 
       
    96 // end of file