multimediacommscontroller/mmccsubcontroller/tsrc/ut_subcontroller/Src/UT_CMccQosHandler.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     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 
       
    20 
       
    21 #ifndef __UT_CMCCQOSHANDLER_H__
       
    22 #define __UT_CMCCQOSHANDLER_H__
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <digia/eunit/ceunittestsuiteclass.h>
       
    26 
       
    27 //  INTERNAL INCLUDES
       
    28 #include "mccqoseventobserver.h"
       
    29 
       
    30 //  FORWARD DECLARATIONS
       
    31 class CMccQosHandler;
       
    32 
       
    33 #include <e32def.h>
       
    34 #include <es_sock.h>
       
    35 #ifndef NONSHARABLE_CLASS
       
    36     #define NONSHARABLE_CLASS(x) class x
       
    37 #endif
       
    38 
       
    39 //  CLASS DEFINITION
       
    40 /**
       
    41  *
       
    42  * EUnitWizard generated test class. 
       
    43  *
       
    44  */
       
    45 NONSHARABLE_CLASS( UT_CMccQosHandler )
       
    46      : public CEUnitTestSuiteClass, public MMccQosEventObserver
       
    47     {
       
    48     public:     // Constructors and destructors
       
    49 
       
    50         /**
       
    51          * Two phase construction
       
    52          */
       
    53         static UT_CMccQosHandler* NewL();
       
    54         static UT_CMccQosHandler* NewLC();
       
    55         /**
       
    56          * Destructor
       
    57          */
       
    58         ~UT_CMccQosHandler();
       
    59 
       
    60     private:    // Constructors and destructors
       
    61 
       
    62         UT_CMccQosHandler();
       
    63         void ConstructL();
       
    64 
       
    65     public:     // From observer interface
       
    66 
       
    67         void QoSParamEvent( TInt /*aError*/, TUint32 /*aEvent*/ ) {};
       
    68 
       
    69         void QoSConnEvent( TInt /*aError*/, TUint32 /*aEvent*/ ) {};
       
    70         
       
    71     private:    // New methods
       
    72 
       
    73          void SetupL();         
       
    74         
       
    75          void Teardown();
       
    76                  
       
    77         
       
    78          void UT_CMccQosHandler_EnableQosLL();
       
    79         
       
    80         
       
    81          void UT_CMccQosHandler_DisableQoSL();
       
    82         
       
    83         
       
    84          void UT_CMccQosHandler_SetSubConnectionParamsL();
       
    85         
       
    86         
       
    87          void UT_CMccQosHandler_QoSEnabledL();
       
    88          
       
    89          
       
    90          void UT_CMccQosHandler_HandleSocketHandlerDeletionL( );
       
    91         
       
    92 
       
    93     private:    // Data
       
    94 
       
    95         EUNIT_DECLARE_TEST_TABLE;
       
    96          
       
    97         CMccQosHandler* iHandler;
       
    98         TRequestStatus iStatus; 
       
    99         RConnection iConn;
       
   100         RSocketServ iSocketServ;
       
   101         RSocket iSocket;
       
   102     };
       
   103 
       
   104 #endif      //  __UT_CMCCQOSHANDLER_H__
       
   105 
       
   106 // End of file