// -----------------------------------------------------------------------------
// CTestSDKSkins::TestITIDNumberOfImagesL
// -----------------------------------------------------------------------------
TInt CTestSDKSkins::TestITIDNumberOfImagesL( CStifItemParser& /*aItem*/ )
    {
    CAknsImageTableItemData* itemData = CAknsImageTableItemData::NewL();
    CleanupStack::PushL( itemData );
    STIF_ASSERT_NOT_NULL( itemData );

    TAknsItemID itemID;
    itemData->SetImagesL( 1, &itemID );
    TInt num = itemData->NumberOfImages();
    STIF_ASSERT_TRUE( 1 == num );
    
    CleanupStack::PopAndDestroy( itemData );
    
    return KErrNone;
    
    }
// -----------------------------------------------------------------------------
// CTestSDKSkins::TestCTIDSetColorsL
// -----------------------------------------------------------------------------
TInt CTestSDKSkins::TestCTIDSetColorsL( CStifItemParser& /*aItem*/ )
    {
    CAknsColorTableItemData* itemData = CAknsColorTableItemData::NewL();
    CleanupStack::PushL( itemData );
    STIF_ASSERT_NOT_NULL( itemData );
    
    TAknsColorTableEntry* color = new (ELeave) TAknsColorTableEntry[1];
    color->iIndex = 0;
    color->iRgb = 0x00020408;
    itemData->SetColorsL( 1, color );

    CleanupStack::PopAndDestroy( itemData );
    
    return KErrNone;
    
    }
// -----------------------------------------------------------------------------
// CTestSDKSkins::TestIIDSetParentIIDL
// -----------------------------------------------------------------------------
TInt CTestSDKSkins::TestIIDSetParentIIDL( CStifItemParser& /*aItem*/ )
    {
    CAknsBitmapItemData* itemData = CAknsBitmapItemData::NewL();
    CleanupStack::PushL( itemData );
    STIF_ASSERT_NOT_NULL( itemData );
    
    TAknsItemID itemID;
    itemData->SetParentIID( itemID );
    STIF_ASSERT_TRUE( itemID.iMajor == itemData->ParentIID().iMajor );
    STIF_ASSERT_TRUE( itemID.iMinor == itemData->ParentIID().iMinor );
    
    CleanupStack::PopAndDestroy( itemData );
    
    return KErrNone;
    
    }
// -----------------------------------------------------------------------------
// CTestSDKSkins::TestMBIDDestroyAndSetMaskL
// -----------------------------------------------------------------------------
TInt CTestSDKSkins::TestMBIDDestroyAndSetMaskL( CStifItemParser& /*aItem*/ )
    {
    CAknsMaskedBitmapItemData* itemData = CAknsMaskedBitmapItemData::NewL();
    CleanupStack::PushL( itemData );
    STIF_ASSERT_NOT_NULL( itemData );

    CFbsBitmap* bitMapMask = new (ELeave) CFbsBitmap;
    CleanupStack::PushL( bitMapMask );
    itemData->DestroyAndSetBitmap( bitMapMask );
    
    CleanupStack::Pop( bitMapMask );
    CleanupStack::PopAndDestroy( itemData );
    
    return KErrNone;
    
    }
// --------------------------------------------------------------------------
// Ctestpubscalableicons::TestCAknIconNewL
// --------------------------------------------------------------------------
//
TInt Ctestpubscalableicons::TestCAknIconNewL( CStifItemParser& /*aItem*/ )
    {
    _LIT(Kctestpubscalableicons, "Ctestpubscalableicons");
    _LIT(Ktestcakniconnewl, "In TestCAknIconNewL");
    TestModuleIf().Printf(0, Kctestpubscalableicons, Ktestcakniconnewl);
    iLog->Log(Ktestcakniconnewl);

    CAknIcon* temp = CAknIcon::NewL();
    CleanupStack::PushL( temp );
    
    STIF_ASSERT_NOT_NULL( temp );
    
    CleanupStack::PopAndDestroy( temp );

    return KErrNone;
    }
