diff -r 43365a9b78a3 -r d8d70de2bd36 kerneltest/e32test/buffer/t_farray.cpp --- a/kerneltest/e32test/buffer/t_farray.cpp Tue Jul 06 15:50:07 2010 +0300 +++ b/kerneltest/e32test/buffer/t_farray.cpp Wed Aug 18 11:08:29 2010 +0300 @@ -157,6 +157,30 @@ } test(&aFix[index3-1]==--ptr); } + + //Test ExpandL + //Expand array in slot 1 + TBuf16<0x10> exp; + exp=_L("abc AbC"); + aFix.InsertL(0,exp); + aFix.InsertL(1,exp); + aFix.InsertL(2,exp); + exp=aFix.ExpandL(1); + test(aFix[0]==_L("abc AbC")); + test(aFix[1]==_L("")); + test(aFix[2]==_L("abc AbC")); + test(aFix[3]==_L("abc AbC")); + + //Test ResizeL and InsertReplL + //Resize the array to containing 20 records, + //copying a record into any new slots. + TBuf<0x10> res(_L("bbbbb")); + aFix.Reset(); + aFix.ResizeL(20,res); + for(TInt i=0;i<20;i++) + { + test(aFix[1]==_L("bbbbb")); + } } LOCAL_C void test1(CArrayFix& aFix) @@ -342,6 +366,13 @@ CArrayFixFlat* pFixFlatInt=new CArrayFixFlat(KTestGranularity); test3(*pFixFlatInt); delete pFixFlatInt; + + CArrayFixFlat* pFixFlatTUid=new CArrayFixFlat(KTestGranularity); + if (pFixFlatTUid==NULL) + { + test.Panic(_L("Allocating array of TUid")); + } + delete pFixFlatTUid; test.Next(_L("class CArrayPtrFlat of CBase"));