photosgallery/viewframework/medialists/tsrc/src/_glxlisttesthelpers.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
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __GLXLISTTESTHELPERS_H__
       
    22 #define __GLXLISTTESTHELPERS_H__
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <e32std.h>
       
    26 #include <glxlistdefs.h>
       
    27 
       
    28 //  INTERNAL INCLUDES
       
    29 
       
    30 namespace NGlxListTestHelpers
       
    31     {
       
    32     struct TStaticItemInfo
       
    33         {
       
    34         // Data needs to be a simple struct with no member functions, to allow 
       
    35         // arrays to be easily declared 
       
    36         struct TData
       
    37             {
       
    38             TChar iId;
       
    39             NGlxListDefs::TInsertionPosition iPosition;
       
    40             };
       
    41             
       
    42         TStaticItemInfo( const TStaticItemInfo::TData aData );
       
    43         TBool operator==( const TStaticItemInfo::TData aInfoData ) const;
       
    44         TBool operator!=( const TStaticItemInfo::TData aInfoData ) const;
       
    45         TData iData;
       
    46         };
       
    47         
       
    48     #define K_STATIC_ITEMS_END 0, static_cast<NGlxListDefs::TInsertionPosition>( -1 )
       
    49     const TStaticItemInfo::TData KEndMarkerData = { K_STATIC_ITEMS_END };
       
    50     const TStaticItemInfo KEndMarker = KEndMarkerData;    
       
    51     } // NGlxListTest
       
    52 
       
    53 #endif      //  __GLXLISTTESTHELPERS_H__