mmshplugins/mmshaiwplugin/tsrc/ut_aiwplugin/src/ut_musaiwprovider.cpp
changeset 0 f0cf47e981f9
child 32 73a1feb507fb
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #include <eikmenup.h>
       
    19 #include "ut_musaiwprovider.h"
       
    20 #include "musaiwprovider.h"
       
    21 #include "musaiwprovider.hrh"
       
    22 #include "musmanagerstub.h"
       
    23 #include "musmanagercommon.h"
       
    24 #include "musindicatorapi.h"
       
    25 
       
    26 #include <musresourceproperties.h>
       
    27 #include "mussesseioninformationapi.h"
       
    28 #include "mussettings.h"
       
    29 #include "mustesthelp.h"
       
    30 #define MUS_MEMORY_LEAVE_CHECKING_ON
       
    31 
       
    32 #include <e32property.h>
       
    33 #include <FeatMgr.h>
       
    34 #include <aiwmenu.h>
       
    35 #include <alwaysonlinemanagercommon.h>
       
    36 #include <alwaysonlinemanagerclient.h>
       
    37 #include <bautils.h>
       
    38 #include <digia/eunit/eunitmacros.h>
       
    39 #include <aknglobalnote.h>
       
    40 #include <apgtask.h>
       
    41 
       
    42 
       
    43 // Next row is to disable warning emerging from EUnit code.
       
    44 // Placement is due to a fact that most test case files
       
    45 // include this file. Directive can be removed when
       
    46 // EUnit is fixed.
       
    47 #pragma warn_illtokenpasting off
       
    48 
       
    49 _LIT( KMusAiwProviderResource, "c:\\sys\\bin\\musaiwproviderui.rsc" );
       
    50 _LIT( KResourceFilenameRom,"z:\\sys\\bin\\musaiwproviderui.rsc" );
       
    51 
       
    52 _LIT8( KMusOnHold8, "On hold" );
       
    53 _LIT8( KMusNetworkIncompatible8, "Network incompatible" );
       
    54 _LIT8( KMusConferenceCall8, "Conference call" );
       
    55 _LIT8( KMusRecipientIncapable8, "Recipient incapable" );
       
    56 _LIT8( KMusNoReg8, "No registration" );
       
    57 _LIT8( KMusGeneral, "Application error" );
       
    58 
       
    59 
       
    60 CMusIndicatorApi* CMusIndicatorApi::NewL()
       
    61     {
       
    62     CMusIndicatorApi* self = new (ELeave) CMusIndicatorApi( NULL );
       
    63     return self;
       
    64     
       
    65     }
       
    66 
       
    67 
       
    68 
       
    69 CMusIndicatorApi::CMusIndicatorApi( MMusIndicatorObserver* aObserver )
       
    70     : CActive( EPriorityStandard ),
       
    71     iObserver( aObserver )
       
    72     {
       
    73     }
       
    74 
       
    75 void CMusIndicatorApi::DoCancel()
       
    76     {
       
    77     }
       
    78 
       
    79 
       
    80 TInt CMusIndicatorApi::RunError( TInt aError )
       
    81     {
       
    82     return aError;
       
    83     }
       
    84 
       
    85 void CMusIndicatorApi::RunL()
       
    86     {
       
    87     }
       
    88 
       
    89 
       
    90 void CMusIndicatorApi::PlaySoundComplete( TInt /*aError*/ )
       
    91     {
       
    92     }
       
    93 
       
    94 CMusIndicatorApi::~CMusIndicatorApi()
       
    95     {
       
    96     }
       
    97 
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 // -----------------------------------------------------------------------------
       
   101 //
       
   102 UT_CMusAiwProvider* UT_CMusAiwProvider::NewL()
       
   103     {
       
   104     UT_CMusAiwProvider* self = UT_CMusAiwProvider::NewLC();
       
   105     CleanupStack::Pop( self );
       
   106     return self;
       
   107     
       
   108     }
       
   109 
       
   110 
       
   111 // -----------------------------------------------------------------------------
       
   112 //
       
   113 // -----------------------------------------------------------------------------
       
   114 //
       
   115 UT_CMusAiwProvider* UT_CMusAiwProvider::NewLC()
       
   116     {
       
   117     UT_CMusAiwProvider* self = new (ELeave) UT_CMusAiwProvider();
       
   118     CleanupStack::PushL( self );
       
   119     self->ConstructL();
       
   120     return self;
       
   121     }
       
   122 
       
   123 
       
   124 // -----------------------------------------------------------------------------
       
   125 //
       
   126 // -----------------------------------------------------------------------------
       
   127 //
       
   128 UT_CMusAiwProvider::~UT_CMusAiwProvider()
       
   129     {
       
   130     }
       
   131 
       
   132 
       
   133 // -----------------------------------------------------------------------------
       
   134 //
       
   135 // -----------------------------------------------------------------------------
       
   136 //
       
   137 UT_CMusAiwProvider::UT_CMusAiwProvider()
       
   138     {
       
   139     }
       
   140 
       
   141 
       
   142 // -----------------------------------------------------------------------------
       
   143 //
       
   144 // -----------------------------------------------------------------------------
       
   145 //
       
   146 void UT_CMusAiwProvider::ConstructL()
       
   147     {
       
   148     CEUnitTestSuiteClass::ConstructL();
       
   149     }
       
   150 
       
   151 
       
   152 // -----------------------------------------------------------------------------
       
   153 //
       
   154 // -----------------------------------------------------------------------------
       
   155 //
       
   156 void UT_CMusAiwProvider::SetupL()
       
   157     {
       
   158     iProvider = CMusAiwProvider::NewL();
       
   159     CMusManager::SetUseCase( MultimediaSharing::EMusContinue );
       
   160     CMusManager::SetStartError( KErrNone );
       
   161     CMusManager::SetAvailability( KErrNone );
       
   162     
       
   163     }
       
   164 
       
   165 
       
   166 // -----------------------------------------------------------------------------
       
   167 //
       
   168 // -----------------------------------------------------------------------------
       
   169 //
       
   170 void UT_CMusAiwProvider::Teardown(  )
       
   171     {
       
   172     delete iProvider;
       
   173     }
       
   174 
       
   175 
       
   176 // -----------------------------------------------------------------------------
       
   177 // -----------------------------------------------------------------------------
       
   178 //
       
   179 
       
   180 // -----------------------------------------------------------------------------
       
   181 //
       
   182 // -----------------------------------------------------------------------------
       
   183 //
       
   184 void UT_CMusAiwProvider::SetEmphasis( CCoeControl* /*aMenuControl*/,
       
   185                                       TBool /*aEmphasis*/ )
       
   186     {
       
   187 
       
   188     }
       
   189 
       
   190 
       
   191 // -----------------------------------------------------------------------------
       
   192 //
       
   193 // -----------------------------------------------------------------------------
       
   194 //
       
   195 void UT_CMusAiwProvider::ProcessCommandL( TInt /*aCommandId*/ )
       
   196     {
       
   197 
       
   198     }
       
   199 
       
   200 
       
   201 // -----------------------------------------------------------------------------
       
   202 //
       
   203 // -----------------------------------------------------------------------------
       
   204 //
       
   205 TInt UT_CMusAiwProvider::HandleNotifyL(
       
   206     TInt /*aCmdId*/,
       
   207     TInt /*aEventId*/,
       
   208     CAiwGenericParamList& /*aEventParamList*/,
       
   209     const CAiwGenericParamList& /*aInParamList*/)
       
   210     {
       
   211     return KErrNone;
       
   212     }
       
   213 
       
   214 
       
   215 
       
   216 // ------- Tester functions ----------------------------------------------------
       
   217 
       
   218 /*
       
   219 RFs fs;
       
   220     User::LeaveIfError( fs.Connect() );
       
   221 
       
   222     CleanupClosePushL( fs );
       
   223 
       
   224     BaflUtils::CopyFile( fs, KMusAiwProviderResource(), MusAiwResourceFinder::ResourceFilenameRom() );
       
   225     BaflUtils::CopyFile( fs, KMusAiwProviderResource(), MusAiwResourceFinder::ResourceFilenameRam() );
       
   226 
       
   227     BaflUtils::DeleteFile( fs, MusAiwResourceFinder::ResourceFilenameRom() );
       
   228 
       
   229     BaflUtils::DeleteFile( fs, MusAiwResourceFinder::ResourceFilenameRam() );
       
   230 
       
   231     CleanupStack::PopAndDestroy(); // fs
       
   232 */
       
   233 
       
   234 // ----------------------------------------------------------------------------
       
   235 //
       
   236 // ----------------------------------------------------------------------------
       
   237 //
       
   238 void UT_CMusAiwProvider::UT_CMusAiwProvider_InitialiseLL()
       
   239     {
       
   240     // No implementation, so dummy test is enough
       
   241     RCriteriaArray array;
       
   242     iProvider->InitialiseL( *this, array );
       
   243     iProvider->DoInitialiseL();
       
   244     
       
   245 
       
   246     }
       
   247 
       
   248 
       
   249 // -----------------------------------------------------------------------------
       
   250 //
       
   251 // -----------------------------------------------------------------------------
       
   252 //
       
   253 void UT_CMusAiwProvider::UT_CMusAiwProvider_HandleServiceCmdLL()
       
   254     {
       
   255     // HandleServiceCmdL just forwards request to HandleMenuCmdL
       
   256 
       
   257     CAiwGenericParamList* pl = CAiwGenericParamList::NewLC();
       
   258 
       
   259     EUNIT_ASSERT( CMusManager::UseCase() == MultimediaSharing::EMusContinue )
       
   260 
       
   261     iProvider->HandleServiceCmdL( EMusCommandLiveShare, *pl, *pl, 0, this );
       
   262     EUNIT_ASSERT( CMusManager::UseCase() == MultimediaSharing::EMusLiveVideo )
       
   263 
       
   264     CleanupStack::PopAndDestroy( pl );
       
   265 
       
   266     CMusManager::SetUseCase( MultimediaSharing::EMusContinue );
       
   267     }
       
   268 
       
   269 
       
   270 // -----------------------------------------------------------------------------
       
   271 //
       
   272 // -----------------------------------------------------------------------------
       
   273 //
       
   274 void UT_CMusAiwProvider::UT_CMusAiwProvider_InitializeMenuPaneLL()
       
   275     {    
       
   276 
       
   277     
       
   278     RFs fs;
       
   279     User::LeaveIfError( fs.Connect() );
       
   280 
       
   281     CleanupClosePushL( fs );
       
   282 
       
   283     BaflUtils::CopyFile( fs, KMusAiwProviderResource(),
       
   284                          KResourceFilenameRom() );
       
   285 
       
   286     CAiwGenericParamList* list = CAiwGenericParamList::NewLC();
       
   287 
       
   288     CEikMenuPane* eikPane = new( ELeave ) CEikMenuPane( this );
       
   289     CleanupStack::PushL( eikPane );
       
   290 
       
   291     // Constructing eikPane is not compulsory for testing and leads to a memory
       
   292     // leak.
       
   293     //eikPane->ConstructL( NULL, this );
       
   294 
       
   295     CAiwMenuPane* aiwPane = new( ELeave ) CAiwMenuPane( *eikPane, 0 ); //Takes ownership
       
   296     CleanupStack::Pop( eikPane );
       
   297     CleanupStack::PushL( aiwPane );
       
   298 
       
   299     // ResourceFile is empty 
       
   300     delete iProvider->iResourceFileName;
       
   301     
       
   302     iProvider->iResourceFileName = NULL ;
       
   303 
       
   304     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   305     EUNIT_ASSERT( iProvider->iResourceFileName != NULL )
       
   306     // Menu item counter
       
   307     TInt menuPaneCount = eikPane->NumberOfItemsInPane();
       
   308 
       
   309     // test "forbidden" feature: mus NOT allowed, operator variant set to operator
       
   310     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   311                      MusSettingsKeys::EOperatorSpecific );
       
   312     RProperty::Set( NMusSessionInformationApi::KCategoryUid,
       
   313                     NMusSessionInformationApi::KMUSForbidden,
       
   314                     NMusSessionInformationApi::EMUSForbidden );    
       
   315     EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount )
       
   316 
       
   317     // set operator back to standard and allow mus
       
   318     RProperty::Set( NMusSessionInformationApi::KCategoryUid ,
       
   319                     NMusSessionInformationApi::KMUSForbidden ,
       
   320                     NMusSessionInformationApi::EMUSAllowed );
       
   321     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   322                      MusSettingsKeys::EStandard );
       
   323 
       
   324     //Some Negative Cases
       
   325     CMusManager::SetAvailability( MultimediaSharing::EErrNoSipProfile );
       
   326     menuPaneCount = eikPane->NumberOfItemsInPane();
       
   327     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   328 
       
   329     EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount )
       
   330     EUNIT_ASSERT( iProvider->iResourceFileName != NULL )
       
   331 
       
   332     CMusManager::SetAvailability( MultimediaSharing::EErrActivation );
       
   333     menuPaneCount = eikPane->NumberOfItemsInPane();
       
   334     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   335 
       
   336     EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount )
       
   337     EUNIT_ASSERT( iProvider->iResourceFileName != NULL )
       
   338 
       
   339     CMusManager::SetAvailability( ( MultimediaSharing::TMusAvailabilityStatus ) KErrNone );    
       
   340     menuPaneCount = eikPane->NumberOfItemsInPane();
       
   341     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   342 
       
   343     EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount )
       
   344     EUNIT_ASSERT( iProvider->iResourceFileName != NULL )
       
   345 
       
   346     // Cases  for "camera supported"!
       
   347     FeatureManager::CameraSupported(); 
       
   348     // Set it live,clip Menu showing    
       
   349 
       
   350     CMusManager::SetAvailability( MultimediaSharing::ESipRegistrationPending );
       
   351     menuPaneCount = eikPane->NumberOfItemsInPane();
       
   352     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   353 
       
   354     //EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount + 3 )       
       
   355     MUS_CHECK_MEMORY_LEAVE( eikPane->NumberOfItemsInPane() == menuPaneCount + 3 )
       
   356     
       
   357     CMusManager::SetAvailability( MultimediaSharing::EErrConferenceCall );
       
   358     menuPaneCount = eikPane->NumberOfItemsInPane();
       
   359     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   360 
       
   361     //EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount + 3 )
       
   362     MUS_CHECK_MEMORY_LEAVE( eikPane->NumberOfItemsInPane() == menuPaneCount + 3 )
       
   363     
       
   364     // set camera support on
       
   365     FeatureManager::CameraSupported();
       
   366     CleanupStack::PopAndDestroy( aiwPane );
       
   367     CleanupStack::PopAndDestroy( list );
       
   368     BaflUtils::DeleteFile( fs, KResourceFilenameRom() );
       
   369 
       
   370     CleanupStack::PopAndDestroy(); //  
       
   371     }
       
   372 
       
   373 void UT_CMusAiwProvider::UT_CMusAiwProvider_InitializeMenuPaneL2L()
       
   374     {    
       
   375 
       
   376     RFs fs;
       
   377     User::LeaveIfError( fs.Connect() );
       
   378 
       
   379     CleanupClosePushL( fs );
       
   380 
       
   381     BaflUtils::CopyFile( fs, KMusAiwProviderResource(),
       
   382                          KResourceFilenameRom() );
       
   383 
       
   384     CAiwGenericParamList* list = CAiwGenericParamList::NewLC();
       
   385 
       
   386     CEikMenuPane* eikPane = new( ELeave ) CEikMenuPane( this );
       
   387     CleanupStack::PushL( eikPane );
       
   388 
       
   389     // Constructing eikPane is not compulsory for testing and leads to a memory
       
   390     // leak.
       
   391     //eikPane->ConstructL( NULL, this );
       
   392 
       
   393     CAiwMenuPane* aiwPane = new( ELeave ) CAiwMenuPane( *eikPane, 0 ); //Takes ownership
       
   394     CleanupStack::Pop( eikPane );
       
   395     CleanupStack::PushL( aiwPane );
       
   396 
       
   397     // ResourceFile is empty 
       
   398     delete iProvider->iResourceFileName;
       
   399     
       
   400     iProvider->iResourceFileName = NULL ;
       
   401 
       
   402     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   403     EUNIT_ASSERT( iProvider->iResourceFileName != NULL )
       
   404 
       
   405     // Menu item counter
       
   406     TInt menuPaneCount = eikPane->NumberOfItemsInPane();
       
   407 
       
   408     // test "forbidden" feature: mus NOT allowed, operator variant set to operator
       
   409     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   410                      MusSettingsKeys::EOperatorSpecific );
       
   411     RProperty::Set( NMusSessionInformationApi::KCategoryUid,
       
   412                     NMusSessionInformationApi::KMUSForbidden,
       
   413                     NMusSessionInformationApi::EMUSForbidden );    
       
   414     EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount )
       
   415 
       
   416     // set operator back to standard and allow mus
       
   417     RProperty::Set( NMusSessionInformationApi::KCategoryUid ,
       
   418                     NMusSessionInformationApi::KMUSForbidden ,
       
   419                     NMusSessionInformationApi::EMUSAllowed );
       
   420     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   421                      MusSettingsKeys::EStandard );
       
   422 
       
   423 
       
   424     CMusManager::SetAvailability( MultimediaSharing::EErrCallOnHold );
       
   425     menuPaneCount = eikPane->NumberOfItemsInPane();
       
   426     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   427 
       
   428     //EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount + 3 )
       
   429     MUS_CHECK_MEMORY_LEAVE( eikPane->NumberOfItemsInPane() == menuPaneCount + 3 )
       
   430 
       
   431     // set camera support on
       
   432     FeatureManager::CameraSupported();
       
   433     CleanupStack::PopAndDestroy( aiwPane );
       
   434     CleanupStack::PopAndDestroy( list );
       
   435     BaflUtils::DeleteFile( fs, KResourceFilenameRom() );
       
   436 
       
   437     CleanupStack::PopAndDestroy(); // fs
       
   438     
       
   439     }
       
   440 
       
   441 
       
   442 void UT_CMusAiwProvider::UT_CMusAiwProvider_InitializeMenuPaneL3L()
       
   443     {    
       
   444 
       
   445     RFs fs;
       
   446     User::LeaveIfError( fs.Connect() );
       
   447 
       
   448     CleanupClosePushL( fs );
       
   449 
       
   450     BaflUtils::CopyFile( fs, KMusAiwProviderResource(),
       
   451                          KResourceFilenameRom() );
       
   452 
       
   453     CAiwGenericParamList* list = CAiwGenericParamList::NewLC();
       
   454 
       
   455     CEikMenuPane* eikPane = new( ELeave ) CEikMenuPane( this );
       
   456     CleanupStack::PushL( eikPane );
       
   457 
       
   458     // Constructing eikPane is not compulsory for testing and leads to a memory
       
   459     // leak.
       
   460     //eikPane->ConstructL( NULL, this );
       
   461 
       
   462     CAiwMenuPane* aiwPane = new( ELeave ) CAiwMenuPane( *eikPane, 0 ); //Takes ownership
       
   463     CleanupStack::Pop( eikPane );
       
   464     CleanupStack::PushL( aiwPane );
       
   465 
       
   466     // ResourceFile is empty 
       
   467     delete iProvider->iResourceFileName;
       
   468     
       
   469     iProvider->iResourceFileName = NULL ;
       
   470     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   471     EUNIT_ASSERT( iProvider->iResourceFileName != NULL )
       
   472     // Menu item counter
       
   473     TInt menuPaneCount = eikPane->NumberOfItemsInPane();
       
   474 
       
   475     // test "forbidden" feature: mus NOT allowed, operator variant set to operator
       
   476     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   477                      MusSettingsKeys::EOperatorSpecific );
       
   478     RProperty::Set( NMusSessionInformationApi::KCategoryUid,
       
   479                     NMusSessionInformationApi::KMUSForbidden,
       
   480                     NMusSessionInformationApi::EMUSForbidden );    
       
   481     EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount )
       
   482  
       
   483     // set operator back to standard and allow mus
       
   484     RProperty::Set( NMusSessionInformationApi::KCategoryUid ,
       
   485                     NMusSessionInformationApi::KMUSForbidden ,
       
   486                     NMusSessionInformationApi::EMUSAllowed );
       
   487     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   488                      MusSettingsKeys::EStandard );
       
   489  
       
   490 
       
   491     CMusManager::SetAvailability(MultimediaSharing::ESipOptionsSent);
       
   492     menuPaneCount = eikPane->NumberOfItemsInPane();
       
   493     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   494  
       
   495     //EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount + 3 )     
       
   496     MUS_CHECK_MEMORY_LEAVE( eikPane->NumberOfItemsInPane() == menuPaneCount + 3 )
       
   497  
       
   498     // set camera support on
       
   499     FeatureManager::CameraSupported();
       
   500     CleanupStack::PopAndDestroy( aiwPane );
       
   501     CleanupStack::PopAndDestroy( list );
       
   502     BaflUtils::DeleteFile( fs, KResourceFilenameRom() );
       
   503 
       
   504     CleanupStack::PopAndDestroy(); // fs
       
   505     
       
   506     }
       
   507 
       
   508 
       
   509 void UT_CMusAiwProvider::UT_CMusAiwProvider_InitializeMenuPaneL4L()
       
   510     {    
       
   511 
       
   512     RFs fs;
       
   513     User::LeaveIfError( fs.Connect() );
       
   514 
       
   515     CleanupClosePushL( fs );
       
   516 
       
   517     BaflUtils::CopyFile( fs, KMusAiwProviderResource(),
       
   518                          KResourceFilenameRom() );
       
   519 
       
   520     CAiwGenericParamList* list = CAiwGenericParamList::NewLC();
       
   521 
       
   522     CEikMenuPane* eikPane = new( ELeave ) CEikMenuPane( this );
       
   523     CleanupStack::PushL( eikPane );
       
   524 
       
   525     // Constructing eikPane is not compulsory for testing and leads to a memory
       
   526     // leak.
       
   527     //eikPane->ConstructL( NULL, this );
       
   528 
       
   529     CAiwMenuPane* aiwPane = new( ELeave ) CAiwMenuPane( *eikPane, 0 ); //Takes ownership
       
   530     CleanupStack::Pop( eikPane );
       
   531     CleanupStack::PushL( aiwPane );
       
   532 
       
   533     // ResourceFile is empty 
       
   534     delete iProvider->iResourceFileName;
       
   535     
       
   536     iProvider->iResourceFileName = NULL ;
       
   537     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   538     EUNIT_ASSERT( iProvider->iResourceFileName != NULL )
       
   539  
       
   540     // Menu item counter
       
   541     TInt menuPaneCount = eikPane->NumberOfItemsInPane();
       
   542 
       
   543     // test "forbidden" feature: mus NOT allowed, operator variant set to operator
       
   544     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   545                      MusSettingsKeys::EOperatorSpecific );
       
   546     RProperty::Set( NMusSessionInformationApi::KCategoryUid,
       
   547                     NMusSessionInformationApi::KMUSForbidden,
       
   548                     NMusSessionInformationApi::EMUSForbidden );    
       
   549     EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount )
       
   550 
       
   551     // set operator back to standard and allow mus
       
   552     RProperty::Set( NMusSessionInformationApi::KCategoryUid ,
       
   553                     NMusSessionInformationApi::KMUSForbidden ,
       
   554                     NMusSessionInformationApi::EMUSAllowed );
       
   555     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   556                      MusSettingsKeys::EStandard );
       
   557 
       
   558 
       
   559     CMusManager::SetAvailability(MultimediaSharing::ESipOptionsNotSent);
       
   560     menuPaneCount = eikPane->NumberOfItemsInPane();
       
   561     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   562 
       
   563     //EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount + 3 )
       
   564     MUS_CHECK_MEMORY_LEAVE( eikPane->NumberOfItemsInPane() == menuPaneCount + 3 )
       
   565 
       
   566     // set camera support on
       
   567     FeatureManager::CameraSupported();
       
   568     CleanupStack::PopAndDestroy( aiwPane );
       
   569     CleanupStack::PopAndDestroy( list );
       
   570     BaflUtils::DeleteFile( fs, KResourceFilenameRom() );
       
   571 
       
   572     CleanupStack::PopAndDestroy(); // fs
       
   573     
       
   574     }
       
   575 
       
   576 void UT_CMusAiwProvider::UT_CMusAiwProvider_InitializeMenuPaneL5L()
       
   577     {    
       
   578 
       
   579     RFs fs;
       
   580     User::LeaveIfError( fs.Connect() );
       
   581 
       
   582     CleanupClosePushL( fs );
       
   583 
       
   584     BaflUtils::CopyFile( fs, KMusAiwProviderResource(),
       
   585                          KResourceFilenameRom() );
       
   586 
       
   587     CAiwGenericParamList* list = CAiwGenericParamList::NewLC();
       
   588 
       
   589     CEikMenuPane* eikPane = new( ELeave ) CEikMenuPane( this );
       
   590     CleanupStack::PushL( eikPane );
       
   591 
       
   592     // Constructing eikPane is not compulsory for testing and leads to a memory
       
   593     // leak.
       
   594     //eikPane->ConstructL( NULL, this );
       
   595 
       
   596     CAiwMenuPane* aiwPane = new( ELeave ) CAiwMenuPane( *eikPane, 0 ); //Takes ownership
       
   597     CleanupStack::Pop( eikPane );
       
   598     CleanupStack::PushL( aiwPane );
       
   599 
       
   600     // ResourceFile is empty 
       
   601     delete iProvider->iResourceFileName;
       
   602     
       
   603     iProvider->iResourceFileName = NULL ;
       
   604     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   605     EUNIT_ASSERT( iProvider->iResourceFileName != NULL )
       
   606     // Menu item counter
       
   607     TInt menuPaneCount = eikPane->NumberOfItemsInPane();
       
   608 
       
   609     // test "forbidden" feature: mus NOT allowed, operator variant set to operator
       
   610     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   611                      MusSettingsKeys::EOperatorSpecific );
       
   612     RProperty::Set( NMusSessionInformationApi::KCategoryUid,
       
   613                     NMusSessionInformationApi::KMUSForbidden,
       
   614                     NMusSessionInformationApi::EMUSForbidden );    
       
   615     EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount )
       
   616 
       
   617     // set operator back to standard and allow mus
       
   618     RProperty::Set( NMusSessionInformationApi::KCategoryUid ,
       
   619                     NMusSessionInformationApi::KMUSForbidden ,
       
   620                     NMusSessionInformationApi::EMUSAllowed );
       
   621     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   622                      MusSettingsKeys::EStandard );
       
   623 
       
   624 
       
   625     CMusManager::SetAvailability(MultimediaSharing::EMultimediaSharingAvailable);
       
   626     menuPaneCount = eikPane->NumberOfItemsInPane();
       
   627     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   628     //EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount + 3 )        
       
   629 
       
   630     MUS_CHECK_MEMORY_LEAVE( eikPane->NumberOfItemsInPane() == menuPaneCount + 3 )
       
   631 
       
   632 
       
   633 
       
   634 
       
   635     // set camera support on
       
   636     FeatureManager::CameraSupported();
       
   637     CleanupStack::PopAndDestroy( aiwPane );
       
   638     CleanupStack::PopAndDestroy( list );
       
   639     BaflUtils::DeleteFile( fs, KResourceFilenameRom() );
       
   640 
       
   641     CleanupStack::PopAndDestroy(); // fs
       
   642     
       
   643     }
       
   644 
       
   645 void UT_CMusAiwProvider::UT_CMusAiwProvider_InitializeMenuPaneL6L()
       
   646     {    
       
   647 
       
   648     RFs fs;
       
   649     User::LeaveIfError( fs.Connect() );
       
   650 
       
   651     CleanupClosePushL( fs );
       
   652 
       
   653     BaflUtils::CopyFile( fs, KMusAiwProviderResource(),
       
   654                          KResourceFilenameRom() );
       
   655 
       
   656     CAiwGenericParamList* list = CAiwGenericParamList::NewLC();
       
   657 
       
   658     CEikMenuPane* eikPane = new( ELeave ) CEikMenuPane( this );
       
   659     CleanupStack::PushL( eikPane );
       
   660 
       
   661     // Constructing eikPane is not compulsory for testing and leads to a memory
       
   662     // leak.
       
   663     //eikPane->ConstructL( NULL, this );
       
   664 
       
   665     CAiwMenuPane* aiwPane = new( ELeave ) CAiwMenuPane( *eikPane, 0 ); //Takes ownership
       
   666     CleanupStack::Pop( eikPane );
       
   667     CleanupStack::PushL( aiwPane );
       
   668 
       
   669     // ResourceFile is empty 
       
   670     delete iProvider->iResourceFileName;
       
   671     
       
   672     iProvider->iResourceFileName = NULL ;
       
   673     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   674     EUNIT_ASSERT( iProvider->iResourceFileName != NULL )
       
   675     // Menu item counter
       
   676     TInt menuPaneCount = eikPane->NumberOfItemsInPane();
       
   677 
       
   678     // test "forbidden" feature: mus NOT allowed, operator variant set to operator
       
   679     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   680                      MusSettingsKeys::EOperatorSpecific );
       
   681     RProperty::Set( NMusSessionInformationApi::KCategoryUid,
       
   682                     NMusSessionInformationApi::KMUSForbidden,
       
   683                     NMusSessionInformationApi::EMUSForbidden );    
       
   684     EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount )
       
   685 
       
   686     // set operator back to standard and allow mus
       
   687     RProperty::Set( NMusSessionInformationApi::KCategoryUid ,
       
   688                     NMusSessionInformationApi::KMUSForbidden ,
       
   689                     NMusSessionInformationApi::EMUSAllowed );
       
   690     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   691                      MusSettingsKeys::EStandard );
       
   692 
       
   693     // Cases  for "camera not supported"!
       
   694     FeatureManager::CameraNotSupported();
       
   695     CMusManager::SetAvailability(MultimediaSharing::EMultimediaSharingAvailable);
       
   696     menuPaneCount = eikPane->NumberOfItemsInPane();
       
   697     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   698 
       
   699     
       
   700     //EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount + 1 )     
       
   701     MUS_CHECK_MEMORY_LEAVE( eikPane->NumberOfItemsInPane() == menuPaneCount + 1 )    
       
   702 
       
   703     // set camera support on
       
   704     FeatureManager::CameraSupported();
       
   705     CleanupStack::PopAndDestroy( aiwPane );
       
   706     CleanupStack::PopAndDestroy( list );
       
   707     BaflUtils::DeleteFile( fs, KResourceFilenameRom() );
       
   708 
       
   709     CleanupStack::PopAndDestroy(); // fs
       
   710     
       
   711     }
       
   712 
       
   713 
       
   714 void UT_CMusAiwProvider::UT_CMusAiwProvider_InitializeMenuPaneL7L()
       
   715     {    
       
   716 
       
   717     RFs fs;
       
   718     User::LeaveIfError( fs.Connect() );
       
   719 
       
   720     CleanupClosePushL( fs );
       
   721 
       
   722     BaflUtils::CopyFile( fs, KMusAiwProviderResource(),
       
   723                          KResourceFilenameRom() );
       
   724 
       
   725     CAiwGenericParamList* list = CAiwGenericParamList::NewLC();
       
   726 
       
   727     CEikMenuPane* eikPane = new( ELeave ) CEikMenuPane( this );
       
   728     CleanupStack::PushL( eikPane );
       
   729 
       
   730     // Constructing eikPane is not compulsory for testing and leads to a memory
       
   731     // leak.
       
   732     //eikPane->ConstructL( NULL, this );
       
   733 
       
   734     CAiwMenuPane* aiwPane = new( ELeave ) CAiwMenuPane( *eikPane, 0 ); //Takes ownership
       
   735     CleanupStack::Pop( eikPane );
       
   736     CleanupStack::PushL( aiwPane );
       
   737 
       
   738     // ResourceFile is empty 
       
   739     delete iProvider->iResourceFileName;
       
   740     
       
   741     iProvider->iResourceFileName = NULL ;
       
   742     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   743     EUNIT_ASSERT( iProvider->iResourceFileName != NULL )
       
   744     // Menu item counter
       
   745     TInt menuPaneCount = eikPane->NumberOfItemsInPane();
       
   746 
       
   747     // test "forbidden" feature: mus NOT allowed, operator variant set to operator
       
   748     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   749                      MusSettingsKeys::EOperatorSpecific );
       
   750     RProperty::Set( NMusSessionInformationApi::KCategoryUid,
       
   751                     NMusSessionInformationApi::KMUSForbidden,
       
   752                     NMusSessionInformationApi::EMUSForbidden );    
       
   753     EUNIT_ASSERT( eikPane->NumberOfItemsInPane() == menuPaneCount )
       
   754 
       
   755     // set operator back to standard and allow mus
       
   756     RProperty::Set( NMusSessionInformationApi::KCategoryUid ,
       
   757                     NMusSessionInformationApi::KMUSForbidden ,
       
   758                     NMusSessionInformationApi::EMUSAllowed );
       
   759     MultimediaSharingSettings::SetOperatorVariantSettingL(
       
   760                      MusSettingsKeys::EStandard );
       
   761 
       
   762     // Cases for "Mush not supported"
       
   763     FeatureManager::MultimediaSharingNotSupported();
       
   764     CMusManager::SetAvailability( MultimediaSharing::EMultimediaSharingAvailable );
       
   765     menuPaneCount = eikPane->NumberOfItemsInPane();
       
   766     iProvider->InitializeMenuPaneL( *aiwPane, 0, 0, *list );
       
   767     MUS_CHECK_MEMORY_LEAVE( eikPane->NumberOfItemsInPane() == menuPaneCount )
       
   768     FeatureManager::MultimediaSharingSupported();
       
   769 
       
   770     // set camera support on
       
   771     FeatureManager::CameraSupported();
       
   772     CleanupStack::PopAndDestroy( aiwPane );
       
   773     CleanupStack::PopAndDestroy( list );
       
   774     BaflUtils::DeleteFile( fs, KResourceFilenameRom() );
       
   775 
       
   776     CleanupStack::PopAndDestroy(); // fs
       
   777     
       
   778     }
       
   779 	
       
   780 	
       
   781 // -----------------------------------------------------------------------------
       
   782 //
       
   783 // -----------------------------------------------------------------------------
       
   784 //
       
   785 void UT_CMusAiwProvider::UT_CMusAiwProvider_HandleMenuCmdLL()
       
   786     {
       
   787     CAiwGenericParamList* pl = CAiwGenericParamList::NewLC();
       
   788 
       
   789     EUNIT_ASSERT( CMusManager::UseCase() == MultimediaSharing::EMusContinue )
       
   790 
       
   791     iProvider->HandleMenuCmdL( EMusCommandLiveShare, *pl, *pl, 0, this );
       
   792     EUNIT_ASSERT( CMusManager::UseCase() == MultimediaSharing::EMusLiveVideo )
       
   793 
       
   794     iProvider->HandleMenuCmdL( EMusCommandClipShare, *pl, *pl, 0, this );
       
   795     EUNIT_ASSERT( CMusManager::UseCase() == MultimediaSharing::EMusClipVideo )
       
   796 
       
   797     iProvider->HandleMenuCmdL( EMusCommandImageShare, *pl, *pl, 0, this );
       
   798     EUNIT_ASSERT( CMusManager::UseCase() == MultimediaSharing::EMusStillImage )
       
   799 
       
   800     iProvider->HandleMenuCmdL( EMusCommandContinue, *pl, *pl, 0, this );
       
   801     EUNIT_ASSERT( CMusManager::UseCase() == MultimediaSharing::EMusContinue )
       
   802 
       
   803     CMusManager::SetStartError(
       
   804             ( MultimediaSharing::TMusAvailabilityStatus ) KErrNotFound );
       
   805 
       
   806     iProvider->HandleMenuCmdL( EMusCommandLiveShare, *pl, *pl, 0, this );
       
   807     EUNIT_ASSERT( CMusManager::UseCase() == MultimediaSharing::EMusContinue )
       
   808 
       
   809     iProvider->HandleMenuCmdL( EMusCommandClipShare, *pl, *pl, 0, this );
       
   810     EUNIT_ASSERT( CMusManager::UseCase() == MultimediaSharing::EMusContinue )
       
   811 
       
   812     iProvider->HandleMenuCmdL( EMusCommandImageShare, *pl, *pl, 0, this );
       
   813     EUNIT_ASSERT( CMusManager::UseCase() == MultimediaSharing::EMusContinue )
       
   814 
       
   815     iProvider->HandleMenuCmdL( EMusCommandContinue, *pl, *pl, 0, this );
       
   816     EUNIT_ASSERT( CMusManager::UseCase() == MultimediaSharing::EMusContinue )
       
   817 
       
   818     // revert it back to original state
       
   819     CMusManager::SetStartError(
       
   820             ( MultimediaSharing::TMusAvailabilityStatus ) KErrNone );
       
   821 
       
   822     // Try with unknown command, should leave
       
   823 
       
   824     TRAPD( error, iProvider->HandleMenuCmdL( 500, *pl, *pl, 0, this ) );
       
   825     if ( error == KErrNoMemory )
       
   826         {
       
   827         User::Leave( error );
       
   828         }
       
   829     EUNIT_ASSERT( error == KErrArgument )
       
   830     EUNIT_ASSERT( CMusManager::UseCase() == MultimediaSharing::EMusContinue )
       
   831 
       
   832     CleanupStack::PopAndDestroy( pl );
       
   833 
       
   834     }
       
   835 
       
   836 
       
   837 // -----------------------------------------------------------------------------
       
   838 //
       
   839 // -----------------------------------------------------------------------------
       
   840 //
       
   841 void UT_CMusAiwProvider::UT_CMusAiwProvider_ApplicationRunningLL()
       
   842     {
       
   843     // Stub returns EFalse as default
       
   844     EUNIT_ASSERT( !iProvider->ApplicationRunningL() )
       
   845 
       
   846     // Use stub to mimic the existence of application
       
   847     TApaTask::iApplicationExist = ETrue;
       
   848 
       
   849     EUNIT_ASSERT( iProvider->ApplicationRunningL() )
       
   850     
       
   851     // Revert back to old state
       
   852     TApaTask::iApplicationExist = EFalse;
       
   853     }
       
   854 
       
   855 
       
   856 // -----------------------------------------------------------------------------
       
   857 //
       
   858 // -----------------------------------------------------------------------------
       
   859 //
       
   860 void UT_CMusAiwProvider::UT_CMusAiwProvider_ShowErrorNoteLL()
       
   861     {
       
   862     // Dummy test is enough ShowErrorNoteL does not contain any branches,
       
   863     // does not return anything and does not have any side effects that could
       
   864     // be asserted
       
   865     iProvider->iIsWarning = ETrue ;
       
   866     iProvider->ShowErrorNoteL( MultimediaSharing::EErrCallOnHold );
       
   867     iProvider->iIsWarning = EFalse ;
       
   868     iProvider->ShowErrorNoteL( MultimediaSharing::EErrCallOnHold );
       
   869 
       
   870     //Error Case
       
   871     iProvider->ShowErrorNoteL( -1 ); // 100 should not be available    
       
   872     }
       
   873 
       
   874 
       
   875 // -----------------------------------------------------------------------------
       
   876 //
       
   877 // -----------------------------------------------------------------------------
       
   878 //
       
   879 void UT_CMusAiwProvider::UT_CMusAiwProvider_ErrorNoteTextLCL()
       
   880     {
       
   881     HBufC* errorNote = NULL;
       
   882 
       
   883     // It is enough to test with whatever error code since handling is same
       
   884     // for all.
       
   885     errorNote = iProvider->ErrorNoteTextLC( MultimediaSharing::EErrCallOnHold );
       
   886     
       
   887     // NULL TEST, old way not support this comparistaion. 
       
   888     // Maybe to hard byte compare needed!
       
   889     //EUNIT_ASSERT( *errorNote == KMusOnHold() )
       
   890     
       
   891     CleanupStack::PopAndDestroy( errorNote );
       
   892 
       
   893     }
       
   894 
       
   895 
       
   896 // -----------------------------------------------------------------------------
       
   897 //
       
   898 // -----------------------------------------------------------------------------
       
   899 //
       
   900 void UT_CMusAiwProvider::UT_CMusAiwProvider_ErrorNoteText8LL()
       
   901     {
       
   902     RFs fs;
       
   903     User::LeaveIfError( fs.Connect() );
       
   904     CleanupClosePushL( fs );
       
   905 
       
   906     RResourceFile resourceFile;
       
   907     resourceFile.OpenL( fs, KMusAiwProviderResource() );
       
   908     CleanupClosePushL( resourceFile );
       
   909 
       
   910     HBufC8* errorNote = NULL;
       
   911 
       
   912     errorNote = iProvider->ErrorNoteText8L( MultimediaSharing::EErrCallOnHold,
       
   913                                             resourceFile );
       
   914     CleanupStack::PushL( errorNote );
       
   915     EUNIT_ASSERT( *errorNote == KMusOnHold8() )
       
   916     CleanupStack::PopAndDestroy( errorNote );
       
   917 
       
   918 
       
   919     errorNote = iProvider->ErrorNoteText8L( MultimediaSharing::EErrNetwork,
       
   920                                             resourceFile );
       
   921     CleanupStack::PushL( errorNote );
       
   922     EUNIT_ASSERT( *errorNote == KMusNetworkIncompatible8() )
       
   923     CleanupStack::PopAndDestroy( errorNote );
       
   924 
       
   925 
       
   926     errorNote = iProvider->ErrorNoteText8L(
       
   927                             MultimediaSharing::EErrConferenceCall,
       
   928                             resourceFile );
       
   929     CleanupStack::PushL( errorNote );
       
   930     EUNIT_ASSERT( *errorNote == KMusConferenceCall8() )
       
   931     CleanupStack::PopAndDestroy( errorNote );
       
   932 
       
   933 
       
   934     errorNote = iProvider->ErrorNoteText8L(
       
   935                             MultimediaSharing::ESipOptionsNotCapable,
       
   936                             resourceFile );
       
   937     CleanupStack::PushL( errorNote );
       
   938     EUNIT_ASSERT( *errorNote == KMusRecipientIncapable8() )
       
   939     CleanupStack::PopAndDestroy( errorNote );
       
   940 
       
   941 
       
   942     errorNote = iProvider->ErrorNoteText8L(
       
   943                             MultimediaSharing::EErrSipRegistration,
       
   944                             resourceFile );
       
   945     CleanupStack::PushL( errorNote );
       
   946     EUNIT_ASSERT( *errorNote == KMusNoReg8() )
       
   947     CleanupStack::PopAndDestroy( errorNote );
       
   948 
       
   949 
       
   950     errorNote = iProvider->ErrorNoteText8L(
       
   951                             MultimediaSharing::EErrNoActiveCall,
       
   952                             resourceFile );
       
   953     CleanupStack::PushL( errorNote );    
       
   954     EUNIT_ASSERT( *errorNote == KMusGeneral() )
       
   955     CleanupStack::PopAndDestroy( errorNote );
       
   956 
       
   957     CleanupStack::PopAndDestroy(); // resourceFile
       
   958 
       
   959     CleanupStack::PopAndDestroy(); // fs
       
   960     }
       
   961 
       
   962 
       
   963 // -----------------------------------------------------------------------------
       
   964 //
       
   965 // -----------------------------------------------------------------------------
       
   966 //
       
   967 void UT_CMusAiwProvider::UT_ImplementationGroupProxyL()
       
   968     {
       
   969     // Dummy test just to raise coverage
       
   970     TInt tableCount;
       
   971     ImplementationGroupProxy( tableCount );
       
   972     }
       
   973 
       
   974 
       
   975 
       
   976 
       
   977 //  TEST TABLE
       
   978 
       
   979 EUNIT_BEGIN_TEST_TABLE(
       
   980     UT_CMusAiwProvider,
       
   981     "CMusAiwProvider",
       
   982     "UT_CMusAiwProvider" )
       
   983 
       
   984 EUNIT_TEST(
       
   985     "InitialiseL - test",
       
   986     "CMusAiwProvider",
       
   987     "InitialiseL",
       
   988     "FUNCTIONALITY",
       
   989     SetupL, UT_CMusAiwProvider_InitialiseLL, Teardown)
       
   990 
       
   991 EUNIT_TEST(
       
   992     "HandleServiceCmdL - test",
       
   993     "CMusAiwProvider",
       
   994     "HandleServiceCmdL",
       
   995     "FUNCTIONALITY",
       
   996     SetupL, UT_CMusAiwProvider_HandleServiceCmdLL, Teardown)
       
   997 
       
   998 EUNIT_TEST(
       
   999     "InitializeMenuPaneL - test",
       
  1000     "CMusAiwProvider",
       
  1001     "InitializeMenuPaneL",
       
  1002     "FUNCTIONALITY",
       
  1003     SetupL, UT_CMusAiwProvider_InitializeMenuPaneLL, Teardown)
       
  1004 
       
  1005 EUNIT_TEST(
       
  1006     "InitializeMenuPaneL - test2",
       
  1007     "CMusAiwProvider",
       
  1008     "InitializeMenuPaneL",
       
  1009     "FUNCTIONALITY",
       
  1010     SetupL, UT_CMusAiwProvider_InitializeMenuPaneL2L, Teardown)
       
  1011     
       
  1012 EUNIT_TEST(
       
  1013     "InitializeMenuPaneL - test3",
       
  1014     "CMusAiwProvider",
       
  1015     "InitializeMenuPaneL",
       
  1016     "FUNCTIONALITY",
       
  1017     SetupL, UT_CMusAiwProvider_InitializeMenuPaneL3L, Teardown)
       
  1018 EUNIT_TEST(
       
  1019     "InitializeMenuPaneL - test4",
       
  1020     "CMusAiwProvider",
       
  1021     "InitializeMenuPaneL",
       
  1022     "FUNCTIONALITY",
       
  1023     SetupL, UT_CMusAiwProvider_InitializeMenuPaneL4L, Teardown)
       
  1024 EUNIT_TEST(
       
  1025     "InitializeMenuPaneL - test5",
       
  1026     "CMusAiwProvider",
       
  1027     "InitializeMenuPaneL",
       
  1028     "FUNCTIONALITY",
       
  1029     SetupL, UT_CMusAiwProvider_InitializeMenuPaneL5L, Teardown)
       
  1030 EUNIT_TEST(
       
  1031     "InitializeMenuPaneL - test6",
       
  1032     "CMusAiwProvider",
       
  1033     "InitializeMenuPaneL",
       
  1034     "FUNCTIONALITY",
       
  1035     SetupL, UT_CMusAiwProvider_InitializeMenuPaneL6L, Teardown)
       
  1036     
       
  1037 EUNIT_TEST(
       
  1038     "InitializeMenuPaneL - test7",
       
  1039     "CMusAiwProvider",
       
  1040     "InitializeMenuPaneL",
       
  1041     "FUNCTIONALITY",
       
  1042     SetupL, UT_CMusAiwProvider_InitializeMenuPaneL7L, Teardown)
       
  1043 	     
       
  1044 EUNIT_TEST(
       
  1045     "HandleMenuCmdL - test",
       
  1046     "CMusAiwProvider",
       
  1047     "HandleMenuCmdL",
       
  1048     "FUNCTIONALITY",
       
  1049     SetupL, UT_CMusAiwProvider_HandleMenuCmdLL, Teardown)
       
  1050 
       
  1051 EUNIT_TEST(
       
  1052     "ApplicationRunningL - test",
       
  1053     "CMusAiwProvider",
       
  1054     "ApplicationRunningL",
       
  1055     "FUNCTIONALITY",
       
  1056     SetupL, UT_CMusAiwProvider_ApplicationRunningLL, Teardown)
       
  1057 
       
  1058 EUNIT_TEST(
       
  1059     "ShowErrorNoteL - test",
       
  1060     "CMusAiwProvider",
       
  1061     "ShowErrorNoteL",
       
  1062     "FUNCTIONALITY",
       
  1063     SetupL, UT_CMusAiwProvider_ShowErrorNoteLL, Teardown)
       
  1064 
       
  1065 EUNIT_TEST(
       
  1066     "ErrorNoteTextLC - test",
       
  1067     "CMusAiwProvider",
       
  1068     "ErrorNoteTextLC",
       
  1069     "FUNCTIONALITY",
       
  1070     SetupL, UT_CMusAiwProvider_ErrorNoteTextLCL, Teardown)
       
  1071 
       
  1072 EUNIT_TEST(
       
  1073     "ErrorNoteText8L - test",
       
  1074     "CMusAiwProvider",
       
  1075     "ErrorNoteText8L",
       
  1076     "FUNCTIONALITY",
       
  1077     SetupL, UT_CMusAiwProvider_ErrorNoteText8LL, Teardown)
       
  1078 
       
  1079 EUNIT_TEST(
       
  1080     "ImplementationGroupProxy",
       
  1081     "CMusAiwProvider",
       
  1082     "ImplementationGroupProxy",
       
  1083     "FUNCTIONALITY",
       
  1084     SetupL, UT_ImplementationGroupProxyL, Teardown)
       
  1085 
       
  1086 EUNIT_END_TEST_TABLE
       
  1087