mmsharing/mmshavailability/tsrc/ut_availability/inc/UT_CMusAvaCapabilitySipAgent.h
changeset 15 ccd8e69b5392
parent 2 b31261fd4e04
child 20 e8be2c2e049d
child 22 496ad160a278
equal deleted inserted replaced
2:b31261fd4e04 15:ccd8e69b5392
     1 /*
       
     2 * Copyright (c) 2004 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __UT_CMUSAVACAPABILITYSIPAGENT_H__
       
    20 #define __UT_CMUSAVACAPABILITYSIPAGENT_H__
       
    21 
       
    22 //  EXTERNAL INCLUDES
       
    23 #include <digia/eunit/ceunittestsuiteclass.h>
       
    24 
       
    25 //  INTERNAL INCLUDES
       
    26 #include <e32def.h>
       
    27 #include <e32property.h>
       
    28 
       
    29 //  FORWARD DECLARATIONS
       
    30 class CSIPConnection;
       
    31 class CSIPProfile;
       
    32 class CMusAvaCapability;
       
    33 class CSipSseTestTls;
       
    34 class CMusAvaOptionHandler;
       
    35 class CMusAvaObserverImp;
       
    36 class CMusAvaSettingsImp;	
       
    37 class CMusAvaCapabilityExchange;
       
    38 class CMusAvaCapabilitySipAgent;
       
    39 class CMusAvaSharedObject;
       
    40 class CMusAvaAvailabilityObserverImp;
       
    41 
       
    42 //  CLASS DEFINITION
       
    43 /**
       
    44  *
       
    45  * EUnitWizard generated test class. 
       
    46  *
       
    47  */
       
    48 class UT_CMusAvaCapabilitySipAgent
       
    49      : public CEUnitTestSuiteClass
       
    50     {
       
    51     public:     // Constructors and destructors
       
    52 
       
    53         /**
       
    54          * Two phase construction
       
    55          */
       
    56         static UT_CMusAvaCapabilitySipAgent* NewL();
       
    57         static UT_CMusAvaCapabilitySipAgent* NewLC();
       
    58         /**
       
    59          * Destructor
       
    60          */
       
    61         ~UT_CMusAvaCapabilitySipAgent();
       
    62 
       
    63     private:    // Constructors and destructors
       
    64 
       
    65         UT_CMusAvaCapabilitySipAgent();
       
    66         void ConstructL();
       
    67 
       
    68 	public: 	// From observer interface
       
    69 		
       
    70 		
       
    71 
       
    72     private:    // New methods
       
    73 
       
    74         void SetupL();
       
    75 
       
    76         void Teardown();
       
    77 
       
    78         void UT_CMusAvaCapabilitySipAgent_NewLL();
       
    79         
       
    80         void UT_CMusAvaCapabilitySipAgent_ExecuteCapabilityQueryLL();
       
    81         
       
    82         void UT_CMusAvaCapabilitySipAgent_IncomingRequestL();
       
    83         
       
    84         void UT_CMusAvaCapabilitySipAgent_HandleIncomingRequestLL();
       
    85         
       
    86         void UT_CMusAvaCapabilitySipAgent_IncomingResponseL();
       
    87         
       
    88         void UT_CMusAvaCapabilitySipAgent_ErrorOccuredL();
       
    89         
       
    90         void UT_CMusAvaCapabilitySipAgent_TimedOutL();
       
    91 
       
    92         
       
    93 		EUNIT_DECLARE_TEST_TABLE; 
       
    94 				
       
    95 		CMusAvaOptionHandler* iOptionHandler;
       
    96 	    
       
    97 	    CMusAvaAvailabilityObserverImp* iAvailabilityObserver;
       
    98 		
       
    99 		CMusAvaSettingsImp* iConcreteSettings;
       
   100 		
       
   101 		CMusAvaCapabilitySipAgent* iSipAgent;
       
   102 		
       
   103     	CMusAvaCapabilityExchange* iExchange;
       
   104         
       
   105         CSIPConnection* iSIPConnection;
       
   106         CSIPProfile* iProfile;
       
   107 
       
   108     private: // NOT owned
       
   109     
       
   110 		CSipSseTestTls* iStorage;
       
   111         CMusAvaCapability* iCapability;
       
   112         
       
   113         CMusAvaSharedObject* iSharedObject; 
       
   114         
       
   115         TInt iProfileId;
       
   116   
       
   117     };
       
   118 
       
   119 #endif      //  __UT_CMUSAVACAPABILITYSIPAGENT_H__
       
   120 
       
   121 // End of file