profilesservices/ProfileEngine/tsrc/public/basic/EngineMdlTest/inc/T_MProfilePttSettings.h
changeset 0 8c5d936e5675
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:  MProfilePttSettings test class.
       
    15 *
       
    16 */
       
    17 
       
    18 ////////////////////////////////////////////////////////////////////////
       
    19 // T_MProfilePttSettings.h
       
    20 //
       
    21 
       
    22 // INCLUDES
       
    23 #include <CEUnitTestSuiteClass.h>
       
    24 
       
    25 #include <f32file.h>
       
    26 #include <s32file.h>
       
    27 
       
    28 #include <APGCLI.H>
       
    29 
       
    30 
       
    31 // FORWARD DECLARATION
       
    32 class MProfileEngine;
       
    33 class MProfile;
       
    34 class MProfileExtraSettings;
       
    35 class MProfilePttSettings;
       
    36 class CRepository;
       
    37 
       
    38 /**
       
    39  * Test suite for class MProfile
       
    40  */
       
    41 class T_MProfilePttSettings : public CEUnitTestSuiteClass
       
    42     {
       
    43     public:     // Construct / destruct
       
    44         static T_MProfilePttSettings* NewLC();
       
    45         ~T_MProfilePttSettings();
       
    46 
       
    47     private:
       
    48         void ConstructL();
       
    49 
       
    50     private:    // Assistance methods
       
    51 
       
    52     private:    // test methods
       
    53         // setups
       
    54         void EmptySetupL();
       
    55         void SetupL();
       
    56         void Setup0L();
       
    57         void Setup1L();
       
    58         void Setup2L();
       
    59         void Setup3L();
       
    60         void Setup4L();
       
    61 
       
    62         // teardowns
       
    63         void EmptyTeardown();
       
    64         void Teardown();
       
    65 
       
    66         // tests
       
    67         void EmptyTestL();
       
    68 
       
    69         void GetPttStatusTestL();
       
    70 
       
    71         void GetPttRingingToneTestL();
       
    72 
       
    73     private:    // Implementation
       
    74 
       
    75         EUNIT_DECLARE_TESTCASE_TABLE;
       
    76 
       
    77     private:    // Data
       
    78         MProfileEngine* iProfileEngine;
       
    79         MProfile* iProfile;
       
    80         TInt iActiveId;
       
    81         RFs iFs;
       
    82 
       
    83         const MProfileExtraSettings* iProfileExtraSettings;
       
    84         const MProfilePttSettings* iProfilePttSettings;
       
    85         CRepository* iCenRep;
       
    86     };
       
    87