photosgallery/viewframework/medialists/tsrc/ut_cglxitemlist/ut_cglxitemlist.cpp
changeset 0 4e91876724a2
child 18 bcb43dc84c44
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 //  CLASS HEADER
       
    22 #include "ut_cglxitemlist.h"
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <digia/eunit/eunitmacros.h>
       
    26 #include <digia/eunit/eunitdecorators.h>
       
    27 #include <mpxcollectionpath.h>
       
    28 #include <glxpanic.h>
       
    29     
       
    30 //  INTERNAL INCLUDES
       
    31 #include "glxitemlist.h"
       
    32 #include "_glxnotification.h"
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 // Constructors 
       
    36 // -----------------------------------------------------------------------------
       
    37 //
       
    38 CGlxItemListReconstruction* CGlxItemListReconstruction::NewL( TInt aReservationCount )
       
    39     {
       
    40     CGlxItemListReconstruction* self = new (ELeave) CGlxItemListReconstruction();
       
    41     CleanupStack::PushL( self );
       
    42     self->ConstructL( aReservationCount );
       
    43     CleanupStack::Pop( self );
       
    44     return self;
       
    45     }
       
    46     
       
    47 // -----------------------------------------------------------------------------
       
    48 // Test reconstruction
       
    49 // -----------------------------------------------------------------------------
       
    50 //
       
    51 TBool CGlxItemListReconstruction::ReconstructionEquals() const
       
    52     {
       
    53     return ItemsEqual();
       
    54     }
       
    55     
       
    56 // -----------------------------------------------------------------------------
       
    57 // Constructors & destructors
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 ut_CGlxItemList* ut_CGlxItemList::NewL()
       
    61     {
       
    62     ut_CGlxItemList* self = ut_CGlxItemList::NewLC();
       
    63     CleanupStack::Pop();
       
    64 
       
    65     return self;
       
    66     }
       
    67 
       
    68 ut_CGlxItemList* ut_CGlxItemList::NewLC()
       
    69     {
       
    70     ut_CGlxItemList* self = new( ELeave ) ut_CGlxItemList();
       
    71     CleanupStack::PushL( self );
       
    72 
       
    73     self->ConstructL();
       
    74 
       
    75     return self;
       
    76     }
       
    77 
       
    78 // Destructor (virtual by CBase)
       
    79 ut_CGlxItemList::~ut_CGlxItemList()
       
    80     {
       
    81     }
       
    82 
       
    83 // Default constructor
       
    84 ut_CGlxItemList::ut_CGlxItemList()
       
    85     {
       
    86     }
       
    87 
       
    88 // Second phase construct
       
    89 void ut_CGlxItemList::ConstructL()
       
    90     {
       
    91     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
       
    92     // It generates the test case table.
       
    93     CEUnitTestSuiteClass::ConstructL();
       
    94     }
       
    95         
       
    96 // -----------------------------------------------------------------------------
       
    97 // Setup & teardown
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 void ut_CGlxItemList::SetupL(  )
       
   101     {
       
   102     }
       
   103 
       
   104 void ut_CGlxItemList::Teardown(  )
       
   105     {
       
   106     DeleteMembers();
       
   107     }
       
   108     
       
   109 // -----------------------------------------------------------------------------
       
   110 // Test SetContentsL
       
   111 // -----------------------------------------------------------------------------
       
   112 //
       
   113 void ut_CGlxItemList::T_SetContentsLL(  )
       
   114     {
       
   115         // Test population of empty list with empty list
       
   116         {
       
   117         TNotification::TData notifications[] = { { END_MARKER } };
       
   118         EUNIT_ASSERT( TrySetContentsL ( _L8(""),
       
   119                                         _L8(""),
       
   120                                         notifications ) );  
       
   121         } 
       
   122 
       
   123         // Test additions /////////////////////////////////////////////////////////                                    
       
   124 
       
   125         // Test population of empty list
       
   126         {
       
   127         TNotification::TData notifications[] = 
       
   128                              { { TNotification::EAdd, 0, 3 }, 
       
   129                                { END_MARKER } };
       
   130         EUNIT_ASSERT( TrySetContentsL ( _L8(""),
       
   131                                         _L8("abc"),
       
   132                                         notifications ) ); 
       
   133         }
       
   134 
       
   135         // Test population of empty list
       
   136         {
       
   137         TNotification::TData notifications[] = 
       
   138                              { { TNotification::EAdd, 0, 1 },
       
   139                                { END_MARKER } };
       
   140         EUNIT_ASSERT( TrySetContentsL ( _L8(""),
       
   141                                         _L8("a"),
       
   142                                         notifications ) ); 
       
   143         }
       
   144         // Test insert at end of list
       
   145         {
       
   146         TNotification::TData notifications[] = 
       
   147                              { { TNotification::EAdd, 1, 1 },
       
   148                                { END_MARKER } };
       
   149         EUNIT_ASSERT( TrySetContentsL ( _L8("a"),
       
   150                                         _L8("ab"),
       
   151                                         notifications ) ); 
       
   152         }
       
   153 
       
   154         {
       
   155         TNotification::TData notifications[] = 
       
   156                              { { TNotification::EAdd, 1, 2 },
       
   157                                { END_MARKER } };
       
   158         EUNIT_ASSERT( TrySetContentsL ( _L8("a"),
       
   159                                         _L8("abc"),
       
   160                                         notifications ) ); 
       
   161         }
       
   162 
       
   163         {
       
   164         TNotification::TData notifications[] = 
       
   165                              { { TNotification::EAdd, 2, 1 },
       
   166                                { END_MARKER } };
       
   167         EUNIT_ASSERT( TrySetContentsL ( _L8("ab"),
       
   168                                         _L8("abc"),
       
   169                                         notifications ) ); 
       
   170         }
       
   171         // Test insert at the beginning of the list
       
   172         {
       
   173         TNotification::TData notifications[] = 
       
   174                              { { TNotification::EAdd, 0, 1 },
       
   175                                { END_MARKER } };
       
   176         EUNIT_ASSERT( TrySetContentsL ( _L8("b"),
       
   177                                         _L8("ab"),
       
   178                                         notifications ) ); 
       
   179         }
       
   180 
       
   181         {
       
   182         TNotification::TData notifications[] = 
       
   183                              { { TNotification::EAdd, 0, 2 },
       
   184                                { END_MARKER } };
       
   185         EUNIT_ASSERT( TrySetContentsL ( _L8("c"),
       
   186                                         _L8("abc"),
       
   187                                         notifications ) ); 
       
   188         }
       
   189 
       
   190         {
       
   191         TNotification::TData notifications[] = 
       
   192                              { { TNotification::EAdd, 0, 1 },
       
   193                                { END_MARKER } };
       
   194         EUNIT_ASSERT( TrySetContentsL ( _L8("bc"),
       
   195                                         _L8("abc"),
       
   196                                         notifications ) ); 
       
   197         }
       
   198 
       
   199         {
       
   200         TNotification::TData notifications[] = 
       
   201                              { { TNotification::EAdd, 0, 3 },
       
   202                                { END_MARKER } };
       
   203         EUNIT_ASSERT( TrySetContentsL ( _L8("de"),
       
   204                                         _L8("abcde"),
       
   205                                         notifications ) ); 
       
   206         }
       
   207 
       
   208         // Test insert at the middle of the list
       
   209         {
       
   210         TNotification::TData notifications[] = 
       
   211                              { { TNotification::EAdd, 1, 1 },
       
   212                                { END_MARKER } };
       
   213         EUNIT_ASSERT( TrySetContentsL ( _L8("ac"),
       
   214                                         _L8("abc"),
       
   215                                         notifications ) ); 
       
   216         }
       
   217 
       
   218         {
       
   219         TNotification::TData notifications[] = 
       
   220                              { { TNotification::EAdd, 1, 2 },
       
   221                                { END_MARKER } };
       
   222         EUNIT_ASSERT( TrySetContentsL ( _L8("ad"),
       
   223                                         _L8("abcd"),
       
   224                                         notifications ) ); 
       
   225         }
       
   226 
       
   227         {
       
   228         TNotification::TData notifications[] = 
       
   229                              { { TNotification::EAdd, 2, 3 },
       
   230                                { END_MARKER } };
       
   231         EUNIT_ASSERT( TrySetContentsL ( _L8("abf"),
       
   232                                         _L8("abcdef"),
       
   233                                         notifications ) ); 
       
   234         }
       
   235 
       
   236         
       
   237         // Test multiple insertions
       
   238         {
       
   239         TNotification::TData notifications[] = 
       
   240                              { { TNotification::EAdd, 0, 1 }, // a
       
   241                                { TNotification::EAdd, 2, 1 }, // c
       
   242                                { END_MARKER } };
       
   243         EUNIT_ASSERT( TrySetContentsL ( _L8("b"),
       
   244                                         _L8("abc"),
       
   245                                         notifications ) ); 
       
   246         }
       
   247 
       
   248         {
       
   249         TNotification::TData notifications[] = 
       
   250                              { { TNotification::EAdd, 0, 2 }, // ab
       
   251                                { TNotification::EAdd, 3, 2 }, // de
       
   252                                { TNotification::EAdd, 6, 2 }, // gh
       
   253                                { TNotification::EAdd, 9, 1 }, // j
       
   254                                { END_MARKER } };
       
   255         EUNIT_ASSERT( TrySetContentsL ( _L8("cfi"),
       
   256                                         _L8("abcdefghij"),
       
   257                                         notifications ) ); 
       
   258         }
       
   259 
       
   260         {
       
   261         TNotification::TData notifications[] = 
       
   262                              { { TNotification::EAdd, 2, 3 }, // cde
       
   263                                { TNotification::EAdd, 6, 1 }, // g
       
   264                                { TNotification::EAdd, 8, 1 }, // i
       
   265                                { END_MARKER } };
       
   266         EUNIT_ASSERT( TrySetContentsL ( _L8("abfhj"),
       
   267                                         _L8("abcdefghij"),
       
   268                                         notifications ) ); 
       
   269         }
       
   270 
       
   271         
       
   272         // Test removals //////////////////////////////////////////////////////////
       
   273                                           
       
   274         // Test list being made empty
       
   275         {
       
   276         TNotification::TData notifications[] = 
       
   277                              { { TNotification::ERemove, 0, 1 },
       
   278                                { END_MARKER } };
       
   279         EUNIT_ASSERT( TrySetContentsL ( _L8("a"),
       
   280                                         _L8(""),
       
   281                                         notifications ) ); 
       
   282         }
       
   283 
       
   284         {
       
   285         TNotification::TData notifications[] = 
       
   286                              { { TNotification::ERemove, 0, 3 },
       
   287                                { END_MARKER } };
       
   288         EUNIT_ASSERT( TrySetContentsL ( _L8("abc"),
       
   289                                         _L8(""),
       
   290                                         notifications ) ); 
       
   291         }
       
   292 
       
   293         
       
   294         // Remove from end
       
   295         {
       
   296         TNotification::TData notifications[] = 
       
   297                              { { TNotification::ERemove, 1, 1 },
       
   298                                { END_MARKER } };
       
   299         EUNIT_ASSERT( TrySetContentsL ( _L8("ab"),
       
   300                                         _L8("a"),
       
   301                                         notifications ) ); 
       
   302         }
       
   303 
       
   304         
       
   305         // Remove from end
       
   306         {
       
   307         TNotification::TData notifications[] = 
       
   308                              { { TNotification::ERemove, 1, 5 },
       
   309                                { END_MARKER } };
       
   310         EUNIT_ASSERT( TrySetContentsL ( _L8("abcdef"),
       
   311                                         _L8("a"),
       
   312                                         notifications ) ); 
       
   313         }
       
   314 
       
   315         
       
   316         // Remove from beginning
       
   317         {
       
   318         TNotification::TData notifications[] = 
       
   319                              { { TNotification::ERemove, 0, 5 },
       
   320                                { END_MARKER } };
       
   321         EUNIT_ASSERT( TrySetContentsL ( _L8("abcdef"),
       
   322                                         _L8("f"),
       
   323                                         notifications ) ); 
       
   324         }
       
   325 
       
   326         {
       
   327         TNotification::TData notifications[] = 
       
   328                              { { TNotification::ERemove, 0, 1 },
       
   329                                { END_MARKER } };
       
   330         EUNIT_ASSERT( TrySetContentsL ( _L8("af"),
       
   331                                         _L8("f"),
       
   332                                         notifications ) ); 
       
   333         }
       
   334 
       
   335         {
       
   336         TNotification::TData notifications[] = 
       
   337                              { { TNotification::ERemove, 0, 3 },
       
   338                                { END_MARKER } };
       
   339         EUNIT_ASSERT( TrySetContentsL ( _L8("abcdef"),
       
   340                                         _L8("def"),
       
   341                                         notifications ) ); 
       
   342         }
       
   343 
       
   344         // Remove from middle
       
   345         {
       
   346         TNotification::TData notifications[] = 
       
   347                              { { TNotification::ERemove, 1, 4 },
       
   348                                { END_MARKER } };
       
   349         EUNIT_ASSERT( TrySetContentsL ( _L8("abcdef"),
       
   350                                         _L8("af"),
       
   351                                         notifications ) ); 
       
   352         }
       
   353 
       
   354         {
       
   355         TNotification::TData notifications[] = 
       
   356                              { { TNotification::ERemove, 2, 2 },
       
   357                                { END_MARKER } };
       
   358         EUNIT_ASSERT( TrySetContentsL ( _L8("abcdef"),
       
   359                                         _L8("abef"),
       
   360                                         notifications ) ); 
       
   361         }
       
   362 
       
   363         // Test multiple removals
       
   364         {
       
   365         TNotification::TData notifications[] = 
       
   366                              { { TNotification::ERemove, 1, 2 }, // bc
       
   367                                { TNotification::ERemove, 2, 1 }, // e
       
   368                                { END_MARKER } };
       
   369         EUNIT_ASSERT( TrySetContentsL ( _L8("abcdef"),
       
   370                                         _L8("adf"),
       
   371                                         notifications ) ); 
       
   372         }
       
   373 
       
   374         {
       
   375         TNotification::TData notifications[] = 
       
   376                              { { TNotification::ERemove, 0, 1 }, // a
       
   377                                { TNotification::ERemove, 1, 1 }, // c
       
   378                                { TNotification::ERemove, 3, 3 }, // fgh
       
   379                                { TNotification::ERemove, 5, 1 }, // k
       
   380                                { END_MARKER } };
       
   381         EUNIT_ASSERT( TrySetContentsL ( _L8("abcdefghijk"),
       
   382                                         _L8("bdeij"),
       
   383                                         notifications ) ); 
       
   384         }
       
   385         
       
   386         // Test simultaneous additions and removals ///////////////////////////////
       
   387         {
       
   388         TNotification::TData notifications[] = 
       
   389                                 { { TNotification::ERemove, 0, 1 }, // a
       
   390                                   { TNotification::EAdd,    0, 3 }, // 123
       
   391                                   { TNotification::EAdd,    4, 2 }, // 45
       
   392                                   { TNotification::ERemove, 7, 1 }, // d
       
   393                                   { TNotification::ERemove, 8, 2 }, // fg
       
   394                                   { TNotification::EAdd,    8, 3 }, // 678
       
   395                                   { TNotification::ERemove, 13, 2 }, // jk
       
   396                                   { TNotification::EAdd,    13, 5 }, // 90#¤%
       
   397                                   { END_MARKER } };
       
   398         EUNIT_ASSERT( TrySetContentsL ( _L8("abcdefghijk"),
       
   399                                         _L8("123b45ce678hi90#¤%"),
       
   400                                         notifications ) );
       
   401         }
       
   402 
       
   403         // Test replacement ///////////////////////////////////////////////////////
       
   404         {
       
   405         TNotification::TData notifications[] = 
       
   406                                  { { TNotification::ERemove, 0, 26 }, // abcdefghijkolmnopqrstuvwxyz
       
   407                                    { TNotification::EAdd,    0, 10 }, // 1234567890
       
   408                                    { END_MARKER } };
       
   409         EUNIT_ASSERT( TrySetContentsL ( _L8("abcdefghijklmnopqrstuvwxyz"),
       
   410                                         _L8("1234567890"),
       
   411                                         notifications ) );
       
   412         }
       
   413         
       
   414         {
       
   415         TNotification::TData notifications[] = 
       
   416                                { { TNotification::ERemove,    0, 10 }, // 1234567890
       
   417                                  { TNotification::EAdd, 0, 26 }, // abcdefghijkolmnopqrstuvwxyz
       
   418                                  { END_MARKER } };
       
   419         EUNIT_ASSERT( TrySetContentsL ( _L8("1234567890"),
       
   420                                         _L8("abcdefghijklmnopqrstuvwxyz"),
       
   421                                         notifications ) );
       
   422         }
       
   423     // Test reorder ///////////////////////////////////////////////////////////
       
   424     // don't really care about the order of notifications, only that reconstruction 
       
   425     // matches the original during sync and at the end. During sync is checked by 
       
   426     // HandleItemsAdded and HandleItemsRemoved. After sync is checked here.
       
   427     EUNIT_ASSERT( TrySetContentsL ( _L8("abcdefghijklmnopqrstuvwxyz"),
       
   428                                     _L8("akjipebvwzcd") ) );
       
   429     EUNIT_ASSERT( TrySetContentsL ( _L8("akjipebvwzcd"),
       
   430                                     _L8("abcdefghijklmnopqrstuvwxyz") ) );
       
   431     EUNIT_ASSERT( TrySetContentsL ( _L8("cdabkoljnpqsrihyzx"),
       
   432                                     _L8("abcdefghijklmnopqrstuvwxyz") ) );
       
   433     EUNIT_ASSERT( TrySetContentsL ( _L8("abcdefghijklmnopqrstuvwxyz"),
       
   434                                     _L8("cdabkoljnpqsrihyzx") ) );
       
   435     EUNIT_ASSERT( TrySetContentsL ( _L8("abcdefghijklmnopqrstuvwxyz"),
       
   436                                     _L8("qrscdehizyjabklmnoptuvfgwx") ) );
       
   437     }
       
   438 
       
   439 // -----------------------------------------------------------------------------
       
   440 // Test Remove(...)
       
   441 // -----------------------------------------------------------------------------
       
   442 //
       
   443 void ut_CGlxItemList::T_RemoveL() 
       
   444     {
       
   445     // Test by creating a list, and removing items from it
       
   446         {
       
   447         TNotification::TData notifications[] = 
       
   448                                { { TNotification::ERemove, 0, 1 }, 
       
   449                                  { END_MARKER } };
       
   450         EUNIT_ASSERT( TryRemoveL( _L8("abcdefg"),
       
   451                                   'a',
       
   452                                   _L8("bcdefg"),
       
   453                                   notifications ) );
       
   454         }
       
   455 
       
   456         {
       
   457         TNotification::TData notifications[] = 
       
   458                                { { TNotification::ERemove, 2, 1 }, 
       
   459                                  { END_MARKER } };
       
   460         EUNIT_ASSERT( TryRemoveL( _L8("abcdefg"),
       
   461                                   'c',
       
   462                                   _L8("abdefg"),
       
   463                                   notifications ) );
       
   464         }
       
   465 
       
   466         {
       
   467         TNotification::TData notifications[] = 
       
   468                                { { TNotification::ERemove, 6, 1 }, 
       
   469                                  { END_MARKER } };
       
   470         EUNIT_ASSERT( TryRemoveL( _L8("abcdefg"),
       
   471                                   'g',
       
   472                                   _L8("abcdef"),
       
   473                                   notifications ) );
       
   474         }
       
   475     }
       
   476     
       
   477 // -----------------------------------------------------------------------------
       
   478 // Test RemoveReference(...)
       
   479 // -----------------------------------------------------------------------------
       
   480 //
       
   481 void ut_CGlxItemList::T_RemoveReferenceL(  )
       
   482     {
       
   483     // Create the item list
       
   484     CreateListL( _L8("abcdefg"), _L8("tfttfft") );
       
   485 
       
   486     EUNIT_ASSERT( IsLinkedToMedia( _L8("tfttfft") ) );
       
   487     EUNIT_ASSERT( TryRemoveReference( 0, _L8("ffttfft") ) );
       
   488     EUNIT_ASSERT( TryRemoveReference( 2, _L8("ffftfft") ) );
       
   489     EUNIT_ASSERT( TryRemoveReference( 3, _L8("fffffft") ) );
       
   490     EUNIT_ASSERT( TryRemoveReference( 6, _L8("fffffff") ) );
       
   491     EUNIT_ASSERT_PANIC_DESC( TryRemoveReference( KErrNotFound, _L8("tfttfft") ), 
       
   492                              "Images & videos", EGlxPanicIllegalArgument, 
       
   493                              "Incorrect panic" );
       
   494     }
       
   495 
       
   496 // -----------------------------------------------------------------------------
       
   497 // Test Index(...)
       
   498 // -----------------------------------------------------------------------------
       
   499 //
       
   500 void ut_CGlxItemList::T_IndexL(  )
       
   501     {
       
   502     // Create the item list
       
   503     CreateListL( _L8("abcdefg") );
       
   504     
       
   505     EUNIT_ASSERT_DESC( iList->Index(KListIdSpace, TGlxMediaId('a') ) == 0, "index match a" );
       
   506     EUNIT_ASSERT_DESC( iList->Index(KListIdSpace, TGlxMediaId('c') ) == 2, "index match c" );
       
   507     EUNIT_ASSERT_DESC( iList->Index(KListIdSpace, TGlxMediaId('g') ) == 6, "index match g" );
       
   508     EUNIT_ASSERT_DESC( iList->Index(KListIdSpace, TGlxMediaId('h') ) == KErrNotFound, "index no match" );
       
   509     }
       
   510     
       
   511 // -----------------------------------------------------------------------------
       
   512 // Test Count()
       
   513 // -----------------------------------------------------------------------------
       
   514 //
       
   515 void ut_CGlxItemList::T_CountL(  )
       
   516     {
       
   517     // test count of new list
       
   518     CreateReconstructionL();
       
   519     iList = CGlxItemList::NewL( TGlxIdSpaceId( 1 ), *iReconstruction, *this );
       
   520     EUNIT_ASSERT_DESC( iList->Count() == 0, "count 0" );
       
   521     
       
   522     // test count of non-empty list
       
   523     CreateListL( _L8("abcdefg") );
       
   524     EUNIT_ASSERT_DESC( iList->Count() == 7, "count 7" );
       
   525     }
       
   526     
       
   527 // -----------------------------------------------------------------------------
       
   528 // Test Item(...)
       
   529 // -----------------------------------------------------------------------------
       
   530 //
       
   531 void ut_CGlxItemList::T_ItemL(  )
       
   532     {
       
   533     // Create the item list
       
   534     CreateListL( _L8("abcdefg") );
       
   535     // test item
       
   536     EUNIT_ASSERT_DESC( iList->Item(0).Id() == TGlxMediaId('a'), "item a" );
       
   537     EUNIT_ASSERT_DESC( iList->Item(2).Id() == TGlxMediaId('c'), "item c" );
       
   538     EUNIT_ASSERT_DESC( iList->Item(6).Id() == TGlxMediaId('g'), "item g" );
       
   539     }
       
   540     
       
   541 // -----------------------------------------------------------------------------
       
   542 // Test IdSpaceId
       
   543 // -----------------------------------------------------------------------------
       
   544 //
       
   545 void ut_CGlxItemList::T_IdSpaceIdL()
       
   546     {
       
   547     TestIdSpaceIdL();
       
   548     }
       
   549     
       
   550 // -----------------------------------------------------------------------------
       
   551 // Test table
       
   552 // -----------------------------------------------------------------------------
       
   553 //
       
   554 EUNIT_BEGIN_TEST_TABLE(
       
   555     ut_CGlxItemList,
       
   556     "Add test suite description here.",
       
   557     "UNIT" )
       
   558     
       
   559 EUNIT_TEST(
       
   560     "SetContentsL",
       
   561     "CGlxItemList",
       
   562     "SetContentsL",
       
   563     "FUNCTIONALITY",
       
   564     SetupL, T_SetContentsLL, Teardown)
       
   565     
       
   566 EUNIT_TEST(
       
   567     "Remove",
       
   568     "CGlxItemList",
       
   569     "Remove",
       
   570     "FUNCTIONALITY",
       
   571     SetupL, T_RemoveL, Teardown)
       
   572     
       
   573 EUNIT_TEST(
       
   574     "RemoveReference",
       
   575     "CGlxItemList",
       
   576     "RemoveReference",
       
   577     "FUNCTIONALITY",
       
   578     SetupL, T_RemoveReferenceL, Teardown)
       
   579     
       
   580 EUNIT_TEST(
       
   581     "Index",
       
   582     "CGlxItemList",
       
   583     "Index",
       
   584     "FUNCTIONALITY",
       
   585     SetupL, T_IndexL, Teardown)    
       
   586     
       
   587 EUNIT_TEST(
       
   588     "Count",
       
   589     "CGlxItemList",
       
   590     "Count",
       
   591     "FUNCTIONALITY",
       
   592     SetupL, T_CountL, Teardown)
       
   593     
       
   594 EUNIT_TEST(
       
   595     "Item",
       
   596     "CGlxItemList",
       
   597     "Item",
       
   598     "FUNCTIONALITY",
       
   599     SetupL, T_ItemL, Teardown)
       
   600     
       
   601 EUNIT_TEST(
       
   602     "Id space id",
       
   603     "CGlxItemList",
       
   604     "IdSpaceId",
       
   605     "FUNCTIONALITY",
       
   606     SetupL, T_IdSpaceIdL, Teardown)
       
   607 
       
   608 EUNIT_END_TEST_TABLE
       
   609 
       
   610 //  END OF FILE