photosgallery/viewframework/commandhandlers/commandhandlerupnp/tsrc/t_cglxupnprendererimpl/inc/t_cglxupnprendererimpl.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2006 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:  CommandHandlerUPnP RENDERER unit test case
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __T_CGLXUPNPRENDERERIMPL_H__
       
    22 #define __T_CGLXUPNPRENDERERIMPL_H__
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <digia/eunit/ceunittestsuiteclass.h>
       
    26 #include <digia/eunit/eunitdecorators.h>
       
    27 
       
    28 #include <tmglxmedialist_stub.h>
       
    29 
       
    30 //  INTERNAL INCLUDES
       
    31 
       
    32 
       
    33 //  FORWARD DECLARATIONS
       
    34 class CGlxUpnpRendererImpl;
       
    35 
       
    36 //  CLASS DEFINITION
       
    37 /**
       
    38  * TODO Auto-generated EUnit test suite
       
    39  *
       
    40  */
       
    41 NONSHARABLE_CLASS( t_cglxupnprendererimpl )
       
    42 	: public CEUnitTestSuiteClass ,	  
       
    43 	  public MGlxMediaList_Stub_Observer
       
    44     {
       
    45     public:     // Constructors and destructors
       
    46 
       
    47         /**
       
    48          * Two phase construction
       
    49          */
       
    50         static t_cglxupnprendererimpl* NewL();
       
    51         static t_cglxupnprendererimpl* NewLC();
       
    52         /**
       
    53          * Destructor
       
    54          */
       
    55         ~t_cglxupnprendererimpl();
       
    56 
       
    57     private:    // Constructors and destructors
       
    58 
       
    59         t_cglxupnprendererimpl();
       
    60         void ConstructL();
       
    61 
       
    62     private:    // New methods
       
    63 
       
    64          void SetupL();
       
    65         
       
    66          void Teardown();
       
    67         
       
    68          void T_TestL();
       
    69          
       
    70          void T_TestL1();
       
    71          
       
    72          void T_IsSupported_Available();
       
    73          
       
    74          void T_IsSupported_NotAvailable();
       
    75         
       
    76          void T_HandleAttributesAvailable();
       
    77          //From the media list stub
       
    78          void MGlxMediaList_MethodCalled(MGlxMediaList_Stub_Observer::TMGlxMediaListMethodId aMethodId);
       
    79 
       
    80     private:    // Data
       
    81 		
       
    82 
       
    83         EUNIT_DECLARE_TEST_TABLE; 
       
    84         
       
    85         CGlxUpnpRendererImpl* iUpnpRendererImpl;
       
    86         TMGlxMediaList_Stub* iMediaListStub;
       
    87 
       
    88     };
       
    89 
       
    90 #endif      //  __T_CGLXUPNPRENDERERIMPL_H__
       
    91 
       
    92 // End of file