mmsharing/mmshavailability/tsrc/ut_availability/inc/UT_CMusAvaCapability.h
changeset 0 f0cf47e981f9
child 32 73a1feb507fb
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     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 
       
    47 #include <e32def.h>
       
    48 #ifndef NONSHARABLE_CLASS
       
    49     #define NONSHARABLE_CLASS(x) class x
       
    50 #endif
       
    51 
       
    52 //  CLASS DEFINITION
       
    53 /**
       
    54  *
       
    55  * EUnitWizard generated test class. 
       
    56  *
       
    57  */
       
    58 NONSHARABLE_CLASS( UT_CMusAvaCapability )
       
    59      : public CEUnitTestSuiteClass
       
    60     {
       
    61     public:     // Constructors and destructors
       
    62 
       
    63         /**
       
    64          * Two phase construction
       
    65          */
       
    66         static UT_CMusAvaCapability* NewL();
       
    67         static UT_CMusAvaCapability* NewLC();
       
    68         /**
       
    69          * Destructor
       
    70          */
       
    71         ~UT_CMusAvaCapability();
       
    72 
       
    73     private:    // Constructors and destructors
       
    74 
       
    75         UT_CMusAvaCapability();
       
    76         void ConstructL();
       
    77 
       
    78     public:     // From observer interface
       
    79 
       
    80         
       
    81 
       
    82     private:    // New methods
       
    83 
       
    84         void SetupL();
       
    85 
       
    86         void Teardown();
       
    87          
       
    88         void Setup1L();
       
    89 
       
    90         void Teardown1();            
       
    91         
       
    92         void UT_CMusAvaCapability_NewLL();
       
    93 
       
    94         void UT_CMusAvaCapability_DoPopulateResponseLL();
       
    95         
       
    96         void UT_CMusAvaCapability_SupportsL();
       
    97         
       
    98         void UT_CMusAvaCapability_ResolveCodecsLL();
       
    99         
       
   100         void UT_CMusAvaCapability_AttributeL();
       
   101         
       
   102         void UT_CMusAvaCapability_PopulateResponseL_OpSpecificL();
       
   103 
       
   104     private:    // Data
       
   105 
       
   106         EUNIT_DECLARE_TEST_TABLE; 
       
   107 
       
   108     CMusAvaCapabilityExchange* iExchange;
       
   109     
       
   110     
       
   111     CSIP* iSIP;
       
   112     CSIPConnection* iSIPConnection;
       
   113     CSIPProfile* iProfile;
       
   114 
       
   115     CMusAvaOptionHandler* iOptionHandler;
       
   116     CMusAvaAvailabilityObserverImp* iAvailabilityObserver;
       
   117     CMusAvaSettingsImp* iConcreteSettings;
       
   118     CMusAvaCapabilityQueryObserverImp* iCapabQueryObserver;
       
   119 
       
   120     CMusAvaCapability* iCapability;
       
   121     
       
   122     MusSettingsKeys::TOperatorVariant iOpVariantSetting;
       
   123 
       
   124     };
       
   125 
       
   126 #endif      //  __UT_CMUSAVACAPABILITY_H__
       
   127 
       
   128 // End of file