// -----------------------------------------------------------------------------
// CTestDOMStatusPane::TestSgccDrawSynchronizerL
// -----------------------------------------------------------------------------
//
TInt CTestDOMStatusPane::TestSgccDrawSynchronizerL( CStifItemParser& /*aItem*/ )
    {

    // Print to UI
    _LIT( KTestDOMStatusPane, "testdomstatuspane" );
    _LIT( KTestSgccDrawSynchronizer, "In SgccDrawSynchronizer" );
    TestModuleIf().Printf( 0, KTestDOMStatusPane, KTestSgccDrawSynchronizer );
    // Print to log file
    iLog->Log( KTestSgccDrawSynchronizer );

    CAknDrawSynchronizer* drawSynchronizer = CAknSgcClient::DrawSynchronizer();
    STIF_ASSERT_NOT_NULL( drawSynchronizer );

    return KErrNone;

    }
// -----------------------------------------------------------------------------
// CTestSDKEditors::TestSEConstructFromResourceL
// -----------------------------------------------------------------------------
//
TInt CTestSDKEditors::TestSEConstructFromResourceL( CStifItemParser& /*aItem*/ )
    {
    CEikSecretEditor* secretEditor = new (ELeave) CEikSecretEditor;
    CleanupStack::PushL( secretEditor );
    STIF_ASSERT_NOT_NULL( secretEditor );
    
    TResourceReader reader;
    CCoeEnv::Static()->CreateResourceReaderLC( reader, R_TESTSDK_SECRETTEXT );
    secretEditor->ConstructFromResourceL( reader );
    CleanupStack::PopAndDestroy();
    
    CleanupStack::PopAndDestroy( secretEditor );
    
    return KErrNone;
    
    }
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CTestSDKSkins::TestLBCCNewL
// -----------------------------------------------------------------------------
TInt CTestSDKSkins::TestLBCCNewL( CStifItemParser& /*aItem*/ )
    {
    TAknsItemID itemID;
    TPoint pointTL( 0, 0 );
    TPoint pointBR( KLength, KLength );
    TRect rect( pointTL, pointBR );
    CAknsLayeredBackgroundControlContext* context = 
        CAknsLayeredBackgroundControlContext::NewL( itemID, rect, ETrue, 1 );
    CleanupStack::PushL( context );
    STIF_ASSERT_NOT_NULL( context );
    
    CleanupStack::PopAndDestroy( context );
    
    return KErrNone;
    
    }
// -----------------------------------------------------------------------------
// CTestPlatAlfVisual::TestAlfGenComponentNewL
// -----------------------------------------------------------------------------
//
TInt CTestPlatAlfVisual::TestAlfGenComponentNewL( CStifItemParser& /*aItem*/ )
    {
    _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
    _LIT( KTestAlfGenComponentNewL, "TestAlfGenComponentNewL" );
    TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestAlfGenComponentNewL );
    // Print to log file
    iLog->Log( KTestAlfGenComponentNewL );
    _LIT8( KTest, "test" );
    TBuf8<KBufSize> vBuf( KTest );
    CAlfGenComponent* vComponent = CAlfGenComponent::NewL( *iAlfEnv, 0, 0x0DDDDDDE,
            vBuf );
    CleanupStack::PushL( vComponent );
    STIF_ASSERT_NOT_NULL( vComponent );
    CleanupStack::PopAndDestroy( vComponent );
    return KErrNone;
    }
// -----------------------------------------------------------------------------
// CTestDomCdl::TestCRDeleteWithNameL
// -----------------------------------------------------------------------------
//
TInt CTestDomCdl::TestCRDeleteWithNameL( CStifItemParser& /*aItem*/ ) 
    {
    HBufC* nameValue = StringLoader::LoadLC( R_DOMTEST_TEXT ); //push
    CCdlRefs* cdlRefs = CCdlRefs::NewL();
    CleanupStack::PushL( cdlRefs );//push
    STIF_ASSERT_NOT_NULL( cdlRefs );
    TUid testUid =  { 0x174657FC };
    TCdlRef tCdlref;
    tCdlref.iId = 0;
    tCdlref.iUid = testUid;
    tCdlref.iName = nameValue;
    cdlRefs->InsertL( cdlRefs->Begin(), tCdlref );
    cdlRefs->Delete( *tCdlref.iName );
    CleanupStack::PopAndDestroy( 2 );
    return KErrNone;
    }
