mmsharing/mmshavailability/tsrc/ut_availability/inc/UT_CMusAvaTerminal.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_CMUSAVATERMINAL_H__
       
    20 #define __UT_CMUSAVATERMINAL_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 //  INTERNAL INCLUDES
       
    31 
       
    32 
       
    33 //  FORWARD DECLARATIONS
       
    34 class CMusAvaTerminal;
       
    35 class CMusAvaCapabilityExchange;
       
    36 class CSIP;
       
    37 class CSIPConnection;
       
    38 class CSIPProfile;
       
    39 class CMusAvaCapability;
       
    40 class CMusAvaOptionHandler;
       
    41 class CMusAvaObserverImp;
       
    42 class CMusAvaSettingsImp;
       
    43 class CMusAvaAvailabilityObserverImp;	
       
    44 class CSipSseTestTls;
       
    45 
       
    46 #include <e32def.h>
       
    47 #ifndef NONSHARABLE_CLASS
       
    48     #define NONSHARABLE_CLASS(x) class x
       
    49 #endif
       
    50 
       
    51 //  CLASS DEFINITION
       
    52 /**
       
    53  *
       
    54  * EUnitWizard generated test class. 
       
    55  *
       
    56  */
       
    57 NONSHARABLE_CLASS( UT_CMusAvaTerminal )
       
    58      : public CEUnitTestSuiteClass
       
    59     {
       
    60     public:     // Constructors and destructors
       
    61 
       
    62         /**
       
    63          * Two phase construction
       
    64          */
       
    65         static UT_CMusAvaTerminal* NewL();
       
    66         static UT_CMusAvaTerminal* NewLC();
       
    67         /**
       
    68          * Destructor
       
    69          */
       
    70         ~UT_CMusAvaTerminal();
       
    71 
       
    72     private:    // Constructors and destructors
       
    73 
       
    74         UT_CMusAvaTerminal();
       
    75         void ConstructL();
       
    76 
       
    77     public:     // From observer interface
       
    78 
       
    79         
       
    80 
       
    81     private:    // New methods
       
    82 
       
    83         void SetupL();
       
    84         
       
    85         void Teardown();
       
    86         
       
    87         void UT_CMusAvaTerminal_NewLL();
       
    88 
       
    89         void UT_CMusAvaTerminal_MatchLL();
       
    90 
       
    91         void UT_CMusAvaTerminal_ExecuteQueryLL();
       
    92 
       
    93         void UT_CMusAvaTerminal_QueryCompletedLL();
       
    94 
       
    95         void UT_CMusAvaTerminal_QueryCanceledL();
       
    96         
       
    97         void UT_CMusAvaTerminal_QueryRequestedLL();
       
    98         
       
    99         void UT_CMusAvaTerminal_IsDiscoveredL();
       
   100         
       
   101 
       
   102     private:    // Data
       
   103 
       
   104         EUNIT_DECLARE_TEST_TABLE; 
       
   105 
       
   106     CMusAvaCapabilityExchange* iExchange;
       
   107     
       
   108     
       
   109     CSIP* iSIP;
       
   110     CSIPConnection* iSIPConnection;
       
   111     CSIPProfile* iProfile;
       
   112     CMusAvaTerminal* iTerminal;
       
   113 
       
   114     CMusAvaOptionHandler* iOptionHandler;
       
   115 	CMusAvaAvailabilityObserverImp* iAvailabilityObserver;
       
   116 	CMusAvaSettingsImp* iConcreteSettings;
       
   117 
       
   118     private: // NOT owned
       
   119     
       
   120     CMusAvaCapability* iCapability;
       
   121     CSipSseTestTls* iStorage;
       
   122 
       
   123     };
       
   124 
       
   125 #endif      //  __UT_CSTCETERMINAL_H__
       
   126 
       
   127 // End of file