profilesservices/ProfileEngine/tsrc/public/basic/EngineMdlTest/inc/T_MProfile.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:  MProfile test class.
       
    15 *
       
    16 */
       
    17 
       
    18 ////////////////////////////////////////////////////////////////////////
       
    19 // T_MProfile.h
       
    20 //
       
    21 
       
    22 // INCLUDES
       
    23 #include <CEUnitTestSuiteClass.h>
       
    24 
       
    25 #include <CPbkContactEngine.h>
       
    26 #include <cntdef.h>
       
    27 #include <f32file.h>
       
    28 #include <s32file.h>
       
    29 
       
    30 #include <APGCLI.H>
       
    31 
       
    32 
       
    33 // FORWARD DECLARATION
       
    34 class MProfileEngine;
       
    35 class MProfile;
       
    36 
       
    37 /**
       
    38  * Test suite for class MProfile
       
    39  */
       
    40 class T_MProfile : public CEUnitTestSuiteClass
       
    41     {
       
    42     public:     // Construct / destruct
       
    43         static T_MProfile* NewLC();
       
    44         ~T_MProfile();
       
    45 
       
    46     private:
       
    47         void ConstructL();
       
    48 
       
    49     private:    // Assistance methods
       
    50 
       
    51     private:    // test methods
       
    52         // setups
       
    53         void SetupL();
       
    54 
       
    55         // teardowns
       
    56         void Teardown();
       
    57 
       
    58         // tests
       
    59         void EmptyTestL();
       
    60         void CreateTestL();
       
    61 
       
    62         // MProfile
       
    63         void GetAlertForTestL();
       
    64         void IsSilentTestL();
       
    65         void GetProfileNameTestL();
       
    66         void GetProfileTonesTestL();
       
    67         void GetProfileExtraTonesTestL();
       
    68         void GetProfileExtraSettingsTestL();
       
    69 
       
    70     private:    // Implementation
       
    71 
       
    72         EUNIT_DECLARE_TESTCASE_TABLE;
       
    73 
       
    74     private:    // Data
       
    75         MProfileEngine* iProfileEngine;
       
    76         MProfile* iProfile;
       
    77         TInt iActiveId;
       
    78         RFs iFs;
       
    79         CPbkContactEngine* iCE;
       
    80         RArray<TContactItemId> iArray;
       
    81     };