// -----------------------------------------------------------------------------
// CTestSDKNotes::TestNPICurrentValueL
// -----------------------------------------------------------------------------
TInt CTestSDKNotes::TestNPICurrentValueL( CStifItemParser& /*aItem*/ )
    {
    CEikProgressInfo::SInfo sInfo;
    CEikProgressInfo* progress = new (ELeave) CEikProgressInfo( sInfo );
    CleanupStack::PushL( progress );
    STIF_ASSERT_NOT_NULL( progress );
    progress->ConstructL();
    
    TInt currentValue = progress->CurrentValue();
    STIF_ASSERT_EQUALS( currentValue, 0 );
    
    CleanupStack::PopAndDestroy( progress );
    
    return KErrNone;
    
    }
// -----------------------------------------------------------------------------
// CTestSDKForm::TestFPostLayoutDynInitL
// -----------------------------------------------------------------------------
TInt CTestSDKForm::TestFPostLayoutDynInitL( CStifItemParser& /*aItem*/ )
    {
    CTestSDKFormControl* form = new (ELeave) CTestSDKFormControl;
    CleanupStack::PushL( form );
    STIF_ASSERT_NOT_NULL( form );
    
    form->ConstructL();
    form->PrepareLC( R_TESTSDK_FORM_DIALOG );
    CleanupStack::Pop( form );
    
    form->PostLayoutDynInitL();
    STIF_ASSERT_TRUE( form->IsEditable() );
    CleanupStack::PopAndDestroy( form );
    
    return KErrNone;
    }
// -----------------------------------------------------------------------------
// CTestDomCdl::TestCRRefL
// -----------------------------------------------------------------------------
//
TInt CTestDomCdl::TestCRRefL( CStifItemParser& /*aItem*/ ) 
    {
    CCdlRefs* cdlRefs = CCdlRefs::NewL();
    CleanupStack::PushL( cdlRefs );//push
    STIF_ASSERT_NOT_NULL( cdlRefs );
    HBufC* nameValue = StringLoader::LoadLC( R_DOMTEST_TEXT ); //push
    TUid testUid =  { 0x174657FC };
    TCdlRef tCdlref;
    tCdlref.iId = 0;
    tCdlref.iUid = testUid;
    tCdlref.iName = nameValue;
    cdlRefs->AppendL( tCdlref );
    cdlRefs->Ref( 0 );
    CleanupStack::PopAndDestroy( 2 );
    return KErrNone;
    }
// -----------------------------------------------------------------------------
// CTestSDKForm::TestFHandleControlStateChangeL
// -----------------------------------------------------------------------------
TInt CTestSDKForm::TestFHandleControlStateChangeL( CStifItemParser& /*aItem*/ )
    {
    CTestSDKFormControl* form = new (ELeave) CTestSDKFormControl;
    CleanupStack::PushL( form );
    STIF_ASSERT_NOT_NULL( form );
    
    form->ConstructL();
    form->PrepareLC( R_TESTSDK_FORM_DIALOG );
    CleanupStack::Pop( form );
    
    form->HandleControlStateChangeL( ETestSDKEdwin );

    CleanupStack::PopAndDestroy( form );
    
    return KErrNone;
    }
// -----------------------------------------------------------------------------
// Ctestsdkgrids::TestGridsGridSetModelL
// -----------------------------------------------------------------------------
//
TInt CTestSDKGrids::TestGridsGridSetModelL( CStifItemParser& /*aItem*/)
    {
    _LIT( Ktestsdkgrid, "testsdkgrid" );
    _LIT( KTestGridsGridSetModelL, "In TestGridsGridSetModelL" );
    TestModuleIf().Printf( 0, Ktestsdkgrid, KTestGridsGridSetModelL );
    iLog->Log( KTestGridsGridSetModelL );

    CAknGridM* model = new( ELeave ) CAknGridM();
    CleanupStack::PushL( model );
    iGrid->SetModel( model );
    CleanupStack::Pop( model );

    STIF_ASSERT_NOT_NULL( iGrid );

    return KErrNone;
    }
// -----------------------------------------------------------------------------
// CTestPlatAlfVisual::TestAlfMeshVisualFullConstructorL
// -----------------------------------------------------------------------------
//
TInt CTestPlatAlfVisual::TestAlfMeshVisualFullConstructorL( CStifItemParser& /*aItem*/ )
    {
    _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
    _LIT( KTestAlfMeshVisualFullConstructorL, "TestAlfMeshVisualFullConstructorL" );
    TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestAlfMeshVisualFullConstructorL );
    // Print to log file
    iLog->Log( KTestAlfMeshVisualFullConstructorL );
    
    CAlfMeshVisual* vVisual = new ( ELeave ) CAlfMeshVisual;
    CleanupStack::PushL( vVisual );
    STIF_ASSERT_NOT_NULL( vVisual );
    vVisual->ConstructL( *iAlfCtl );
    CleanupStack::PopAndDestroy( vVisual );
    
    return KErrNone;
    }
