profilesservices/ProfileEngine/tsrc/public/basic/WrapperMdlTest/src/MT_MProEngToneSettings.cpp
changeset 0 8c5d936e5675
child 8 f62c3a3d66b8
equal deleted inserted replaced
-1:000000000000 0:8c5d936e5675
       
     1 /*
       
     2 * Copyright (c) 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:  Implementation of the MT_MProEngToneSettings test class.
       
    15 *
       
    16 */
       
    17 
       
    18 ////////////////////////////////////////////////////////////////////////
       
    19 // MT_MProEngToneSettings.cpp
       
    20 //
       
    21 
       
    22 //  CLASS HEADER
       
    23 #include "MT_MProEngToneSettings.h"
       
    24 
       
    25 //  EXTERNAL INCLUDES
       
    26 #include <EUnitMacros.h>
       
    27 #include <MProEngToneSettings.h>
       
    28 #include <MProEngProfile.h>
       
    29 #include <MProEngEngine.h>
       
    30 #include "MProfileEngineExtended.h"
       
    31 #include "MProfile.h"
       
    32 #include "MProfileTones.h"
       
    33 #include "TProfileToneSettings.h"
       
    34 #include "MProfileExtraTones.h"
       
    35 #include "MProfileExtended.h"
       
    36 #include <ProEngFactory.h>
       
    37 #include <Profile.hrh>
       
    38 
       
    39 //  INTERNAL INCLUDES
       
    40 #include "T_ProfileTestTools.h"
       
    41 
       
    42 MT_MProEngToneSettings* MT_MProEngToneSettings::NewL()
       
    43     {
       
    44     MT_MProEngToneSettings* self = MT_MProEngToneSettings::NewLC(); 
       
    45     CleanupStack::Pop();
       
    46 
       
    47     return self;
       
    48     }
       
    49 
       
    50 MT_MProEngToneSettings* MT_MProEngToneSettings::NewLC()
       
    51     {
       
    52     MT_MProEngToneSettings* self = new( ELeave ) MT_MProEngToneSettings();
       
    53     CleanupStack::PushL( self );
       
    54 
       
    55 	self->ConstructL(); 
       
    56 
       
    57     return self;
       
    58     }
       
    59 
       
    60 
       
    61 MT_MProEngToneSettings::~MT_MProEngToneSettings()
       
    62     {
       
    63     if( iInternalEngine )
       
    64         {
       
    65         iInternalEngine->Release();
       
    66         iInternalEngine = NULL;
       
    67         }
       
    68     if( iEngine )
       
    69         {
       
    70         iEngine->Release();
       
    71         iEngine = NULL;
       
    72         }
       
    73     }
       
    74 
       
    75 
       
    76 MT_MProEngToneSettings::MT_MProEngToneSettings()
       
    77     {
       
    78     }
       
    79 
       
    80 void MT_MProEngToneSettings::ConstructL()
       
    81     {
       
    82     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
       
    83     // It generates the test case table.
       
    84     CEUnitTestSuiteClass::ConstructL();
       
    85     iInternalEngine = CreateProfileEngineExtendedL();
       
    86     iEngine = ProEngFactory::NewEngineL();
       
    87     }
       
    88 
       
    89 
       
    90 void MT_MProEngToneSettings::SetupL()
       
    91     {
       
    92     iInternalProfile = iInternalEngine->ProfileL( iProfileId );
       
    93     iProfile = iEngine->ProfileL( iProfileId );
       
    94     }
       
    95 
       
    96 void MT_MProEngToneSettings::Setup0L()
       
    97     {
       
    98     iProfileId = 0;
       
    99     SetupL();
       
   100     }
       
   101 
       
   102 void MT_MProEngToneSettings::Setup1L()
       
   103     {
       
   104     iProfileId = 1;
       
   105     SetupL();
       
   106     }
       
   107 
       
   108 void MT_MProEngToneSettings::Setup2L()
       
   109     {
       
   110     iProfileId = 2;
       
   111     SetupL();
       
   112     }
       
   113 
       
   114 void MT_MProEngToneSettings::Setup3L()
       
   115     {
       
   116     iProfileId = 3;
       
   117     SetupL();
       
   118     }
       
   119 
       
   120 void MT_MProEngToneSettings::Setup4L()
       
   121     {
       
   122     iProfileId = 4;
       
   123     SetupL();
       
   124     }
       
   125 
       
   126 #ifdef __OFFLINE_MODE
       
   127 void MT_MProEngToneSettings::Setup5L()
       
   128     {
       
   129     iProfileId = 5;
       
   130     SetupL();
       
   131     }
       
   132 
       
   133 #endif // __OFFLINE_MODE
       
   134 #ifdef __DRIVE_MODE
       
   135 void MT_MProEngToneSettings::Setup6L()
       
   136     {
       
   137     iProfileId = 6;
       
   138     SetupL();
       
   139     }
       
   140 
       
   141 #endif // __DRIVE_MODE
       
   142 
       
   143 
       
   144 void MT_MProEngToneSettings::Teardown()
       
   145     {
       
   146     if( iInternalProfile )
       
   147         {
       
   148         iInternalProfile->Release();
       
   149         iInternalProfile = NULL;
       
   150         }
       
   151     if( iProfile )
       
   152         {
       
   153         iProfile->Release();
       
   154         iProfile = NULL;
       
   155         }
       
   156     }
       
   157 
       
   158 void MT_MProEngToneSettings::GetRingingTypeTestL()
       
   159     {
       
   160     MProEngToneSettings& tones( iProfile->ToneSettings() );
       
   161     const TProfileToneSettings& tones2( iInternalProfile->ProfileTones().ToneSettings() );
       
   162     EUNIT_ASSERT( tones.RingingType() == tones2.iRingingType );
       
   163     }
       
   164 
       
   165 void MT_MProEngToneSettings::GetKeypadVolumeTestL()
       
   166     {
       
   167     MProEngToneSettings& tones( iProfile->ToneSettings() );
       
   168     const TProfileToneSettings& tones2( iInternalProfile->ProfileTones().ToneSettings() );
       
   169     EUNIT_ASSERT( tones.KeypadVolume() == tones2.iKeypadVolume );
       
   170     }
       
   171 
       
   172 void MT_MProEngToneSettings::GetRingingVolumeTestL()
       
   173     {
       
   174     MProEngToneSettings& tones( iProfile->ToneSettings() );
       
   175     const TProfileToneSettings& tones2( iInternalProfile->ProfileTones().ToneSettings() );
       
   176     EUNIT_ASSERT( tones.RingingVolume() == tones2.iRingingVolume );
       
   177     }
       
   178 
       
   179 void MT_MProEngToneSettings::GetVibraTestL()
       
   180     {
       
   181     MProEngToneSettings& tones( iProfile->ToneSettings() );
       
   182     const TProfileToneSettings& tones2( iInternalProfile->ProfileTones().ToneSettings() );
       
   183     EUNIT_ASSERT( tones.VibratingAlert() == tones2.iVibratingAlert );
       
   184     }
       
   185 
       
   186 void MT_MProEngToneSettings::GetWarningAndGameTonesTestL()
       
   187     {
       
   188     MProEngToneSettings& tones( iProfile->ToneSettings() );
       
   189     const TProfileToneSettings& tones2( iInternalProfile->ProfileTones().ToneSettings() );
       
   190     EUNIT_ASSERT( tones.WarningAndGameTones() == tones2.iWarningAndGameTones );
       
   191     }
       
   192 
       
   193 void MT_MProEngToneSettings::GetTextToSpeechTestL()
       
   194     {
       
   195     MProEngToneSettings& tones( iProfile->ToneSettings() );
       
   196     const TProfileToneSettings& tones2( iInternalProfile->ProfileTones().ToneSettings() );
       
   197     EUNIT_ASSERT( tones.TextToSpeech() == tones2.iTextToSpeech );
       
   198     }
       
   199 
       
   200 void MT_MProEngToneSettings::SetRingingTypeTestL()
       
   201     {
       
   202     MProEngToneSettings& tones( iProfile->ToneSettings() );
       
   203     TProfileRingingType origValue( tones.RingingType() );
       
   204     TInt err( tones.SetRingingType( KProEngMTTestRingingType ) );
       
   205     if( ( iProfileId != EProfileOffLineId ) &&
       
   206         ( iProfileId != EProfileDriveId ) )
       
   207         {
       
   208         EUNIT_ASSERT( err == KErrNone );
       
   209         EUNIT_ASSERT( tones.RingingType() == KProEngMTTestRingingType );
       
   210         }
       
   211     else
       
   212         {
       
   213         EUNIT_ASSERT( err == KErrAccessDenied );
       
   214         EUNIT_ASSERT( tones.RingingType() == origValue );
       
   215         }
       
   216     }
       
   217 
       
   218 void MT_MProEngToneSettings::SetKeypadVolumeTestL()
       
   219     {
       
   220     MProEngToneSettings& tones( iProfile->ToneSettings() );
       
   221     TProfileKeypadVolume origValue( tones.KeypadVolume() );
       
   222     TInt err( tones.SetKeypadVolume( KProEngMTTestKeypadVolume ) );
       
   223     if( iProfileId != EProfileDriveId )
       
   224         {
       
   225         EUNIT_ASSERT( err == KErrNone );
       
   226         EUNIT_ASSERT( tones.KeypadVolume() == KProEngMTTestKeypadVolume );
       
   227         }
       
   228     else
       
   229         {
       
   230         EUNIT_ASSERT( err == KErrAccessDenied );
       
   231         EUNIT_ASSERT( tones.KeypadVolume() == origValue );
       
   232         }
       
   233     }
       
   234 
       
   235 void MT_MProEngToneSettings::SetRingingVolumeTestL()
       
   236     {
       
   237     MProEngToneSettings& tones( iProfile->ToneSettings() );
       
   238     TProfileRingingVolume origValue( tones.RingingVolume() );
       
   239     TInt err( tones.SetRingingVolume( KProEngMTTestRingingVolume ) );
       
   240     if( iProfileId != EProfileDriveId )
       
   241         {
       
   242         EUNIT_ASSERT( err == KErrNone );
       
   243         EUNIT_ASSERT( tones.RingingVolume() == KProEngMTTestRingingVolume );
       
   244         }
       
   245     else
       
   246         {
       
   247         EUNIT_ASSERT( err == KErrAccessDenied );
       
   248         EUNIT_ASSERT( tones.RingingVolume() == origValue );
       
   249         }
       
   250     }
       
   251 
       
   252 void MT_MProEngToneSettings::SetVibraTestL()
       
   253     {
       
   254     MProEngToneSettings& tones( iProfile->ToneSettings() );
       
   255     TBool origValue( tones.VibratingAlert() );
       
   256     TInt err( tones.SetVibratingAlert( !origValue ) );
       
   257     if( iProfileId != EProfileDriveId )
       
   258         {
       
   259         EUNIT_ASSERT( err == KErrNone );
       
   260         EUNIT_ASSERT( tones.VibratingAlert() != origValue );
       
   261         }
       
   262     else
       
   263         {
       
   264         EUNIT_ASSERT( err == KErrAccessDenied );
       
   265         EUNIT_ASSERT( tones.VibratingAlert() == origValue );
       
   266         }
       
   267     }
       
   268 
       
   269 void MT_MProEngToneSettings::SetWarningAndGameTonesTestL()
       
   270     {
       
   271     MProEngToneSettings& tones( iProfile->ToneSettings() );
       
   272     TBool origValue( tones.WarningAndGameTones() );
       
   273     TInt err( tones.SetWarningAndGameTones( !origValue ) );
       
   274     if( iProfileId != EProfileDriveId )
       
   275         {
       
   276         EUNIT_ASSERT( err == KErrNone );
       
   277         EUNIT_ASSERT( tones.WarningAndGameTones() != origValue );
       
   278         }
       
   279     else
       
   280         {
       
   281         EUNIT_ASSERT( err == KErrAccessDenied );
       
   282         EUNIT_ASSERT( tones.WarningAndGameTones() == origValue );
       
   283         }
       
   284     }
       
   285 
       
   286 void MT_MProEngToneSettings::SetTextToSpeechTestL()
       
   287     {
       
   288     MProEngToneSettings& tones( iProfile->ToneSettings() );
       
   289     TBool origValue( tones.TextToSpeech() );
       
   290     TInt err( tones.SetTextToSpeech( !origValue ) );
       
   291     if( ( iProfileId != EProfileOffLineId ) &&
       
   292         ( iProfileId != EProfileDriveId ) )
       
   293         {
       
   294         EUNIT_ASSERT( err == KErrNone );
       
   295         EUNIT_ASSERT( tones.TextToSpeech() != origValue );
       
   296         }
       
   297     else
       
   298         {
       
   299         EUNIT_ASSERT( err == KErrAccessDenied );
       
   300         EUNIT_ASSERT( tones.TextToSpeech() == origValue );
       
   301         }
       
   302     }
       
   303 
       
   304 
       
   305 
       
   306 EUNIT_BEGIN_TEST_TABLE( 
       
   307     MT_MProEngToneSettings,
       
   308     "Profile Tone Settings Wrapper Test cases.",
       
   309     "MODULE" )
       
   310 
       
   311 EUNIT_TEST(
       
   312     "Get Ringing type 0 - test",
       
   313     "MProEngToneSettings",
       
   314     "RingingType",
       
   315     "FUNCTIONALITY",
       
   316     Setup0L,
       
   317     GetRingingTypeTestL,
       
   318     Teardown)
       
   319 
       
   320 EUNIT_TEST(
       
   321     "Get Keypad volume 0 - test",
       
   322     "MProEngToneSettings",
       
   323     "KeypadVolume",
       
   324     "FUNCTIONALITY",
       
   325     Setup0L,
       
   326     GetKeypadVolumeTestL,
       
   327     Teardown)
       
   328 
       
   329 EUNIT_TEST(
       
   330     "Get Ringing Volume 0 - test",
       
   331     "MProEngToneSettings",
       
   332     "RingingVolume",
       
   333     "FUNCTIONALITY",
       
   334     Setup0L,
       
   335     GetRingingVolumeTestL,
       
   336     Teardown)
       
   337 
       
   338 EUNIT_TEST(
       
   339     "Get Vibrating alert 0 - test",
       
   340     "MProEngToneSettings",
       
   341     "VibratingAlert",
       
   342     "FUNCTIONALITY",
       
   343     Setup0L,
       
   344     GetVibraTestL,
       
   345     Teardown)
       
   346 
       
   347 EUNIT_TEST(
       
   348     "Get Warning And Game tones 0 - test",
       
   349     "MProEngToneSettings",
       
   350     "WarningAndGameTones",
       
   351     "FUNCTIONALITY",
       
   352     Setup0L,
       
   353     GetWarningAndGameTonesTestL,
       
   354     Teardown)
       
   355 
       
   356 EUNIT_TEST(
       
   357     "Get Text-to-Speech tone 0 - test",
       
   358     "MProEngToneSettings",
       
   359     "TextToSpeech",
       
   360     "FUNCTIONALITY",
       
   361     Setup0L,
       
   362     GetTextToSpeechTestL,
       
   363     Teardown)
       
   364 
       
   365 EUNIT_TEST(
       
   366     "Set Ringing type 0 - test",
       
   367     "MProEngToneSettings",
       
   368     "SetRingingType",
       
   369     "FUNCTIONALITY",
       
   370     Setup0L,
       
   371     SetRingingTypeTestL,
       
   372     Teardown)
       
   373 
       
   374 EUNIT_TEST(
       
   375     "Set Keypad volume 0 - test",
       
   376     "MProEngToneSettings",
       
   377     "SetKeypadVolume",
       
   378     "FUNCTIONALITY",
       
   379     Setup0L,
       
   380     SetKeypadVolumeTestL,
       
   381     Teardown)
       
   382 
       
   383 EUNIT_TEST(
       
   384     "Set Ringing Volume 0 - test",
       
   385     "MProEngToneSettings",
       
   386     "SetRingingVolume",
       
   387     "FUNCTIONALITY",
       
   388     Setup0L,
       
   389     SetRingingVolumeTestL,
       
   390     Teardown)
       
   391 
       
   392 EUNIT_TEST(
       
   393     "Set Vibrating alert 0 - test",
       
   394     "MProEngToneSettings",
       
   395     "SetVibratingAlert",
       
   396     "FUNCTIONALITY",
       
   397     Setup0L,
       
   398     SetVibraTestL,
       
   399     Teardown)
       
   400 
       
   401 EUNIT_TEST(
       
   402     "Set Warning And Game tones 0 - test",
       
   403     "MProEngToneSettings",
       
   404     "SetWarningAndGameTones",
       
   405     "FUNCTIONALITY",
       
   406     Setup0L,
       
   407     SetWarningAndGameTonesTestL,
       
   408     Teardown)
       
   409 
       
   410 EUNIT_TEST(
       
   411     "Set Text-to-Speech tone 0 - test",
       
   412     "MProEngToneSettings",
       
   413     "SetTextToSpeech",
       
   414     "FUNCTIONALITY",
       
   415     Setup0L,
       
   416     SetTextToSpeechTestL,
       
   417     Teardown)
       
   418 
       
   419 EUNIT_TEST(
       
   420     "Get Ringing type 1 - test",
       
   421     "MProEngToneSettings",
       
   422     "RingingType",
       
   423     "FUNCTIONALITY",
       
   424     Setup1L,
       
   425     GetRingingTypeTestL,
       
   426     Teardown)
       
   427 
       
   428 EUNIT_TEST(
       
   429     "Get Keypad volume 1 - test",
       
   430     "MProEngToneSettings",
       
   431     "KeypadVolume",
       
   432     "FUNCTIONALITY",
       
   433     Setup1L,
       
   434     GetKeypadVolumeTestL,
       
   435     Teardown)
       
   436 
       
   437 EUNIT_TEST(
       
   438     "Get Ringing Volume 1 - test",
       
   439     "MProEngToneSettings",
       
   440     "RingingVolume",
       
   441     "FUNCTIONALITY",
       
   442     Setup1L,
       
   443     GetRingingVolumeTestL,
       
   444     Teardown)
       
   445 
       
   446 EUNIT_TEST(
       
   447     "Get Vibrating alert 1 - test",
       
   448     "MProEngToneSettings",
       
   449     "VibratingAlert",
       
   450     "FUNCTIONALITY",
       
   451     Setup1L,
       
   452     GetVibraTestL,
       
   453     Teardown)
       
   454 
       
   455 EUNIT_TEST(
       
   456     "Get Warning And Game tones 1 - test",
       
   457     "MProEngToneSettings",
       
   458     "WarningAndGameTones",
       
   459     "FUNCTIONALITY",
       
   460     Setup1L,
       
   461     GetWarningAndGameTonesTestL,
       
   462     Teardown)
       
   463 
       
   464 EUNIT_TEST(
       
   465     "Get Text-to-Speech tone 1 - test",
       
   466     "MProEngToneSettings",
       
   467     "TextToSpeech",
       
   468     "FUNCTIONALITY",
       
   469     Setup1L,
       
   470     GetTextToSpeechTestL,
       
   471     Teardown)
       
   472 
       
   473 EUNIT_TEST(
       
   474     "Set Ringing type 1 - test",
       
   475     "MProEngToneSettings",
       
   476     "SetRingingType",
       
   477     "FUNCTIONALITY",
       
   478     Setup1L,
       
   479     SetRingingTypeTestL,
       
   480     Teardown)
       
   481 
       
   482 EUNIT_TEST(
       
   483     "Set Keypad volume 1 - test",
       
   484     "MProEngToneSettings",
       
   485     "SetKeypadVolume",
       
   486     "FUNCTIONALITY",
       
   487     Setup1L,
       
   488     SetKeypadVolumeTestL,
       
   489     Teardown)
       
   490 
       
   491 EUNIT_TEST(
       
   492     "Set Ringing Volume 1 - test",
       
   493     "MProEngToneSettings",
       
   494     "SetRingingVolume",
       
   495     "FUNCTIONALITY",
       
   496     Setup1L,
       
   497     SetRingingVolumeTestL,
       
   498     Teardown)
       
   499 
       
   500 EUNIT_TEST(
       
   501     "Set Vibrating alert 1 - test",
       
   502     "MProEngToneSettings",
       
   503     "SetVibratingAlert",
       
   504     "FUNCTIONALITY",
       
   505     Setup1L,
       
   506     SetVibraTestL,
       
   507     Teardown)
       
   508 
       
   509 EUNIT_TEST(
       
   510     "Set Warning And Game tones 1 - test",
       
   511     "MProEngToneSettings",
       
   512     "SetWarningAndGameTones",
       
   513     "FUNCTIONALITY",
       
   514     Setup1L,
       
   515     SetWarningAndGameTonesTestL,
       
   516     Teardown)
       
   517 
       
   518 EUNIT_TEST(
       
   519     "Set Text-to-Speech tone 1 - test",
       
   520     "MProEngToneSettings",
       
   521     "SetTextToSpeech",
       
   522     "FUNCTIONALITY",
       
   523     Setup1L,
       
   524     SetTextToSpeechTestL,
       
   525     Teardown)
       
   526 
       
   527 EUNIT_TEST(
       
   528     "Get Ringing type 2 - test",
       
   529     "MProEngToneSettings",
       
   530     "RingingType",
       
   531     "FUNCTIONALITY",
       
   532     Setup2L,
       
   533     GetRingingTypeTestL,
       
   534     Teardown)
       
   535 
       
   536 EUNIT_TEST(
       
   537     "Get Keypad volume 2 - test",
       
   538     "MProEngToneSettings",
       
   539     "KeypadVolume",
       
   540     "FUNCTIONALITY",
       
   541     Setup2L,
       
   542     GetKeypadVolumeTestL,
       
   543     Teardown)
       
   544 
       
   545 EUNIT_TEST(
       
   546     "Get Ringing Volume 2 - test",
       
   547     "MProEngToneSettings",
       
   548     "RingingVolume",
       
   549     "FUNCTIONALITY",
       
   550     Setup2L,
       
   551     GetRingingVolumeTestL,
       
   552     Teardown)
       
   553 
       
   554 EUNIT_TEST(
       
   555     "Get Vibrating alert 2 - test",
       
   556     "MProEngToneSettings",
       
   557     "VibratingAlert",
       
   558     "FUNCTIONALITY",
       
   559     Setup2L,
       
   560     GetVibraTestL,
       
   561     Teardown)
       
   562 
       
   563 EUNIT_TEST(
       
   564     "Get Warning And Game tones 2 - test",
       
   565     "MProEngToneSettings",
       
   566     "WarningAndGameTones",
       
   567     "FUNCTIONALITY",
       
   568     Setup2L,
       
   569     GetWarningAndGameTonesTestL,
       
   570     Teardown)
       
   571 
       
   572 EUNIT_TEST(
       
   573     "Get Text-to-Speech tone 2 - test",
       
   574     "MProEngToneSettings",
       
   575     "TextToSpeech",
       
   576     "FUNCTIONALITY",
       
   577     Setup2L,
       
   578     GetTextToSpeechTestL,
       
   579     Teardown)
       
   580 
       
   581 EUNIT_TEST(
       
   582     "Set Ringing type 2 - test",
       
   583     "MProEngToneSettings",
       
   584     "SetRingingType",
       
   585     "FUNCTIONALITY",
       
   586     Setup2L,
       
   587     SetRingingTypeTestL,
       
   588     Teardown)
       
   589 
       
   590 EUNIT_TEST(
       
   591     "Set Keypad volume 2 - test",
       
   592     "MProEngToneSettings",
       
   593     "SetKeypadVolume",
       
   594     "FUNCTIONALITY",
       
   595     Setup2L,
       
   596     SetKeypadVolumeTestL,
       
   597     Teardown)
       
   598 
       
   599 EUNIT_TEST(
       
   600     "Set Ringing Volume 2 - test",
       
   601     "MProEngToneSettings",
       
   602     "SetRingingVolume",
       
   603     "FUNCTIONALITY",
       
   604     Setup2L,
       
   605     SetRingingVolumeTestL,
       
   606     Teardown)
       
   607 
       
   608 EUNIT_TEST(
       
   609     "Set Vibrating alert 2 - test",
       
   610     "MProEngToneSettings",
       
   611     "SetVibratingAlert",
       
   612     "FUNCTIONALITY",
       
   613     Setup2L,
       
   614     SetVibraTestL,
       
   615     Teardown)
       
   616 
       
   617 EUNIT_TEST(
       
   618     "Set Warning And Game tones 2 - test",
       
   619     "MProEngToneSettings",
       
   620     "SetWarningAndGameTones",
       
   621     "FUNCTIONALITY",
       
   622     Setup2L,
       
   623     SetWarningAndGameTonesTestL,
       
   624     Teardown)
       
   625 
       
   626 EUNIT_TEST(
       
   627     "Set Text-to-Speech tone 2 - test",
       
   628     "MProEngToneSettings",
       
   629     "SetTextToSpeech",
       
   630     "FUNCTIONALITY",
       
   631     Setup2L,
       
   632     SetTextToSpeechTestL,
       
   633     Teardown)
       
   634 
       
   635 EUNIT_TEST(
       
   636     "Get Ringing type 3 - test",
       
   637     "MProEngToneSettings",
       
   638     "RingingType",
       
   639     "FUNCTIONALITY",
       
   640     Setup3L,
       
   641     GetRingingTypeTestL,
       
   642     Teardown)
       
   643 
       
   644 EUNIT_TEST(
       
   645     "Get Keypad volume 3 - test",
       
   646     "MProEngToneSettings",
       
   647     "KeypadVolume",
       
   648     "FUNCTIONALITY",
       
   649     Setup3L,
       
   650     GetKeypadVolumeTestL,
       
   651     Teardown)
       
   652 
       
   653 EUNIT_TEST(
       
   654     "Get Ringing Volume 3 - test",
       
   655     "MProEngToneSettings",
       
   656     "RingingVolume",
       
   657     "FUNCTIONALITY",
       
   658     Setup3L,
       
   659     GetRingingVolumeTestL,
       
   660     Teardown)
       
   661 
       
   662 EUNIT_TEST(
       
   663     "Get Vibrating alert 3 - test",
       
   664     "MProEngToneSettings",
       
   665     "VibratingAlert",
       
   666     "FUNCTIONALITY",
       
   667     Setup3L,
       
   668     GetVibraTestL,
       
   669     Teardown)
       
   670 
       
   671 EUNIT_TEST(
       
   672     "Get Warning And Game tones 3 - test",
       
   673     "MProEngToneSettings",
       
   674     "WarningAndGameTones",
       
   675     "FUNCTIONALITY",
       
   676     Setup3L,
       
   677     GetWarningAndGameTonesTestL,
       
   678     Teardown)
       
   679 
       
   680 EUNIT_TEST(
       
   681     "Get Text-to-Speech tone 3 - test",
       
   682     "MProEngToneSettings",
       
   683     "TextToSpeech",
       
   684     "FUNCTIONALITY",
       
   685     Setup3L,
       
   686     GetTextToSpeechTestL,
       
   687     Teardown)
       
   688 
       
   689 EUNIT_TEST(
       
   690     "Set Ringing type 3 - test",
       
   691     "MProEngToneSettings",
       
   692     "SetRingingType",
       
   693     "FUNCTIONALITY",
       
   694     Setup3L,
       
   695     SetRingingTypeTestL,
       
   696     Teardown)
       
   697 
       
   698 EUNIT_TEST(
       
   699     "Set Keypad volume 3 - test",
       
   700     "MProEngToneSettings",
       
   701     "SetKeypadVolume",
       
   702     "FUNCTIONALITY",
       
   703     Setup3L,
       
   704     SetKeypadVolumeTestL,
       
   705     Teardown)
       
   706 
       
   707 EUNIT_TEST(
       
   708     "Set Ringing Volume 3 - test",
       
   709     "MProEngToneSettings",
       
   710     "SetRingingVolume",
       
   711     "FUNCTIONALITY",
       
   712     Setup3L,
       
   713     SetRingingVolumeTestL,
       
   714     Teardown)
       
   715 
       
   716 EUNIT_TEST(
       
   717     "Set Vibrating alert 3 - test",
       
   718     "MProEngToneSettings",
       
   719     "SetVibratingAlert",
       
   720     "FUNCTIONALITY",
       
   721     Setup3L,
       
   722     SetVibraTestL,
       
   723     Teardown)
       
   724 
       
   725 EUNIT_TEST(
       
   726     "Set Warning And Game tones 3 - test",
       
   727     "MProEngToneSettings",
       
   728     "SetWarningAndGameTones",
       
   729     "FUNCTIONALITY",
       
   730     Setup3L,
       
   731     SetWarningAndGameTonesTestL,
       
   732     Teardown)
       
   733 
       
   734 EUNIT_TEST(
       
   735     "Set Text-to-Speech tone 3 - test",
       
   736     "MProEngToneSettings",
       
   737     "SetTextToSpeech",
       
   738     "FUNCTIONALITY",
       
   739     Setup3L,
       
   740     SetTextToSpeechTestL,
       
   741     Teardown)
       
   742 
       
   743 EUNIT_TEST(
       
   744     "Get Ringing type 4 - test",
       
   745     "MProEngToneSettings",
       
   746     "RingingType",
       
   747     "FUNCTIONALITY",
       
   748     Setup4L,
       
   749     GetRingingTypeTestL,
       
   750     Teardown)
       
   751 
       
   752 EUNIT_TEST(
       
   753     "Get Keypad volume 4 - test",
       
   754     "MProEngToneSettings",
       
   755     "KeypadVolume",
       
   756     "FUNCTIONALITY",
       
   757     Setup4L,
       
   758     GetKeypadVolumeTestL,
       
   759     Teardown)
       
   760 
       
   761 EUNIT_TEST(
       
   762     "Get Ringing Volume 4 - test",
       
   763     "MProEngToneSettings",
       
   764     "RingingVolume",
       
   765     "FUNCTIONALITY",
       
   766     Setup4L,
       
   767     GetRingingVolumeTestL,
       
   768     Teardown)
       
   769 
       
   770 EUNIT_TEST(
       
   771     "Get Vibrating alert 4 - test",
       
   772     "MProEngToneSettings",
       
   773     "VibratingAlert",
       
   774     "FUNCTIONALITY",
       
   775     Setup4L,
       
   776     GetVibraTestL,
       
   777     Teardown)
       
   778 
       
   779 EUNIT_TEST(
       
   780     "Get Warning And Game tones 4 - test",
       
   781     "MProEngToneSettings",
       
   782     "WarningAndGameTones",
       
   783     "FUNCTIONALITY",
       
   784     Setup4L,
       
   785     GetWarningAndGameTonesTestL,
       
   786     Teardown)
       
   787 
       
   788 EUNIT_TEST(
       
   789     "Get Text-to-Speech tone 4 - test",
       
   790     "MProEngToneSettings",
       
   791     "TextToSpeech",
       
   792     "FUNCTIONALITY",
       
   793     Setup4L,
       
   794     GetTextToSpeechTestL,
       
   795     Teardown)
       
   796 
       
   797 EUNIT_TEST(
       
   798     "Set Ringing type 4 - test",
       
   799     "MProEngToneSettings",
       
   800     "SetRingingType",
       
   801     "FUNCTIONALITY",
       
   802     Setup4L,
       
   803     SetRingingTypeTestL,
       
   804     Teardown)
       
   805 
       
   806 EUNIT_TEST(
       
   807     "Set Keypad volume 4 - test",
       
   808     "MProEngToneSettings",
       
   809     "SetKeypadVolume",
       
   810     "FUNCTIONALITY",
       
   811     Setup4L,
       
   812     SetKeypadVolumeTestL,
       
   813     Teardown)
       
   814 
       
   815 EUNIT_TEST(
       
   816     "Set Ringing Volume 4 - test",
       
   817     "MProEngToneSettings",
       
   818     "SetRingingVolume",
       
   819     "FUNCTIONALITY",
       
   820     Setup4L,
       
   821     SetRingingVolumeTestL,
       
   822     Teardown)
       
   823 
       
   824 EUNIT_TEST(
       
   825     "Set Vibrating alert 4 - test",
       
   826     "MProEngToneSettings",
       
   827     "SetVibratingAlert",
       
   828     "FUNCTIONALITY",
       
   829     Setup4L,
       
   830     SetVibraTestL,
       
   831     Teardown)
       
   832 
       
   833 EUNIT_TEST(
       
   834     "Set Warning And Game tones 4 - test",
       
   835     "MProEngToneSettings",
       
   836     "SetWarningAndGameTones",
       
   837     "FUNCTIONALITY",
       
   838     Setup4L,
       
   839     SetWarningAndGameTonesTestL,
       
   840     Teardown)
       
   841 
       
   842 EUNIT_TEST(
       
   843     "Set Text-to-Speech tone 4 - test",
       
   844     "MProEngToneSettings",
       
   845     "SetTextToSpeech",
       
   846     "FUNCTIONALITY",
       
   847     Setup4L,
       
   848     SetTextToSpeechTestL,
       
   849     Teardown)
       
   850 
       
   851 #ifdef __OFFLINE_MODE
       
   852 EUNIT_TEST(
       
   853     "Get Ringing type 5 - test",
       
   854     "MProEngToneSettings",
       
   855     "RingingType",
       
   856     "FUNCTIONALITY",
       
   857     Setup5L,
       
   858     GetRingingTypeTestL,
       
   859     Teardown)
       
   860 
       
   861 EUNIT_TEST(
       
   862     "Get Keypad volume 5 - test",
       
   863     "MProEngToneSettings",
       
   864     "KeypadVolume",
       
   865     "FUNCTIONALITY",
       
   866     Setup5L,
       
   867     GetKeypadVolumeTestL,
       
   868     Teardown)
       
   869 
       
   870 EUNIT_TEST(
       
   871     "Get Ringing Volume 5 - test",
       
   872     "MProEngToneSettings",
       
   873     "RingingVolume",
       
   874     "FUNCTIONALITY",
       
   875     Setup5L,
       
   876     GetRingingVolumeTestL,
       
   877     Teardown)
       
   878 
       
   879 EUNIT_TEST(
       
   880     "Get Vibrating alert 5 - test",
       
   881     "MProEngToneSettings",
       
   882     "VibratingAlert",
       
   883     "FUNCTIONALITY",
       
   884     Setup5L,
       
   885     GetVibraTestL,
       
   886     Teardown)
       
   887 
       
   888 EUNIT_TEST(
       
   889     "Get Warning And Game tones 5 - test",
       
   890     "MProEngToneSettings",
       
   891     "WarningAndGameTones",
       
   892     "FUNCTIONALITY",
       
   893     Setup5L,
       
   894     GetWarningAndGameTonesTestL,
       
   895     Teardown)
       
   896 
       
   897 EUNIT_TEST(
       
   898     "Get Text-to-Speech tone 5 - test",
       
   899     "MProEngToneSettings",
       
   900     "TextToSpeech",
       
   901     "FUNCTIONALITY",
       
   902     Setup5L,
       
   903     GetTextToSpeechTestL,
       
   904     Teardown)
       
   905 
       
   906 EUNIT_TEST(
       
   907     "Set Ringing type 5 - test",
       
   908     "MProEngToneSettings",
       
   909     "SetRingingType",
       
   910     "FUNCTIONALITY",
       
   911     Setup5L,
       
   912     SetRingingTypeTestL,
       
   913     Teardown)
       
   914 
       
   915 EUNIT_TEST(
       
   916     "Set Keypad volume 5 - test",
       
   917     "MProEngToneSettings",
       
   918     "SetKeypadVolume",
       
   919     "FUNCTIONALITY",
       
   920     Setup5L,
       
   921     SetKeypadVolumeTestL,
       
   922     Teardown)
       
   923 
       
   924 EUNIT_TEST(
       
   925     "Set Ringing Volume 5 - test",
       
   926     "MProEngToneSettings",
       
   927     "SetRingingVolume",
       
   928     "FUNCTIONALITY",
       
   929     Setup5L,
       
   930     SetRingingVolumeTestL,
       
   931     Teardown)
       
   932 
       
   933 EUNIT_TEST(
       
   934     "Set Vibrating alert 5 - test",
       
   935     "MProEngToneSettings",
       
   936     "SetVibratingAlert",
       
   937     "FUNCTIONALITY",
       
   938     Setup5L,
       
   939     SetVibraTestL,
       
   940     Teardown)
       
   941 
       
   942 EUNIT_TEST(
       
   943     "Set Warning And Game tones 5 - test",
       
   944     "MProEngToneSettings",
       
   945     "SetWarningAndGameTones",
       
   946     "FUNCTIONALITY",
       
   947     Setup5L,
       
   948     SetWarningAndGameTonesTestL,
       
   949     Teardown)
       
   950 
       
   951 EUNIT_TEST(
       
   952     "Set Text-to-Speech tone 5 - test",
       
   953     "MProEngToneSettings",
       
   954     "SetTextToSpeech",
       
   955     "FUNCTIONALITY",
       
   956     Setup5L,
       
   957     SetTextToSpeechTestL,
       
   958     Teardown)
       
   959 
       
   960 #endif // __OFFLINE_MODE
       
   961 
       
   962 #ifdef __DRIVE_MODE
       
   963 EUNIT_TEST(
       
   964     "Get Ringing type 6 - test",
       
   965     "MProEngToneSettings",
       
   966     "RingingType",
       
   967     "FUNCTIONALITY",
       
   968     Setup6L,
       
   969     GetRingingTypeTestL,
       
   970     Teardown)
       
   971 
       
   972 EUNIT_TEST(
       
   973     "Get Keypad volume 6 - test",
       
   974     "MProEngToneSettings",
       
   975     "KeypadVolume",
       
   976     "FUNCTIONALITY",
       
   977     Setup6L,
       
   978     GetKeypadVolumeTestL,
       
   979     Teardown)
       
   980 
       
   981 EUNIT_TEST(
       
   982     "Get Ringing Volume 6 - test",
       
   983     "MProEngToneSettings",
       
   984     "RingingVolume",
       
   985     "FUNCTIONALITY",
       
   986     Setup6L,
       
   987     GetRingingVolumeTestL,
       
   988     Teardown)
       
   989 
       
   990 EUNIT_TEST(
       
   991     "Get Vibrating alert 6 - test",
       
   992     "MProEngToneSettings",
       
   993     "VibratingAlert",
       
   994     "FUNCTIONALITY",
       
   995     Setup6L,
       
   996     GetVibraTestL,
       
   997     Teardown)
       
   998 
       
   999 EUNIT_TEST(
       
  1000     "Get Warning And Game tones 6 - test",
       
  1001     "MProEngToneSettings",
       
  1002     "WarningAndGameTones",
       
  1003     "FUNCTIONALITY",
       
  1004     Setup6L,
       
  1005     GetWarningAndGameTonesTestL,
       
  1006     Teardown)
       
  1007 
       
  1008 EUNIT_TEST(
       
  1009     "Get Text-to-Speech tone 6 - test",
       
  1010     "MProEngToneSettings",
       
  1011     "TextToSpeech",
       
  1012     "FUNCTIONALITY",
       
  1013     Setup6L,
       
  1014     GetTextToSpeechTestL,
       
  1015     Teardown)
       
  1016 
       
  1017 EUNIT_TEST(
       
  1018     "Set Ringing type 6 - test",
       
  1019     "MProEngToneSettings",
       
  1020     "SetRingingType",
       
  1021     "FUNCTIONALITY",
       
  1022     Setup6L,
       
  1023     SetRingingTypeTestL,
       
  1024     Teardown)
       
  1025 
       
  1026 EUNIT_TEST(
       
  1027     "Set Keypad volume 6 - test",
       
  1028     "MProEngToneSettings",
       
  1029     "SetKeypadVolume",
       
  1030     "FUNCTIONALITY",
       
  1031     Setup6L,
       
  1032     SetKeypadVolumeTestL,
       
  1033     Teardown)
       
  1034 
       
  1035 EUNIT_TEST(
       
  1036     "Set Ringing Volume 6 - test",
       
  1037     "MProEngToneSettings",
       
  1038     "SetRingingVolume",
       
  1039     "FUNCTIONALITY",
       
  1040     Setup6L,
       
  1041     SetRingingVolumeTestL,
       
  1042     Teardown)
       
  1043 
       
  1044 EUNIT_TEST(
       
  1045     "Set Vibrating alert 6 - test",
       
  1046     "MProEngToneSettings",
       
  1047     "SetVibratingAlert",
       
  1048     "FUNCTIONALITY",
       
  1049     Setup6L,
       
  1050     SetVibraTestL,
       
  1051     Teardown)
       
  1052 
       
  1053 EUNIT_TEST(
       
  1054     "Set Warning And Game tones 6 - test",
       
  1055     "MProEngToneSettings",
       
  1056     "SetWarningAndGameTones",
       
  1057     "FUNCTIONALITY",
       
  1058     Setup6L,
       
  1059     SetWarningAndGameTonesTestL,
       
  1060     Teardown)
       
  1061 
       
  1062 EUNIT_TEST(
       
  1063     "Set Text-to-Speech tone 6 - test",
       
  1064     "MProEngToneSettings",
       
  1065     "SetTextToSpeech",
       
  1066     "FUNCTIONALITY",
       
  1067     Setup6L,
       
  1068     SetTextToSpeechTestL,
       
  1069     Teardown)
       
  1070 
       
  1071 #endif // __DRIVE_MODE
       
  1072 
       
  1073 EUNIT_END_TEST_TABLE
       
  1074 
       
  1075 
       
  1076