uiaccelerator_plat/alf_visual_api/tsrc/src/testplatalfvisualblockstexturemanager.cpp
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2002 - 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:  test functions for alftexturemanager.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // [INCLUDE FILES]
       
    21 #include <alf/alftexturemanager.h>
       
    22 #include <alf/alfbitmapprovider.h>
       
    23 
       
    24 #include "testplatalfvisual.h"
       
    25 
       
    26 
       
    27 // CONSTANTS
       
    28 _LIT( KEmptyImagePath, "" );
       
    29 _LIT( KEmptyImageFileName, "" );
       
    30 _LIT( KTestImageFileName, "testfile" );
       
    31 
       
    32 const TInt KExistingTextureId = 1000;
       
    33 
       
    34 const TInt KProvidedBitmapWidth = 64;
       
    35 const TInt KProvidedBitmapHeight = 64;
       
    36 const TInt KTextureMaxWidth = 64;
       
    37 const TInt KTextureMaxHeight = 64;
       
    38 
       
    39 
       
    40 // FORWARD DECLARATION
       
    41 // class CTestBmpProvider for testing CAlfTextureManager
       
    42 class CTestBmpProvider : public CBase, public MAlfBitmapProvider
       
    43     {
       
    44 public:
       
    45     /**
       
    46      * Constructor of CTestBmpProvider.
       
    47      * @param aWidth    The width of provided bitmap.
       
    48      * @param aHeight   The height of provided bitmap.
       
    49      */
       
    50     CTestBmpProvider( TInt aWidth, TInt aHeight )
       
    51         {
       
    52         iProvidedBmpSize = TSize( aWidth, aHeight );
       
    53         }
       
    54     
       
    55     /**
       
    56      * From CAlfBitmapProvider
       
    57      */
       
    58     void ProvideBitmapL(TInt /*aId*/, CFbsBitmap*& aBitmap, CFbsBitmap*& aMaskBitmap)
       
    59         {
       
    60         aBitmap = new ( ELeave ) CFbsBitmap;
       
    61         aMaskBitmap = new ( ELeave ) CFbsBitmap;
       
    62         aBitmap->Create( iProvidedBmpSize, EColor64K );
       
    63         aMaskBitmap->Create( iProvidedBmpSize, EGray256 );
       
    64         }
       
    65     
       
    66 private:
       
    67     /**
       
    68      * OWN : The size of provided bitmap.
       
    69      */
       
    70     TSize iProvidedBmpSize;
       
    71     };
       
    72 
       
    73 
       
    74 // ============================ MEMBER FUNCTIONS ===============================
       
    75 
       
    76 // -----------------------------------------------------------------------------
       
    77 // CTestPlatAlfVisual::TestTxtMgrEnv
       
    78 // -----------------------------------------------------------------------------
       
    79 //
       
    80 TInt CTestPlatAlfVisual::TestTxtMgrEnv( CStifItemParser& /*aItem*/ )
       
    81     {
       
    82     // Print to UI
       
    83     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
    84     _LIT( KTestTxtMgrEnv, "TestTxtMgrEnv" );
       
    85     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrEnv );
       
    86     // Print to log file
       
    87     iLog->Log( KTestTxtMgrEnv );
       
    88     
       
    89     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
    90     STIF_ASSERT_EQUALS( iAlfEnv, &txtMgr->Env() );
       
    91     
       
    92     return KErrNone;
       
    93     }
       
    94 
       
    95 // -----------------------------------------------------------------------------
       
    96 // CTestPlatAlfVisual::TestTxtMgrTextureL
       
    97 // -----------------------------------------------------------------------------
       
    98 //
       
    99 TInt CTestPlatAlfVisual::TestTxtMgrTextureL( CStifItemParser& /*aItem*/ )
       
   100     {
       
   101     // Print to UI
       
   102     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   103     _LIT( KTestTxtMgrTextureL, "TestTxtMgrTextureL" );
       
   104     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrTextureL );
       
   105     // Print to log file
       
   106     iLog->Log( KTestTxtMgrTextureL );
       
   107     
       
   108     CTestBmpProvider* bmpProvider =
       
   109         new ( ELeave ) CTestBmpProvider( KProvidedBitmapWidth, KProvidedBitmapHeight );
       
   110     CleanupStack::PushL( bmpProvider );
       
   111     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   112     CAlfTexture* texture = &txtMgr->CreateTextureL(
       
   113             KExistingTextureId, bmpProvider, EAlfTextureFlagDefault );
       
   114     CleanupStack::PushL( texture );
       
   115     STIF_ASSERT_EQUALS( KExistingTextureId, texture->Id() );
       
   116     
       
   117     const CAlfTexture* texture2 = txtMgr->Texture( KExistingTextureId );
       
   118     STIF_ASSERT_NOT_NULL( texture2 );
       
   119     STIF_ASSERT_EQUALS( KExistingTextureId, texture2->Id() );
       
   120     
       
   121     CAlfTexture* texture3 = txtMgr->TextureL( KExistingTextureId );
       
   122     STIF_ASSERT_NOT_NULL( texture3 );
       
   123     STIF_ASSERT_EQUALS( KExistingTextureId, texture3->Id() );
       
   124     
       
   125     CleanupStack::Pop( texture );
       
   126     CleanupStack::PopAndDestroy( bmpProvider );
       
   127     
       
   128     return KErrNone;
       
   129     }
       
   130 
       
   131 // -----------------------------------------------------------------------------
       
   132 // CTestPlatAlfVisual::TestTxtMgrImagePathL
       
   133 // -----------------------------------------------------------------------------
       
   134 //
       
   135 TInt CTestPlatAlfVisual::TestTxtMgrImagePathL( CStifItemParser& /*aItem*/ )
       
   136     {
       
   137     // Print to UI
       
   138     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   139     _LIT( KTestTxtMgrImagePathL, "TestTxtMgrImagePathL" );
       
   140     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrImagePathL );
       
   141     // Print to log file
       
   142     iLog->Log( KTestTxtMgrImagePathL );
       
   143     
       
   144     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   145     txtMgr->SetImagePathL( KEmptyImagePath );
       
   146     const TDesC& path = txtMgr->ImagePath();
       
   147     STIF_ASSERT_TRUE( path == KEmptyImagePath );
       
   148     
       
   149     return KErrNone;
       
   150     }
       
   151 
       
   152 // -----------------------------------------------------------------------------
       
   153 // CTestPlatAlfVisual::TestTxtMgrBlankTexture
       
   154 // -----------------------------------------------------------------------------
       
   155 //
       
   156 TInt CTestPlatAlfVisual::TestTxtMgrBlankTexture( CStifItemParser& /*aItem*/ )
       
   157     {
       
   158     // Print to UI
       
   159     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   160     _LIT( KTestTxtMgrBlankTexture, "TestTxtMgrBlankTexture" );
       
   161     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrBlankTexture );
       
   162     // Print to log file
       
   163     iLog->Log( KTestTxtMgrBlankTexture );
       
   164     
       
   165     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   166     const CAlfTexture& texture = ( ( const CAlfTextureManager* ) txtMgr )->BlankTexture();
       
   167     STIF_ASSERT_EQUALS( 0, texture.Id() );
       
   168     
       
   169     CAlfTexture& texture2 = txtMgr->BlankTexture();
       
   170     STIF_ASSERT_EQUALS( 0, texture2.Id() );
       
   171     
       
   172     return KErrNone;
       
   173     }
       
   174 
       
   175 // -----------------------------------------------------------------------------
       
   176 // CTestPlatAlfVisual::TestTxtMgrLoadTextureL
       
   177 // -----------------------------------------------------------------------------
       
   178 //
       
   179 TInt CTestPlatAlfVisual::TestTxtMgrLoadTextureL( CStifItemParser& /*aItem*/ )
       
   180     {
       
   181     // Print to UI
       
   182     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   183     _LIT( KTestTxtMgrLoadTextureL, "TestTxtMgrLoadTextureL" );
       
   184     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrLoadTextureL );
       
   185     // Print to log file
       
   186     iLog->Log( KTestTxtMgrLoadTextureL );
       
   187     
       
   188     CTestBmpProvider* bmpProvider =
       
   189         new ( ELeave ) CTestBmpProvider( KProvidedBitmapWidth, KProvidedBitmapHeight );
       
   190     CleanupStack::PushL( bmpProvider );
       
   191     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   192     txtMgr->CreateTextureL( KExistingTextureId, bmpProvider, EAlfTextureFlagDefault );
       
   193     txtMgr->LoadTextureL( KEmptyImageFileName, EAlfTextureFlagDefault, KExistingTextureId );
       
   194     TSize txtMaxSize( KTextureMaxWidth, KTextureMaxHeight );
       
   195     txtMgr->LoadTextureL( KExistingTextureId, txtMaxSize, EAlfTextureFlagDefault );
       
   196     txtMgr->LoadTextureL( KEmptyImageFileName, txtMaxSize, EAlfTextureFlagDefault, KExistingTextureId );
       
   197     txtMgr->LoadAnimatedTextureL(KEmptyImageFileName, txtMaxSize, EAlfTextureFlagDefault, KExistingTextureId );
       
   198     CleanupStack::PopAndDestroy( bmpProvider );
       
   199     
       
   200     return KErrNone;
       
   201     }
       
   202 
       
   203 // -----------------------------------------------------------------------------
       
   204 // CTestPlatAlfVisual::TestTxtMgrCreateTextureL
       
   205 // -----------------------------------------------------------------------------
       
   206 //
       
   207 TInt CTestPlatAlfVisual::TestTxtMgrCreateTextureL( CStifItemParser& /*aItem*/ )
       
   208     {
       
   209     // Print to UI
       
   210     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   211     _LIT( KTestTxtMgrCreateTextureL, "TestTxtMgrCreateTextureL" );
       
   212     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrCreateTextureL );
       
   213     // Print to log file
       
   214     iLog->Log( KTestTxtMgrCreateTextureL );
       
   215     
       
   216     CTestBmpProvider* bmpProvider =
       
   217         new ( ELeave ) CTestBmpProvider( KProvidedBitmapWidth, KProvidedBitmapHeight );
       
   218     CleanupStack::PushL( bmpProvider );
       
   219     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   220     CAlfTexture& texture = txtMgr->CreateTextureL( KExistingTextureId,
       
   221                                         bmpProvider, EAlfTextureFlagDefault );
       
   222     STIF_ASSERT_EQUALS( KExistingTextureId, texture.Id() );
       
   223     CleanupStack::PopAndDestroy( bmpProvider );
       
   224     
       
   225     return KErrNone;
       
   226     }
       
   227 
       
   228 // -----------------------------------------------------------------------------
       
   229 // CTestPlatAlfVisual::TestTxtMgrUnloadTextureL
       
   230 // -----------------------------------------------------------------------------
       
   231 //
       
   232 TInt CTestPlatAlfVisual::TestTxtMgrUnloadTextureL( CStifItemParser& /*aItem*/ )
       
   233     {
       
   234     // Print to UI
       
   235     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   236     _LIT( KTestTxtMgrUnloadTextureL, "TestTxtMgrUnloadTextureL" );
       
   237     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrUnloadTextureL );
       
   238     // Print to log file
       
   239     iLog->Log( KTestTxtMgrUnloadTextureL );
       
   240     
       
   241     CTestBmpProvider* bmpProvider =
       
   242         new ( ELeave ) CTestBmpProvider( KProvidedBitmapWidth, KProvidedBitmapHeight );
       
   243     CleanupStack::PushL( bmpProvider );
       
   244     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   245     txtMgr->DefineFileNameL( KExistingTextureId, KTestImageFileName );
       
   246     txtMgr->CreateTextureL( KExistingTextureId, bmpProvider, EAlfTextureFlagDefault );
       
   247     txtMgr->UnloadTexture( KTestImageFileName );
       
   248     STIF_ASSERT_FALSE( txtMgr->Texture( KExistingTextureId )->HasContent() );
       
   249     txtMgr->DefineFileNameL( KExistingTextureId, KTestImageFileName );
       
   250     txtMgr->CreateTextureL( KExistingTextureId, bmpProvider, EAlfTextureFlagDefault );
       
   251     txtMgr->UnloadTexture( KExistingTextureId );
       
   252     STIF_ASSERT_FALSE( txtMgr->Texture( KExistingTextureId )->HasContent() );
       
   253     CleanupStack::PopAndDestroy( bmpProvider );
       
   254     
       
   255     return KErrNone;
       
   256     }
       
   257 
       
   258 // -----------------------------------------------------------------------------
       
   259 // CTestPlatAlfVisual::TestTxtMgrUpdateTextureL
       
   260 // -----------------------------------------------------------------------------
       
   261 //
       
   262 TInt CTestPlatAlfVisual::TestTxtMgrUpdateTextureL( CStifItemParser& /*aItem*/ )
       
   263     {
       
   264     // Print to UI
       
   265     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   266     _LIT( KTestTxtMgrUpdateTextureL, "TestTxtMgrUpdateTextureL" );
       
   267     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrUpdateTextureL );
       
   268     // Print to log file
       
   269     iLog->Log( KTestTxtMgrUpdateTextureL );
       
   270     
       
   271     CTestBmpProvider* bmpProvider =
       
   272         new ( ELeave ) CTestBmpProvider( KProvidedBitmapWidth, KProvidedBitmapHeight );
       
   273     CleanupStack::PushL( bmpProvider );
       
   274     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   275     txtMgr->DefineFileNameL( KExistingTextureId, KTestImageFileName );
       
   276     txtMgr->UpdateTextureFromFileL( KExistingTextureId, &KEmptyImageFileName );
       
   277     txtMgr->UpdateTextureFromBitmapL( KExistingTextureId, bmpProvider );
       
   278     CleanupStack::PopAndDestroy( bmpProvider );
       
   279     
       
   280     return KErrNone;
       
   281     }
       
   282 
       
   283 // -----------------------------------------------------------------------------
       
   284 // CTestPlatAlfVisual::TestTxtMgrDefineFileNameL
       
   285 // -----------------------------------------------------------------------------
       
   286 //
       
   287 TInt CTestPlatAlfVisual::TestTxtMgrDefineFileNameL( CStifItemParser& /*aItem*/ )
       
   288     {
       
   289     // Print to UI
       
   290     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   291     _LIT( KTestTxtMgrDefineFileNameL, "TestTxtMgrDefineFileNameL" );
       
   292     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrDefineFileNameL );
       
   293     // Print to log file
       
   294     iLog->Log( KTestTxtMgrDefineFileNameL );
       
   295     
       
   296     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   297     txtMgr->DefineFileNameL( KExistingTextureId, KEmptyImageFileName );
       
   298     
       
   299     return KErrNone;
       
   300     }
       
   301 
       
   302 // -----------------------------------------------------------------------------
       
   303 // CTestPlatAlfVisual::TestTxtMgrPrependImagePath
       
   304 // -----------------------------------------------------------------------------
       
   305 //
       
   306 TInt CTestPlatAlfVisual::TestTxtMgrPrependImagePath( CStifItemParser& /*aItem*/ )
       
   307     {
       
   308     // Print to UI
       
   309     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   310     _LIT( KTestTxtMgrPrependImagePath, "TestTxtMgrPrependImagePath" );
       
   311     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrPrependImagePath );
       
   312     // Print to log file
       
   313     iLog->Log( KTestTxtMgrPrependImagePath );
       
   314     
       
   315     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   316     TFileName fileName( KEmptyImageFileName );
       
   317     txtMgr->PrependImagePath( fileName );
       
   318     
       
   319     return KErrNone;
       
   320     }
       
   321 
       
   322 // -----------------------------------------------------------------------------
       
   323 // CTestPlatAlfVisual::TestTxtMgrObserverMethodsL
       
   324 // -----------------------------------------------------------------------------
       
   325 //
       
   326 TInt CTestPlatAlfVisual::TestTxtMgrObserverMethodsL( CStifItemParser& /*aItem*/ )
       
   327     {
       
   328     // Print to UI
       
   329     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   330     _LIT( KTestTxtMgrObserverMethodsL, "TestTxtMgrObserverMethodsL" );
       
   331     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrObserverMethodsL );
       
   332     // Print to log file
       
   333     iLog->Log( KTestTxtMgrObserverMethodsL );
       
   334     
       
   335     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   336     txtMgr->AddLoadObserverL( NULL );
       
   337     txtMgr->AddStateObserverL( NULL );
       
   338     txtMgr->AddAutoSizeObserverL( NULL );
       
   339     txtMgr->RemoveLoadObserver( NULL );
       
   340     txtMgr->RemoveStateObserver( NULL );
       
   341     txtMgr->RemoveAutoSizeObserver( NULL );
       
   342     
       
   343     return KErrNone;
       
   344     }
       
   345 
       
   346 // -----------------------------------------------------------------------------
       
   347 // CTestPlatAlfVisual::TestTxtMgrProcessor
       
   348 // -----------------------------------------------------------------------------
       
   349 //
       
   350 TInt CTestPlatAlfVisual::TestTxtMgrProcessor( CStifItemParser& /*aItem*/ )
       
   351     {
       
   352     // Print to UI
       
   353     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   354     _LIT( KTestTxtMgrProcessor, "TestTxtMgrProcessor" );
       
   355     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrProcessor );
       
   356     // Print to log file
       
   357     iLog->Log( KTestTxtMgrProcessor );
       
   358     
       
   359     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   360     txtMgr->Processor();
       
   361     
       
   362     return KErrNone;
       
   363     }
       
   364 
       
   365 // -----------------------------------------------------------------------------
       
   366 // CTestPlatAlfVisual::TestTxtMgrSetAutomaticTextureIdRange
       
   367 // -----------------------------------------------------------------------------
       
   368 //
       
   369 TInt CTestPlatAlfVisual::TestTxtMgrSetAutomaticTextureIdRange( CStifItemParser& /*aItem*/ )
       
   370     {
       
   371     // Print to UI
       
   372     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   373     _LIT( KTestTxtMgrSetAutomaticTextureIdRange, "TestTxtMgrSetAutomaticTextureIdRange" );
       
   374     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrSetAutomaticTextureIdRange );
       
   375     // Print to log file
       
   376     iLog->Log( KTestTxtMgrSetAutomaticTextureIdRange );
       
   377     
       
   378     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   379     txtMgr->SetAutomaticTextureIdRange( 1, 2 );
       
   380     
       
   381     return KErrNone;
       
   382     }
       
   383 
       
   384 // -----------------------------------------------------------------------------
       
   385 // CTestPlatAlfVisual::TestTxtMgrIsLoadedL
       
   386 // -----------------------------------------------------------------------------
       
   387 //
       
   388 TInt CTestPlatAlfVisual::TestTxtMgrIsLoadedL( CStifItemParser& /*aItem*/ )
       
   389     {
       
   390     // Print to UI
       
   391     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   392     _LIT( KTestTxtMgrIsLoadedL, "TestTxtMgrIsLoadedL" );
       
   393     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrIsLoadedL );
       
   394     // Print to log file
       
   395     iLog->Log( KTestTxtMgrIsLoadedL );
       
   396     
       
   397     CTestBmpProvider* bmpProvider =
       
   398         new ( ELeave ) CTestBmpProvider( KProvidedBitmapWidth, KProvidedBitmapHeight );
       
   399     CleanupStack::PushL( bmpProvider );
       
   400     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   401     txtMgr->CreateTextureL( KExistingTextureId, bmpProvider, EAlfTextureFlagDefault );
       
   402     txtMgr->IsLoaded( KEmptyImageFileName );
       
   403     txtMgr->IsLoaded( KExistingTextureId );
       
   404     txtMgr->IsLoaded( txtMgr->Texture( KExistingTextureId ) );
       
   405     CleanupStack::PopAndDestroy( bmpProvider );
       
   406     
       
   407     return KErrNone;
       
   408     }
       
   409 
       
   410 // -----------------------------------------------------------------------------
       
   411 // CTestPlatAlfVisual::TestTxtMgrTextureIdL
       
   412 // -----------------------------------------------------------------------------
       
   413 //
       
   414 TInt CTestPlatAlfVisual::TestTxtMgrTextureIdL( CStifItemParser& /*aItem*/ )
       
   415     {
       
   416     // Print to UI
       
   417     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
   418     _LIT( KTestTxtMgrTextureIdL, "TestTxtMgrTextureIdL" );
       
   419     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestTxtMgrTextureIdL );
       
   420     // Print to log file
       
   421     iLog->Log( KTestTxtMgrTextureIdL );
       
   422     
       
   423     CTestBmpProvider* bmpProvider =
       
   424         new ( ELeave ) CTestBmpProvider( KProvidedBitmapWidth, KProvidedBitmapHeight );
       
   425     CleanupStack::PushL( bmpProvider );
       
   426     CAlfTextureManager* txtMgr = &( iAlfEnv->TextureManager() );
       
   427     txtMgr->CreateTextureL( KExistingTextureId, bmpProvider, EAlfTextureFlagDefault );
       
   428     txtMgr->TextureId( KEmptyImageFileName );
       
   429     CleanupStack::PopAndDestroy( bmpProvider );
       
   430     
       
   431     return KErrNone;
       
   432     }
       
   433 
       
   434 
       
   435 //  [End of File]