// -----------------------------------------------------------------------------
// CTestDOMStatusPane::TestSgccAknSrvL
// -----------------------------------------------------------------------------
//
TInt CTestDOMStatusPane::TestSgccAknSrvL( CStifItemParser& /*aItem*/ )
    {

    // Print to UI
    _LIT( KTestDOMStatusPane, "testdomstatuspane" );
    _LIT( KTestSgccAknSrv, "In SgccAknSrv" );
    TestModuleIf().Printf( 0, KTestDOMStatusPane, KTestSgccAknSrv );
    // Print to log file
    iLog->Log( KTestSgccAknSrv );

    RAknUiServer* srv = CAknSgcClient::AknSrv();
    STIF_ASSERT_NOT_NULL( srv );

    return KErrNone;

    }
// --------------------------------------------------------------------------
// Ctestpubscalableicons::TestTAknContentDimensionsTAknContentDimensions2L
// --------------------------------------------------------------------------
//
TInt Ctestpubscalableicons::TestTAknContentDimensionsTAknContentDimensions2L( CStifItemParser& /*aItem*/ )
    {
    _LIT(Kctestpubscalableicons, "Ctestpubscalableicons");
    _LIT(Ktesttakncontentdimensionstakncontentdimensions2l, "In TestTAknContentDimensionsTAknContentDimensions2L");
    TestModuleIf().Printf(0, Kctestpubscalableicons, Ktesttakncontentdimensionstakncontentdimensions2l);
    iLog->Log(Ktesttakncontentdimensionstakncontentdimensions2l);

    TAknContentDimensions* temp = new ( ELeave ) TAknContentDimensions( KWidth, KHeight );
    CleanupStack::PushL( temp );

    STIF_ASSERT_NOT_NULL( temp );
    
    CleanupStack::PopAndDestroy( temp );

    return KErrNone;
    }
// -----------------------------------------------------------------------------
// CTestSDKNotes::TestNWNHandlePointerEventL
// -----------------------------------------------------------------------------
TInt CTestSDKNotes::TestNWNHandlePointerEventL( CStifItemParser& /*aItem*/ )
    {
    CAknWarningNote* note = new (ELeave) CAknWarningNote;
    CleanupStack::PushL( note );
    STIF_ASSERT_NOT_NULL( note );
    
    TPointerEvent event;
    event.iType = TPointerEvent::EButton2Up;
    
    note->HandlePointerEventL( event );
    
    CleanupStack::PopAndDestroy( note );
    
    return KErrNone;
    
    }
// -----------------------------------------------------------------------------
// CTestSDKMiscControls::TestCGControlArrayL
// -----------------------------------------------------------------------------
//
TInt CTestSDKMiscControls::TestCGControlArrayL( CStifItemParser& /*aItem*/ )
    {

    // Print to UI
    _LIT( Ktestsdkmisccontrols, "testsdkmisccontrols" );
    _LIT( KTestCGControlArrayL, "In TestCGControlArrayL" );
    TestModuleIf().Printf( 0, Ktestsdkmisccontrols, KTestCGControlArrayL );
    // Print to log file
    iLog->Log( KTestCGControlArrayL );
    TInt cId = 1;
    TInt cIndex = iControlGroup->IndexById( cId );

    CArrayFix<TEikGroupControl>* ctl  = iControlGroup->ControlArray();
    STIF_ASSERT_NOT_NULL( ctl );
    return KErrNone;

    }
// -----------------------------------------------------------------------------
// CTestSDKForm::TestFDoNotSaveFormDataL
// -----------------------------------------------------------------------------
TInt CTestSDKForm::TestFDoNotSaveFormDataL( CStifItemParser& /*aItem*/ )
    {
    CTestSDKFormControl* form = new (ELeave) CTestSDKFormControl;
    CleanupStack::PushL( form );
    STIF_ASSERT_NOT_NULL( form );
    
    form->ConstructL();
    form->PrepareLC( R_TESTSDK_FORM_DIALOG );
    CleanupStack::Pop( form );
    
    form->DoNotSaveFormDataL();
    
    CleanupStack::PopAndDestroy( form );
    
    return KErrNone;
    
    }
