photosgallery/viewframework/medialists/tsrc/ut_cglxstaticitemlist/ut_cglxstaticitemlist.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2007 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:    Unit tests, entry point
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __UT_CGLXSTATICITEMLIST_H__
       
    22 #define __UT_CGLXSTATICITEMLIST_H__
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <digia/eunit/ceunittestsuiteclass.h>
       
    26 #include <digia/eunit/eunitdecorators.h>
       
    27 
       
    28 //  INTERNAL INCLUDES
       
    29 #include "glxstaticitemlist.h"
       
    30 #include "glxlistreconstruction.h"
       
    31 #include "glxlisttestbase.h"
       
    32 
       
    33 //  FORWARD DECLARATIONS
       
    34 
       
    35 /**
       
    36  * Reconstruction of a static item list
       
    37  */
       
    38 NONSHARABLE_CLASS( CGlxStaticItemListReconstruction ) : public CGlxListReconstruction< CGlxStaticItemList >
       
    39     {
       
    40     public:    
       
    41         static CGlxStaticItemListReconstruction* NewL( TInt aReservationCount = 400 );
       
    42         // From CGlxListReconstructionBase
       
    43         TBool ReconstructionEquals() const;
       
    44     };
       
    45 
       
    46 /**
       
    47  * EUnit test suite
       
    48  */
       
    49 NONSHARABLE_CLASS( ut_CGlxStaticItemList ) : 
       
    50         public CGlxListTestBase< CGlxStaticItemList, CGlxStaticItemListReconstruction >
       
    51     {
       
    52     public:     // Constructors and destructors
       
    53         /**
       
    54          * Two phase construction
       
    55          */
       
    56         static ut_CGlxStaticItemList* NewL();
       
    57         static ut_CGlxStaticItemList* NewLC();
       
    58         /**
       
    59          * Destructor
       
    60          */
       
    61         ~ut_CGlxStaticItemList();
       
    62 
       
    63     private:    // Constructors and destructors
       
    64         ut_CGlxStaticItemList();
       
    65         void ConstructL();
       
    66 
       
    67     private:    // New methods
       
    68         void SetupL();
       
    69         void Teardown();
       
    70         
       
    71         void T_SetContentsLL();
       
    72         void T_RemoveL();
       
    73         void T_RemoveReferenceL();
       
    74         void T_CountL();
       
    75         void T_ItemL();
       
    76         void T_IndexL();
       
    77         void T_IdSpaceIdL();
       
    78         void T_SetStaticItemsEnabledL();
       
    79         void T_AddStaticItemLL();
       
    80 
       
    81     private:    // Data
       
    82         EUNIT_DECLARE_TEST_TABLE; 
       
    83     };
       
    84 
       
    85 #endif      //  __UT_CGLXSTATICITEMLIST_H__
       
    86 
       
    87 // End of file