profilesservices/ProfileEngine/tsrc/public/basic/EngineMdlTest/inc/T_MProfilesNamesArray.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:  MProfilesNamesArray test class.
       
    15 *
       
    16 */
       
    17 
       
    18 ////////////////////////////////////////////////////////////////////////
       
    19 // T_MProfilesNamesArray.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 MProfilesNamesArray;
       
    33 class MProfileEngine;
       
    34 
       
    35 /**
       
    36  * Test suite for class MProfilesNamesArray
       
    37  */
       
    38 class T_MProfilesNamesArray : public CEUnitTestSuiteClass
       
    39     {
       
    40     public:     // Construct / destruct
       
    41         static T_MProfilesNamesArray* NewLC();
       
    42         ~T_MProfilesNamesArray();
       
    43 
       
    44     private:
       
    45         void ConstructL();
       
    46 
       
    47     private:    // Assistance methods
       
    48 
       
    49     private:    // test methods
       
    50         // setups
       
    51         void EmptySetupL();
       
    52         void SetupL();
       
    53 
       
    54         // teardowns
       
    55         void EmptyTeardown();
       
    56         void Teardown();
       
    57 
       
    58         // tests
       
    59         void EmptyTestL();
       
    60         void CreateTestL();
       
    61 
       
    62         void ProfileNameTestL();
       
    63         void FindIdTestL();
       
    64         void FindNameTestL();
       
    65         void MdcaCountTestL();
       
    66         void MdcaPointTestL();
       
    67 
       
    68     private:    // Implementation
       
    69 
       
    70         EUNIT_DECLARE_TESTCASE_TABLE;
       
    71 
       
    72     private:    // Data
       
    73         RFs iFs;
       
    74         MProfileEngine* iProfileEngine;
       
    75         MProfilesNamesArray* iProfilesNames;
       
    76 
       
    77     };
       
    78