// -----------------------------------------------------------------------------
// CTestSDKForm::TestFHandleResourceChangeL
// -----------------------------------------------------------------------------
TInt CTestSDKForm::TestFHandleResourceChangeL( CStifItemParser& /*aItem*/ )
    {
    CAknForm* form = new (ELeave) CAknForm;
    CleanupStack::PushL( form );
    STIF_ASSERT_NOT_NULL( form );
    
    form->ConstructL();
    form->PrepareLC( R_TESTSDK_FORM_DIALOG );
    CleanupStack::Pop( form );
    
    form->HandleResourceChange( KEikColorResourceChange );
    
    CleanupStack::PopAndDestroy( form );
    
    return KErrNone;
    
    }
// -----------------------------------------------------------------------------
// CTestUiAifCoreToolkit::TestTAknInputLanguageCapabilitiesL
// -----------------------------------------------------------------------------
//
TInt CTestPubInputLanguageInfo::TestTAknInputLanguageCapabilitiesL( CStifItemParser& /*aItem*/ )
    {

    // Print to UI
    _LIT( Ktestinputlanguageinfo, "TestInputLanguageInfo" );
    _LIT( KTestTAknInputLanguageCapabilitiesL, "In TestTAknInputLanguageCapabilities" );
    TestModuleIf().Printf( 0, Ktestinputlanguageinfo, KTestTAknInputLanguageCapabilitiesL );
    // Print to log file
    iLog->Log( KTestTAknInputLanguageCapabilitiesL );
    
    TAknInputLanguageCapabilities* inputLanguageCapa = new TAknInputLanguageCapabilities();
    CleanupStack::PushL( inputLanguageCapa );
    STIF_ASSERT_NOT_NULL( inputLanguageCapa );
    CleanupStack::PopAndDestroy( inputLanguageCapa );
    
    return KErrNone;
    }
// -----------------------------------------------------------------------------
// CTestUiAifCoreToolkit::TestCreateInputLanguageInfoLL
// -----------------------------------------------------------------------------
//
TInt CTestPubInputLanguageInfo::TestCreateInputLanguageInfoLL( CStifItemParser& /*aItem*/ )
    {

    // Print to UI
    _LIT( Ktestinputlanguageinfo, "TestInputLanguageInfo" );
    _LIT( KTestCreateInputLanguageInfoLL, "In TestCreateInputLanguageInfoLL" );
    TestModuleIf().Printf( 0, Ktestinputlanguageinfo, KTestCreateInputLanguageInfoLL );
    // Print to log file
    iLog->Log( KTestCreateInputLanguageInfoLL );
    
    CAknInputLanguageInfo* inputLanguageInfo = AknInputLanguageInfoFactory::CreateInputLanguageInfoL();
    CleanupStack::PushL( inputLanguageInfo );
    STIF_ASSERT_NOT_NULL( inputLanguageInfo );
    CleanupStack::PopAndDestroy( inputLanguageInfo );
    
    return KErrNone;
    }
// -----------------------------------------------------------------------------
// CTestUiAifCoreToolkit::TestCAknInputLanguageListL
// -----------------------------------------------------------------------------
//
TInt CTestPubInputLanguageInfo::TestCAknInputLanguageListL( CStifItemParser& /*aItem*/ )
    {

    // Print to UI
    _LIT( Ktestinputlanguageinfo, "TestInputLanguageInfo" );
    _LIT( KTestCAknInputLanguageListL, "In TestCAknInputLanguageList" );
    TestModuleIf().Printf( 0, Ktestinputlanguageinfo, KTestCAknInputLanguageListL );
    // Print to log file
    iLog->Log( KTestCAknInputLanguageListL );
    
    CAknInputLanguageList* inputLanguageList = new CAknInputLanguageList( 1 );
    CleanupStack::PushL( inputLanguageList );
    STIF_ASSERT_NOT_NULL( inputLanguageList );
    CleanupStack::PopAndDestroy( inputLanguageList );
    
    return KErrNone;
    }
