mmsharing/mmshavailability/tsrc/ut_availability/inc/UT_CMusAvaCapability.h
changeset 22 496ad160a278
equal deleted inserted replaced
15:ccd8e69b5392 22:496ad160a278
       
     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_CMUSAVACAPABILITY_H__
       
    20 #define __UT_CMUSAVACAPABILITY_H__
       
    21 
       
    22 #ifdef __MWERKS__
       
    23 #pragma warn_emptydecl off
       
    24 #pragma warn_illtokenpasting off
       
    25 #endif
       
    26 
       
    27 //  EXTERNAL INCLUDES
       
    28 #include <digia/eunit/ceunittestsuiteclass.h>
       
    29 
       
    30 #include "mussettingskeys.h"
       
    31 
       
    32 //  INTERNAL INCLUDES
       
    33 
       
    34 
       
    35 //  FORWARD DECLARATIONS
       
    36 class CMusAvaCapability;
       
    37 class CMusAvaCapabilityExchange;
       
    38 class CSIP;
       
    39 class CSIPConnection;
       
    40 class CSIPProfile;
       
    41 class CMusAvaOptionHandler;
       
    42 class CMusAvaObserverImp;
       
    43 class CMusAvaSettingsImp;
       
    44 class CMusAvaAvailabilityObserverImp;
       
    45 class CMusAvaCapabilityQueryObserverImp;	
       
    46 class CSipSseTestTls;
       
    47 
       
    48 #include <e32def.h>
       
    49 #ifndef NONSHARABLE_CLASS
       
    50     #define NONSHARABLE_CLASS(x) class x
       
    51 #endif
       
    52 
       
    53 //  CLASS DEFINITION
       
    54 /**
       
    55  *
       
    56  * EUnitWizard generated test class. 
       
    57  *
       
    58  */
       
    59 NONSHARABLE_CLASS( UT_CMusAvaCapability )
       
    60      : public CEUnitTestSuiteClass
       
    61     {
       
    62     public:     // Constructors and destructors
       
    63 
       
    64         /**
       
    65          * Two phase construction
       
    66          */
       
    67         static UT_CMusAvaCapability* NewL();
       
    68         static UT_CMusAvaCapability* NewLC();
       
    69         /**
       
    70          * Destructor
       
    71          */
       
    72         ~UT_CMusAvaCapability();
       
    73 
       
    74     private:    // Constructors and destructors
       
    75 
       
    76         UT_CMusAvaCapability();
       
    77         void ConstructL();
       
    78 
       
    79     public:     // From observer interface
       
    80 
       
    81         
       
    82 
       
    83     private:    // New methods
       
    84 
       
    85         void SetupL();
       
    86 
       
    87         void Teardown();
       
    88          
       
    89         void Setup1L();
       
    90 
       
    91         void Teardown1();            
       
    92         
       
    93         void UT_CMusAvaCapability_NewLL();
       
    94 
       
    95         void UT_CMusAvaCapability_DoPopulateResponseLL();
       
    96         
       
    97         void UT_CMusAvaCapability_SupportsL();
       
    98         
       
    99         void UT_CMusAvaCapability_ResolveCodecsLL();
       
   100         
       
   101         void UT_CMusAvaCapability_AttributeL();
       
   102         
       
   103         void UT_CMusAvaCapability_PopulateResponseL_OpSpecificL();
       
   104 
       
   105         void UT_CMusAvaCapability_ResolveFastModeLL();
       
   106 
       
   107         void UT_CMusAvaCapability_AddFastModeLL();
       
   108 
       
   109         
       
   110     private:    // Data
       
   111 
       
   112         EUNIT_DECLARE_TEST_TABLE; 
       
   113 
       
   114     CMusAvaCapabilityExchange* iExchange;
       
   115     
       
   116     CSipSseTestTls* iStorage;
       
   117    
       
   118     CSIP* iSIP;
       
   119     CSIPConnection* iSIPConnection;
       
   120     CSIPProfile* iProfile;
       
   121 
       
   122     CMusAvaOptionHandler* iOptionHandler;
       
   123     CMusAvaAvailabilityObserverImp* iAvailabilityObserver;
       
   124     CMusAvaSettingsImp* iConcreteSettings;
       
   125     CMusAvaCapabilityQueryObserverImp* iCapabQueryObserver;
       
   126 
       
   127     CMusAvaCapability* iCapability;
       
   128     
       
   129     MusSettingsKeys::TOperatorVariant iOpVariantSetting;
       
   130 
       
   131     };
       
   132 
       
   133 #endif      //  __UT_CMUSAVACAPABILITY_H__
       
   134 
       
   135 // End of file