mmsharing/mmshengine/tsrc/ut_engine/src/ut_musengtelephoneutils.cpp
changeset 15 ccd8e69b5392
parent 2 b31261fd4e04
child 20 e8be2c2e049d
child 22 496ad160a278
equal deleted inserted replaced
2:b31261fd4e04 15:ccd8e69b5392
     1 /*
       
     2 * Copyright (c) 2009 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 
       
    19 //  INTERNAL INCLUDES
       
    20 #include "telephonyaudiorouting.h"
       
    21 #include "ut_musengtelephoneutils.h"
       
    22 #include "musengstubs.h"
       
    23 #include "musengtestdefs.h"
       
    24 
       
    25 #include "musengtelephoneutils.h"
       
    26 
       
    27 //  SYSTEM INCLUDES
       
    28 #include <digia/eunit/eunitmacros.h>
       
    29 #include <centralrepository.h>
       
    30 
       
    31 
       
    32 
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 //
       
    36 // -----------------------------------------------------------------------------
       
    37 //
       
    38 UT_CMusEngTelephoneUtils* UT_CMusEngTelephoneUtils::NewL()
       
    39     {
       
    40     UT_CMusEngTelephoneUtils* self = UT_CMusEngTelephoneUtils::NewLC();
       
    41     CleanupStack::Pop( self );
       
    42     return self;
       
    43     }
       
    44 
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 UT_CMusEngTelephoneUtils* UT_CMusEngTelephoneUtils::NewLC()
       
    51     {
       
    52     UT_CMusEngTelephoneUtils* self = new( ELeave ) UT_CMusEngTelephoneUtils();
       
    53     CleanupStack::PushL( self );
       
    54     self->ConstructL();
       
    55     return self;
       
    56     }
       
    57 
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 UT_CMusEngTelephoneUtils::~UT_CMusEngTelephoneUtils()
       
    64     {
       
    65     // NOP
       
    66     }
       
    67 
       
    68 
       
    69 // -----------------------------------------------------------------------------
       
    70 // Default constructor
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 UT_CMusEngTelephoneUtils::UT_CMusEngTelephoneUtils()
       
    74     {
       
    75     // NOP
       
    76     }
       
    77 
       
    78 
       
    79 // -----------------------------------------------------------------------------
       
    80 // Second phase construct
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 void UT_CMusEngTelephoneUtils::ConstructL()
       
    84     {
       
    85     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
       
    86     // It generates the test case table.
       
    87     CEUnitTestSuiteClass::ConstructL();
       
    88     }
       
    89     
       
    90 
       
    91 // -----------------------------------------------------------------------------
       
    92 //
       
    93 // -----------------------------------------------------------------------------
       
    94 //
       
    95 void UT_CMusEngTelephoneUtils::SetupL()
       
    96     {
       
    97     iObserver = new( ELeave ) CMusEngObserverStub;
       
    98     iTelephoneUtils = CMusEngTelephoneUtils::NewL();
       
    99     }
       
   100 
       
   101 
       
   102 // -----------------------------------------------------------------------------
       
   103 //
       
   104 // -----------------------------------------------------------------------------
       
   105 //
       
   106 void UT_CMusEngTelephoneUtils::Teardown()
       
   107     {
       
   108     delete iObserver;
       
   109     delete iTelephoneUtils;
       
   110     }
       
   111 
       
   112 
       
   113 
       
   114 // TEST CASES
       
   115 
       
   116 
       
   117 
       
   118     
       
   119 
       
   120 // -----------------------------------------------------------------------------
       
   121 //
       
   122 // -----------------------------------------------------------------------------
       
   123 //
       
   124 void UT_CMusEngTelephoneUtils::UT_NewLL()
       
   125     {
       
   126     EUNIT_ASSERT( iTelephoneUtils );
       
   127     }
       
   128 
       
   129 
       
   130 // -----------------------------------------------------------------------------
       
   131 //
       
   132 // -----------------------------------------------------------------------------
       
   133 //
       
   134 void UT_CMusEngTelephoneUtils::UT_AudioRoutingCanBeChangedL()
       
   135     {
       
   136     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   137                   CTelephonyAudioRouting::ENotActive;
       
   138     EUNIT_ASSERT( iTelephoneUtils->AudioRoutingCanBeChanged() );
       
   139     
       
   140     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   141                   CTelephonyAudioRouting::ENone;
       
   142     EUNIT_ASSERT( iTelephoneUtils->AudioRoutingCanBeChanged() );
       
   143     
       
   144     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   145                   CTelephonyAudioRouting::EHandset;
       
   146     EUNIT_ASSERT( iTelephoneUtils->AudioRoutingCanBeChanged() );
       
   147     
       
   148     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   149                   CTelephonyAudioRouting::ELoudspeaker;
       
   150     EUNIT_ASSERT( iTelephoneUtils->AudioRoutingCanBeChanged() );
       
   151     
       
   152     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   153                   CTelephonyAudioRouting::EWiredAudioAccessory;
       
   154     EUNIT_ASSERT( !iTelephoneUtils->AudioRoutingCanBeChanged() );
       
   155     
       
   156     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   157                   CTelephonyAudioRouting::EBTAudioAccessory;
       
   158     EUNIT_ASSERT( !iTelephoneUtils->AudioRoutingCanBeChanged() );
       
   159     
       
   160     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   161                   CTelephonyAudioRouting::ETTY;
       
   162     EUNIT_ASSERT( !iTelephoneUtils->AudioRoutingCanBeChanged() );
       
   163             
       
   164     }
       
   165     
       
   166 
       
   167 // -----------------------------------------------------------------------------
       
   168 //
       
   169 // -----------------------------------------------------------------------------
       
   170 //
       
   171 void UT_CMusEngTelephoneUtils::UT_LoudspeakerLL()
       
   172     {
       
   173     // Precondition of test
       
   174     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   175                   CTelephonyAudioRouting::EHandset;
       
   176     
       
   177     // Set loudspeaker on, succeeds
       
   178     iTelephoneUtils->LoudspeakerL( ETrue, ETrue );
       
   179     EUNIT_ASSERT( iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput ==
       
   180                   CTelephonyAudioRouting::ELoudspeaker );
       
   181     EUNIT_ASSERT( iTelephoneUtils->iTelephonyAudioRouting->iShowNoteMode ==
       
   182                   EFalse );
       
   183     EUNIT_ASSERT( iTelephoneUtils->iShowDialog == ETrue );
       
   184     
       
   185     // Change conditions
       
   186     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   187                   CTelephonyAudioRouting::EWiredAudioAccessory;              
       
   188     
       
   189     // Try to set loudspeaker on, fails because current set is not handset
       
   190     iTelephoneUtils->LoudspeakerL( ETrue, ETrue );
       
   191     EUNIT_ASSERT( iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput ==
       
   192                   CTelephonyAudioRouting::EWiredAudioAccessory );  
       
   193     
       
   194     // Change conditions
       
   195     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   196                   CTelephonyAudioRouting::ELoudspeaker;           
       
   197     iTelephoneUtils->iAudioOutputAtStartup =
       
   198                   CTelephonyAudioRouting::ELoudspeaker;  
       
   199                               
       
   200     // Try to set loudspeaker off, goes to handset
       
   201     iTelephoneUtils->LoudspeakerL( EFalse, ETrue );   
       
   202     EUNIT_ASSERT( iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput ==
       
   203                   CTelephonyAudioRouting::EHandset );  
       
   204     
       
   205     // Change conditions
       
   206     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   207                   CTelephonyAudioRouting::ELoudspeaker;           
       
   208     iTelephoneUtils->iAudioOutputAtStartup =
       
   209                   CTelephonyAudioRouting::EWiredAudioAccessory; 
       
   210     
       
   211     // Try to set loudspeaker off, goes to wired
       
   212     iTelephoneUtils->LoudspeakerL( EFalse, ETrue );   
       
   213     EUNIT_ASSERT( iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput ==
       
   214                   CTelephonyAudioRouting::EWiredAudioAccessory ); 
       
   215     }
       
   216 
       
   217 
       
   218 // -----------------------------------------------------------------------------
       
   219 //
       
   220 // -----------------------------------------------------------------------------
       
   221 //
       
   222 void UT_CMusEngTelephoneUtils::UT_IsLoudSpeakerEnabledL()
       
   223     {
       
   224     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   225                                         CTelephonyAudioRouting::ELoudspeaker;
       
   226     EUNIT_ASSERT( iTelephoneUtils->IsLoudSpeakerEnabled() );
       
   227     
       
   228     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   229                                         CTelephonyAudioRouting::EHandset;
       
   230     EUNIT_ASSERT( !iTelephoneUtils->IsLoudSpeakerEnabled() );
       
   231     }
       
   232 
       
   233 
       
   234 // -----------------------------------------------------------------------------
       
   235 //
       
   236 // -----------------------------------------------------------------------------
       
   237 //
       
   238 void UT_CMusEngTelephoneUtils::UT_GetVolumeLL()
       
   239     {
       
   240     TInt volume = 0;
       
   241     
       
   242     volume = iTelephoneUtils->GetVolumeL();
       
   243     EUNIT_ASSERT( volume == 4 );
       
   244     
       
   245     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   246                                         CTelephonyAudioRouting::ELoudspeaker;
       
   247     iTelephoneUtils->iRepository->Set( KTelIncallLoudspeakerVolume, 8 );
       
   248     
       
   249     volume = iTelephoneUtils->GetVolumeL();
       
   250     EUNIT_ASSERT( volume == 8 );
       
   251     
       
   252     }
       
   253 
       
   254 
       
   255 // -----------------------------------------------------------------------------
       
   256 //
       
   257 // -----------------------------------------------------------------------------
       
   258 //
       
   259 void UT_CMusEngTelephoneUtils::UT_SetVolumeLL()
       
   260     {
       
   261     TInt handsetVolume = 0;
       
   262     TInt loudSpeakerVolume = 0;
       
   263     
       
   264     // Try with current value, does nothing
       
   265     iTelephoneUtils->SetVolumeL( 4 );
       
   266     
       
   267     iTelephoneUtils->iRepository->Get( KTelIncallEarVolume, 
       
   268                                        handsetVolume );
       
   269     EUNIT_ASSERT( handsetVolume == 4 );
       
   270     
       
   271     // Try to change handset volume
       
   272     iTelephoneUtils->SetVolumeL( 5 );
       
   273     
       
   274     iTelephoneUtils->iRepository->Get( KTelIncallEarVolume, 
       
   275                                        handsetVolume );
       
   276     EUNIT_ASSERT( handsetVolume == 5 );
       
   277     
       
   278     iTelephoneUtils->iRepository->Get( KTelIncallLoudspeakerVolume, 
       
   279                                        loudSpeakerVolume );
       
   280     EUNIT_ASSERT( loudSpeakerVolume == 4 );
       
   281     
       
   282     // Try to change loudspeaker volume
       
   283     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput =
       
   284                                         CTelephonyAudioRouting::ELoudspeaker;
       
   285     
       
   286     iTelephoneUtils->SetVolumeL( 3 );
       
   287     
       
   288     iTelephoneUtils->iRepository->Get( KTelIncallEarVolume, 
       
   289                                        handsetVolume );
       
   290     EUNIT_ASSERT( handsetVolume == 5 );
       
   291     
       
   292     iTelephoneUtils->iRepository->Get( KTelIncallLoudspeakerVolume, 
       
   293                                        loudSpeakerVolume );
       
   294     EUNIT_ASSERT( loudSpeakerVolume == 3 );
       
   295     
       
   296     // Check that volume gets validated
       
   297     
       
   298     iTelephoneUtils->SetVolumeL( 100 );
       
   299     
       
   300     iTelephoneUtils->iRepository->Get( KTelIncallLoudspeakerVolume, 
       
   301                                        loudSpeakerVolume );
       
   302     EUNIT_ASSERT( loudSpeakerVolume == 10 );
       
   303     }
       
   304 
       
   305 
       
   306 // -----------------------------------------------------------------------------
       
   307 //
       
   308 // -----------------------------------------------------------------------------
       
   309 //
       
   310 void UT_CMusEngTelephoneUtils::UT_AvailableOutputsChangedL()
       
   311     {
       
   312     // At the monent function is expected to do nothing so just 
       
   313     // call it to avoid coverage loss.
       
   314     iTelephoneUtils->AvailableOutputsChanged(  
       
   315                             *iTelephoneUtils->iTelephonyAudioRouting );
       
   316     }
       
   317 
       
   318 
       
   319 // -----------------------------------------------------------------------------
       
   320 //
       
   321 // -----------------------------------------------------------------------------
       
   322 //
       
   323 void UT_CMusEngTelephoneUtils::UT_OutputChangedL()
       
   324     {
       
   325     iTelephoneUtils->iAudioOutputAtStartup = CTelephonyAudioRouting::EHandset;
       
   326     
       
   327     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput = 
       
   328                                         CTelephonyAudioRouting::ELoudspeaker;
       
   329     
       
   330     iTelephoneUtils->OutputChanged( *iTelephoneUtils->iTelephonyAudioRouting );
       
   331                                                                 
       
   332     EUNIT_ASSERT_EQUALS( iTelephoneUtils->iAudioOutputAtStartup, 
       
   333                          CTelephonyAudioRouting::ELoudspeaker )
       
   334     
       
   335     // Test observer
       
   336     
       
   337     iTelephoneUtils->SetAudioRoutingObserver( iObserver );
       
   338     
       
   339     iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput = 
       
   340                                         CTelephonyAudioRouting::EHandset;
       
   341     
       
   342     iTelephoneUtils->OutputChanged( *iTelephoneUtils->iTelephonyAudioRouting );
       
   343                                                                 
       
   344     EUNIT_ASSERT_EQUALS( iTelephoneUtils->iAudioOutputAtStartup,
       
   345                          CTelephonyAudioRouting::EHandset )
       
   346     
       
   347     EUNIT_ASSERT( iObserver->iAudioRoutingChangedCalled )
       
   348     }
       
   349 
       
   350 
       
   351 // -----------------------------------------------------------------------------
       
   352 //
       
   353 // -----------------------------------------------------------------------------
       
   354 //
       
   355 void UT_CMusEngTelephoneUtils::UT_SetOutputCompleteL()
       
   356     {
       
   357     iTelephoneUtils->SetAudioRoutingObserver( iObserver );
       
   358     
       
   359     // Setoutput fails
       
   360     iTelephoneUtils->SetOutputComplete( 
       
   361                             *iTelephoneUtils->iTelephonyAudioRouting,
       
   362                             KErrGeneral );
       
   363                             
       
   364     EUNIT_ASSERT( !iObserver->iAudioRoutingChangedCalled )
       
   365     
       
   366     // Setoutput succesful and note is shown by audiorouting api
       
   367     // There's already next pending setoutput for which we are going to
       
   368     // show note -> that cannot be forgotten
       
   369     iTelephoneUtils->iShowDialog = ETrue;
       
   370     iTelephoneUtils->iTelephonyAudioRouting->SetShowNote( ETrue );
       
   371     iTelephoneUtils->SetOutputComplete( 
       
   372                             *iTelephoneUtils->iTelephonyAudioRouting,
       
   373                             KErrNone );
       
   374     EUNIT_ASSERT( iObserver->iAudioRoutingChangedCalled == ETrue )
       
   375     EUNIT_ASSERT( iObserver->iShowNote == EFalse )
       
   376     EUNIT_ASSERT( iTelephoneUtils->iShowDialog == ETrue )
       
   377     
       
   378     iObserver->Reset();
       
   379     
       
   380     // Setoutput succesful and note is shown by us
       
   381     iTelephoneUtils->iTelephonyAudioRouting->SetShowNote( EFalse );
       
   382     iTelephoneUtils->SetOutputComplete( 
       
   383                             *iTelephoneUtils->iTelephonyAudioRouting,
       
   384                             KErrNone );
       
   385     EUNIT_ASSERT( iObserver->iAudioRoutingChangedCalled == ETrue )
       
   386     EUNIT_ASSERT( iObserver->iShowNote == ETrue )
       
   387     EUNIT_ASSERT( iTelephoneUtils->iShowDialog == EFalse )
       
   388     }
       
   389 
       
   390 
       
   391 // -----------------------------------------------------------------------------
       
   392 //
       
   393 // -----------------------------------------------------------------------------
       
   394 //
       
   395 void UT_CMusEngTelephoneUtils::UT_ValidateVolumeL()
       
   396     {
       
   397     EUNIT_ASSERT( iTelephoneUtils->ValidateVolume( 0 ) == 0 );
       
   398     EUNIT_ASSERT( iTelephoneUtils->ValidateVolume( 11 ) == 10 );
       
   399     EUNIT_ASSERT( iTelephoneUtils->ValidateVolume( 5 ) == 5 );
       
   400     }
       
   401 
       
   402 
       
   403 // -----------------------------------------------------------------------------
       
   404 // We cannot assert anything after destruction. All we can do is to make
       
   405 // such condition before destruction that coverage will be achieved.
       
   406 // -----------------------------------------------------------------------------
       
   407 //
       
   408 void UT_CMusEngTelephoneUtils::UT_DestructorL()
       
   409     {
       
   410     // Simulate that 2nd phase construction has not succeeded
       
   411     CMusEngTelephoneUtils* utils = CMusEngTelephoneUtils::NewL();
       
   412     CleanupStack::PushL( utils );
       
   413     delete utils->iTelephonyAudioRouting;
       
   414     utils->iTelephonyAudioRouting = NULL;
       
   415     CleanupStack::PopAndDestroy( utils );
       
   416     
       
   417     // Simulate that current audio output mode is same as original
       
   418     utils = CMusEngTelephoneUtils::NewL();
       
   419     CleanupStack::PushL( utils );
       
   420     utils->iAudioOutputAtStartup = CTelephonyAudioRouting::EHandset;
       
   421     utils->iTelephonyAudioRouting->iCurrentOutput = 
       
   422                                             CTelephonyAudioRouting::EHandset;
       
   423     CleanupStack::PopAndDestroy( utils );
       
   424     
       
   425     // Simulate that current audio output mode is not the same as original,
       
   426     // Setting fails
       
   427     utils = CMusEngTelephoneUtils::NewL();
       
   428     CleanupStack::PushL( utils );
       
   429     utils->iAudioOutputAtStartup = CTelephonyAudioRouting::EHandset;
       
   430     utils->iTelephonyAudioRouting->iCurrentOutput = 
       
   431                                     CTelephonyAudioRouting::ELoudspeaker;
       
   432     utils->iTelephonyAudioRouting->iForceFailWithCode = KErrGeneral;
       
   433     CleanupStack::PopAndDestroy( utils );
       
   434     
       
   435     // Simulate that current audio output mode is not the same as original,
       
   436     // Setting succeeds
       
   437     utils = CMusEngTelephoneUtils::NewL();
       
   438     CleanupStack::PushL( utils );
       
   439     utils->iAudioOutputAtStartup = CTelephonyAudioRouting::EHandset;
       
   440     utils->iTelephonyAudioRouting->iCurrentOutput = 
       
   441                                     CTelephonyAudioRouting::ELoudspeaker;
       
   442     CleanupStack::PopAndDestroy( utils );
       
   443     
       
   444     // Simulate that current audio output mode is not the same as original,
       
   445     // Setting does not succeed as observer does not allow changes anymore
       
   446     utils = CMusEngTelephoneUtils::NewL();
       
   447     iObserver->iAudioRouteChangeAllowed = EFalse;
       
   448     utils->SetAudioRoutingObserver( iObserver );
       
   449     CleanupStack::PushL( utils );
       
   450     utils->iAudioOutputAtStartup = CTelephonyAudioRouting::EHandset;
       
   451     utils->iTelephonyAudioRouting->iCurrentOutput = 
       
   452                                     CTelephonyAudioRouting::ELoudspeaker;
       
   453     CleanupStack::PopAndDestroy( utils );
       
   454     // Cannot really assert anything
       
   455     }
       
   456 
       
   457 
       
   458 
       
   459 //  TEST TABLE
       
   460 
       
   461 EUNIT_BEGIN_TEST_TABLE(
       
   462     UT_CMusEngTelephoneUtils,
       
   463     "UT_CMusEngTelephoneUtils",
       
   464     "UNIT" )
       
   465 
       
   466 EUNIT_TEST(
       
   467     "NewL - test ",
       
   468     "CMusEngTelephoneUtils",
       
   469     "NewL",
       
   470     "FUNCTIONALITY",
       
   471     SetupL, UT_NewLL, Teardown)
       
   472 
       
   473 EUNIT_TEST(
       
   474     "AudioRoutingCanBeChanged - test ",
       
   475     "CMusEngTelephoneUtils",
       
   476     "AudioRoutingCanBeChanged",
       
   477     "FUNCTIONALITY",
       
   478     SetupL, UT_AudioRoutingCanBeChangedL, Teardown)
       
   479 
       
   480 EUNIT_TEST(
       
   481     "LoudspeakerL - test ",
       
   482     "CMusEngTelephoneUtils",
       
   483     "LoudspeakerL",
       
   484     "FUNCTIONALITY",
       
   485     SetupL, UT_LoudspeakerLL, Teardown)
       
   486 
       
   487 EUNIT_TEST(
       
   488     "IsLoudSpeakerEnabled - test ",
       
   489     "CMusEngTelephoneUtils",
       
   490     "IsLoudSpeakerEnabled",
       
   491     "FUNCTIONALITY",
       
   492     SetupL, UT_IsLoudSpeakerEnabledL, Teardown)    
       
   493     
       
   494 EUNIT_TEST(
       
   495     "GetVolumeL - test ",
       
   496     "CMusEngTelephoneUtils",
       
   497     "GetVolumeL",
       
   498     "FUNCTIONALITY",
       
   499     SetupL, UT_GetVolumeLL, Teardown)
       
   500 
       
   501 EUNIT_TEST(
       
   502     "SetVolumeL - test ",
       
   503     "CMusEngTelephoneUtils",
       
   504     "SetVolumeL",
       
   505     "FUNCTIONALITY",
       
   506     SetupL, UT_SetVolumeLL, Teardown)
       
   507 
       
   508 EUNIT_TEST(
       
   509     "AvailableOutputsChanged - test ",
       
   510     "CMusEngTelephoneUtils",
       
   511     "AvailableOutputsChanged",
       
   512     "FUNCTIONALITY",
       
   513     SetupL, UT_AvailableOutputsChangedL, Teardown)
       
   514 
       
   515 EUNIT_TEST(
       
   516     "OutputChanged - test ",
       
   517     "CMusEngTelephoneUtils",
       
   518     "OutputChanged",
       
   519     "FUNCTIONALITY",
       
   520     SetupL, UT_OutputChangedL, Teardown)    
       
   521     
       
   522 EUNIT_TEST(
       
   523     "SetOutputComplete - test ",
       
   524     "CMusEngTelephoneUtils",
       
   525     "SetOutputComplete",
       
   526     "FUNCTIONALITY",
       
   527     SetupL, UT_SetOutputCompleteL, Teardown)
       
   528 
       
   529 EUNIT_TEST(
       
   530     "ValidateVolume - test ",
       
   531     "CMusEngTelephoneUtils",
       
   532     "ValidateVolume",
       
   533     "FUNCTIONALITY",
       
   534     SetupL, UT_ValidateVolumeL, Teardown)
       
   535 
       
   536 EUNIT_TEST(
       
   537     "Destructor - test ",
       
   538     "CMusEngTelephoneUtils",
       
   539     "Destructor",
       
   540     "FUNCTIONALITY",
       
   541     SetupL, UT_DestructorL, Teardown)
       
   542 
       
   543      
       
   544     
       
   545 EUNIT_END_TEST_TABLE
       
   546 
       
   547 //  END OF FILE
       
   548 
       
   549