// -----------------------------------------------------------------------------
// CTestSDKNotes::TestNWHandleDialogPageEventL
// -----------------------------------------------------------------------------
TInt CTestSDKNotes::TestNWHandleDialogPageEventL( CStifItemParser& /*aItem*/ )
    {
    CAknNoteWrapper* noteWrapper = new (ELeave) CAknNoteWrapper;
    CleanupStack::PushL( noteWrapper );
    STIF_ASSERT_NOT_NULL( noteWrapper );
    
    CleanupStack::Pop( noteWrapper );
    CTestNotesControl* control = CTestNotesControl::NewL();
    CleanupStack::PushL( control );
    
    noteWrapper->SetContainerWindowL( *control );
    noteWrapper->HandleDialogPageEventL( MEikDialogPageObserver::EDialogPageTapped );
    
    CleanupStack::PopAndDestroy( control );
    return KErrNone;
    
    }
// -----------------------------------------------------------------------------
// CTestDomExtNotifiers::TestCADSNNewLCL
// -----------------------------------------------------------------------------
//
TInt CTestDomExtNotifiers::TestCADSNNewLCL( CStifItemParser& /*aItem*/ )
    {
    // Print to UI
    _LIT( KTestDomExtNotifiers, "TestDomExtNotifiers" );
    _LIT( KTestCADSNNewLCL, "TestCADSNNewLCL" );
    TestModuleIf().Printf( 0, KTestDomExtNotifiers, KTestCADSNNewLCL );
    // Print to log file
    iLog->Log( KTestCADSNNewLCL );
    
    CAknDynamicSoftNotifier* softNotifier = CAknDynamicSoftNotifier::NewLC();
    
    STIF_ASSERT_NOT_NULL( softNotifier );
    
    CleanupStack::PopAndDestroy( softNotifier );
    
    return KErrNone;
    }
// -----------------------------------------------------------------------------
// CTestSDKNotes::TestNPIHandleResourceChangeL
// -----------------------------------------------------------------------------
TInt CTestSDKNotes::TestNPIHandleResourceChangeL( CStifItemParser& /*aItem*/ )
    {
    CEikProgressInfo::SInfo sInfo;
    CEikProgressInfo* progress = new (ELeave) CEikProgressInfo( sInfo );
    CleanupStack::PushL( progress );
    STIF_ASSERT_NOT_NULL( progress );
    progress->ConstructL();
    
    const TInt KBCTestNoteProgressbarMaxLength = 256;
    progress->HandleResourceChange( KAknsMessageSkinChange );
    progress->HandleResourceChange( KBCTestNoteProgressbarMaxLength );
    
    CleanupStack::PopAndDestroy( progress );
    
    return KErrNone;
    
    }
// -----------------------------------------------------------------------------
// CTestDomLayoutCfg::TestCALCScreenModesL
// -----------------------------------------------------------------------------
//
TInt CTestDomLayoutCfg::TestCALCScreenModesL( CStifItemParser& /*aItem*/ )
    {
    // Print to UI
    _LIT( KTestDomLayoutCfg, "TestDomLayoutCfg" );
    _LIT( KTestCALCScreenModes, "TestCALCScreenModes" );
    TestModuleIf().Printf( 0, KTestDomLayoutCfg, KTestCALCScreenModes );
    // Print to log file
    iLog->Log( KTestCALCScreenModes );
    
    CAknLayoutConfig* layoutCfg = CAknLayoutConfig::NewL();
    CleanupStack::PushL( layoutCfg );
    STIF_ASSERT_NOT_NULL( layoutCfg );
    layoutCfg->ScreenModes();
    CleanupStack::PopAndDestroy( layoutCfg );
    
    return KErrNone;
    }
示例#30
0
// -----------------------------------------------------------------------------
// CTestSDKSkins::TestIIDSetDrawRectL
// -----------------------------------------------------------------------------
TInt CTestSDKSkins::TestIIDSetDrawRectL( CStifItemParser& /*aItem*/ )
    {
    CAknsBitmapItemData* itemData = CAknsBitmapItemData::NewL();
    CleanupStack::PushL( itemData );
    STIF_ASSERT_NOT_NULL( itemData );
    
    TPoint pointTL( 0, 0 );
    TPoint pointBR( KLength, KLength );
    TRect rect( pointTL, pointBR );
    itemData->SetDrawRect( rect );
    STIF_ASSERT_TRUE( rect == itemData->DrawRect() );
    
    CleanupStack::PopAndDestroy( itemData );
    
    return KErrNone;
    
    }